repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
vershininds/mixture | app/src/main/java/com/vershininds/mixture/sample/presentation/common/dbadapter/util/DebounceHelper.java | <reponame>vershininds/mixture<filename>app/src/main/java/com/vershininds/mixture/sample/presentation/common/dbadapter/util/DebounceHelper.java<gh_stars>0
/*
* Copyright <NAME>. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complia... |
gridgentoo/Tarantool.Lua.Net | src/box/memtx_tree.cc | <filename>src/box/memtx_tree.cc
/*
* Copyright 2010-2015, Tarantool AUTHORS, please see AUTHORS file.
*
* 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 must retain the above
... |
ZJU-Robotics-Lab/model-based-social-navigation | src/model_based_version/utils/log_drawer.py | <gh_stars>10-100
from tensorboard.backend.event_processing import event_accumulator
import seaborn as sns
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import math
def parse_data(records, name, start_step, end_step, step_interval):
x = []
y = []
for record in records:
ea = ... |
Tkachenko-Serhii/wallet_project_group_1_backend | controllers/developer/addDev.js | const { Developer, schemaDeveloper } = require('../../models/developer');
const addDev = async (req, res, next) => {
try {
const { error } = schemaDeveloper.validate(req.body);
if (error) {
throw res.status(400).json(error.message);
}
const newDev = await Developer.create(req.body);
res.s... |
yarf-framework/extras | subdomain/subdomain.go | package subdomain
import (
"github.com/yarf-framework/yarf"
"strings"
)
// Subdomain middleware parses the Request URL
// and sets the subdomain value into "_subdomain" index on Context Data
type Subdomain struct {
yarf.Middleware
}
// PreDispatch parses the URL and sets the value.
func (s *Subdomain) PreDispatch... |
ojhaanshu87/LeetCode | 714_buy_and_sell_transaction_fees.py | <reponame>ojhaanshu87/LeetCode
"""
Your are given an array of integers prices, for which the i-th element is the price of a given stock on day i; and a non-negative integer fee representing a transaction fee.
You may complete as many transactions as you like, but you need to pay the transaction fee for each transactio... |
crossmob/WinObjC | Frameworks/CoreFoundation/RunLoop.subproj/CFSocket.h | <gh_stars>1000+
// clang-format off
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.txt for license information
// See http:/... |
TanqiZhou/nimbus-jose-jwt | src/test/java/com/nimbusds/jose/jca/JCASupportTest.java | <reponame>TanqiZhou/nimbus-jose-jwt<filename>src/test/java/com/nimbusds/jose/jca/JCASupportTest.java
/*
* nimbus-jose-jwt
*
* Copyright 2012-2016, Connect2id Ltd.
*
* 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... |
wall72/JavaCoreFramework | jcf-ui/jcf-sua/src/main/java/jcf/sua/ux/flex/exception/MciExceptionTranslator.java | package jcf.sua.ux.flex.exception;
import jcf.sua.mvc.MciRequestContextHolder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.support.MessageSourceAccessor;
import org.springframework.flex.core.ExceptionTranslator;
import org.springframework.util.StringUtils;
import... |
hatbui345/yng-fishjoy | old/data_server/src/buzz/buzz_change.js | ////////////////////////////////////////////////////////////
// 实物兑换订单相关接口的业务逻辑
////////////////////////////////////////////////////////////
//==============================================================================
// import
//==============================================================================
//---... |
coin3d/smallchange | lib/SmallChange/nodes/SmShadowText2.h | #ifndef SMALLCHANGE_SOSHADOWTEXT2_H
#define SMALLCHANGE_SOSHADOWTEXT2_H
#include <Inventor/nodes/SoSubNode.h>
#include <Inventor/nodes/SoText2.h>
#include <Inventor/fields/SoMFString.h>
#include <Inventor/fields/SoSFFloat.h>
#include <Inventor/fields/SoSFEnum.h>
#include <Inventor/fields/SoSFVec2f.h>
#include <SmallC... |
paulobrizolara/geometric-escape | core/src/org/example/game/physics/proximitydetector/ProximityFilter.java | <reponame>paulobrizolara/geometric-escape
package org.example.game.physics.proximitydetector;
import com.badlogic.gdx.physics.box2d.Fixture;
public interface ProximityFilter{
public boolean acceptFixture(Fixture fixture);
} |
antonleliuk/spring-social-skypeBot | botFramework/src/main/java/org/springframework/social/botframework/api/data/cards/CardImage.java | <gh_stars>0
package org.springframework.social.botframework.api.data.cards;
/**
* @author <NAME>
*/
public class CardImage {
/**
* Description of the image. You should include the description to support accessibility.
*/
private String alt;
/**
* A CardAction object that specifies the ac... |
paulkefer/cardioid | tools/mpi_comm_test/test.cc | <reponame>paulkefer/cardioid
#include <cstdlib>
#include <iostream>
#include <mpi.h>
#include <vector>
#include <set>
#include "CommTable.hh"
using namespace std;
#define timebase(x) asm volatile ("mftb %0" : "=r"(x) : )
#include "HaloExchange.hh"
//number of neighbors to talk to
const int Nneighbor=20;
//number of... |
rishabh9785/HackerrankProblems | Implementation/GameOfThrones.java | <reponame>rishabh9785/HackerrankProblems<filename>Implementation/GameOfThrones.java
import java.util.*;
import javax.swing.plaf.synth.SynthSpinnerUI;
public class GameOfThrones {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc=new Scanner(System.in);
String s=ne... |
ThisIsanAlt/AlternativeBot | cogs/meta.py | <reponame>ThisIsanAlt/AlternativeBot<gh_stars>1-10
import discord
import asyncio
from discord.ext import commands, tasks
from discord.ext.commands.cooldowns import BucketType
import random
class Meta(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command()
async def dev_... |
dsofowote/KW-Tool | keywordTool/pubfiles/src/code/oms/124645/default.js | <reponame>dsofowote/KW-Tool
integration.meta = {
"sectionID" : "124645",
"siteName" : "<NAME>",
"publisher" : "oms",
"platform" : "desktop"
};
integration.testParams = {};
integration.params = {
'mf_siteId' : '706249',
"plr_UseCreativeSettings" : true,
"plr_ContentW" : 960,
"plr_ContentType" : "PAGESKINEXPRES... |
farhanzeb95/react | src/components/searchBar/SearchBar.js | <filename>src/components/searchBar/SearchBar.js
import React from 'react'
import Select from 'react-select'
import {
addCategory,
setSearchQuery,
handleFetchSearchResults
} from '../../actions/search'
import { connect } from 'react-redux'
class SearchBar extends React.Component {
constructor(props) {
su... |
AlexRogalskiy/DevArtifacts | master/autotools-book-files/autotools/book/flaim-ch8-10/flaim/src/fdbremov.cpp | <reponame>AlexRogalskiy/DevArtifacts
//-------------------------------------------------------------------------
// Desc: Delete a database.
// Tabs: 3
//
// Copyright (c) 2001-2003, 2005-2007 Novell, Inc. All Rights Reserved.
//
// This library is free software; you can redistribute it and/or
// modify it under the te... |
ardaerlik/SpacePongGame | spacePong/src/frame/home/SettingsFrame.java | package frame.home;
import java.awt.Color;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.SpringLayout;
import frame.home.panel.*;
public class SettingsFrame extends JFrame {
private JPanel contentPane;
private CreditsButtonsPanel creditsButtonsPanel;
private SettingsPanel settingsPanel... |
jessy1092/explore-africa | src/pages/ContactUsPage/index.js | <gh_stars>1-10
import React from 'react';
import IndexMenu from '../../components/IndexMenu';
import CategoryMenu from '../../components/CategoryMenu';
import styles from './index.css';
export default React.createClass({
componentDidMount() {
$('#category-menu').hide();
},
render() {
return ... |
Semicheche/foa_frappe_docker | frappe-bench/apps/erpnext/erpnext/patches/v8_1/add_hsn_sac_codes.py | <reponame>Semicheche/foa_frappe_docker
import frappe
from erpnext.regional.india.setup import setup
def execute():
company = frappe.get_all('Company', filters = {'country': 'India'})
if not company:
return
# call setup for india
setup(patch=True) |
EmileSonneveld/maproef1819-emile | iPlasma_decompiled/decompiled_result/src/lrg/memoria/importer/mcc/loader/DefaultVariableVisitor.java | /* */ package lrg.memoria.importer.mcc.loader;
/* */ import java.util.HashMap;
/* */ import java.util.Map;
/* */ import java.util.Set;
/* */ import lrg.memoria.core.Attribute;
/* */ import lrg.memoria.core.Class;
/* */ import lrg.memoria.core.File;
/* */ import lrg.memoria.core.Function;... |
ursomniac/skytour | skytour/skytour/apps/session/pdf_pages/utils.py | from ...utils.format import to_sex, to_hm, to_dm, to_time
def show_object_table(obj, p, y, instance, xoff=0):
app = obj['apparent']
obs = obj['observe']
p.drawString(50, y, obj['name'])
p.drawString(120+xoff, y, 'in '+obs['constellation']['abbr'])
p.drawString(150+xoff, y, to_hm(app['equ']['ra']))
... |
EmanuelHerrendorf/mapping-core | src/pointvisualization/Circle.h | <gh_stars>0
#ifndef POINTVISUALIZATION_CIRCLE_H_
#define POINTVISUALIZATION_CIRCLE_H_
#include <vector>
#include <memory>
#include <cmath>
#include <string>
#include <sstream>
#include <map>
#include <numeric>
#include <algorithm>
#include "Coordinate.h"
namespace pv {
/**
* A circle cluster consisting of a cent... |
Kiri23/DECE-Backend-Project | inicio/urls.py | <reponame>Kiri23/DECE-Backend-Project
from django.urls import path
from . import views
urlpatterns = [
path('', views.inicio.as_view(), name='inicio'),
path('ajax/listaDeCurso', views.obtenerCategoriaFromAjax, name='ajax_cursos'),
]
|
raymondng76/sgnlp | sgnlp/models/rst_pointer/config.py | from transformers import PretrainedConfig
class RstPointerSegmenterConfig(PretrainedConfig):
"""
This is the configuration class to store the configuration of a
:class:`~sgnlp.models.rst_pointer.modeling.RstPointerSegmenterModel`.
It is used to instantiate a discourse segmenter pointer network accordi... |
Accelerator404/Algorithm-Demonstration | PAT/PAT Advanced/c++/1128.cpp | <reponame>Accelerator404/Algorithm-Demonstration
#include <iostream>
#include <vector>
using namespace std;
//PAT Advanced Level 1128 N Queens Puzzle
int main() {
int K;
cin >> K;
for (int i = 0; i < K; ++i) {
int N;
cin >> N;
vector<int> row(N);
bool isSolution = true;
... |
Wildrimak/bootcamp-01-template-casa-do-codigo | src/main/java/br/com/zup/casadocodigo/api/controllers/EstadoController.java | package br.com.zup.casadocodigo.api.controllers;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.transaction.Transactional;
import javax.validation.Valid;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
impor... |
JChanceHud/fuel-js | packages/wallet/src/test/index.js | <gh_stars>0
const { test, utils } = require('@fuel-js/environment');
const ethers = require('ethers');
const fuel = require('../index');
module.exports = test('wallet', async t => {
try {
const seedPhraseWallet = new ethers.Wallet.createRandom();
const walletMnumonic = new fuel.Wallet(null, {
network:... |
julian-blaschke/inkme | inkme-web-app/lib/firebase/queries.js | <filename>inkme-web-app/lib/firebase/queries.js
import { firebase } from "@/firebase/index";
export async function getArtistByUsername(username) {
if (!username) return;
const db = firebase.firestore();
//TODO: make checks for provided arg `username`
const doc = db.collection("artists").doc(username);
const ... |
Avix101/blade | server/models/GameResult.js | <filename>server/models/GameResult.js
const mongoose = require('mongoose');
mongoose.Promise = global.Promise;
let GameResultModel = {};
// Construct a game results schema (stores ids and scores)
const GameResultSchema = new mongoose.Schema({
player1Id: {
type: mongoose.Schema.Types.ObjectId,
required: tru... |
pplante/droidtowers | tools/proguard/src/proguard/classfile/visitor/ClassCleaner.java | /*
* ProGuard -- shrinking, optimization, obfuscation, and preverification
* of Java bytecode.
*
* Copyright (c) 2002-2011 <NAME> (<EMAIL>)
*
* 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
* Softw... |
jerryzhenleicai/Streams | source/providers/Zip.h | <reponame>jerryzhenleicai/Streams
#ifndef SCHEINERMAN_STREAM_PROVIDERS_ZIP_H
#define SCHEINERMAN_STREAM_PROVIDERS_ZIP_H
#include "StreamProvider.h"
#include <tuple>
#include <type_traits>
namespace stream {
namespace provider {
namespace detail {
template<typename L, typename R>
struct ZipperImpl {
using Type ... |
Kvalifik/kvalifik | src/Components/ServicesBlock/index.js | import React, { Component } from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import ServiceList from './ServiceList'
import ServicePreview from './ServicePreview'
import Skewer from 'Components/Shared/Skewer'
import Container from 'Components/Shared/Container'
import Button from ... |
tinochinamora/iw_imdb | accls/RBM/SysCV/InstVerify/RBM.ConfInst/vWrapper.cpp | <gh_stars>1-10
// verification wrapper
#include "model_RBM_class.hpp"
#include "subfun_cppUpdateFun_data.cpp"
#include "subfun_cppUpdateFun_data_out.cpp"
#include "subfun_cppUpdateFun_done.cpp"
#include "subfun_cppUpdateFun_init_done.cpp"
#include "subfun_cppUpdateFun_num_hidden.cpp"
#include "subfun_cppUpdateFun_num_... |
rosecodym/space-boundary-tool | src/Core/src/nef_polygon_face.h | #pragma once
#include "precompiled.h"
#include "polygon_with_holes_2.h"
namespace geometry_2d {
namespace nef_polygons {
class face {
private:
const nef_polygon_2::Explorer * e;
nef_polygon_2::Explorer::Face_const_iterator f;
boost::optional<polygon_2> outer() const;
public:
face(const nef_polygon_2::Explorer... |
imperialCHEPI/healthgps | source/HealthGPS.Tests/Core.UnivariateSummary.Test.cpp | #include "pch.h"
#include <optional>
#include "HealthGPS.Core\univariate_summary.h"
TEST(TestCore_UnivariateSummary, CreateEmptyWithoutName)
{
using namespace hgps::core;
auto init_empty = UnivariateSummary();
ASSERT_TRUE(init_empty.is_empty());
EXPECT_EQ("Untitled", init_empty.name());
EXPECT_TRUE(std::isnan... |
amitkumarj441/QNET | src/qnet/algebra/core/indexed_operations.py | """Base classes for indexed operations (sums and products)"""
from abc import ABCMeta
from .abstract_algebra import Expression, Operation
from .exceptions import InfiniteSumError
from ..pattern_matching import wc
from ...utils.indices import (
IdxSym, IndexRangeBase, SymbolicLabelBase, yield_from_ranges, )
__all... |
jfnavarro/old_python_courses | ML.1/src/lab2.py | '''
Created on Sep 29, 2011
@author: jfn
'''
#!/usr/bin/env python
from cvxopt.solvers import qp
from cvxopt.base import matrix
import numpy as np,pylab,random, math
from numpy import linalg
def linear_kernel(x, y):
k=0
for i in range(len(x)):
k+=(x[i]*y[i])
return k+1
def polynomial_kernel(x, y,... |
prasadus92/news-app | src/main/java/com/upday/news/service/impl/AuthorServiceImpl.java | <filename>src/main/java/com/upday/news/service/impl/AuthorServiceImpl.java<gh_stars>1-10
package com.upday.news.service.impl;
import com.upday.news.dao.Article;
import com.upday.news.dao.Author;
import com.upday.news.dto.ArticleDto;
import com.upday.news.dto.AuthorDto;
import com.upday.news.dto.mapper.ArticleMapper;
i... |
artem-bayandin/udemy-react | udemy-react-guide/src/containers/App/App.js | import React, { useState } from 'react'
import styles from './App.module.css'
import PeopleList from '../../components/People/PeopleList/PeopleList'
import Cockpit from '../../components/Cockpit/Cockpit'
import MultipleAdjacentElements from '../../components/Custom/MultipleAdjacent/MultipleAdjacentElements'
import Auxi... |
learningtcc/dubbox | dubbo-transactiontree/src/main/java/com/alibaba/dubbo/transactiontree/api/Transaction.java | package com.alibaba.dubbo.transactiontree.api;
import java.util.List;
/**
*
* @author fuhaining
*/
public interface Transaction {
Xid getXid();
void setXid(Xid xid);
TransactionType getTransactionType();
void setTransactionType(TransactionType transactionType);
TransactionStatus getTransactionStatu... |
ehardy/graphql-schema-registry | webpack.config.js | const path = require('path');
const webpack = require('webpack');
const merge = require('webpack-merge');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin');
const config =... |
shrutiparabgoogle/registry | server/registry/names/spec_revision.go | <gh_stars>10-100
// Copyright 2020 Google LLC. 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 requir... |
lodenos/libft | src/_string/test/test-_strncat.c | <gh_stars>0
#include "_string.h"
void test_strncat() {}
|
nnadams/mage | Mage.Sets/src/mage/cards/t/TwoHeadedGiant.java | <reponame>nnadams/mage<filename>Mage.Sets/src/mage/cards/t/TwoHeadedGiant.java
package mage.cards.t;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.AttacksTriggeredAbility;
import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.common.contin... |
Glost/db_nets_renew_plugin | root/prj/sol/projects/renew2.5source/renew2.5/src/Gui/src/de/renew/gui/NetInstanceBuilder.java | <gh_stars>0
package de.renew.gui;
import de.renew.application.NoSimulationException;
import de.renew.application.SimulatorPlugin;
import de.renew.formalism.FormalismPlugin;
import de.renew.shadow.ShadowCompilerFactory;
import de.renew.shadow.ShadowNetSystem;
import de.renew.shadow.SyntaxException;
import java.awt.E... |
martinx/martinxus-foursquared | main/src/com/joelapenna/foursquare/parsers/CategoryParser.java | /**
* Copyright 2010 <NAME>
*/
package com.joelapenna.foursquare.parsers;
import com.joelapenna.foursquare.Foursquare;
import com.joelapenna.foursquare.error.FoursquareError;
import com.joelapenna.foursquare.error.FoursquareParseException;
import com.joelapenna.foursquare.types.Category;
import com.joelapenna.fours... |
cantona/NT6 | nitan/kungfu/class/huashan/zhanglao.h | // by Lonely
int accept_fight(object ob)
{
object obj, me = this_object();
int my_max_qi=query("max_qi", me);
if( query("qi", me)*100/my_max_qi <= 80 )
{
call_out("checking1", 1, me, ob);
return 0;
}
remove_call_out("checking1");
... |
sajalguptajft/cobbzilla-wizard | wizard-common/src/main/java/org/cobbzilla/wizard/client/script/ApiInnerScript.java | package org.cobbzilla.wizard.client.script;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.github.jknack.handlebars.Handlebars;
import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.cobbzilla.util.handlebars.HandlebarsUtil;
import org.cobbzilla.util.javascript.JsEngin... |
xxg1413/oneflow | oneflow/core/job/critical_section_desc.h | <gh_stars>1-10
/*
Copyright 2020 The OneFlow 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.apache.org/licenses/LICENSE-2.0
Unless required by applica... |
AgentMervin/operating-system | weenix/user/usr/bin/spin.c | /*
* Spins.
*/
int main(int argc, char **argv)
{
while (1);
return 0;
}
|
deg-commerce/salesforce-commerce-cloud-libraries | test/unit/lodash/isNil.test.js | <gh_stars>10-100
var assert = require('assert');
var { falsey } = require('../helpers/stubs');
var args = require('../helpers/args');
var isNil = require('../../../cartridges/lodash/isNil');
var map = require('../../../cartridges/lodash/map');
var _ = require('../../../cartridges/lodash/wrapperLodash');
var slice = Arr... |
einsundnull/Conjugator-Software | KonjugateGermanVerbs/src/strings/LoadedVerbs.java | <filename>KonjugateGermanVerbs/src/strings/LoadedVerbs.java
package strings;
import java.util.ArrayList;
import conjugate.ConjugateRegularVerbs;
import filters.Filters;
public class LoadedVerbs {
public static String completeText = "";
public static ArrayList<Integer> endingsPresIDArray = new ArrayList<... |
HenryPajuri/teemaderegister-Companies-addTopic2 | teemaderegister-be/src/constants/query.js | exports.subKeys = {
topics: [
'registered',
'available',
'defended'
],
supervisors: [
'supervised',
'all'
]
}
exports.columnKeys = {
topics: [
'author',
'accepted',
'defended',
'registered',
'title',
'types'
],
supervisors: [
'available',
'defended',
... |
kltm/bbop-js | lib/bbop/widget/search_box.js | <reponame>kltm/bbop-js
/*
* Package: search_box.js
*
* Namespace: bbop.widget.search_box
*
* BBOP object to draw various UI elements that have to do with
* autocompletion.
*
* This is a completely self-contained UI and manager.
*/
if ( typeof bbop == "undefined" ){ var bbop = {}; }
if ( typeof bbop.widget ... |
BernardJeremy/nibbler | Allegro/Fruit.hpp | //
// Fruit.hpp for nibbler in /home/bernar_w/Projet/Nibbler/core
//
// Made by bernar_w
// Login <<EMAIL>>
//
// Started on Wed Mar 12 10:41:55 2014 bernar_w
// Last update Thu Apr 3 08:28:06 2014 <NAME>
//
#ifndef FRUIT_HPP_
# define FRUIT_HPP_
#include <exception>
#include <string>
#include <iostream>
... |
ArpanMittal/myOLTP | src/com/oltpbenchmark/benchmarks/tpcc/TPCCState.java | <reponame>ArpanMittal/myOLTP<filename>src/com/oltpbenchmark/benchmarks/tpcc/TPCCState.java
package com.oltpbenchmark.benchmarks.tpcc;
import java.util.Map;
public class TPCCState {
int numberOfNewOrderRows;
int numberOfHistoryRows;
int numberOfOrderRows;
int numberOfOrderLineRows;
Map<Integer, Dou... |
Kir4Kun/cloudserver | lib/api/apiUtils/object/expirationHeaders.js | const { supportedLifecycleRules } = require('arsenal').constants;
const { LifecycleConfiguration } = require('arsenal').models;
const {
LifecycleDateTime,
LifecycleUtils,
} = require('arsenal').s3middleware.lifecycleHelpers;
// moves lifecycle transition deadlines 1 day earlier, mostly for testing
const transi... |
heeyoung2da/Giffticon | src/main/java/com/ncncn/service/PsnlQustService.java | package com.ncncn.service;
import java.util.List;
import com.ncncn.domain.CsPsnlQustVO;
import com.ncncn.domain.pagination.CsCriteria;
public interface PsnlQustService {
//1:1문의 등록
void register(CsPsnlQustVO qna);
//ajax CsPsnlQustVO 가져오기
CsPsnlQustVO get(int id);
//관리자 답변 및 수정
boolean modify(CsPsnlQustVO q... |
Jp-caillet/Euterpe-Front | src/components/radio/index.js | <gh_stars>0
import React, { Component } from 'react'
import ReactPlayer from 'react-player'
import { CircleSlider } from 'react-circle-slider'
import { connect } from 'react-redux'
import { Timer } from 'react-soundplayer/components'
import Modal from 'react-modal'
import axios from 'axios'
import openSocket from 'sock... |
andrey-yemelyanov/competitive-programming | cp-book/ch4/sssp/_00383_ShippingRoutes.java | <gh_stars>0
package helvidios.cp.ch4.sssp;
import java.util.*;
import static java.lang.Math.*;
public class _00383_ShippingRoutes{
public static void main(String[] args){
String data = "2\n" +
"6 7 5\n" +
"AA CC QR FF DD AB\n" +
"AA CC\n" +
"CC QR\n" +
"DD CC\n" +
"AA DD\n" +
"AA AB\n" ... |
olegkotovich/jenkins-build-monitor-plugin | src/test/java/com/smartcodeltd/jenkinsci/plugins/buildmonitor_acceptance/utils/Typograph.java | package com.smartcodeltd.jenkinsci.plugins.buildmonitor_acceptance.utils;
/**
* @author <NAME>
*/
public class Typograph {
public static String deCamelCase(String camelCasedString) {
return camelCasedString.replaceAll(
String.format("%s|%s|%s",
"(?<=[A-Z])(?=[A-Z][... |
echopen/PRJ-medtec_androidapp | android-app/app/src/main/java/com/echopen/asso/echopen/probe_communication/commands/RequestForTestPatternCommand.java | package com.echopen.asso.echopen.probe_communication.commands;
public class RequestForTestPatternCommand extends Request {
private PatternType mPatternType;
private int mFrameInterval; //in micro seconds
private int mLinePerFrame;
private int mLineInterval; //in micro seconds
private int mSamplesP... |
gnarrf95/libjayc | src/jproc/jproc_signal.c | <reponame>gnarrf95/libjayc
/**
* @file jproc_signal.c
* @author <NAME> (https://github.com/gnarrf95)
*
* @brief Implements signal functionality for jproc.
*
* @date 2020-10-01
* @copyright Copyright (c) 2020 by <NAME>
*
*/
#include <jayc/jproc.h>
#include <stdlib.h>
#include <stdbool.h>
#include <signal.h>... |
wecatch/app-turbo | setup.py | from setuptools import setup, find_packages
import sys
import os
version = __import__('turbo').version
install_requires = [
]
for k in ['pymongo', 'requests', 'redis', 'docopt', 'jinja2']:
try:
_m = __import__(k)
except ImportError:
if k == 'pymongo':
k = 'pymongo>=3.2'
... |
akjava/akjava_gwtlib | src/com/akjava/gwt/html5/client/media/OscillatorNode.java | <filename>src/com/akjava/gwt/html5/client/media/OscillatorNode.java
package com.akjava.gwt.html5.client.media;
import com.google.gwt.core.client.JavaScriptObject;
public class OscillatorNode extends JavaScriptObject{
protected OscillatorNode(){}
public final native String getType()/*-{
return this.type;
}-... |
the-h-team/ClansPro | ClansPro/src/main/java/com/github/sanctum/clans/construct/impl/SimpleEntry.java | package com.github.sanctum.clans.construct.impl;
import java.util.Map;
public class SimpleEntry<K, V> implements Map.Entry<K, V> {
private final K key;
private V value;
public SimpleEntry(K k, V v) {
this.key = k;
this.value = v;
}
@Override
public K getKey() {
return this.key;
}
@Override
public V... |
LarsImNetz/microservice-sentences | server/src/test/java/org/lla_private/rest/satz/TestNothing.java | <reponame>LarsImNetz/microservice-sentences
package org.lla_private.rest.satz;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.lla_private.rest.json.mapper.IObjectMapperService;
import org.lla_private.rest.satz.Nothing;
import org.mockito.Mock;
impor... |
Brikwerk/learn2learn | learn2learn/optim/transforms/__init__.py | <gh_stars>1000+
#!/usr/bin/env python3
"""
Optimization transforms are special modules that take gradients as inputs
and output model updates.
Transforms are usually parameterized, and those parameters can be learned by
gradient descent, allow you to learn optimization functions from data.
"""
from .module_transform ... |
dr-chase-g3ka1/Progtech_Korny_beadando | src/main/java/model/item/weapons/gunpowder/AbstractWeaponModSocket.java | <filename>src/main/java/model/item/weapons/gunpowder/AbstractWeaponModSocket.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 model.item.weapons.gunpowder;
/**
*
* @aut... |
jaouahbi/VampPlugins | marsyas-vamp/marsyas/src/marsyas/marsystems/MidiFileSynthSource.cpp | /*
** Copyright (C) 1998-2010 <NAME> <<EMAIL>>
**
** 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 later version.
**
** This program... |
mmore500/dishtiny | include/dish2/introspection/get_num_running_log_live_cardinal_updates.hpp | #pragma once
#ifndef DISH2_INTROSPECTION_GET_NUM_RUNNING_LOG_LIVE_CARDINAL_UPDATES_HPP_INCLUDE
#define DISH2_INTROSPECTION_GET_NUM_RUNNING_LOG_LIVE_CARDINAL_UPDATES_HPP_INCLUDE
#include "../config/running_log_duration_in_updates.hpp"
#include "count_live_cardinals.hpp"
#include "get_num_running_log_updates.hpp"
name... |
rwatson/chromium-capsicum | chrome/browser/notifications/notification.h | // Copyright (c) 2009 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.
#ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_H_
#define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_H_
#include <string>
#include "base/basictype... |
nanusefue/CAP2-1 | cap2/pipeline/databases/kraken2_db.py | <filename>cap2/pipeline/databases/kraken2_db.py
import luigi
from os.path import join, abspath, dirname
from glob import glob
import subprocess
from ..config import PipelineConfig
from ..utils.conda import CondaPackage
from ..utils.cap_task import CapDbTask
DB_DATE = '2020-06-01'
'cap2/databases/2020-06-08/taxa_k... |
NikolayIT/BelotGameEngine | etc/Other implementations/belote-android/src/belote/logic/play/strategy/NullPlayCardStrategy.java | /*
* Copyright (c) <NAME> 2008-2014. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the source code must retain
* the above copyright notice and the following disclaimer.
*
* This software is provided "AS IS," without a warr... |
windystrife/UnrealEngine_NVIDIAGameWork | Engine/Source/Developer/AutomationDriver/Private/Locators/SlateWidgetLocatorByDelegate.h | <gh_stars>1-10
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "LocateBy.h"
class IElementLocator;
class FSlateWidgetLocatorByDelegateFactory
{
public:
static TSharedRef<IElementLocator, ESPMode::ThreadSafe> Create(
const FLocateSlateWidgetElementDelegate& Delegate);
static T... |
seakers/daphne-brain | AT/views.py | import json
import threading
import redis
from rest_framework.response import Response
from rest_framework.views import APIView
from AT.automated_at_routines.at_routine import anomaly_treatment_routine
from AT.automated_at_routines.hub_routine import hub_routine
from AT.simulator_thread.simulator_routine_by_false_ecls... |
mattclegg/silverstripe-framework | thirdparty/tinymce/plugins/emotions/langs/it_dlg.js | tinyMCE.addI18n('it.emotions_dlg',{
title:"Inserisci faccina",
desc:"Faccina",
cool:"Fico",
cry:"Piango",
embarassed:"Imbarazzato",
foot_in_mouth:"Piede in bocca",
frown:"Triste",
innocent:"Santarellino",
kiss:"Bacio",
laughing:"Risatona",
money_mouth:"Bocca danarosa",
sealed:"Bocca sigillata",
smile:"Sorr... |
pmwheatley/dfterm2 | pointerpath.cc | #include "slot_dfglue.hpp"
#ifndef _WIN32
#error "Windows-only source file."
#endif
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <psapi.h>
#include <iostream>
#include "logger.hpp"
using namespace dfterm;
using namespace std;
using namespace trankesbel;
using namespace std;
PointerPath::PointerPath()
{
... |
1418014113git/syhz-fronted | src/api/caseCade.js | <reponame>1418014113git/syhz-fronted
import request from '@/utils/request'
const ModuleName = process.env.SYHZ_MODULE
export function getAJList(para) {
return request({
url: ModuleName + 'xscbfxaj',
method: 'get',
params: para
})
}
export function getCPList(para) {
return request({
url: ModuleNam... |
shiimizu/zig | lib/libc/mingw/math/tanhl.c | /**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#include "cephes_mconf.h"
#ifndef _SET_ERRNO
#define _SET_ERRNO(x)
#endif
#ifdef UNK
static uLD P[] = {... |
augustinebest/app | init-script/scripts/3.0.9100.js | const { find, update } = require('../util/db');
const scheduledCollection = 'scheduledevents';
async function run() {
const events = await find(scheduledCollection, {
recurring: { $exists: false },
interval: { $exists: false },
});
for (let i = 0; i < events.length; i++) {
const e... |
punithmadaiahkumar/try-django | Lib/site-packages/pylint/pyreverse/printer.py | <filename>Lib/site-packages/pylint/pyreverse/printer.py
# Copyright (c) 2021 <NAME> <<EMAIL>>
# Copyright (c) 2021 <NAME> <<EMAIL>>
# Copyright (c) 2021 <NAME> <<EMAIL>>
# Copyright (c) 2021 <NAME> <<EMAIL>>
# Copyright (c) 2021 <NAME> <<EMAIL>>
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2... |
oriolhub/ghubber | containers/Profile/index.js | <filename>containers/Profile/index.js
// @author <NAME> <<EMAIL>> https://github.com/ovr
// @flow
export { default as Profile } from './Profile';
|
piotrj/administer | lib/administer/fields/field_builder.rb | module Administer
module Fields
class FieldBuilder
@@registered_classes = SuperclassHash.new
class << self
def register_class(klass, &block)
@@registered_classes[klass] = block
end
end
def build_fields_for(fields)
fields.map do |field|
field_for... |
tiankafei/java | tiankafei-code-tool/tiankafei-redis/src/main/java/org/tiankafei/redis/service/impl/ValueOperationsServiceImpl.java | <reponame>tiankafei/java
package org.tiankafei.redis.service.impl;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import javax.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.conne... |
evrythng/evrythng.js | src/entity/Place.js | <filename>src/entity/Place.js
import Entity from './Entity'
import Resource from '../resource/Resource'
const path = '/places'
/**
* Represents a Place entity object.
*
* @extends Entity
*/
export default class Place extends Entity {
/**
* Return simple resource factory for Places.
*
* @static
* @re... |
jituancaiyun/openapi-java-sdk | src/main/java/com/shinemo/openapi/client/dto/AccessTokenDTO.java | /*
* (C) Copyright 2015-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... |
bjoernalbers/faxomat | spec/factories/users.rb | <reponame>bjoernalbers/faxomat
FactoryGirl.define do
factory :user do
username { Faker::Internet.user_name }
first_name { Faker::Name.first_name }
last_name { Faker::Name.last_name }
title { Faker::Name.prefix }
can_release_reports true
factory :authorized_user
factory :unauthori... |
marcosppastor/MSV146 | tools/src/client/inventory/MaplePet.java | /*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 <NAME> <<EMAIL>>
<NAME> <<EMAIL>>
<NAME> <<EMAIL>>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Softwa... |
prikarna/NanoOS | Src/Service.h | /*
* File : Service.h
* Remark : Service parameter and function definition
*
*/
#ifndef SERVICE_H
#define SERVICE_H
#include "Thread.h"
#define SVC_MAX_PARAMS 8
struct _SVC_PARAM {
UINT32_T Index;
UINT32_T ReturnValue;
UINT32_T Reserved2;
UINT32_T Reserved3;
UINT32_T R12;
UINT32_T LR;
UINT32_... |
spookandpuff/islay | lib/islay.rb | <reponame>spookandpuff/islay
require 'rails-observers'
require 'cells'
require 'cells-rails'
require 'hamlit'
require 'cells-hamlit'
require 'compass-rails' # This is temporary. By rights this needs to go into the assets group
require 'sass-rails'
require 'jquery-rails'
require 'devise'
require 'devise_invitable'
requi... |
nrgxtra/fundamentals | lists advanced exerscise/03. next version.py | new_version = int(''.join(input().split('.'))) + 1
new_version = '.'.join(str(new_version))
print(new_version)
|
mythoss/midpoint | infra/test-util/src/main/java/com/evolveum/midpoint/test/util/TestReportUtil.java | <filename>infra/test-util/src/main/java/com/evolveum/midpoint/test/util/TestReportUtil.java
/*
* Copyright (C) 2010-2020 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.test.uti... |
gabrieldiaz94/RAS-Baxter-Interface | baxter_ras_interface/scripts/script_validacion.py | <reponame>gabrieldiaz94/RAS-Baxter-Interface
#!/usr/bin/env python
# license removed for brevity
import rospy
from std_msgs.msg import String,Int32MultiArray
from geometry_msgs.msg import Twist
from jp_baxtertry1.srv import *
global fin
fin=0
def talker():
while not rospy.is_shutdown():
global Acabe,fin
m... |
lizeidsness/minimalist | app/@esri/calcite-components/dist/collection/components/calcite-icon/calcite-icon.stories.js | <reponame>lizeidsness/minimalist
import {withKnobs, select, boolean} from "@storybook/addon-knobs";
import {
darkBackground,
iconNames,
parseReadme
} from "../../../.storybook/helpers";
import readme from "./readme.md";
const notes = parseReadme(readme);
export default {
title: "Icon",
decorators: [withKnob... |
DmitryPogrebnoy/LARCmaCS | macsCommon/util/gvector.h | <reponame>DmitryPogrebnoy/LARCmaCS
//========================================================================
// This software is free: you can redistribute it and/or modify
// it under the terms of the GNU General Public License Version 3,
// as published by the Free Software Foundation.
//
// This software is dis... |
horacehylee/southtransport-abt-app | src/theme.js | <gh_stars>1-10
export const Theme = {
primary: "#157cbe",
primaryDark: "#00508d"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.