repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
shaokeyibb/Minecraft-Plugin-YinwuChat-RELOADED
src/main/java/org/lintx/plugins/yinwuchat/json/Message.java
package org.lintx.plugins.yinwuchat.json; import java.util.ArrayList; import java.util.List; public class Message { public String player = ""; public String chat = ""; public List<String> items = null; public List<HandleConfig> handles = new ArrayList<>(); }
cjh1/ParaView
Utilities/mpi4py/Library/compat/deinompi.h
<reponame>cjh1/ParaView<filename>Utilities/mpi4py/Library/compat/deinompi.h #ifndef PyMPI_COMPAT_DEINOMPI_H #define PyMPI_COMPAT_DEINOMPI_H /* ---------------------------------------------------------------- */ static int PyMPI_DEINOMPI_argc = 0; static char **PyMPI_DEINOMPI_argv = 0; static char *PyMPI_DEI...
LAzzam2/stockr-client
gulp/tasks/build/build-scripts.js
'use strict'; var gulp = require( 'gulp' ); var connect = require( 'gulp-connect' ); var mainBowerFiles = require( 'main-bower-files' ); var inject = require( 'gulp-inject' ); var angularFilesort = require( 'gulp-angular-filesort' ); var ngAnnotate = require( 'gulp-ng-annotate' ); v...
Nobergan/js-scripts
repeta/14_events/js/input.js
/* * События input и change * Чекбоксы и свойство checked */ const btnRef = document.querySelector('.js-button'); const inputRef = document.querySelector('.js-input'); const licenseRef = document.querySelector('.js-license'); const nameLabelRef = document.querySelector('.js-button > span'); inputRef.addEventListen...
dustinpianalto/geeksbot_web
geeksbot_web/rcon/models.py
from django.db import models from django.core.exceptions import ObjectDoesNotExist from rest_framework import status from guilds.models import Guild from dmessages.models import Message from users.models import User from channels.models import Channel from .utils import create_error_response from .utils import create_...
jwasinger/corewar-ui
src/features/signup/actions.js
<reponame>jwasinger/corewar-ui import { action } from '../../actions/creator' export const SUBSCRIBE_REQUESTED = 'signup/SUBSCRIBE_REQUESTED' export const SUBSCRIPTION_RESPONSE = 'signup/SUBSCRIPTION_RESPONSE' export const subscribe = email => action(SUBSCRIBE_REQUESTED, { email })
Galenika/Externalit
csgo_external/csgo_external/sdk/csgo/engine.h
#pragma once #include "../sdk.h" namespace sdk { namespace csgo { class cengine { private: uint32_t client_state(); public: cengine() = default; vec3 get_viewang(); void set_viewang(vec3 ang); const char* get_mapdir(); const char* get_mapname(); const char* get_gamedir(); vo...
wannabearockstar/intellij-scala
testdata/parameterInfo/functionParameterInfo/simple/ScalaLibrary.scala
<filename>testdata/parameterInfo/functionParameterInfo/simple/ScalaLibrary.scala import scala.collection.mutable.ArrayBuffer val buffer = new ArrayBuffer[Int] buffer.append(/*caret*/) //elems: Int*
eltanin-os/tertium
src/utf8/checkrune.c
<filename>src/utf8/checkrune.c #include <tertium/cpu.h> #include <tertium/std.h> ctype_status c_utf8_checkrune(ctype_rune r) { if (r > C_RUNEMAX || (r & 0xFFFE) == 0xFFFE || (r >= 0xD800 && r <= 0xDFFF) || (r >= 0xFDD0 && r <= 0xFDEF) || (r > 0x10FFFF)) return -1; return 0; }
oonsamyi/flow
tests/cli_renderer_color/haste_dupes/dupe2.js
<gh_stars>1000+ /** * @providesModule dupe * @format * @flow */
jszeluga/dbeaver
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/DataSourceDescriptorManager.java
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2019 <NAME> (<EMAIL>) * * 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/LIC...
Passarinho4/udash-core
rest/src/main/scala/io/udash/rest/SttpRestClient.scala
<filename>rest/src/main/scala/io/udash/rest/SttpRestClient.scala package io.udash package rest import com.avsystem.commons._ import com.avsystem.commons.annotation.explicitGenerics import com.avsystem.commons.meta.Mapping import com.softwaremill.sttp.Uri.QueryFragment.KeyValue import com.softwaremill.sttp.Uri.QueryFra...
FCS-holding/acc_lib
compression_xilinx/L2/src/lz4_p2p_decompress_kernel.cpp
/* * (c) Copyright 2019 Xilinx, Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
drproduck/Element-Analytics
Element_Analytics/apps/edit/views.py
from django.shortcuts import render, redirect from django.contrib.auth.forms import UserChangeForm from apps.edit.forms import EditProfileForm from django.contrib.auth.decorators import login_required # Create your views here. @login_required def edit_profile(request): if request.method == 'POST': form = E...
Purg/SMQTK
python/smqtk/algorithms/classifier/_classifier_collection.py
<reponame>Purg/SMQTK import threading import six from smqtk.exceptions import MissingLabelError from smqtk.utils import SmqtkObject from smqtk.utils.configuration \ import Configurable, make_default_config, from_config_dict, to_config_dict from smqtk.utils.dict import merge_dict from ._defaults import DFLT_CLASS...
sam6321/DDFC-OVA-Dicsord-Bot
Commands/music.js
<gh_stars>0 const MusicContext = require("../music/context.js"); exports.description = "Plays music from Youtube. Has three subcommands: 'play', 'skip', and 'list'"; exports.info = "Plays music from Youtube.\n'play' - Specify a Youtube video URL to play. If a video is already playing, it will be added to the queue.\n'...
ZhangUranus/partner-fq
hot-deploy/partner/src/org/ofbiz/partner/scm/purplan/PurPlanBalance.java
package org.ofbiz.partner.scm.purplan; import java.math.BigDecimal; import org.ofbiz.base.util.UtilMisc; import org.ofbiz.entity.Delegator; import org.ofbiz.entity.GenericValue; /** * 提供采购申请单查询供应商物料可入库余额 * 提供余额表更新 * * * @author Mark * */ public class PurPlanBalance { public static final ...
jacobgoh101/fcc-voting-backend
dist/middleware/index.js
<filename>dist/middleware/index.js "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _express = require("express"); exports.default = function (_ref) { var config = _ref.config, db = _ref.db; var routes = (0, _express.Router)(); // add middleware here return routes; ...
codahale/voldemort-sets
src/main/java/com/codahale/voldemort/sets/ReverseSortedLongSet.java
package com.codahale.voldemort.sets; import java.util.Comparator; public class ReverseSortedLongSet extends SortedLongSet { private static final Comparator<Long> REVERSE = new Comparator<Long>() { @Override public int compare(Long o1, Long o2) { return o2.compareTo(o1); } }; @Override protected Compara...
ahnitz/pegasus
src/tools/pegasus-kickstart/mylist.c
<filename>src/tools/pegasus-kickstart/mylist.c /* * This file or a portion of this file is licensed under the terms of * the Globus Toolkit Public License, found in file GTPL, or at * http://www.globus.org/toolkit/download/license.html. This notice must * appear in redistributions of this file, with or without modi...
BastianBlokland/novus
src/parse/node_expr_switch.cpp
<filename>src/parse/node_expr_switch.cpp<gh_stars>10-100 #include "parse/node_expr_switch.hpp" #include "utilities.hpp" namespace parse { SwitchExprNode::SwitchExprNode(std::vector<NodePtr> ifClauses, NodePtr elseClause) : m_ifClauses{std::move(ifClauses)}, m_elseClause{std::move(elseClause)} {} auto SwitchExprN...
forest-watcher/forest-watcher
app/components/settings/gfw-layers/layer-download/styles.js
import Theme from 'config/theme'; import { StyleSheet } from 'react-native'; export default StyleSheet.create({ container: { backgroundColor: Theme.background.main, flex: 1 }, contentContainer: { paddingTop: 12, flex: 1 }, error: { fontSize: 12, fontWeight: '400', fontFamily: Them...
KMU-embedded/mosbench-ext
metis/tools/mergedir.c
/* * inverted index */ #include <sys/time.h> #include <sys/types.h> #include <sys/mman.h> #include <fcntl.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <time.h> #include <dirent.h> #include <errno.h> #include <pthread.h> #include <ctype.h> #include <as...
gift-surg/GiftCloudServerBuilder
plugin-resources/webapp/xnat/java/org/nrg/xnat/restlet/actions/PullScanDataFromHeaders.java
/* * org.nrg.xnat.restlet.actions.PullScanDataFromHeaders * XNAT http://www.xnat.org * Copyright (c) 2014, Washington University School of Medicine * All Rights Reserved * * Released under the Simplified BSD. * * Last modified 7/30/13 2:58 PM */ package org.nrg.xnat.restlet.actions; import org.apa...
softwareinmotion/submarine
lib/tasks/ci.rake
<reponame>softwareinmotion/submarine if Rails.env == 'ci' require 'ci/reporter/rake/rspec' require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:rspec) task :rspec => 'ci:setup:rspec' end
JLLeitschuh/tapestry3
tapestry-framework/src/org/apache/tapestry/script/LetRule.java
// Copyright 2004 The Apache Software Foundation // // 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 ...
PigsCanFlyLabs/message-backend
admin-service/src/test/scala/ca/pigscanfly/routes/AdminServiceSpec.scala
<reponame>PigsCanFlyLabs/message-backend<gh_stars>1-10 package ca.pigscanfly.routes import akka.actor.ActorRef import akka.http.scaladsl.model.HttpMethods.{DELETE, POST} import akka.http.scaladsl.model.HttpProtocols.`HTTP/1.0` import akka.http.scaladsl.model.headers.{Authorization, OAuth2BearerToken} import akka.http....
sheldonhull/git-town
src/dialog/config.go
<gh_stars>0 package dialog import ( "fmt" "strings" "github.com/fatih/color" "github.com/git-town/git-town/v7/src/git" ) // EnsureIsConfigured has the user to confgure the main branch and perennial branches if needed. func EnsureIsConfigured(repo *git.ProdRepo) error { if repo.Config.MainBranch() == "" { fmt....
Mart100/Midoxus-site
recreation/color.js
<reponame>Mart100/Midoxus-site<gh_stars>1-10 class Color { constructor(r, g, b, a) { this.r = r != undefined ? r : 255 this.g = g != undefined ? g : 255 this.b = b != undefined ? b : 255 this.a = a != undefined ? a : 255 } random() { this.r = Math.floor(Math.random()*255) this.g = Math.floor(Math.rando...
UWICompSociety/computing-society-web-app
node_modules/cssnext/node_modules/caniuse-api/node_modules/lodash.memoize/node_modules/lodash._keyprefix/index.js
<filename>node_modules/cssnext/node_modules/caniuse-api/node_modules/lodash.memoize/node_modules/lodash._keyprefix/index.js<gh_stars>1-10 /** * Lo-Dash 2.4.2 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="npm" -o ./npm/` * Copyright 2012-2014 The Dojo Foundation <http://dojofoundatio...
jasonoscar88/Photon-v2
Engine/Source/FileIO/SDL/SdlResourcePack.cpp
<reponame>jasonoscar88/Photon-v2 #include "FileIO/SDL/SdlResourcePack.h" #include "FileIO/SDL/SdlParser.h" #include "Core/SampleGenerator/SampleGenerator.h" #include "Core/Filmic/TSamplingFilm.h" #include <iostream> namespace ph { SdlResourcePack::SdlResourcePack() : visualWorld(), renderOption(), m_camera(nullpt...
tceulema/Emuchron
firmware/clock/perftest.c
//***************************************************************************** // Filename : 'perftest.c' // Title : Test suite code for MONOCHRON glcd graphics performance tests //***************************************************************************** // // This module is not a clock but instead is a high ...
stefpetrov/Software-University
Data Types and Variables/08.Calculator.js
function solve(num1, operator, num2) { if (operator === "+") { console.log((num1 + num2).toFixed(2)); } else if (operator === "-") { console.log((num1 - num2).toFixed(2)); } else if (operator === "*") { console.log((num1 * num2).toFixed(2)); } else if (operator === "/") { console.log((num1 / num...
jnhu76/mxtasking
src/db/index/blinktree/node_iterator.h
#pragma once #include "node.h" #include <mx/resource/resource.h> namespace db::index::blinktree { /** * Iterator for iterating over nodes of a tree. */ template <typename K, typename V> class NodeIterator { public: NodeIterator() = default; explicit NodeIterator(Node<K, V> *root) : _current_node(root), _fir...
javalibrary/netifi-httpgateway
netifi-httpgateway/src/main/java/com/netifi/httpgateway/rsocket/BrokerClientRSocketSupplier.java
/** * Copyright 2018 Netifi Inc. * * <p>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 applicable law or agreed ...
Whitemane/fluid-engine-dev
src/python/size.cpp
// Copyright (c) 2018 <NAME> // // I am making my contributions/submissions to this project solely in my // personal capacity and am not conveying any rights to any intellectual // property of any third parties. #include "size.h" #include "pybind11_utils.h" #include <jet/size2.h> #include <jet/size3.h> namespace py ...
Prodaxis/kie-wb-common
kie-wb-common-screens/kie-wb-common-library/kie-wb-common-library-client/src/test/java/org/kie/workbench/common/screens/library/client/settings/sections/branchmanagement/RoleItemPresenterTest.java
<reponame>Prodaxis/kie-wb-common /* * Copyright 2019 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
GlobalTechnology/gma_android
measurements-app/src/main/java/com/expidevapps/android/measurements/support/v4/content/TrainingLoaderBroadcastReceiver.java
<filename>measurements-app/src/main/java/com/expidevapps/android/measurements/support/v4/content/TrainingLoaderBroadcastReceiver.java<gh_stars>1-10 package com.expidevapps.android.measurements.support.v4.content; import android.content.Context; import android.content.Intent; import android.support.annotation.NonNull; ...
Stibbons/sonarr-sub-downloader-docker
cfgtree/tests/test_dictxparth.py
# coding: utf-8 # Standard Libraries from unittest import TestCase # Third Party Libraries from cfgtree.dictxpath import delete_node_by_xpath from cfgtree.dictxpath import get_node_by_xpath from cfgtree.dictxpath import set_node_by_xpath class DictXpathTests(TestCase): def test_get_node_by_path(self): ...
ajaycb/webrtc-rooms
janus-api/plugins/datasync/question_data.js
import { userInfo } from "os"; import EventEmitter from "events"; class Question { constructor(qd, id, title, type, options = {}) { this.qd = qd; let reply_to = qd.room.user.id; this.question = { id, title, type, options, reply_to }; this.answers = {}; } ask() { this.qd.room.text_room.send(...
MukundSonaiya/DemoWith0xMonorepo
packages/sol-cov/lib/src/constants.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); // tslint:disable:number-literal-format exports.constants = { NEW_CONTRACT: 'NEW_CONTRACT', PUSH1: 0x60, PUSH2: 0x61, PUSH32: 0x7f, TIMESTAMP: 0x42, }; //# sourceMappingURL=constants.js.map
PimentaPeps/ArcTouch-Code-Challenge
app/src/main/java/com/code/arctouch/arctouchcodechallenge/upcomingmovies/ScrollChildSwipeRefreshLayout.java
<filename>app/src/main/java/com/code/arctouch/arctouchcodechallenge/upcomingmovies/ScrollChildSwipeRefreshLayout.java<gh_stars>0 package com.code.arctouch.arctouchcodechallenge.upcomingmovies; import android.content.Context; import android.support.v4.view.ViewCompat; import android.support.v4.widget.SwipeRefreshLayout...
jgradim/psc-web
src/constants/technologies.js
<gh_stars>1-10 export default [ { "label": "Android" , "value": "Android" } , { "label": "C" , "value": "C" } , { "label": "C#" , "value": "C#" } , { "label": "C++" , "value": "C++" } , { "label": "CSS" , "val...
codekat1/liboqs
src/kem/ntruprime/pqclean_sntrup761_clean/crypto_encode_761xint16.h
<reponame>codekat1/liboqs #ifndef PQCLEAN_SNTRUP761_CLEAN_CRYPTO_ENCODE_761XINT16_H #define PQCLEAN_SNTRUP761_CLEAN_CRYPTO_ENCODE_761XINT16_H #include <stdint.h> #define PQCLEAN_SNTRUP761_CLEAN_crypto_encode_761xint16_STRBYTES 1522 #define PQCLEAN_SNTRUP761_CLEAN_crypto_encode_761xint16_ITEMS 761 #define PQCLEAN_SNTRU...
npocmaka/Windows-Server-2003
sdktools/mep/src/pick.c
<reponame>npocmaka/Windows-Server-2003<filename>sdktools/mep/src/pick.c /*** pick.c - pick a piece of text and put it into the put buffer * * Copyright <C> 1988, Microsoft Corporation * * Revision History: * 26-Nov-1991 mz Strip off near/far * *****************************************************************...
duchaochen/cyfm
cyfm-web/src/main/java/com/ppcxy/cyfm/bus/system/service/JoinSystemService.java
<reponame>duchaochen/cyfm package com.ppcxy.cyfm.bus.system.service; import com.ppcxy.common.service.BaseService; import com.ppcxy.cyfm.bus.system.entity.JoinSystem; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service @Transactional public class Joi...
kstepanmpmg/mldb
testing/pyplugin_static_folder/main.py
<reponame>kstepanmpmg/mldb # This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved. from mldb import mldb endpoint = mldb.plugin.args[0] folder = mldb.plugin.args[1] mldb.log("Trying with enpoint '%s' -> '%s'" % (endpoint, folder)) mldb.plugin.serve_static_folder(endpoint, folder)
fallahn/crogine
editor/src/LayoutState.cpp
<reponame>fallahn/crogine /*----------------------------------------------------------------------- <NAME> 2020 - 2021 http://trederia.blogspot.com crogine editor - Zlib license. This software is provided 'as-is', without any express or implied warranty.In no event will the authors be held liable for any damages ari...
HoEmpire/slambook2
3rdparty/meshlab-master/src/plugins_experimental/edit_ocme/src/ocme/ocme_debug.cpp
<reponame>HoEmpire/slambook2<gh_stars>1-10 #include "ocme_definition.h" #include "impostor_definition.h" void OCME::Verify(){ /* */ CellsIterator ci; { lgn->Append("CHECK IF: ecd/rd exists for each cell");lgn->Push(); for(ci = cells.begin(); ci != cells.end(); ++ci){ RAssert( (*ci).second->ecd); RAsser...
ShanghaiWuDun/rust-nasl
c/base/cvss.c
/* Copyright (C) 2012-2018 Greenbone Networks GmbH * * SPDX-License-Identifier: GPL-2.0-or-later * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (a...
hdm/mac-tracker
data/js/5c/b2/9e/00/00/00.24.js
<gh_stars>10-100 macDetailCallback("5cb29e000000/24",[{"d":"2019-12-25","t":"add","s":"ieee-oui.csv","a":"160 Park Avenue Florham Park NJ US 07932","c":"US","o":"ASCO Power Technologies"}]);
securesonic/safekiddo-backend
src/modules/httpd/serverStatus.h
/* * serverStatus.h * * Created on: Jul 21, 2014 * Author: witkowski */ #ifndef SERVERSTATUS_H_ #define SERVERSTATUS_H_ #include <ctime> #include <mutex> namespace safekiddo { namespace webservice { class ServerStatus { private: std::mutex mutable mutex; time_t const maxTimeBetweenEvents; size_t const...
illeagalName/su-sunday-cloud
sunday-modules/sunday-job-service/src/main/java/com/haier/job/schedule/CrawlerTask.java
<reponame>illeagalName/su-sunday-cloud package com.haier.job.schedule; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.google.common.collect.Lists; import com.haier.api.bot.RemoteBotService; import com.haier.core.util.DataUtils; import com.haier.core.util.HttpUtils; import com.haie...
keyko-io/eventeum
core/src/main/java/io/keyko/monitoring/agent/core/dto/message/ContractEventFilterRemoved.java
package io.keyko.monitoring.agent.core.dto.message; import io.keyko.monitoring.agent.core.dto.event.filter.ContractEventFilter; import lombok.NoArgsConstructor; @NoArgsConstructor public class ContractEventFilterRemoved extends AbstractMessage<ContractEventFilter> { public static final String TYPE = "EVENT_FILTE...
thesaravanakumar/competative-programming
codeforces/800/1085A-Right-LeftCipher.cpp
<gh_stars>0 #include <bits/stdc++.h> #define ll long long int #define w(t) int t; cin>>t; while(t--) #define F first #define S second #define pb push_back #define mp make_pair #define pii pair<int,int> #define mii map<int...
efbiz/ability-exam
manager/src/main/java/org/efbiz/ablility/exam/manager/service/QuestionHistoryService.java
package org.efbiz.ablility.exam.manager.service; import java.util.List; import java.util.Map; import org.efbiz.ability.exam.common.domain.exam.UserQuestionHistory; import org.efbiz.ability.exam.common.domain.question.QuestionStatistic; public interface QuestionHistoryService { /** * 插入试题历史 * * @param his...
flavoi/diven
diventi/ebooks/migrations/0014_book_book_product.py
<gh_stars>1-10 # Generated by Django 2.1.7 on 2019-05-03 05:27 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('products', '0018_delete_section'), ('ebooks', '0013_remove_chapter_chapter_product'), ] oper...
willroberts/duelyst
app/ui/managers/news_manager.js
<filename>app/ui/managers/news_manager.js // See: https://coderwall.com/p/myzvmg for why managers are created this way var _NewsManager = {}; _NewsManager.instance = null; _NewsManager.getInstance = function () { if (this.instance == null) { this.instance = new NewsManager(); } return this.instance; }; _NewsManag...
fluxxlabs/haml
test/hamlit/helpers_test.rb
describe Haml::Helpers do describe '.preserve' do it 'works without block' do result = Haml::Helpers.preserve("hello\nworld") assert_equal 'hello&#x000A;world', result end end end
L0laapk3/RLBotPack
RLBotPack/Rocketnoodles/src/physics/control/__init__.py
from physics.control.base import BaseController from physics.control.steer import PointPD __all__ = ["BaseController", "PointPD"]
restjohn/disconnected-content-explorer-android
app/src/main/java/mil/nga/dice/JavaScriptAPI.java
package mil.nga.dice; import android.app.Activity; import android.app.Dialog; import android.content.IntentSender; import android.location.Location; import android.os.Bundle; import android.util.Log; import android.webkit.WebView; import com.fangjian.WebViewJavascriptBridge; import com.google.android.gms.common.Conne...
hyperon-io/dictionary-engine
src/main/java/pl/decerto/hyperon/demo/dictionary/dom/DictionaryDom.java
<filename>src/main/java/pl/decerto/hyperon/demo/dictionary/dom/DictionaryDom.java<gh_stars>0 package pl.decerto.hyperon.demo.dictionary.dom; import java.util.Set; import pl.decerto.hyperon.runtime.model.HyperonDomainObject; import pl.decerto.hyperon.demo.dictionary.dict.Dictionary; import pl.decerto.hyperon.demo.dicti...
jbdelcuv/openenclave
host/sgx/hostverify_report.c
<filename>host/sgx/hostverify_report.c // Copyright (c) Open Enclave SDK contributors. // Licensed under the MIT License. #include <openenclave/bits/report.h> #include <openenclave/bits/result.h> #include <openenclave/host.h> #include <openenclave/host_verify.h> #include <openenclave/internal/raise.h> #include "../.....
scopely/deck
app/scripts/modules/oracle/securityGroup/securityGroup.transformer.js
'use strict'; const angular = require('angular'); import { NETWORK_READ_SERVICE } from '@spinnaker/core'; import _ from 'lodash'; module.exports = angular .module('spinnaker.oraclebmcs.securityGroup.transformer', [NETWORK_READ_SERVICE]) .factory('oraclebmcsSecurityGroupTransformer', function(networkReader) { ...
he0119/smart-home
home/board/models.py
from django.conf import settings from django.db import models from mptt.models import MPTTModel, TreeForeignKey class Topic(models.Model): """话题""" class Meta: verbose_name = "话题" verbose_name_plural = "话题" title = models.CharField(max_length=200, verbose_name="标题") description = mod...
r0wbrt/codec2
unittest/tcontphase.c
<gh_stars>0 /*---------------------------------------------------------------------------*\ FILE........: tcontphase.c AUTHOR......: <NAME> DATE ...
schnatterer/smeagol
src/main/java/com/cloudogu/smeagol/wiki/domain/PageModifiedEvent.java
package com.cloudogu.smeagol.wiki.domain; /** * Domain event which is fired whenever a page was modified. */ public class PageModifiedEvent { private final Page page; public PageModifiedEvent(Page page) { this.page = page; } public Page getPage() { return page; } }
Ami-Solution/amishop
src/containers/Map/Markers/ShopMarker/index.js
export { default } from './ShopMarker';
usgs/neversink_workflow
source/PEST++/src/libs/Eigen/test/simplicial_cholesky.cpp
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2011 <NAME> <<EMAIL>> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at http://mozilla...
NeJan2020/kindling
collector/model/subscribe.pb.go
<filename>collector/model/subscribe.pb.go // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: subscribe.proto package model import ( fmt "fmt" proto "github.com/gogo/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Er...
halorgium/rack-client
examples/rubyurl.rb
$:.unshift File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')) require 'rack/client' require 'json' require 'pp' client = Rack::Client.new('http://rubyurl.com/') client.post('/api/links.json', :website_url => 'http://istwitterdown.com/').body.each do |json| puts JSON.parse(json)['link']['permalink'] end...
dingmike/testCnnShop
platform-shop/src/main/java/com/platform/dao/CnnLearnTypeDao.java
<filename>platform-shop/src/main/java/com/platform/dao/CnnLearnTypeDao.java package com.platform.dao; import com.platform.entity.CnnLearnTypeEntity; /** * Dao * * @author admin * @email <EMAIL> * @date 2018-07-04 20:11:47 */ public interface CnnLearnTypeDao extends BaseDao<CnnLearnTypeEntity> { }
francis-pouatcha/forgelab
adpharma/adpharma.server/src/main/java/org/adorsys/adpharma/server/jpa/DeliveryStattisticsDataSearchInput.java
<reponame>francis-pouatcha/forgelab<filename>adpharma/adpharma.server/src/main/java/org/adorsys/adpharma/server/jpa/DeliveryStattisticsDataSearchInput.java package org.adorsys.adpharma.server.jpa; import java.util.Date; public class DeliveryStattisticsDataSearchInput { private Integer years ; private Supplier sup...
AmmarQaseem/CPI-Pipeline-test
scripts/ppi-benchmark/Converters/learning-format-api/src/main/java/org/learningformat/api/JSRE_Tranformer.java
package org.learningformat.api; import jargs.gnu.CmdLineParser; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.io.Reader; import java.io.Writer; import java.nio.charset.Charset; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import...
crowdbotics-apps/royal-cloud-33498
utils/ValidateEmail.js
export const validateEmail = value => { const pattern = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; const isValid = pattern.test(String(value).toLowerCase()); return isValid; };
mathewjames-dev/NodeJSMultiplayerGame
app/database/authQueries.js
/*** * * Back-end Auth Database Component File * ***/ const bcrypt = require('bcrypt'); const Database = require('./database'); const UserModel = require('./models/user'); const InventoryModel = require('./models/inventory'); const saltRounds = 10; class AuthQueries extends Database { constructor() { ...
freebird-airlines/WhirlyGlobe
android/library/WhirlyGlobeLib/src/BaseInfo.cpp
<filename>android/library/WhirlyGlobeLib/src/BaseInfo.cpp /* * BaseInfo.mm * WhirlyGlobeLib * * Created by <NAME> on 7/6/15. * Copyright 2011-2016 mousebird consulting * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * ...
parafernalia/parafa-cookiecutter-react
src/reducers/homeReducer.js
import initialState from './initialState' import * as types from '../actions/actionTypes' export default function homeReducer(state = initialState.home, action) { switch (action.type) { case types.DATA_REQUEST: return { ...state, error: null } case types.DATA_SUCCESS: return { ...state, data: action.data.s...
smlobo/anet
src/main/java/mil/dds/anet/database/mappers/PersonMapper.java
<reponame>smlobo/anet package mil.dds.anet.database.mappers; import java.sql.ResultSet; import java.sql.SQLException; import mil.dds.anet.beans.Person; import mil.dds.anet.beans.Person.PersonStatus; import mil.dds.anet.beans.Person.Role; import mil.dds.anet.beans.Position; import mil.dds.anet.utils.DaoUtils; import or...
cragkhit/elasticsearch
references/bcb_chosen_clones/selected#2391775#310#320.java
void write(OutputStream os) throws IOException { ZipOutputStream zos = new ZipOutputStream(os); ListIterator iterator = entryList.listIterator(); while (iterator.hasNext()) { Entry entry = (Entry) iterator.next(); ZipEntry ze = entry.zipEntry; zos.putNextE...
FredyKcrez/JAVA
G8_Herencia1_EmpleadoComision/src/ejemploherencia1/PruebaEmpleadoPorComision.java
/* * Guía de laboratorio 08 - Programación 3 - 2012 * Ejemplo 1: Herencia de la clase Object. */ package ejemploherencia1; /** * @date 02/07/2018 * @author <NAME> */ public class PruebaEmpleadoPorComision { public static void main(String[] args) { EmpleadoPorComision empleado = new Empl...
m-socha/sana.protocol_builder
src-backbone/app/js/collections/abstractElements.js
const ElementCollection = require('collections/elements'); const AbstractElement = require('models/abstractElement'); module.exports = ElementCollection.extend({ model: AbstractElement, });
bczhc2/test
app/src/main/java/pers/zhc/tools/clipboard/Clip.java
<reponame>bczhc2/test package pers.zhc.tools.clipboard; import android.content.ClipData; import android.content.ClipboardManager; import android.content.Context; import android.os.Bundle; import androidx.annotation.Nullable; import android.widget.Button; import android.widget.EditText; import pers.zhc.tools.BaseActivi...
foteiniBeligianni/samoa
samoa-threads/src/test/java/com/yahoo/labs/samoa/topology/impl/ThreadsProcessingItemTest.java
<reponame>foteiniBeligianni/samoa<filename>samoa-threads/src/test/java/com/yahoo/labs/samoa/topology/impl/ThreadsProcessingItemTest.java /* * #%L * SAMOA * %% * Copyright (C) 2013 Yahoo! Inc. * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance w...
hellolliu/behave-students
behave-db/src/main/java/org/java/behave/db/dao/BehaveTeacherQuestionMapper.java
package org.java.behave.db.dao; import java.util.List; import org.apache.ibatis.annotations.Param; import org.java.behave.db.domain.BehaveTeacherQuestion; import org.java.behave.db.domain.BehaveTeacherQuestionExample; public interface BehaveTeacherQuestionMapper { /** * This method was generated by MyBatis G...
zealoussnow/chromium
ui/ozone/platform/wayland/host/shell_object_factory.cc
<filename>ui/ozone/platform/wayland/host/shell_object_factory.cc // Copyright 2019 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 "ui/ozone/platform/wayland/host/shell_object_factory.h" #include "base/logging....
ericsorenson/ef-cms
web-client/src/presenter/computeds/FeatureFlags/featureFlagHelper.test.js
<reponame>ericsorenson/ef-cms import { applicationContextForClient as applicationContext } from '../../../../../shared/src/business/test/createTestApplicationContext'; import { featureFlagHelper as featureFlagHelperComputed } from './featureFlagHelper'; import { runCompute } from 'cerebral/test'; import { withAppContex...
jsoagger/transdev-base-reactui-template
template/src/_components/Wizard/Wizard.js
<filename>template/src/_components/Wizard/Wizard.js import React from 'react'; import { Modal } from 'react-bootstrap' import Button from 'react-bootstrap/Button' /** * */ class Wizard extends React.Component{ constructor(props){ super(props); this.state = { modalShow: false, } this.hideWizard = this.hi...
TaoReiches/Tao
Game/BattleLogic/TW_UserDataDefine.h
#pragma once /********************************************** * Author: <NAME> Copyright reserved * Contact: <EMAIL> **********************************************/ enum class UserDataKey { UDK_NONE, UDK_MonsterAI, UDK_MonsterAITime, UDK_MonsterPosX, UDK_MonsterPosY, UDK_MonsterReturn, };
smsubham/Data-Structure-Algorithms-Questions
Data Structure/Binary Tree/1161. Maximum Level Sum of a Binary Tree - BFS.py
<filename>Data Structure/Binary Tree/1161. Maximum Level Sum of a Binary Tree - BFS.py #https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/ # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # ...
SeanShubin/parser
domain/src/main/scala/com/seanshubin/parser/domain/SequenceRule.scala
package com.seanshubin.parser.domain import com.seanshubin.parser.domain.MatchResult.{MatchFailure, MatchSuccess} import com.seanshubin.parser.domain.ParseTree.ParseTreeBranch case class SequenceRule[A](ruleLookup: RuleLookup[A], thisRuleName: String, ruleNames: String*) extends Rule[A] { override def apply(cursor:...
polivbr/pulumi-azure-native
sdk/go/azure/timeseriesinsights/gen1Environment.go
<gh_stars>0 // *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** package timeseriesinsights import ( "context" "reflect" "github.com/pkg/errors" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // An environment i...
hmcts/document-management-store-api-gateway-web
app/user/user-id-extractor.js
const extract = (request) => { const pattern = /^\/[^\/]+\/[^\/]+\/([^\/]+)\/.+$/ // eslint-disable-line no-useless-escape const match = request.originalUrl.match(pattern) || [] return match[1] } exports.extract = extract
dbiir/pard
pard-parser/src/main/java/cn/edu/ruc/iir/pard/sql/tree/Insert.java
<reponame>dbiir/pard package cn.edu.ruc.iir.pard.sql.tree; import java.util.List; import java.util.Objects; import java.util.Optional; import static com.google.common.base.MoreObjects.toStringHelper; /** * pard * * @author guodong */ public class Insert extends Statement { private final QualifiedName...
tuvapp/tuvappcom
myvenv/lib/python3.5/site-packages/factory/compat.py
# -*- coding: utf-8 -*- # Copyright (c) 2010 <NAME> # Copyright (c) 2011-2015 <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 ri...
thefire/geode
geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionMessage.java
<reponame>thefire/geode /* * 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 * ...
collectiveidea/bender
spec/factories/pour.rb
<gh_stars>1-10 FactoryBot.define do factory :pour do volume { rand * 16 } started_at { 5.seconds.ago } finished_at { Time.now } duration { rand * 30 } keg user end end
co2meal/-bnpy-dev
bnpy/suffstats/SuffStatBag.py
import copy import numpy as np from ParamBag import ParamBag class SuffStatBag(object): """ Container object for additive sufficient statistics in bnpy. Uses ParamBag as internal representation. Tracks three possible sets of parameters, each with own ParamBag: * sufficient statistics fields * (...
ITISFoundation/osparc-iseg
Thirdparty/Gc/Algo/Geometry/DistanceTransform.cpp
<filename>Thirdparty/Gc/Algo/Geometry/DistanceTransform.cpp /* This file is part of Graph Cut (Gc) combinatorial optimization library. Copyright (C) 2008-2010 Centre for Biomedical Image Analysis (CBIA) Copyright (C) 2008-2010 <NAME> This library is free software: you can redistribute it and/or modify ...
reiern70/wicket-bootstrap
bootstrap-core/src/main/java/de/agilecoders/wicket/core/settings/IBootstrapSettings.java
<reponame>reiern70/wicket-bootstrap package de.agilecoders.wicket.core.settings; import org.apache.wicket.request.resource.ResourceReference; /** * Settings interface for bootstrap settings. * * @author miha */ public interface IBootstrapSettings { /** * The version of Bootstrap */ String VERSI...