repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
guidotack/gecode | gecode/search/nogoods.cpp | <gh_stars>100-1000
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* <NAME> <<EMAIL>>
*
* Copyright:
* <NAME>, 2013
*
* This file is part of Gecode, the generic constraint
* development environment:
* http://www.gecode.org
*
* Permission is hereby granted... |
stringali1/vueproject | src/cli/commands/public-cmds/inject-conf-cmd.js | /** @flow */
import chalk from 'chalk';
import Command from '../../command';
import { injectConf } from '../../../api/consumer';
import type { InjectConfResult } from '../../../consumer/component-ops/inject-conf';
export default class InjectConf extends Command {
name = 'inject-conf [id]';
description = 'injecting... |
jascrainch/opensync | src/lib/osn/src/linux/udhcp_client.h | <reponame>jascrainch/opensync<filename>src/lib/osn/src/linux/udhcp_client.h
/*
Copyright (c) 2015, Plume Design 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:
1. Redistributions of source code m... |
CruGlobal/campus-contacts-web | karma.conf.js | <filename>karma.conf.js
/* eslint-env node */
const path = require('path');
const webpack = require('webpack');
const {
entry,
devServer,
optimization,
...webpackConfig
} = require('./webpack.config.js')({ test: true });
const karmaWebpackConfig = {
...webpackConfig,
devtool: 'inline-source-... |
udoprog/scribe | databind/src/main/java/eu/toolchain/scribe/CaseFormat.java | package eu.toolchain.scribe;
public interface CaseFormat {
/**
* Convert lower-case camel to upper-case camel.
*
* @param input Input lower-case camel string.
* @return Resulting upper-case camel string.
*/
static String lowerCamelToUpperCamel(String input) {
final StringBuilder builder = new St... |
rbourdon/rorybourdon | pages/_app.js | <reponame>rbourdon/rorybourdon<filename>pages/_app.js
import { AnimatePresence } from "framer-motion";
import { createGlobalStyle } from "styled-components";
import { ThemeControlProvider } from "@/lib/Context/ThemeContext";
import Layout from "@/components/layout";
const GlobalStyle = createGlobalStyle`
html {
sc... |
emarc99/SLib | src/slib/network/url_request_curl.cpp | <filename>src/slib/network/url_request_curl.cpp
/*
* Copyright (c) 2008-2018 SLIBIO <https://github.com/SLIBIO>
*
* 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 restrict... |
yrrapt/cacd | src/spice3/src/lib/ckt/cktmpar.c | /**********
Copyright 1990 Regents of the University of California. All rights reserved.
Author: 1985 <NAME>
**********/
/* CKTmodParam
* attach the given parameter to the specified model in the given circuit
*/
#include "spice.h"
#include <stdio.h>
#include "cktdefs.h"
#include "ifsim.h"
#include "util.h"
#inclu... |
Maxime999/AnyCollect | docs/search/functions_11.js | var searchData=
[
['unit',['unit',['../classAnyCollect_1_1Matcher.html#aa34c8cdb6ee3ad97459204a3ee0c92c5',1,'AnyCollect::Matcher::unit()'],['../classAnyCollect_1_1Metric.html#a938687184b4e7a69ce20e89c293f8a36',1,'AnyCollect::Metric::unit()']]],
['update',['update',['../classAnyCollect_1_1Source.html#a66c0fc0bc1a70d... |
5shadesofr3d/ECE421Winter2019Assignment1 | storage/storage_modules/default_arithmetic.rb | module DefaultArithmetic
def +(m1)
assert valid?
assert m1.is_a? SparseStorage
self.each_common_index(m1) do |i, j|
self[i, j] += m1[i, j]
end
assert valid?
self
end
def -(m1)
assert valid?
assert m1.is_a? SparseStorage
self.each_common_index(m1) do |i, j|
self[i, j] -... |
dos1/card10-firmware | lib/vendor/Bosch/BHy1/examples/firmware/Bosch_PCB_7183_di03_BMA2x2_Cus-7183_di03.2.1.11703.h | <reponame>dos1/card10-firmware<filename>lib/vendor/Bosch/BHy1/examples/firmware/Bosch_PCB_7183_di03_BMA2x2_Cus-7183_di03.2.1.11703.h
const unsigned char bhy1_fw[]= {
0x2A,0x65,0x00,0x1A,0x06,0xBF,0x65,0x3D,0x00,0x00,0x00,
0x00,0xEC,0x3F,0x00,0x00,0x28,0xBA,0x7F,0x00,0xD8,0x32,
0x00,0x00,0x30,0x85,0x7F,0x00,0x4A,0x26... |
CASL/VeraInView | src/utils/ImageReady.js | function createImageDependencyManager(label = '') {
let completedImages = 0;
const listeners = [];
let hasImage = false;
function onImageLoaded() {
completedImages--;
if (completedImages === 0) {
let count = listeners.length;
while (count--) {
listeners[count]();
}
}
}
... |
fernhtls/googleads-java-lib | modules/adwords_axis/src/main/java/com/google/api/ads/adwords/axis/v201603/cm/CustomParameters.java | /**
* CustomParameters.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter.
*/
package com.google.api.ads.adwords.axis.v201603.cm;
/**
* CustomParameters holds a list of CustomParameters to be treated
* as a map.
* It has a specia... |
manoj-gk/tr069simulator | src/main/java/org/dslforum/cwmp_1_0/UploadResponse.java | <reponame>manoj-gk/tr069simulator<filename>src/main/java/org/dslforum/cwmp_1_0/UploadResponse.java
package org.dslforum.cwmp_1_0;
import java.util.Date;
/**
* UploadResponse message - Annex A.4.1.5
*
* Schema fragment(s) for this class:
* <pre>
* <xs:element xmlns:ns="urn:dslforum-org:cwmp-1-0" xmlns:xs="h... |
DeusMechanicus/Omnissiah | code/raw_map.py | <gh_stars>1-10
#!/usr/bin/env python3
import omni_const
import omni_config
import omni_unpwd
import sys
import time
import nmap
from concurrent.futures import ThreadPoolExecutor, ProcessPoolExecutor, as_completed
from multiprocessing import cpu_count
from omnissiah.db import OmniDB
from omnissiah.omnissiah import Om... |
benhunter/ctf | htb/fatty-10.10.10.174/fatty-client/org/springframework/aop/target/SingletonTargetSource.java | <reponame>benhunter/ctf
/* */ package org.springframework.aop.target;
/* */
/* */ import java.io.Serializable;
/* */ import org.springframework.aop.TargetSource;
/* */ import org.springframework.util.Assert;
/* */ import org.springframework.util.ObjectUtils;
/* */
/* */
/* */
/* ... |
Matir/libcloud | libcloud/compute/drivers/kamatera.py | # 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 not use ... |
netsec-ethz/netsec-scion | go/co/reservation/types.go | // Copyright 2020 ETH Zurich, Anapaya Systems
//
// 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... |
Haozhe321/main | src/test/java/seedu/room/logic/commands/DeleteByTagCommandTest.java | <reponame>Haozhe321/main
package seedu.room.logic.commands;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static seedu.room.logic.commands.CommandTestUtil.assertCommandFailure;
import static seedu.room.logic.commands.CommandTestUtil.assertCommandSuccess;
import static se... |
Thamsta/masterportal-qrcode | modules/controls/freeze/freezewindowview.js | import FreezeTemplate from "text-loader!./template.html";
const FreezeView = Backbone.View.extend({
events: {
"click .freeze-view-close": "hideFreezeWin"
},
initialize: function () {
this.render();
},
collection: {},
id: "freeze-view",
className: "freeze-view freeze-deactiva... |
phasenraum2010/twitterwall3 | twitterwall2/src/main/java/org/woehlke/twitterwall/backend/service/persist/StoreUserProfileForScreenName.java | <reponame>phasenraum2010/twitterwall3
package org.woehlke.twitterwall.backend.service.persist;
import org.woehlke.twitterwall.oodm.model.User;
import org.woehlke.twitterwall.oodm.model.Task;
/**
* Created by tw on 11.07.17.
*/
public interface StoreUserProfileForScreenName {
User storeUserProfileForScreenName(... |
swipswaps/autoEdit_2 | lib/app/router_paperedit.js | <gh_stars>100-1000
'use strict';
var $ = require('jquery');
var Backbone = require('backbone');
var PapereditListView = require('./views/paperedit_list_view');
var PapereditFormView = require('./views/paperedit_form_view');
var PapereditView = require('./views/paperedit_view');
var Paperedit = require('./models/papered... |
ttstringiot/golangiot | stgbroker/config_manager.go | <filename>stgbroker/config_manager.go
package stgbroker
import (
"github.com/ttstringiot/golangiot/stgcommon"
"github.com/ttstringiot/golangiot/stgcommon/logger"
"github.com/ttstringiot/golangiot/stgcommon/utils"
"github.com/toolkits/file"
"strings"
"sync"
)
type ConfigManager interface {
Encode(pr... |
axismaps/ridership | src/js/getComponents/getLegend.js | import Legend from '../legend/legend';
import exportMethods from '../export/exportMethods';
const getLegend = ({ state, data }) => new Legend({
legendOn: state.get('scale') === 'national' && !state.get('embedded'),
container: d3.select('.footer__atlas-legend'),
exportMethods,
nationalMapData: state.getCurrentN... |
Symphoomc1f/krexusj | back/src/main/java/com/java110/things/entity/machine/MachineCmdDto.java | <filename>back/src/main/java/com/java110/things/entity/machine/MachineCmdDto.java
package com.java110.things.entity.machine;
import com.java110.things.entity.PageDto;
import java.io.Serializable;
/**
* @ClassName MachineDto
* @Description TODO
* @Author wuxw
* @Date 2020/5/10 23:33
* @Version 1.0
* add by wuxw... |
Roman16/example-editor | app/components/separate-by-commas/format-directive.js | <gh_stars>0
;(function () {
'use strict';
angular.module('directive.format', [])
// .directive('format', format)
.directive('format', format)
.filter('replaceComma', [
function () {
return function(number) {
var splitNum;
... |
mmb/meme_captain_web | db/migrate/20130102044216_create_captions.rb | <gh_stars>10-100
class CreateCaptions < ActiveRecord::Migration[4.2]
def change
create_table :captions do |t|
t.string :text
t.string :font
t.float :top_left_x_pct
t.float :top_left_y_pct
t.float :width_pct
t.float :height_pct
t.references :gend_image
t.timestamps
... |
wdlkmpx/fsp | bsd_src/ls.c | /*
* Copyright (c) 1989 The Regents of the University of California.
* All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* <NAME>.
*
* Redistribution and use in source and binary forms are permitted
* provided that: (1) source distributions retain this entire copyright
* no... |
chunjuwang/Javascript-Note | Object.getPrototypeOf.done.js | Object.getPrototypeOfCustom = function (object) {
if (object === null || object === undefined) {
throw new TypeError('Cannot convert undefined or null to object');
}
// 即便是标量类型,也会自动转换为包装类型
return object.__proto__;
} |
best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gcc.target/i386/avx512f-set-v16si-2.c | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gcc.target/i386/avx512f-set-v16si-2.c<gh_stars>1-10
/* { dg-do run } */
/* { dg-options "-O2 -mavx512f" } */
/* { dg-require-effective-target avx512f } */
#include "avx512f-check.h"
static __m512i
__attribute__ ((noinline))
foo (int x1, int x2, int x3, int x4,
int x5... |
beerhall/paradoxGameConverters | Vic2ToHoI4/Source/HOI4World/HoI4OnActions.cpp | <gh_stars>1-10
/*Copyright (c) 2017 The Paradox Game Converters Project
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, m... |
fregaham/KiWi | extensions/tagit2/src/tagit2/service/image/ImageSizeService.java | <gh_stars>1-10
package tagit2.service.image;
import javax.swing.ImageIcon;
import kiwi.model.content.MediaContent;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Logger;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.annotations.Transactiona... |
Air-TR/urule-springboot | urule-console-js/src/frame/event.js | <gh_stars>1000+
/**
* Created by Jacky.gao on 2016/5/24.
*/
import events from 'events';
export const OPEN_DIALOG='open_dialog';
export const CLOSE_DIALOG='close_dialog';
export const DIALOG_CONTNET_CHANGE='dialog_content_change';
export const OPEN_NEW_PROJECT_DIALOG='open_new_project_dialog';
export const CLOSE_NEW_... |
Lupennat/syntax-extender | core/interceptor.js | <reponame>Lupennat/syntax-extender
'use strict';
const fs = require('fs');
const Module = require('module');
const nodePath = require('path');
const { INTERFACE, ABSTRACT, FEATURES } = require('./constants');
const { isFunction, isString, isDictionary, setSedefEnv, hasOwn } = require('./utils');
const toAbstract = re... |
ua-eas/devops-automation-ksd-kc5.2.1-rice | krms/api/src/main/java/org/kuali/rice/krms/api/repository/proposition/PropositionDefinitionContract.java | /**
* Copyright 2005-2015 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unless requ... |
knut3/TravelPartner | app/services/ImageService.java | <filename>app/services/ImageService.java<gh_stars>0
package services;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.UUID;
import javax.imageio.ImageIO;
import org.imgscalr.Scalr;
import services.interfaces.IImageService;
import settings.I... |
astubbs/orient | core/src/main/java/com/orientechnologies/orient/core/db/ODatabaseRecordWrapperAbstract.java | <reponame>astubbs/orient
/*
* Copyright 1999-2010 <NAME> (l.garulli--at--orientechnologies.com)
*
* 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/lic... |
nishadi1995/iGoviya | node_modules/rxjs-compat/observable/forkJoin.js | <gh_stars>10-100
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var rxjs_1 = require("rxjs");
exports.forkJoin = rxjs_1.forkJoin;
//# sourceMappingURL=forkJoin.js.map |
cwood77/shtanky | src/liam/varSplitter.hpp | <reponame>cwood77/shtanky
#pragma once
#include <cstddef>
#include <list>
#include <utility>
namespace cmn { namespace tgt { class iTargetInfo; } }
namespace liam {
class lirStream;
class var;
class varTable;
// find vars that have multiple storage locations
// emit instructions to implement moves to fullfill these... |
Gouzhong1223/Dubhe | dubhe-server/common-k8s/src/main/java/org/dubhe/k8s/api/impl/TerminalApiImpl.java | /**
* Copyright 2020 Tianshu AI Platform. 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 a... |
karoyqiu/crashpad | util/thread/worker_thread.cc | <filename>util/thread/worker_thread.cc<gh_stars>1000+
// Copyright 2015 The Crashpad Authors. 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.apa... |
wachaon/wes | src/format.js | <gh_stars>0
const { blueBright } = require('ansi')
const { readdirsSync, readFileSync, writeFileSync } = require('filesystem')
const { format } = require('fmt')
const { resolve } = require('pathname')
const UTF8 = 'UTF-8N'
console.log('%SStart formatting', blueBright)
function formatter(dir) {
readdirsSy... |
joshschriever/LiveNotes | seescore/src/main/java/uk/co/dolphin_com/sscore/ClefItem.java | <reponame>joshschriever/LiveNotes<filename>seescore/src/main/java/uk/co/dolphin_com/sscore/ClefItem.java
/**
* SeeScore Android API
* Dolphin Computing http://www.dolphin-com.co.uk
*/
package uk.co.dolphin_com.sscore;
/**
* a clef in the score
*/
public class ClefItem extends TimedItem
{
/**
* treble clef (G ... |
t0nyt93/Axelroddd | axelrod/tests/unit/test_finite_state_machines.py | <gh_stars>0
"""Tests for Finite State Machine Strategies."""
import unittest
import axelrod
from .test_player import TestMatch, TestPlayer
C, D = axelrod.Actions.C, axelrod.Actions.D
def check_state_transitions(state_transitions):
"""Checks that the supplied transitions for a finite state machine are
well-... |
jstokes/secure-data-service | tools/csv2xml/src/org/slc/sli/sample/entitiesR1/IncidentLocationType.java | <reponame>jstokes/secure-data-service<filename>tools/csv2xml/src/org/slc/sli/sample/entitiesR1/IncidentLocationType.java
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/j... |
YizheZhang-Ervin/TMPL_Nginx_Webpack | 1-Spring/EZSpring/src/main/java/com/ervin/EZSpring/Utils/BaseUtils/CoreUtils/MathUtils.java | <filename>1-Spring/EZSpring/src/main/java/com/ervin/EZSpring/Utils/BaseUtils/CoreUtils/MathUtils.java
package com.ervin.EZSpring.Utils.BaseUtils.CoreUtils;
public class MathUtils {
static String getMathAPI(){
return "";
// Math.abs(-100); // 100
// Math.abs(-7.8); // 7.8
// Math.max(10... |
marcosrachid/blockchain-criptocurrency | src/main/java/com/custom/blockchain/resource/exception/handler/ResourceExceptionHandler.java | <filename>src/main/java/com/custom/blockchain/resource/exception/handler/ResourceExceptionHandler.java
package com.custom.blockchain.resource.exception.handler;
import static com.custom.blockchain.constants.LogMessagesConstants.ERROR;
import static org.springframework.http.HttpStatus.BAD_REQUEST;
import static org.spr... |
wait-tomorrow/JD1-Unit01 | src/by/htp/home02/main/Task02.java | package by.htp.home02.main;
/*
* 2. Составить программу сравнения двух чисел 1 и 2.
* Если 1 меньше 2 – вывести на экран слово «yes»,
* в противном случае – слово «no»
* */
public class Task02 {
public static void main(String[] args) {
int a = 5;
int b = 4;
if (a < b) {
System.out.p... |
OSADP/DTALite-AMS | Source Code/NEXTA-GUI/CGridListCtrlEx/ViewConfigSection.h | <reponame>OSADP/DTALite-AMS
#pragma once
//------------------------------------------------------------------------
// Author: <NAME>
// Source: http://www.codeproject.com/KB/list/CGridListCtrlEx.aspx
// License: Free to use for all (New BSD License)
//---------------------------------------------------------------... |
jamesdaniels/next-movies | components/UI/Navbar/index.js | <filename>components/UI/Navbar/index.js
import clsx from 'clsx';
import withTheme from 'utils/hocs/withTheme';
const SELECTED_CLASS_NAME = 'selected';
const DISABLED_CLASS_NAME = 'disabled';
const INVISIBLE_CLASS_NAME = 'invisible';
const NavbarItem = withTheme(({
theme,
className,
disabled,
selected,
in... |
anthonycanino/iree | integrations/tensorflow/test/lit.cfg.py | # Copyright 2021 The IREE Authors
#
# Licensed under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
import os
import sys
import tempfile
import lit.formats
import lit.util
import lit.llvm
# Configura... |
0intro/9k | port/alarm.c | #include "u.h"
#include "../port/lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
static Alarms alarms;
static Rendez alarmr;
void
alarmkproc(void*)
{
Proc *rp;
ulong now;
for(;;){
now = sys->ticks;
qlock(&alarms);
while((rp = alarms.head) && rp->alarm <= now){
if(rp->alarm != 0L){
if(canqlo... |
NikolayMakhonin/AndroidAppExample | AndroidAppExample/Utils/src/main/java/com/github/nikolaymakhonin/utils/rx/RxOperators.java | <filename>AndroidAppExample/Utils/src/main/java/com/github/nikolaymakhonin/utils/rx/RxOperators.java
package com.github.nikolaymakhonin.utils.rx;
import com.github.nikolaymakhonin.utils.RefParam;
import java.util.concurrent.TimeUnit;
import rx.Observable;
import rx.Observer;
import rx.Scheduler;
import rx.functions.... |
AngularJS-Angular2-Angular4/angular2-project | pctl.mod.address/src/main/java/com/centurylink/pctl/mod/address/domain/address/LocationRequest.java | package com.centurylink.pctl.mod.address.domain.address;
/**
* Created by haribabu.ka on 17-10-2016.
*/
public class LocationRequest {
public Address serviceAddress;
public Address shippingAddress;
public LocationRequest() {
}
public LocationRequest(Address serviceAddress, Address shippingAddr... |
noinarisak/homebrew-cask | Casks/dmm-player.rb | <gh_stars>1-10
cask 'dmm-player' do
version '1.6.0.4'
sha256 '177c5b190ce71d6fdff99a6cc78b14e3948bb606ad00dbedd8c02e07807b3d16'
url "http://portalapp.dmm.com/silverlightplayer/dmm/m/#{version.dots_to_underscores}/DMMPlayerInstaller_#{version.dots_to_underscores}.pkg"
name 'DMM Player'
homepage 'https://www.d... |
ScalablyTyped/SlinkyTyped | a/activex-excel/src/main/scala/typingsSlinky/activexExcel/Excel/ListRow.scala | <filename>a/activex-excel/src/main/scala/typingsSlinky/activexExcel/Excel/ListRow.scala
package typingsSlinky.activexExcel.Excel
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
... |
ScalablyTyped/SlinkyTyped | m/miniprogram/src/main/scala/typingsSlinky/miniprogram/LaunchQuery.scala | package typingsSlinky.miniprogram
import typingsSlinky.miniprogram.anon.AppId
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
@js.native
trait LaunchQuery extends StObject {
... |
yequ1001/1234 | public/depot/developer/read/index.js | <reponame>yequ1001/1234
$(document).ready(function(){
layui.use('element', function(){
var element = layui.element;
});
layui.use('form', function(){
var form = layui.form;
});
$i = 0;
$("code").each(function() {
$text = $(this).html();
$text = $text.replace(/<br... |
FavyTeam/Elderscape_server | source/game/npc/impl/superior/impl/GreaterAbyssalDemon.java | <reponame>FavyTeam/Elderscape_server
package game.npc.impl.superior.impl;
import core.GameType;
import core.ServerConstants;
import game.position.Position;
import game.entity.Entity;
import game.entity.EntityType;
import game.entity.combat_strategy.EntityCombatStrategy;
import game.npc.CustomNpcComponent;
import game.... |
gothere/gothere.github.io | source_code/quicksort.cpp | /*
* @Author: Beinan
* @Date: 2015-01-04 15:28:13
* @Last Modified by: Beinan
* @Last Modified time: 2015-01-04 16:00:36
*/
#include <iostream>
#include <utility> // std::swap
using namespace std;
//end is inclusive
void quick_sort(int a[], int begin, int end){
if(begin >= end)
return;
int left = b... |
kargov/admitone-backend | src/main/java/com/ned/admitone/domain/event/json/EventMixIns.java | <reponame>kargov/admitone-backend
package com.ned.admitone.domain.event.json;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.ned.admitone.domain.event.EventInterface;
public class EventMixIns {
private EventMixIns() {
}
@JsonTypeInf... |
huyadcplat/alluxio | core/transport/src/main/java/alluxio/grpc/Scope.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: grpc/meta_master.proto
package alluxio.grpc;
/**
* Protobuf enum {@code alluxio.grpc.meta.Scope}
*/
public enum Scope
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>MASTER = 1;</code>
*/
MASTER(1),
/**
* <cod... |
kyleaedwards/node-peek | lib/commands/cya.js | <gh_stars>0
'use strict';
module.exports = {
help: 'Closes the REPL.',
action() {
this.outputStream.write('SEE YOU SPACE COWBOY...\n');
this.close();
},
};
|
dgkatz/fastlane | fastlane_web/web_api/resources/pipeline.py | <reponame>dgkatz/fastlane<filename>fastlane_web/web_api/resources/pipeline.py
from .common.base import BaseResource
from ..libs.respository import create_repo
from ..models.models import Pipeline, PipelineType, PipelineStatus
from ..schemas.pipeline import (
PipelineGetSchema,
PipelineListSchema,
PipelineDe... |
xLifeFelix/Prog2 | Strategiespiel/src/de/hsa/games/fatsquirrel/entities/GoodBeast.java | package de.hsa.games.fatsquirrel.entities;
import de.hsa.games.fatsquirrel.core.EntityContext;
import de.hsa.games.fatsquirrel.util.XY;
import de.hsa.games.fatsquirrel.util.XYsupport;
public class GoodBeast extends Character {
private static final int DEFAULT_ENERGY = 200;
private int stepCount = 1;
public Goo... |
ChinaLHR/Gungnir | gungnir-rpc-example/consumer-1/src/main/java/io/github/chinalhr/consumer1/BeanConfig.java | package io.github.chinalhr.consumer1;
import io.github.chinalhr.gungnir.netchannel.client.GungnirClientProxy;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* @Author : ChinaLHR
* @Date : Create in 17:24 2018/5/25
* @Email : <EMAIL>
*/
@Configu... |
pbrown801/aggienova-templates | python/test.py | <filename>python/test.py
import matplotlib.pyplot as plt
from matplotlib.transforms import Bbox
import numpy as np
n = 50
t = np.linspace(0,20,50)
data = np.cumsum(np.random.randn(50,n), axis=0)
fig, ax = plt.subplots()
fig.subplots_adjust(right=0.78)
ax.set_prop_cycle(color=plt.cm.gist_rainbow(np.linspace(0,1,data.s... |
dikaeinstein/post-comment-api | src/posts/useCases/editPost.spec.js | import assert from 'assert';
import cases from 'jest-in-case';
import { makeFakeModel } from '__test__/fixtures/db';
import makeFakePost from '__test__/fixtures/post';
import { makeDocumentNotFoundError } from 'src/common/errors';
import makeEditPost from './editPost';
import PostRepository from '../repository/post';... |
joaquinfilipic/get-out | server-side/webapp/src/main/java/ar/edu/itba/paw/webapp/rest/pubInformation/DrinkController.java | <reponame>joaquinfilipic/get-out
package ar.edu.itba.paw.webapp.rest.pubInformation;
import java.net.URI;
import javax.inject.Inject;
import javax.validation.Valid;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;... |
MingfeiPan/leetcode | math/7.c | //注意转换关系 ret = ret * 10 + x % 10
int reverse(int x) {
long ret = 0;
while(x != 0)
{
ret = ret * 10 + x % 10;
x = x / 10;
if(ret < INT_MIN || ret > INT_MAX) return 0;
}
return ret;
}
|
akila543/javascript | Server/routes/workflowRoutes/updateWorkflow.js | //module imports
const fs = require('fs');
const updateWorkflow = require('express').Router();
const MongoClient = require('mongodb').MongoClient;
const yaml = require('js-yaml');
//use a middleware
updateWorkflow.use(require('body-parser').json());
// Connection URL
var url = 'mongodb://localhost:27017/workflows';
... |
Whizkevina/SidebarVulcan | packages/sidebar2020/lib/modules/newsletters/helpers.js | import { Connectors } from "meteor/vulcan:core";
import Posts from "../../modules/posts/collection";
export const getSubject = (newsletter) => {
const { postsIds } = newsletter;
const posts = Connectors.find(Posts, { _id: { $in: postsIds } });
const subject = posts
.map((post, index) =>
index > 0 ? `, ... |
ScalablyTyped/SlinkyTyped | e/estree/src/main/scala/typingsSlinky/estree/mod/BaseCallExpression.scala | package typingsSlinky.estree.mod
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
@js.native
trait BaseCallExpression extends BaseNode {
var arguments: js.Array[Expression ... |
jack-debug/Ares-1.0-Source-Leak | org/spongepowered/asm/lib/FieldWriter.java | package org.spongepowered.asm.lib;
final class FieldWriter extends FieldVisitor
{
private final ClassWriter cw;
private final int access;
private final int name;
private final int desc;
private int signature;
private int value;
private AnnotationWriter anns;
private AnnotationWriter ian... |
CaelestisZ/HeraQ | drivers/sensorhub/stm_v2/ssp_sensorhub.c | /*
* Copyright (C) 2015, Samsung Electronics Co. Ltd. All Rights Reserved.
*
* 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
* (at your option) any... |
realkotob/phaser3-rex-notes | plugins/gameobjects/live2d/framework/dist/math/cubismmatrix44.js | "use strict";
/**
* Copyright(c) Live2D Inc. All rights reserved.
*
* Use of this source code is governed by the Live2D Open Software license
* that can be found at https://www.live2d.com/eula/live2d-open-software-license-agreement_en.html.
*/
var __importStar = (this && this.__importStar) || function (mod) {
... |
viniciusfcf/smallrye-reactive-messaging | smallrye-reactive-messaging-camel/src/test/java/io/smallrye/reactive/messaging/camel/incoming/BeanWithCamelSink.java | package io.smallrye.reactive.messaging.camel.incoming;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CompletionStage;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import org.apache.camel.CamelContext;
import org.apache.camel.ProducerTemplate;
import ... |
isabella232/continuum | continuum-api/src/main/java/org/apache/maven/continuum/execution/SettingsConfigurationException.java | package org.apache.maven.continuum.execution;
/*
* 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 Apach... |
sknull/dotgraph-scala | dotgraph-scala-core/src/main/scala/de/visualdigits/dotgraph/core/type/html/Align.scala | package de.visualdigits.dotgraph.core.`type`.html
import enumeratum.{Enum, EnumEntry}
sealed trait Align extends EnumEntry
object Align extends Enum[Align] {
val values: IndexedSeq[Align] = findValues
case object center extends Align
case object left extends Align
case object right extends Align
}
|
MrFrenik/Enjon | Editor/Source/EditorWidget.cpp | <filename>Editor/Source/EditorWidget.cpp
// @file EditorWidget.cpp
// Copyright 2016-2017 <NAME>. All Rights Reserved.
#include "EditorWidget.h"
#include "EditorTransformWidget.h"
#include <Engine.h>
#include <SubsystemCatalog.h>
#include <Graphics/GraphicsSubsystem.h>
namespace Enjon
{
void EditorWidget::Enable( )... |
kongnir/hig | packages/flyout/src/FlyoutPresenter/FlyoutPresenter.js | import React from "react";
import PropTypes from "prop-types";
import cx from "classnames";
import {
EXITED,
ENTERING,
ENTERED,
EXITING
} from "react-transition-group/Transition";
import { anchorPoints, availableAnchorPoints } from "../anchorPoints";
import "./flyout.scss";
const availableTransitionStatuses =... |
fzyycp/fwmf-module | fwmf-module-systemconfig/fwmf-module-systemconfig-api/src/main/java/cn/faury/fwmf/module/api/systemconfig/service/SystemConfigService.java | <gh_stars>0
package cn.faury.fwmf.module.api.systemconfig.service;
import cn.faury.fdk.common.db.CrudBaseService;
import cn.faury.fwmf.module.api.systemconfig.bean.SystemConfigBean;
/**
* 服务接口:系统参数配置表
*
* <pre>
* CrudBaseService为数据库通用增删改查操作,不可修改
* 当前服务接口继承自CrudBaseService,用于项目业务代码扩展添加
* 只需初始化生成一次,然后... |
ericlink/adms-client-tc65 | diabetech-tc65/ObexFtp/3esmit-JObexFTP-8fbc07a/test/com/lhf/obexftplib/io/ATConnectionTest.java | <reponame>ericlink/adms-client-tc65<filename>diabetech-tc65/ObexFtp/3esmit-JObexFTP-8fbc07a/test/com/lhf/obexftplib/io/ATConnectionTest.java
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.lhf.obexftplib.io;
import com.lhf.obexftplib.etc.OBEXDevice;
impor... |
kotommi/fullstack-hy2019.github.io | src/components/Banner/Banner.js | import './Banner.scss';
import PropTypes from 'prop-types';
import React from 'react';
export const Banner = ({ className, backgroundColor, ...props }) => {
const background = backgroundColor
? { backgroundColor: backgroundColor }
: null;
return (
<div className={`banner ${className}`} style={backgro... |
temelkirci/Motion_Editor | venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/GL/EXT/draw_buffers2.py | <reponame>temelkirci/Motion_Editor
'''OpenGL extension EXT.draw_buffers2
This module customises the behaviour of the
OpenGL.raw.GL.EXT.draw_buffers2 to provide a more
Python-friendly API
Overview (from the spec)
This extension builds upon the ARB_draw_buffers extension and provides
separate blend enables and co... |
LittleJamie/Mine | Mmine/Classes/Tools/MExtensionKit/MExtensionKit/UIColor+ExtensionMExt.h | //
// UIColor+ExtensionMExt.h
// CompanyTest
//
// Created by Jamie on 16/3/24.
// Copyright © 2016年 Donews. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIColor (ExtensionMExt)
/**
* @brief 字符串中得到颜色值
*
* @param stringToConvert 字符串的值 e.g:@"#FF4500"
*
* @return 返回颜色对象
*/
+ (UIColor *)colorFromS... |
dnorgaard-usgs/swarm | src/main/java/gov/usgs/volcanoes/swarm/event/PickSettings.java | package gov.usgs.volcanoes.swarm.event;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;
/**
* Pick Settings.
* @author <NAME>
*
*/
public class PickSettings extends Properties {
private static final long serialVersionUID = 8971508936743... |
Backbase/fiserv-integration-bill-pay | src/main/java/com/backbase/billpay/fiserv/payments/model/PaymentListResponse.java | package com.backbase.billpay.fiserv.payments.model;
import com.backbase.billpay.fiserv.common.model.AbstractResponse;
import com.backbase.billpay.fiserv.common.model.ResultType;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bin... |
AlexeyAB/netutils-linux | netutils_linux_monitoring/softirqs.py | from optparse import Option
from six import iteritems
from netutils_linux_monitoring.base_top import BaseTop
from netutils_linux_monitoring.layout import make_table
from netutils_linux_monitoring.numa import Numa
from netutils_linux_monitoring.colors import wrap, cpu_color
class Softirqs(BaseTop):
""" Utility for... |
kamasamikon/miego | roast/tableheader.go | package roast
import (
"github.com/kamasamikon/miego/xtime"
)
const (
// 没有被删除
RemWhy_NotRem = 0
// 同一个UUID的添加了新记录,老记录自动标记为删除
RemWhy_Update = 1
// 显式删除
RemWhy_Delete = 2
)
type TableHeader struct {
// 记录的序列号而已
ID uint `gorm:"Column:ID;primary_key"`
// NewAt: 记录的添加时间
NewAt uint64 `gorm:"Column:NewAt"`
... |
ScipionyxCorp/butterfly-effect-stocks | stocks-backend-main/src/main/java/com/scipionyx/butterflyeffect/backend/stocks/main/jobs/bitcoin/coinbase/getHistoricalPrice/GetHistoricalPriceJob_Step01.java | <gh_stars>0
package com.scipionyx.butterflyeffect.backend.stocks.main.jobs.bitcoin.coinbase.getHistoricalPrice;
import java.beans.PropertyEditor;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.ut... |
dcomingore/pxf-field | cassandra-pxf-ext/src/main/java/com/gopivotal/cassandra/AbstractColumnFamilyInputFormat.java | <gh_stars>10-100
package com.gopivotal.cassandra;
import java.io.IOException;
import java.net.InetAddress;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.con... |
lu4er/spring-boot-demo | design-pattern/src/main/java/com/xkcoding/java/d_builder/Builder.java | <gh_stars>0
package com.xkcoding.java.d_builder;
/**
* @Description
* @Author jerry
* @CreateTime 2020/01/08 15:25
*/
public interface Builder {
public void buildPart1();
public void buildPart2();
public Product retrieveResult();
}
|
shorn1/OI-ICPC-Problems | accodingbuaacoding/403D.cpp | #include<bits/stdc++.h>
#define ns namespace
#define lol long long
using ns std;
int n,m;
struct Node
{
int l,r;
mutable int v;
Node(int _l = 0,int _r = -1,int _v = 0):l(_l),r(_r),v(_v){}
bool operator < (const Node &a) const
{
return l < a.l;
}
};
set<Node> s;
auto split(int pos) -... |
uq-eresearch/aorra | test/service/SimpleUserServicePluginTest.java | package service;
import static org.fest.assertions.Assertions.assertThat;
import static org.junit.Assert.fail;
import java.util.UUID;
import org.junit.Test;
import com.feth.play.module.pa.user.AuthUser;
import com.feth.play.module.pa.user.AuthUserIdentity;
import com.feth.play.module.pa.user.EmailIdentity;
import ... |
snkmr/shirasagi | app/models/concerns/gws/addon/survey/group_setting.rb | <reponame>snkmr/shirasagi
module Gws::Addon::Survey::GroupSetting
extend ActiveSupport::Concern
extend SS::Addon
set_addon_type :organization
included do
field :survey_default_due_date, type: Integer, default: 7
permit_params :survey_default_due_date
validates :survey_default_due_date, numerical... |
erikvanbrakel/terraform-provider-cloudconformity | vendor/github.com/hashicorp/terraform/terraform/resource_provisioner_mock.go | package terraform
import "sync"
// MockResourceProvisioner implements ResourceProvisioner but mocks out all the
// calls for testing purposes.
type MockResourceProvisioner struct {
sync.Mutex
// Anything you want, in case you need to store extra data with the mock.
Meta interface{}
ApplyCalled bo... |
divaliu1408/overfit | webservice.py | <gh_stars>0
# coding:utf-8
from soaplib.core.model.clazz import ClassModel
from spyne import Application, rpc, ServiceBase
from spyne import Integer, Unicode, Array
from spyne.protocol.soap import Soap11
from spyne.server.wsgi import WsgiApplication
from wsgiref.simple_server import make_server
import sys
from spyne.m... |
open-sorcerers/open-sorcerers | projects/reconnoiter/src/utils.js | <gh_stars>1-10
import { flexeca } from "flexeca"
import { fork as rawFork } from "fluture"
import { sideEffect, trace } from "xtrace"
import {
trim,
propOr,
replace,
gt,
join,
head,
last,
curry,
always as K,
range,
not,
equals,
ifElse,
identity as I,
chain,
nth,
filter,
split,
map,... |
mrpotes/go-raml | benchmark/python/users.py | from flask import Blueprint, jsonify, request
from User import User
users_api = Blueprint('users_api', __name__)
@users_api.route('/users', methods=['GET'])
def users_get():
'''
Get random user
It is handler for GET /users
'''
return jsonify({"name":"John", "username":"Doe"})
@users_api.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.