repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
CMU-TRP/podd-api
reports/admin.py
<filename>reports/admin.py from django.contrib import admin from leaflet.admin import LeafletGeoAdmin from treebeard.forms import movenodeform_factory from treebeard.admin import TreeAdmin from common.models import Domain from reports.filters import AdministrationAreaFilter, DateTimeRangeFilter from reports.forms imp...
Wikunia/hakank
jsr_331/Grid17x17.java
<reponame>Wikunia/hakank package org.jcp.jsr331.hakan; /** * * 17x17 problem in JSR-331. * * Problem from <NAME>: * http://lookforlight.tumblr.com/post/996786415/lets-do-real-cp-forbiddenassignment * """ * The n x m grid is c-colorable if there is a way * to c-color the vertices of the n x m grid so ...
sbr-technologies/mls_property
frontend/web/public_main/js/site.js
String.prototype.trimToLength = function(m) { return (this.length > m) ? jQuery.trim(this).substring(0, m).split(" ").slice(0, -1).join(" ") + "..." : this; }; jQuery(document).on('click', '.mega-dropdown', function(e) { e.stopPropagation() }) $('.trigger').click(function() { $('.package-c...
ffarsad/aion
modPrecompiled/test/org/aion/precompiled/contracts/ATB/BridgeControllerRingTest.java
package org.aion.precompiled.contracts.ATB; import static com.google.common.truth.Truth.assertThat; import static org.aion.precompiled.contracts.ATB.BridgeTestUtils.dummyContext; import org.aion.types.Address; import org.aion.crypto.ECKey; import org.aion.crypto.ECKeyFac; import org.aion.crypto.HashUtil; import org.a...
ethansaxenian/RosettaDecode
lang/Java/loops-foreach-2.java
<reponame>ethansaxenian/RosettaDecode Iterable collect; ... collect.forEach(o -> System.out.println(o));
ferag/keystone
keystone/common/sql/migrate_repo/versions/089_add_root_of_all_domains.py
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
hishidama/asakusafw-compiler
dag/compiler/jdbc/src/main/java/com/asakusafw/dag/compiler/jdbc/windgate/WindGateJdbcOutputProcessorGenerator.java
/** * Copyright 2011-2019 Asakusa Framework Team. * * 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...
louis-tru/Ngui
deps/libjpeg/jconfigint.h
<reponame>louis-tru/Ngui<gh_stars>10-100 #include <ftr/util/env.h> /* jconfigint.h. Generated from jconfigint.h.in by configure. */ /* libjpeg-turbo build number */ #define BUILD "20160909" /* How to obtain function inlining. */ #define INLINE inline __attribute__((always_inline)) /* Define to the full name of th...
MRgzhen/sky-admin
sky-system/sky-generator/src/main/java/com/yanyu/sky/generator/config/EncodeResponseBodyAdvice.java
package com.yanyu.sky.generator.config; import cn.hutool.crypto.SecureUtil; import cn.hutool.crypto.symmetric.SymmetricAlgorithm; import cn.hutool.crypto.symmetric.SymmetricCrypto; import com.github.mrgzhen.core.exception.ServiceException; import com.github.mrgzhen.core.util.JSONUtil; import com.github.mrgzhen.core.we...
AngelMilovski/SuftUniLearning
08.JSEssentials/02.ObjectsAndDOM/02.Exercise/03. Number-Convertor/solution.js
function solve() { let select = document.querySelector('#selectMenuTo'); let binary = document.createElement('option'); binary.setAttribute('value', 'binary'); binary.textContent = 'Binary'; let hexadecimal = document.createElement('option'); hexadecimal.setAttribute('value', 'hexadecimal'...
filler/homebrew-cask
Casks/microsoft-lync.rb
cask 'microsoft-lync' do version '14.4.3_170308' sha256 '6e980b1eaa85a83d7c7cebbdb1135af82158cae26ae18d0dd171576bd9cc076a' url "https://download.microsoft.com/download/5/0/0/500C7E1F-3235-47D4-BC11-95A71A1BA3ED/lync_#{version}.dmg" name 'Microsoft Lync 2011' homepage 'https://www.microsoft.com/en-us/download...
mystickev/ctf-archives
PlaidCTF/2021/web/Carmen_Sandiego_Season2/instance/server-sensor/goahead/www/main.js
window.onload = async () => { let res = await fetch("/cgi-bin/latest"); let data = await res.json(); for (let sensor of Object.keys(data.sensors)) { let sensorElement = document.createElement("div"); sensorElement.className = "sensor"; let valueElement = document.createElement("div"); valueElement.classNam...
STS-Emory/STS-Clover
modules/technician/client/controllers/admin/admin-stat.client.controller.js
<gh_stars>1-10 'use strict'; angular.module('technician.admin').controller('StatisticsController', ['$scope', '$http', function ($scope, $http) { var options = { responsive: true, maintainAspectRatio: true, scales: { yAxes: [{ ticks: { beginAtZero: true } }] } }; var createChart =...
allewwaly/dementia-forensics
DementiaKM/HookEngine.h
#ifndef __HOOKENGINE_H_VERSION__ #define __HOOKENGINE_H_VERSION__ 100 #if defined(_MSC_VER) && (_MSC_VER >= 1020) #pragma once #endif #ifdef __cplusplus extern "C"{ #endif #include <ntddk.h> #ifdef __cplusplus }; #endif #define DEFINE_HOOK_CALL(Name, Arguments, CallBuffer) \ __declspec(naked) Name(A...
CPU-Code/linux_network
introduction/udp/udp_receive.c
/* * @Author: cpu_code * @Date: 2020-05-02 10:29:30 * @LastEditTime: 2020-05-02 21:58:11 * @FilePath: \linux_network\introduction\udp\udp_receive.c * @Gitee: https://gitee.com/cpu_code * @CSDN: https://blog.csdn.net/qq_44226094 */ /* *Binding server to port 8080 *receive data ... * *ip:192.168.43...
RobPiwowarek/SAG-Simple-Cloud-Optimizer
src/main/scala/pl/rpw/core/DBInitializer.scala
<reponame>RobPiwowarek/SAG-Simple-Cloud-Optimizer package pl.rpw.core import slick.jdbc.H2Profile.api._ object DBInitializer { val db = Database.forConfig("h2mem1") }
Manny27nyc/azure-sdk-for-java
sdk/spring/azure-spring-cloud-context/src/main/java/com/azure/spring/cloud/context/core/util/Tuple.java
<filename>sdk/spring/azure-spring-cloud-context/src/main/java/com/azure/spring/cloud/context/core/util/Tuple.java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.spring.cloud.context.core.util; import java.util.Objects; /** * Tuple class. * @param <...
wangcy6/weekly_read
code_reading/oceanbase-master/src/sql/engine/expr/ob_expr_substrb.h
<gh_stars>0 /** * Copyright (c) 2021 OceanBase * OceanBase CE is licensed under Mulan PubL v2. * You can use this software according to the terms and conditions of the Mulan PubL v2. * You may obtain a copy of Mulan PubL v2 at: * http://license.coscl.org.cn/MulanPubL-2.0 * THIS SOFTWARE IS PROVIDED ON AN...
teresa-n-schofield/gfw
jstest/config.js
<gh_stars>0 require.config({ // appDir: '', baseUrl: '../app/assets/javascripts', modules: [ { "name": "map" }, { "name": "static" }, { "name": "landing" }, { "name": "stories" }, { "name": "countries" } ], paths: { amplify: '../../....
SSteve/fprime
docs/UsersGuide/api/c++/html/navtreeindex7.js
<filename>docs/UsersGuide/api/c++/html/navtreeindex7.js var NAVTREEINDEX7 = { "svc_sched_port.html#autotoc_md452":[3,23,0,1,0,1], "svc_sched_port.html#autotoc_md453":[3,23,0,2], "svc_tlm_chan_component.html":[3,24], "svc_tlm_chan_component.html#autotoc_md454":[3,24,0], "svc_tlm_chan_component.html#autotoc_md455":[3,24,...
tarsoqueiroz/NodeJS
Blockchain/Ethereum/web3App/anderson.js
/** * anderson * * Created by tarso on 29/11/18 */ var lst = require('./accountKeys/xunda'); console.log(lst); console.log('**** XUNDA ****') console.log(lst[0]); console.log(lst[0].DtFinalizacao);
benjaminadk/benjaminadk
src/components/seo.js
import React from 'react' import { StaticQuery, graphql } from 'gatsby' import Helmet from 'react-helmet' const getSchemaOrgJSONLD = ({ title, description, url, author, siteUrl, keywords, image, videoObject, isBlogPost, itemList, datePublished }) => { const schemaWebsite = [ { '@conte...
krattai/AEBL
blades/xbmc/xbmc/windowing/egl/wayland/WaylandLibraries.h
<gh_stars>1-10 #pragma once /* * Copyright (C) 2011-2013 Team XBMC * http://xbmc.org * * 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, or (at your option) ...
rajakolluru/chenile
stm/src/main/java/org/chenile/stm/STMSecurityStrategy.java
<gh_stars>1-10 package org.chenile.stm; /** * An interface that would be used to invoke a security strategy. * The strategy would be used to check if a certain transition is allowed for a principal. The notion of principals is * not there in STM. Instead, we assume that this strategy has access to the invoking pri...
pavel-alay/drebedengi-api
src/main/java/com/alay/drebedengi/soap/responses/GetCurrentRevisionReturn.java
package com.alay.drebedengi.soap.responses; import com.alay.drebedengi.soap.responses.base.StringResponse; public class GetCurrentRevisionReturn extends StringResponse<GetCurrentRevisionReturn> { }
rasmus-rudling/crazyswarm
ros_ws/src/crazyswarm/externalDependencies/libmotioncapture/deps/vrpn/vrpn_android/comp523android/src/edu/unc/cs/vrpn/VrpnSeekBarChangeListener.java
<reponame>rasmus-rudling/crazyswarm package edu.unc.cs.vrpn; import jni.JniLayer; import android.widget.SeekBar; /** * Track changes to the value of a seek bar and notify VRPN clients. This code is fairly * self-explanatory and seekbar-specific, so it is not documented as extensively as * {@link Main} and {@link J...
Liyara/JGL
src/Event.cpp
#include "Event.h" namespace jgl { Event::Event(Type t, double xx, double yy) : type(t), x(xx), y(yy) {} Event::Event(Type t, int c, Action a, int m) : type(t), code(c), action(a), mods(m) {} Event::Event(Type t, int w, int h) : type(t), width(w), height(h) {} Event::Event(Type t) : type(t) {} }
demograph/monotonicmap
crdt/src/main/scala/io/demograph/crdt/delta/dot/DotStore.scala
<filename>crdt/src/main/scala/io/demograph/crdt/delta/dot/DotStore.scala /* * Copyright 2017 <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/licens...
Pokoi/TortillaEngine
Documentation/html/structglm_1_1detail_1_1make__unsigned_3_01long_01_4.js
<reponame>Pokoi/TortillaEngine<gh_stars>1-10 var structglm_1_1detail_1_1make__unsigned_3_01long_01_4 = [ [ "type", "structglm_1_1detail_1_1make__unsigned_3_01long_01_4.html#ade0cc74f63e30969e7d7b42eb6ac8289", null ] ];
shir0tetsuo/avaira
com/observe.js
const settings = require('../settings.json') exports.run = (client, message, params, perms) => { let member = message.mentions.users.first() if (!message.mentions.users.first()) return; try { const tag = client.dbusers.create({ user_id: member.id, permission: 0, level: 1, silver: 10, ...
CarGuo/LazyRecyclerAdapter
app/src/main/java/com/shuyu/apprecycler/special/view/CustomRefreshHeader.java
package com.shuyu.apprecycler.special.view; import android.animation.ValueAnimator; import android.content.Context; import android.graphics.drawable.AnimationDrawable; import android.os.Handler; import android.util.AttributeSet; import android.view.Gravity; import android.view.LayoutInflater; import android.view.ViewG...
MariaKhantech/Envira
client/src/components/ProfileImage/index.js
import React, { Component } from 'react' import { Auth } from 'aws-amplify'; import { Storage } from "aws-amplify"; import Axios from 'axios'; import "./profileImage.css" export default class index extends Component { state = { profile: [], selectedFile: '', imagePreviewUrl: '', s...
NEPOLIX/Misha-Android
MishaLDB/src/main/java/com/nepolix/misha/db/json/JSONHelper.java
<filename>MishaLDB/src/main/java/com/nepolix/misha/db/json/JSONHelper.java /****************************************************************************** * Copyright © 2015-7532 NOX, Inc. [NEPOLIX]-(<NAME>) * All rights * reserved. * * The source * code, other & all material, and documentation ...
agustinhenze/mibs.snmplabs.com
pysnmp/JUNIPER-WX-GLOBAL-REG.py
# # PySNMP MIB module JUNIPER-WX-GLOBAL-REG (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/JUNIPER-WX-GLOBAL-REG # Produced by pysmi-0.3.4 at Mon Apr 29 19:50:41 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (def...
alirezaghey/leetcode-solutions
go/minimum_number_of_arrows_to_burst_balloons.go
<reponame>alirezaghey/leetcode-solutions<filename>go/minimum_number_of_arrows_to_burst_balloons.go<gh_stars>1-10 package leetcode import ( "sort" ) // Time complexity: O(n * log n) // Space complexity: O(1) or whatever the space complexity of the sorting algorithm is func findMinArrowShots(points [][]int) int { sor...
MCMattCaldwell/FinancialTracker
ExpenseTracker/app/src/main/java/com/pedrocarrillo/expensetracker/adapters/CategoriesAdapter.java
package com.pedrocarrillo.expensetracker.adapters; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.view.animation.Animation; import android.view.animation.AnimationUtils; import android.widget.TextView; import com.pedrocarrillo.expensetracker.ExpenseTrackerA...
google-ar/chromium
ash/common/wm/wm_window_animations.cc
<reponame>google-ar/chromium // Copyright 2016 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/common/wm/wm_window_animations.h" #include "ui/compositor/layer.h" #include "ui/gfx/transform.h" namespace as...
OkMarvin/okmarvin
packages/okmarvin/lib/read/readFiles/promiseFilesPath.test.js
const path = require('path') const promiseFilesPath = require('./promiseFilesPath') const root = path.join(__dirname, '..', 'fixtures') test('returns all markdown files', () => { return promiseFilesPath(root, '{_posts,_pages}/**/*.{md,markdown}').then( data => { expect(data).toEqual([ '_pages/about-...
roomanidzee/monix-connect
gcs/src/it/scala/monix/connect/gcp/storage/GcsBlobSuite.scala
<gh_stars>1-10 package monix.connect.gcp.storage import java.io.File import java.nio.file.{Files, Path} import com.google.cloud.storage.{Blob, BlobId, BlobInfo, Storage, Option => _} import monix.execution.Scheduler.Implicits.global import org.mockito.{ArgumentMatchersSugar, IdiomaticMockito} import org.scalatest.mat...
npocmaka/Windows-Server-2003
drivers/wdm/input/hidparse/query.c
/*++ Copyright (c) 1996 Microsoft Corporation Module Name: query.c Abstract: This module contains the code for querying HID report packets. Environment: Kernel & user mode Revision History: Aug-96 : created by <NAME> --*/ #define NT_SUCCESS(Status) ((NTSTATUS)(Status)...
mindcloud69/Sakura_mod
src/main/java/cn/mcmod/sakura/potion/PotionExp.java
<reponame>mindcloud69/Sakura_mod<gh_stars>1-10 package cn.mcmod.sakura.potion; import cn.mcmod.sakura.SakuraMain; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.Gui; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.potion.Potion; import net.minecraft.potion.PotionEffect; im...
ricunidad/curso-javascript-001
backend/calculadora.js
<reponame>ricunidad/curso-javascript-001 'use strict' var params= process.argv.slice(2); var numero1 = parseFloat(params[0]); var numero2 = parseFloat(params[1]); var plantilla = ` La suma es: ${numero1 + numero2} La resta es: ${numero1 - numero2} La multiplicasión es: ${numero1 * numero2} La división es: ${nume...
shanti-uva/kmaps_engine
app/controllers/admin/phonetic_systems_controller.rb
class Admin::PhoneticSystemsController < AclController resource_controller include KmapsEngine::SimplePropsControllerHelper protected # Only allow a trusted parameter "white list" through. def phonetic_system_params params.require(:phonetic_system).permit(:name, :code, :description) end end
thezeeck/ZUI
src/ZUI/components/Grid/index.js
<filename>src/ZUI/components/Grid/index.js<gh_stars>0 import { Grid } from "./Container"; import { Item } from "./Item"; Grid.Item = Item; export default Grid;
vk9/intellij-scala
scala/scala-impl/src/org/jetbrains/plugins/scala/lang/psi/annotator/ScImportExprAnnotator.scala
package org.jetbrains.plugins.scala.lang.psi.annotator import com.intellij.codeInspection.ProblemHighlightType import com.intellij.lang.annotation.{Annotation, AnnotationHolder} import org.jetbrains.plugins.scala.ScalaBundle import org.jetbrains.plugins.scala.lang.psi.api.Annotatable import org.jetbrains.plugins.scala...
yusank/goim
apps/gateway/internal/router/v1/send_msg_router.go
package v1 import ( "github.com/gin-gonic/gin" messagev1 "github.com/yusank/goim/api/message/v1" "github.com/yusank/goim/apps/gateway/internal/service" "github.com/yusank/goim/pkg/mid" "github.com/yusank/goim/pkg/util" ) func handleSendSingleUserMsg(c *gin.Context) { req := new(messagev1.SendMessageReq) if er...
open-hand/test-manager-service
src/main/java/io/choerodon/test/manager/api/vo/TestFileLoadHistoryWebsocketVO.java
<reponame>open-hand/test-manager-service package io.choerodon.test.manager.api.vo; import io.swagger.annotations.ApiModelProperty; import org.hzero.starter.keyencrypt.core.Encrypt; /** * @author <EMAIL> 2020/9/10 下午8:57 */ public class TestFileLoadHistoryWebsocketVO { @ApiModelProperty(value = "主键ID") @Enc...
keirlawson/backpack
packages/bpk-svgs/dist/js/icons/lg/account--permit.js
<filename>packages/bpk-svgs/dist/js/icons/lg/account--permit.js import React from "react"; export default (({ styles = {}, ...props }) => <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" style={{ width: "1.5rem", height: "1.5rem" }} {...props}><path d="M18 2H6a2 2 0 0 0-2 2v18l8-4 8 4V4a2 2 0 0 0-...
sdqali/FreeBuilder
src/test/java/org/inferred/freebuilder/processor/MethodFinderTest.java
<gh_stars>0 /* * Copyright 2014 Google Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
ghsecuritylab/tomato_egg
release/src/linux/linux/include/asm-ia64/sn/pci/pciio_private.h
<reponame>ghsecuritylab/tomato_egg /* $Id$ * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 1992 - 1997, 2000-2003 Silicon Graphics, Inc. All rights reserved. */ #ifndef _A...
nus-ncl/common-interface
adapter-openstack/src/main/java/sg/ncl/adapter/openstack/exception/ServerNotFoundException.java
<reponame>nus-ncl/common-interface package sg.ncl.adapter.openstack.exception; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.ResponseStatus; import sg.ncl.common.exception.base.NotFoundException; @ResponseStatus(code = HttpStatus.NOT_FOUND, reason = "Server Lists not found...
appirits/comable
backend/app/controllers/comable/admin/stocks_controller.rb
<filename>backend/app/controllers/comable/admin/stocks_controller.rb require_dependency 'comable/admin/application_controller' module Comable module Admin class StocksController < Comable::Admin::ApplicationController load_and_authorize_resource :stock, class: Comable::Stock.name, except: [:new, :create] ...
DevPlant/spring-beginner-training-v2
trail/8-adding-value/src/main/java/com/devplant/basics/security/service/EmailSendService.java
package com.devplant.basics.security.service; import java.io.UnsupportedEncodingException; import java.util.HashMap; import java.util.Map; import javax.mail.internet.InternetAddress; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.s...
caixie-ltd/cx-website
src/components/indexBlocks/timelineBlock.js
import { Component } from "react" import React from "react" import cls from './timeline.module.scss' export default class TimelineBlock extends Component { render() { return ( <div className={cls.timeline}> <div className={cls.items}> <div className={cls.timeline__item}> <h6 cl...
hpjmlgy/fake_weixing
src/module/grzx/Grzx.js
<filename>src/module/grzx/Grzx.js import React from 'react'; import Info_card from './Info_card'; import Edit_mobile from './Edit_mobile' var $ = require('jquery'); var injectTapEventPlugin = require("react-tap-event-plugin"); injectTapEventPlugin(); var Grzx = React.createClass({ getInitialState: function() { ...
kobelb/elasticsearch
core/src/test/java/org/elasticsearch/action/support/replication/ReplicationResponseTests.java
<reponame>kobelb/elasticsearch /* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "Licens...
amsnyder/resource-watch
components/datasets/table/td/code/component.js
<filename>components/datasets/table/td/code/component.js<gh_stars>1-10 import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; class CodeTD extends PureComponent { static propTypes = { row: PropTypes.object.isRequired } render() { const { row: { metadata } } = this.props; const c...
MaxSchambach/colour
colour/constants/codata.py
# -*- coding: utf-8 -*- """ Fundamental Physical Constants ============================== Defines various constants from recommended values by the Committee on Data for Science and Technology (CODATA). """ from __future__ import division, unicode_literals from colour.utilities.documentation import DocstringFloat __...
williammustaffa/dragon-book
src/store/api/database/index.js
import localStorageDB from "localstoragedb"; const database = new localStorageDB("DragonBook", localStorage); // Create mocked data if its not initialized if (database.isNew()) { database.createTableWithData("profiles", require("./profiles.json")); database.commit(); } export default database;
miguelbuca/canopus-api
node_modules/underscore/amd/pluck.js
define(['./map', './property'], function (map, property) { // Convenience version of a common use case of `_.map`: fetching a property. function pluck(obj, key) { return map(obj, property(key)); } return pluck; });
Elojah/game_02
pkg/room/room.pb.go
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: github.com/elojah/game_02/pkg/room/room.proto package room import ( bytes "bytes" fmt "fmt" github_com_elojah_game_02_pkg_ulid "github.com/elojah/game_02/pkg/ulid" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" io "io" ...
solosTec/node
nodes/master/src/session.h
<filename>nodes/master/src/session.h /* * The MIT License (MIT) * * Copyright (c) 2018 <NAME> * */ #ifndef NODE_MASTER_SESSION_H #define NODE_MASTER_SESSION_H #include "client.h" #include "cluster.h" #include <cyng/async/mux.h> #include <cyng/log.h> #include <cyng/store/db.h> #include <cyng/vm/controller.h> ...
kaabimg/EvLibrary
src/ezverif/data/variation/EvFilter.h
<reponame>kaabimg/EvLibrary #ifndef CORRELATION_H_ #define CORRELATION_H_ #include "../../../application/core/base/EvObject.h" #include "EvParameter.h" class EvFilter: public EvObject { Q_OBJECT EV_OBJECT(Variation,Filter,1,0) EV_TYPE_LABEL("Filter") EV_CHILDREN_INTERFACE_1(Parameter) public: Q_IN...
agiletrailblazers/Website-GraduateSchool
router/routes/news-route.js
var express = require('express'); var contentful = require('../../API/contentful.js'); var async = require('async'); var prune = require('underscore.string/prune'); var striptags = require('striptags'); var router = express.Router(); var logger = require('../../logger'); var common = require("../../helpers/common.js");...
mixandmatch/titanium
Gruntfile.js
//based on http://culttt.com/2013/11/18/setting-sass-grunt/ 'use strict'; /** * Grunt Module */ module.exports = function (grunt) { grunt.initConfig({ /** * Get package meta data */ pkg: grunt.file.readJSON('package.json') , /** * Set project object */ project: { app: 'app' , assets: '<%=...
snxamdf/florist
web-core/src/main/java/com/sxm/core/constants/SYMBOL.java
<reponame>snxamdf/florist /* * * * */ package com.sxm.core.constants; /** * 符号全局常量. * * @author sxm * @version 2014-09-18 * @---------------------------------------------------------------------------------------- * @updated 修改描述. * @updated by sxm * @updated at 2014-09-18 */ public class SYMBOL { pu...
subratamal/cautious-umbrella
src/actions/notification.js
import generateNotificationProps from '../utils/notificationPropsGenerator'; import { getStreamNotificationFeedToken } from '../webappApi/api'; import { NOTIFICATION_SUCCESS, NOTIFICATION_FEEDTOKEN, NOTIFICATION_ERROR, SHOW_MORE_NOTIFICATION_LOADER, SHOW_MORE_NOTIFICATION_BUTTON, } from '../constants/actions...
Valtis/Peliprojekti-2013
Koulupeliprojekti/src/UI/Window/TextBox.cpp
<gh_stars>0 #include "UI/Window/TextBox.h" #include "UI/Window/TextField.h" #include "Graphics/TextureFactory.h" TextBox::TextBox(std::string text, SDL_Rect location, Renderer *renderer) { SetLocation(location); SDL_Color color = { 160, 160, 160, 255}; SetTexture(TextureFactory::CreateWindowTexture(location.w, lo...
DreamLi1314/shared
java/v3/gui/src/main/java/org/javafamily/swing/GuiMain12.java
<reponame>DreamLi1314/shared<gh_stars>0 package org.javafamily.swing; import org.javafamily.util.SwingUtils; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.Arrays; import java.util.Random; /** * MenuBar2 */ public class GuiMain12 extends JFrame { private static GuiMain12 mai...
drewnoakes/bold-humanoid
Option/WalkTo/walkto.hh
#pragma once #include "../option.hh" #include "../../MotionModule/WalkModule/walkmodule.hh" #include <Eigen/Core> namespace bold { class WalkTo : public Option { public: WalkTo(std::string const& id, std::shared_ptr<WalkModule> walkModule); OptionVector runPolicy(rapidjson::Writer<rapidjson::StringBuf...
MilindThakur/nzme-skynet
test/test_docker_grid.py
import pytest from nzme_skynet.core.driver.driverregistry import DriverRegistry TEST_URL = "https://www.google.co.nz" DOCKER_SELENIUM_URL = "http://localhost:4444/wd/hub" @pytest.fixture(scope='module', params=["chrome", "firefox"]) def driver_setup(request): DriverRegistry.register_driver(driver_type=request.p...
lpenuelac/ImageAnalysis
scripts/lib/archive/spline.py
<gh_stars>10-100 # NAME # # Math::Spline - Cubic Spline Interpolation of data # # SYNOPSIS # # require Math::Spline; # $spline=new Math::Spline(\@x,\@y) # $y_interp=$spline->evaluate($x); # # use Math::Spline qw(spline linsearch binsearch); # use Math::Derivative qw(Derivative2); # @y2=Derivat...
wanyufe/eks-anywhere
test/e2e/simpleflow_test.go
//go:build e2e // +build e2e package e2e import ( "fmt" "log" "testing" "github.com/aws/eks-anywhere/internal/pkg/api" "github.com/aws/eks-anywhere/pkg/api/v1alpha1" "github.com/aws/eks-anywhere/pkg/features" "github.com/aws/eks-anywhere/pkg/logger" "github.com/aws/eks-anywhere/test/framework" ) func init()...
jreece1567/go_swagger_client
client_core/s_t_o_r_e_t_r_a_d_i_n_g_h_o_u_r_s/patch_participants_participant_id_responses.go
package s_t_o_r_e_t_r_a_d_i_n_g_h_o_u_r_s // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" strfmt "github.com/go-openapi/strfmt" "restclient/models_core" ) // PatchParticipa...
volzotan/django-howl
howl/forecast/__init__.py
default_app_config = 'forecast.apps.ForecastConfig'
SergeyBelyj/Sergey-White
Junior001/src/test/java/set/SimpleSetTest.java
package set; import list.SimpleArrayList; import org.junit.Test; public class SimpleSetTest { @Test public void whenAddTwoElemSameThenNo() { SimpleSet<Integer> setM = new SimpleSet<>(); setM.add(12); setM.add(13); setM.add(13); setM.add(14); System.out.println(s...
anaai/anaai
nft-service/service.py
import os from dotenv import load_dotenv from fastapi import FastAPI from fastapi.responses import JSONResponse from pydantic import BaseModel from web3 import Web3 import logger from contracts import style_art_factory load_dotenv() PUBLIC_KEY = Web3.toChecksumAddress(os.getenv("PUBLIC_KEY")) PRIVATE_KEY = f'0x{os...
joefk/pulsar
pulsar-broker-common/src/main/java/org/apache/pulsar/broker/authorization/AuthorizationService.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...
ErnestaP/runregistry
runregistry_frontend/ducks/json/jsons.js
<filename>runregistry_frontend/ducks/json/jsons.js import axios from 'axios'; import stringify from 'json-stringify-pretty-compact'; import auth from '../../auth/auth'; import { error_handler } from '../../utils/error_handlers'; import { api_url } from '../../config/config'; import Swal from 'sweetalert2'; const FETCH...
dskcode/jwala
jwala-common/src/test/java/com/cerner/jwala/commandprocessor/impl/jsch/JschScpCommandProcessorImplTest.java
<gh_stars>10-100 package com.cerner.jwala.commandprocessor.impl.jsch; import com.cerner.jwala.commandprocessor.CommandProcessor; import com.cerner.jwala.common.exec.ExecCommand; import com.cerner.jwala.common.exec.RemoteExecCommand; import com.cerner.jwala.common.exec.RemoteSystemConnection; import com.cerner.jw...
russellb/nova
nova/scheduler/vsa.py
<gh_stars>0 # vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2011 Zadara Storage Inc. # Copyright (c) 2011 OpenStack LLC. # # 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 ...
ChineseTony/javaDataStruct
src/main/java/com/tom/array/MinMoves.java
<filename>src/main/java/com/tom/array/MinMoves.java package com.tom.array; import java.util.Arrays; /** * @author wangtao */ public class MinMoves { /** * * 输入: * [1,2,3] * 输出: * 3 * 解释: * 只需要3次操作(注意每次操作会增加两个元素的值): * [1,2,3] => [2,3,3] => [3,4,3] => [4,4,4] ...
filecoin-heiben/go-fil-markets
pieceio/mocks/SectorCalculator.go
// Code generated by mockery v1.0.0. DO NOT EDIT. package mocks import ( io "io" mock "github.com/stretchr/testify/mock" ) // SectorCalculator is an autogenerated mock type for the SectorCalculator type type SectorCalculator struct { mock.Mock } // GeneratePieceCommitment provides a mock function...
bobobot/SzakgyakChan
src/main/java/org/github/bobobot/repositories/IMetaRepository.java
<filename>src/main/java/org/github/bobobot/repositories/IMetaRepository.java package org.github.bobobot.repositories; import org.github.bobobot.entities.MetaInfo; import org.springframework.data.jpa.repository.JpaRepository; import java.util.Optional; public interface IMetaRepository extends JpaRepository<MetaInfo, ...
yamkazu/grails-data-mapping
grails-datastore-dynamodb/src/main/groovy/org/grails/datastore/mapping/dynamodb/engine/DynamoDBHiLoIdGenerator.java
<reponame>yamkazu/grails-data-mapping package org.grails.datastore.mapping.dynamodb.engine; import java.util.HashMap; import java.util.Map; import org.grails.datastore.mapping.core.OptimisticLockingException; import org.grails.datastore.mapping.dynamodb.DynamoDBDatastore; import org.grails.datastore.mapping.dynamodb....
FyisFe/UCB-CS61A-20Fall
lab/lab11/repl.py
<reponame>FyisFe/UCB-CS61A-20Fall<gh_stars>1-10 try: import readline # history and arrow keys for CLI except ImportError: pass # but not everyone has it import sys from reader import read from expr import global_env # program start if __name__ == "__main__": """Run a read-eval-print loop. `python3 r...
jorgeejgonzalez/fermat
P2P/library/api/fermat-p2p-api/src/main/java/com/bitdubai/fermat_p2p_api/layer/all_definition/communication/events/FailureComponentRegistrationNotificationEvent.java
/* * @#FailureComponentRegistrationNotificationEvent.java - 2015 * Copyright bitDubai.com., All rights reserved.  * You may not modify, use, reproduce or distribute this software. * BITDUBAI/CONFIDENTIAL */ package com.bitdubai.fermat_p2p_api.layer.all_definition.communication.events; import com.bitdubai.fermat_ap...
androj07/kata
src/main/java/com/androj/kata/product/Product.java
<gh_stars>0 package com.androj.kata.product; /** * This problem was asked by Uber. * * Given an array of integers, return a new array such that each element at index i * of the new array is the product of all the numbers in the original array except the one at i. * * For example, if our input was [1, 2, ...
cylemonVip/NovelAPP
js/actions/hotSimilar.js
/** * @author Semper */ import {RECEIVE_HOT_SIMILAR, REQUEST_HOT_SIMILAR} from "../constants/ActionTypes"; export function requestHotSimilar(hotSimilarUrl) { return { type: REQUEST_HOT_SIMILAR, hotSimilarUrl }; } export function receiveHotSimilar(hotSimilarData) { return { type: ...
dgreid/platform2
authpolicy/policy/device_policy_encoder_test.cc
// Copyright 2017 The Chromium OS 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 <unordered_set> #include <base/strings/string_util.h> #include <components/policy/core/common/registry_dict.h> #include <gmock/gmock.h> #incl...
miren521/qirui_saas
addon/platformcoupon/component/view/admin_coupon/js/design.js
/** * 平台优惠券·组件 */ var adminCouponHtml = '<div class="layui-form-item">'; adminCouponHtml += '<label class="layui-form-label sm">选择模板</label>'; adminCouponHtml += '<div class="layui-input-block">'; adminCouponHtml += '<template v-for="(item,index) in selectedTemplateList" v-bind:k="index">'; adminCouponHtm...
npocmaka/Windows-Server-2003
com/netfx/src/clr/vm/comcurrency.cpp
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== #include "common.h" #include "object.h" #include "excep.h" #include "frames.h" #include "vars.hpp" #include "COMCurrency.h" #include "COMString.h" void COMCurrency::InitSingle(const InitSingleArgs * args) { TH...
yma88/indy
addons/path-mapped/common/src/main/java/org/commonjava/indy/pathmapped/inject/PathMappedGroupRepositoryFilter.java
<filename>addons/path-mapped/common/src/main/java/org/commonjava/indy/pathmapped/inject/PathMappedGroupRepositoryFilter.java /** * Copyright (C) 2011-2020 Red Hat, Inc. (https://github.com/Commonjava/indy) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in comp...
3pillarlabs/spring-integration-aws
int-aws-integration-test/src/test/java/intaws/integration/test/InterAccountSQSPermissionTest.java
<gh_stars>10-100 package intaws.integration.test; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; import java.util.HashSet; import java.util.Set; import org.junit.After; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import org.springframework.contex...
zifter/nonogram
tests/test_sudoku/test_solution.py
<gh_stars>0 import env import unittest import tempfile import os from test_sudoku.testcase_sudoku import TestCaseSudoku from sudoku.solution import Solution class TestSudokuSolutionClass(TestCaseSudoku): matrix = [ [1, 2, 3, 4, 5, 6, 7, 8, 9], # 1 [1, 2, 3, 4, 5, 6, 7, 8, 9], # 2 [1, 2...
Himon-SYNCRAFT/taskplus
taskplus/core/serializers/task_status_serializer.py
import json class TaskStatusEncoder(json.JSONEncoder): def default(self, data): try: to_serialize = { 'id': data.id, 'name': data.name } return to_serialize except AttributeError: return super().default(data)
eenurkka/incubator-nuttx
include/nuttx/nx/nxtypes.h
/**************************************************************************** * include/nuttx/nx/nxtypes.h * * 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 owners...
endosama/three-nebula
src/debug/index.js
<filename>src/debug/index.js<gh_stars>100-1000 export { default as Debug } from './Debug'; export { default as log } from './log';
ThreatConnect-Inc/threatconnect-java
threatconnect-sdk/threatconnect-sdk-core/src/main/java/com/threatconnect/sdk/server/entity/CustomIndicator.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.threatconnect.sdk.server.entity; import java.util.Date; import java.util.Map; import javax.xml.bind.annotation.XmlAccessT...
john-aws/backendjs
modules/db_cassandra.js
<filename>modules/db_cassandra.js<gh_stars>0 // // Author: <NAME> <EMAIL> // backendjs 2018 // var util = require('util'); var url = require('url'); var net = require('net'); var fs = require('fs'); var path = require('path'); var domain = require('domain'); var cluster = require('cluster'); var os = require('os'); ...