repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
Jaykingamez/evennia | evennia/server/profiling/test_queries.py | """
This is a little routine for viewing the sql queries that are executed by a given
query as well as count them for optimization testing.
"""
import sys
import os
# sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))))
# os.environ["DJANGO_SETTINGS_MODULE... |
elliotleee/Apollo-lab | src/ApolloRescue/module/algorithm/clustering/ApolloFireClustering.java | <filename>src/ApolloRescue/module/algorithm/clustering/ApolloFireClustering.java<gh_stars>0
package ApolloRescue.module.algorithm.clustering;
import ApolloRescue.module.algorithm.ApolloPathPlanning;
import ApolloRescue.module.universal.ApolloWorld;
import ApolloRescue.module.universal.entities.BuildingModel;
import A... |
guoxiangyang0914/ycia | src/main/java/com/thinkgem/jeesite/modules/ia/entity/IaHealthArchive.java | <reponame>guoxiangyang0914/ycia
/**
* Copyright © 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.thinkgem.jeesite.modules.ia.entity;
import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.common.persistence.DataEntity;
/**
* 居民健... |
rlourette/TI_SDK_u-boot-2019.01 | u-boot-2019.01+gitAUTOINC+333c3e72d3-g333c3e72d3/tools/mkimage.h | /* SPDX-License-Identifier: GPL-2.0+ */
/*
* (C) Copyright 2000-2004
* DENX Software Engineering
* <NAME>, <EMAIL>
*/
#ifndef _MKIIMAGE_H_
#define _MKIIMAGE_H_
#include "os_support.h"
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <t... |
FedorUporov/gridgain | modules/h2/src/main/java/org/h2/Driver.java | /*
* Copyright 2004-2019 H2 Group. Multiple-Licensed under the MPL 2.0,
* and the EPL 1.0 (http://h2database.com/html/license.html).
* Initial Developer: H2 Group
*/
package org.h2;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.DriverPropertyInfo;
import java.sql.SQLException;
import j... |
fizzday/gopass | rules/init.go | <reponame>fizzday/gopass
package rules
import "github.com/gohouse/gopass/gopassRuler"
// defaultMessages 验证失败默认提示语
var defaultMessages = map[string]interface{}{
// 必填参数: required
gopassRuler.LangZHCN: map[string]interface{}{
RequiredString: "参数{field}为必须参数",
BetweenString: "参数{field}的值必须在({args})之间",... |
darecoder1999/Wikidata-Toolkit | wdtk-datamodel/src/test/java/org/wikidata/wdtk/datamodel/implementation/MediaInfoDocumentImplTest.java | <gh_stars>0
/*
* #%L
* Wikidata Toolkit Data Model
* %%
* Copyright (C) 2014 Wikidata Toolkit Developers
* %%
* 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.apac... |
manjunkoh/my-website | node_modules/airbnb-prop-types/build/disallowedIf.js | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = disallowedIf;
var _wrapValidator = _interopRequireDefault(require("./helpers/wrapValidator"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function disallowedIf(p... |
a1209023760/code-java | 008-hutool/hutool-core/src/main/java/com/keqi/hutool/core/common/Premiss.java | package com.keqi.hutool.core.common;
import lombok.Data;
@Data
public class Premiss {
private String premissName;
}
|
danielmicaletti/Procurement-Order-Management-App | static/build/development/scripts/accounts/services/company.service.js |
(function () {
'use strict';
angular
.module('accounts.services')
.factory('Company', Company);
Company.$inject = ['$http', '$q'];
function Company($http, $q) {
var Company = {
getOptiz: getOptiz,
getAll: getAll,
get: get,
create:create,
destroy: destroy,
upd... |
korjaa/mbed-os | features/nanostack/sal-stack-nanostack/source/6LoWPAN/Thread/thread_config.h | <reponame>korjaa/mbed-os
/*
* Copyright (c) 2015-2017, Arm Limited and affiliates.
* SPDX-License-Identifier: BSD-3-Clause
*
* 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 mus... |
UnioDex/UnioProtections | src/main/java/me/uniodex/unioprotections/listeners/SmallFixListeners.java | <gh_stars>1-10
package me.uniodex.unioprotections.listeners;
import me.uniodex.unioprotections.UnioProtections;
import me.uniodex.unioprotections.managers.CheckManager.Check;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.e... |
ksmai/fire-web-engine | src/App/Clock.h | #ifndef __CLOCK_H__
#define __CLOCK_H__
#include <SDL/SDL.h>
namespace FW {
class Clock {
public:
using Counter = Uint64;
Clock();
Clock(const Clock&) =delete;
Clock& operator=(const Clock&) =delete;
~Clock();
double dt() const;
double time() const;
void update();
private:
... |
zengshunyao/test | src/test/java/category/book/shenrujvm/ch08/TestClassLoader.java | <reponame>zengshunyao/test
package category.book.shenrujvm.ch08;
/**********************************************************************
* <p>文件名:TestClassLoader.java </p>
* <p>文件描述:${DESCRIPTION}(描述该文件做什么)
* @project_name:test
* @author zengshunyao
* @date 2019/3/25 17:13
* @history
* @depart... |
lindsaygelle/animalcrossing | villager/cat/mitzi/doc.go | <gh_stars>0
// Package mitzi exports the Animal Crossing villager Mitzi.
package mitzi
|
cloudgraph/cloudgraph | cloudgraph-hbase/src/main/java/org/cloudgraph/hbase/scan/ScanRecognizerLogicalBinaryExpr.java | <reponame>cloudgraph/cloudgraph
/**
* Copyright 2017 TerraMeta Software, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... |
sofa-framework/issofa | modules/SofaNonUniformFem/DynamicSparseGridTopologyContainer.cpp | <filename>modules/SofaNonUniformFem/DynamicSparseGridTopologyContainer.cpp
/******************************************************************************
* SOFA, Simulation Open-Framework Architecture, development version *
* (c) 2006-2017 INRIA, USTL, UJF, CNRS, MGH *
* ... |
Matt-Ti/Logica-de-programa | 05 - comando IF/MediaAluno/index.js | var readline = require("readline-sync");
var nome = "";
var n1 = 0;
var n2 = 0;
var n3 = 0;
var n4 = 0;
var media = 0;
//Entrada de dados
console.log("Programa que calcula a media de um aluno");
nome = readline.question("Qual seu nome?: ");
n1 = parseFloat(readline.question("informe a 1 nota: "));
n2 = par... |
adriengivry/ElkCraft | Sources/ElkEngine/ElkTools/stdafx.h | <gh_stars>1-10
#pragma once
#pragma warning(disable : 4251)
#pragma warning(disable : 4275)
#include <string>
#include <iostream>
#include <fstream>
#include <string>
#include <ctime>
#include <sstream>
#include <unordered_map>
#include <filesystem>
#include <memory>
#include <type_traits>
#include <typeinfo>
#includ... |
extension/ask | app/models/question_event.rb | # === COPYRIGHT:
# Copyright (c) North Carolina State University
# Developed with funding for the National eXtension Initiative.
# === LICENSE:
#
# see LICENSE file
class QuestionEvent < ActiveRecord::Base
# includes
include MarkupScrubber
include CacheTools
extend YearWeek
# attributes
serialize :updat... |
maledicente/cursos | Data_Science/Neural Networks from Scratch/P.9 Introducing Optimization and derivatives.py | <filename>Data_Science/Neural Networks from Scratch/P.9 Introducing Optimization and derivatives.py
import numpy as np
from nnfs.datasets import vertical_data, spiral_data
import nnfs
nnfs.init()
# Create dataset
X, y = spiral_data(samples = 100 , classes = 3)
# Dense layer
class Layer_Dense:
# Layer initialization... |
PublicHealthEngland/data_management_system | db/migrate/20160913110454_add_attachment_attachment_to_project_attachments.rb | class AddAttachmentAttachmentToProjectAttachments < ActiveRecord::Migration[5.0]
def change
add_column :project_attachments, :attachment_file_name, :string
add_column :project_attachments, :attachment_content_type, :string
add_column :project_attachments, :attachment_file_size, :integer
add_colu... |
manvis/IYFEngine | components/common/src/io/File.cpp | // The IYFEngine
//
// Copyright (C) 2015-2018, <NAME>
//
// 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 copyright notice, this list of
// conditions and ... |
nprail/ghost-static-site-generator | src/constants/OPTIONS.js | <gh_stars>100-1000
const path = require('path');
const { argv } = require('yargs');
const { execSync } = require('child_process');
const DOMAIN = argv.domain || 'http://localhost:2368';
const URL = argv.url || 'http://localhost:2368';
const IGNORE_ABSOLUTE_PATHS = argv.ignoreAbsolutePaths || false;
const STATIC_DIRECT... |
ICESat2-SlideRule/sliderule | packages/core/DeviceReader.cpp | <gh_stars>1-10
/*
* Copyright (c) 2021, University of Washington
* 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 must retain the above copyright notice... |
aviweit/nfvo-drivers | msnoClient/src/main/java/it/nextworks/openapi/msno/model/ScaleToLevelData.java | <gh_stars>0
/*
* SOL005 - NS Lifecycle Management Interface
* SOL005 - NS Lifecycle Management Interface IMPORTANT: Please note that this file might be not aligned to the current version of the ETSI Group Specification it refers to and has not been approved by the ETSI NFV ISG. In case of discrepancies the published ... |
crawld/parcoords-es | src/api/commonScale.js | <reponame>crawld/parcoords-es<filename>src/api/commonScale.js
import { extent } from 'd3-array';
const commonScale = (config, pc) =>
function(global, type) {
const t = type || 'number';
if (typeof global === 'undefined') {
global = true;
}
// try to autodetect dimensions and create scales
... |
TheFactory22/RBotFirmware | PlatformIO/src/RobotMotion/RobotController.cpp | <reponame>TheFactory22/RBotFirmware
// RBotFirmware
// <NAME> 2016-18
#include "RobotController.h"
#include "ConfigBase.h"
#include "RdJson.h"
#include "RobotCommandArgs.h"
// Robot types
#include "Robots/RobotMugBot.h"
#include "Robots/RobotGeistBot.h"
#include "Robots/RobotHockeyBot.h"
#include "Robots/RobotSandTab... |
ajitkhaparde/trex-core | src/dpdk/drivers/net/bnxt/tf_core/tf_tbl.c | <reponame>ajitkhaparde/trex-core
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2019-2021 Broadcom
* All rights reserved.
*/
/* Truflow Table APIs and supporting code */
#include <rte_common.h>
#include "tf_tbl.h"
#include "tf_common.h"
#include "tf_rm.h"
#include "tf_util.h"
#include "tf_msg.h"
#include... |
mamh-java/opengrok-plugin | src/main/java/org/opengrok/indexer/analysis/javascript/JavaScriptLexer.java | <reponame>mamh-java/opengrok-plugin
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* See LICENSE.txt included in this distribution for the spec... |
StevenCode/ovirt-engine | backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/v3/adapters/V3HighAvailabilityOutAdapter.java | <gh_stars>0
/*
* Copyright oVirt Authors
* SPDX-License-Identifier: Apache-2.0
*/
package org.ovirt.engine.api.v3.adapters;
import org.ovirt.engine.api.model.HighAvailability;
import org.ovirt.engine.api.v3.V3Adapter;
import org.ovirt.engine.api.v3.types.V3HighAvailability;
public class V3HighAvailabilityOutAdapte... |
mbarall/opensha-dev | src/scratch/kevin/ucerf3/inversion/Stampede2CoresPerNodePlot.java | package scratch.kevin.ucerf3.inversion;
import java.awt.Color;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.jfree.chart.plot.DatasetRenderingOrder;
import org.jfree.data.Rang... |
eroma2014/seagrid-rich-client | src/main/java/gamess/IncompatibilityPackage/RequiresIncompatibility.java | <filename>src/main/java/gamess/IncompatibilityPackage/RequiresIncompatibility.java<gh_stars>1-10
package gamess.IncompatibilityPackage;
import java.util.Enumeration;
import gamess.GlobalParameters;
import gamess.IncompatibilityPackage.Restriction.IbuildList;
import gamess.IncompatibilityPackage.Restriction.RequiredIf... |
vjeuel/G-well_Portfolio-React | lib/node_modules/firebase-tools/lib/functionsDeployHelper.js | <filename>lib/node_modules/firebase-tools/lib/functionsDeployHelper.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.printTriggerUrls = exports.printSuccess = exports.logAndTrackDeployStats = exports.toJob = exports.getFunctionLabel = exports.getRegion = exports.getTopicName = exp... |
Northshoot/RavelLang | src/ai/harmony/ravel/compiler/ir/untyped/IfStatement.java | package ai.harmony.ravel.compiler.ir.untyped;
import org.antlr.v4.runtime.ParserRuleContext;
/**
* Created by gcampagn on 1/20/17.
*/
public class IfStatement extends Instruction {
public final int cond;
public final Block iftrue;
public final Block iffalse;
public IfStatement(ParserRuleContext def... |
atomixnmc/anigo-editor-react | src/components/User/User-Form/User-Form-New-Row.js | <gh_stars>0
import React, { Component, } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { reduxForm, Field, formValueSelector, submit } from 'redux-form';
import { ButtonGroup, Button, DropdownButton, Dropdown } from 'react-boo... |
dushmis/linux-pam | libpam/pam_handlers.c | <filename>libpam/pam_handlers.c
/* pam_handlers.c -- pam config file parsing and module loading */
/*
* created by <NAME>.
* Currently maintained by <NAME> <<EMAIL>>
*
*/
#include "pam_private.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcn... |
juseongkr/BOJ | acmicpc/2164.cpp | #include <iostream>
#include <deque>
using namespace std;
int main()
{
deque<int> q;
int n;
scanf("%d", &n);
for (int i=1; i<=n; ++i)
q.push_back(i);
while (q.size() != 1) {
q.pop_front();
int t = q.front();
q.pop_front();
q.push_back(t);
}
printf("%d\n", q.front());
return 0;
}
|
Tmplt/daredevil-small | refs/platform/pal/ic/src/ic_pal.c | /*
* Copyright 2017 NXP
* All rights reserved.
*
* THIS SOFTWARE IS PROVIDED BY NXP "AS IS" AND ANY EXPRESSED OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL NXP OR ITS CONTRIBUTORS... |
gabrielnido/FossilsArcheologyRevival | src/main/java/fossilsarcheology/server/item/AncientHelmetItem.java | <gh_stars>10-100
package fossilsarcheology.server.item;
import fossilsarcheology.Revival;
import fossilsarcheology.server.api.DefaultRenderedItem;
import fossilsarcheology.server.tab.FATabRegistry;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.inventory.EntityEquipmentSlot;
import net.minecraft.it... |
couchbaselabs/talend-components | services/components-api-service-rest/src/test/java/org/talend/components/service/rest/impl/RuntimeControllerImplTest.java | <filename>services/components-api-service-rest/src/test/java/org/talend/components/service/rest/impl/RuntimeControllerImplTest.java<gh_stars>1-10
//==============================================================================
//
// Copyright (C) 2006-2017 Talend Inc. - www.talend.com
//
// This source code is availabl... |
PY-GZKY/fastapi-crawl-admin | backend/app/api/api_v1/core/tools/websocketDemo.py | import time
from fastapi import FastAPI
from fastapi.testclient import TestClient
from fastapi.websockets import WebSocket,WebSocketDisconnect
app = FastAPI()
@app.get("/")
async def read_main():
return {"msg": "Hello World"}
@app.websocket_route("/ws")
async def websocket(websocket: WebSocket):
await web... |
ministryofjustice/hmpps-book-secure-move-api | spec/lib/nomis_client/court_cases_spec.rb | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe NomisClient::CourtCases, with_nomis_client_authentication: true do
describe '.get' do
let(:booking_id) { '1495077' }
let(:filter_params) { nil }
it 'calls the nomis client with the correct booking id' do
described_class.get(booki... |
cisco-ie/cisco-proto | codegen/go/xr/62x/cisco_ios_xr_pmengine_oper/performance_management_history/global/periodic/otu_history/otu_port_histories/otu_port_history/otu_minute15_history/otu_minute15otn_histories/otu_minute15otn_history/otu_minute15otn_time_line_instances/otu_minute15otn_time_line_instance/pm_otn_paras.pb.go | <gh_stars>1-10
/*
Copyright 2019 Cisco 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 agreed to in writ... |
hyunjoy/scripts | qemu/include/hw/usb/hcd-dwc3.h | <filename>qemu/include/hw/usb/hcd-dwc3.h
/*
* QEMU model of the USB DWC3 host controller emulation.
*
* Copyright (c) 2020 Xilinx Inc.
*
* Written by <NAME><<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softw... |
HelpGiveThanks/Library | scripts/tagMenu/sortTestOrBrainstormTaggedLearnRecords.c | <gh_stars>0
July 21, 2018 14:36:22 Library.fmp12 - sortTestOrBrainstormTaggedLearnRecords -1-
tagMenu: sortTestOrBrainstormTaggedLearnRecords
#
#Used by the following scripts:
#reportTagInfo
#addTagToMainRecord
#sortButtonLearnLayouts
#loadItemRecordForBrainstormTagMenu
#loadTestSectionAndTaggedLearnRecords
#
#Perform ... |
peturingi/opae-sdk | tools/libboard/board_n5010/board_n5010.c | <reponame>peturingi/opae-sdk<gh_stars>100-1000
// Original work Copyright(c) 2019-2020, Intel Corporation
// Modifications Copyright(c) 2021, <NAME>
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Re... |
puckel/dgr | vendor/github.com/rkt/rkt/tests/rkt_dns_test.go | <reponame>puckel/dgr<gh_stars>1000+
// Copyright 2016 The rkt 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 req... |
isabella232/RDepot | app/src/test/java/eu/openanalytics/rdepot/test/fixture/RRepositoryTestFixture.java | /**
* R Depot
*
* Copyright (C) 2012-2021 Open Analytics NV
*
* ===========================================================================
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Apache License as published by
* The Apache Software Foundation, eithe... |
meta-quick/opa | internal/jwx/jws/verify/ecdsa_test.go | <reponame>meta-quick/opa<gh_stars>0
package verify
import (
"testing"
"github.com/meta-quick/opa/internal/jwx/jwa"
)
func TestECDSAVerify(t *testing.T) {
type dummyStruct struct {
dummy1 int
dummy2 float64
}
dummy := &dummyStruct{1, 3.4}
t.Run("ECDSA Verifier Creation Error", func(t *testing.T) {
_, err ... |
Noxware/primo | oldCode/src/game/collections/KillList.js | // @ts-check
const PlayerCollection = require('./PlayerCollection');
/* LAZY IMPLEMENTATION */
class KillList extends PlayerCollection {}
module.exports = KillList; |
michaeldimchuk/objectify-tools | objectify-processor/src/main/java/io/md/code/objectify/dao/TypeCache.java | <gh_stars>0
package io.md.code.objectify.dao;
import java.util.Map;
import javax.lang.model.element.TypeElement;
import javax.lang.model.type.TypeMirror;
import javax.lang.model.util.Elements;
import com.google.common.collect.ImmutableMap;
import com.googlecode.objectify.Key;
import com.googlecode.objectify.Ref;
cl... |
nissshh/sawtooth-java-wrapper | sawtooth-java-wrapper-client/src/main/java/com/mycompany/blockchain/sawtooth/client/IEventProcessor.java | /**
*
*/
package com.mycompany.blockchain.sawtooth.client;
import com.google.protobuf.ByteString;
import com.google.protobuf.InvalidProtocolBufferException;
import com.mycompany.blockchain.sawtooth.core.service.IAddressBuilder;
import com.mycompany.blockchain.sawtooth.loan.protobuf.Loan;
/**
*
* Implemented cla... |
neptune076/Coisas | golang/Curso - Aprenda Go/Nivel 9/1/main.go | package main
import (
"fmt"
"sync"
)
func main() {
wg := &sync.WaitGroup{}
wg.Add(2)
go func() {
defer wg.Done()
fmt.Println("Estou na primeira goroutine!")
}()
go func() {
defer wg.Done()
fmt.Println("Estou na segunda goroutine!")
}()
wg.Wait()
}
|
policygenius/athenaeum | table_of_contents/components.js | <gh_stars>1-10
module.exports = {
name: 'Components',
sections: [
{
name: 'Atoms',
components: 'src/atoms/**/index.js'
},
{
name: 'Molecules',
sections: [
{
name: 'Asides',
components: 'src/molecules/asides/**/index.js'
},
{
n... |
thinwind/code-lab | java/jvm/asmtools/src/org/openjdk/asmtools/jdis/RecordData.java | <filename>java/jvm/asmtools/src/org/openjdk/asmtools/jdis/RecordData.java
/*
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of t... |
Havoc-OS/androidprebuilts_go_linux-x86 | test/fixedbugs/issue15141.go | // compile
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
func main() {
a := f(1, 99)
b := g(0xFFFFFFe, 98)
c := h(0xFFFFFFe, 98)
println(a[1], b[1], c[1], a[0xFFFFFFe], b[0xFFFFFFe], c[0x... |
n8fr8/Smack | smack-extensions/src/main/java/org/jivesoftware/smackx/muc/packet/MUCUser.java | <filename>smack-extensions/src/main/java/org/jivesoftware/smackx/muc/packet/MUCUser.java<gh_stars>1-10
/**
*
* Copyright 2003-2007 Jive Software.
*
* 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 Li... |
brest-java-course-summer-2019/ihnat-misiyuk | car-repair/service/src/main/java/com/epam/brest/summer/courses2019/service/EmployeeService.java | package com.epam.brest.summer.courses2019.service;
import com.epam.brest.summer.courses2019.model.Employee;
import java.util.List;
/**
* Employee Service Interface.
*/
public interface EmployeeService {
/**
* Get all employees.
*
* @return list of all employees
*/
List<Employee> findAl... |
patakapata/KZEAddon-1.16.4 | src/main/java/com/theboss/kzeaddonfabric/events/KeyPressingEvents.java | <reponame>patakapata/KZEAddon-1.16.4
package com.theboss.kzeaddonfabric.events;
import com.theboss.kzeaddonfabric.KZEAddon;
import com.theboss.kzeaddonfabric.utils.ModUtils;
import com.theboss.kzeaddonfabric.utils.VanillaUtils;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.option.KeyBinding;... |
Outerra/anteworld | include/ot/env.h |
#ifndef _OT_ENV_H_
#define _OT_ENV_H_
#include "glm/glm_meta.h"
#include <comm/binstream/binstream.h>
#include <comm/metastream/metastream.h>
namespace ot {
///Atmospheric parameters
struct atmospheric_params
{
enum {
SUN_COLOR = 0x01,
RAYLEIGH ... |
mjreid/speedcentral | sc-app/server/src/main/scala/com/speedcentral/lmp/LmpConstants.scala | <gh_stars>1-10
package com.speedcentral.lmp
object LmpConstants {
val EndOfDemoMarker: Byte = 0x80.toByte
val BytesPerTic: Int = 4
val TicsPerSecond: Int = 35
object EngineVersion {
val doom_19: Byte = 109.toByte
val boom: Byte = 202.toByte
}
object Doom19Indexes {
val skillLevel = 1
val ... |
mmacphail/adventures | src/main/java/com/macphail/adventures/business/game/service/AdventureService.java | <gh_stars>0
package com.macphail.adventures.business.game.service;
import com.macphail.adventures.business.game.api.AdventureApi;
import com.macphail.adventures.business.game.model.adventure.Adventure;
import com.macphail.adventures.business.game.model.adventure.Player;
import com.macphail.adventures.business.game.mo... |
RidmiR/micro-integrator | integration/mediation-tests/tests-service/src/test/java/org/wso2/carbon/esb/proxyservice/test/proxyservices/ESBJAVA4540PinnedServerParameterTestCase.java | /*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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.... |
E-C-Group/jsip | jain-sip/src/test/java/co/ecg/jain_sip/tck/msgflow/MessageFlowHarness.java | <gh_stars>0
/*
* Conditions Of Use
*
* This software was developed by employees of the National Institute of
* Standards and Technology (NIST), and others.
* This software is has been contributed to the public domain.
* As a result, a formal license is not needed to use the software.
*
* This software is provided "AS I... |
mayee/dragonshard | dragonshard-core/src/main/java/net/dragonshard/dsf/core/toolkit/UrlUtils.java | <reponame>mayee/dragonshard
/*
* Copyright 1999-2018 dragonshard.net.
* 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
* Unles... |
Microsoft/mu_basecore | PolicyServicePkg/Samples/PolicyInterface/PolicySampleDxe.c | <reponame>Microsoft/mu_basecore
/** @file
Implements sample policy for DXE environment.
Copyright (c) Microsoft Corporation
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Uefi.h>
#include <Library/UefiLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/DebugLib.h>
#in... |
dalisoft/dev-env | backend/express/src/middlewares/body-null-fix.js | <filename>backend/express/src/middlewares/body-null-fix.js<gh_stars>1-10
/* eslint-disable no-continue, no-restricted-syntax, guard-for-in */
const normalizeProperties = ['body', 'params'];
export default (req, res, next) => {
for (const property of normalizeProperties) {
const value = req[property];
for (c... |
yhexie/mrpt | samples/imageFFT/test.cpp | /* +---------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| ... |
bhits/pcm | pcm/src/main/java/gov/samhsa/c2s/pcm/infrastructure/VssService.java | package gov.samhsa.c2s.pcm.infrastructure;
import gov.samhsa.c2s.pcm.infrastructure.dto.ValueSetCategoryDto;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import java.util.List;
... |
Tomymanoukian/AyPIII_TP2 | src/main/java/edu/fiuba/algo3/vista/Layouts/LayoutVerdaderoFalso.java | package edu.fiuba.algo3.vista.Layouts;
import edu.fiuba.algo3.controlador.BotonEnviarHandler;
import edu.fiuba.algo3.modelo.Jugador;
import edu.fiuba.algo3.modelo.ManejadorDeTurnos;
import edu.fiuba.algo3.modelo.Preguntas.VerdaderoFalso;
import edu.fiuba.algo3.modelo.Respuestas.RespuestaUnica;
import javafx.animation.... |
CaelestisZ/HeraQ | security/samsung/five/five_state.c | /*
* FIVE State machine
*
* Copyright (C) 2017 Samsung Electronics, Inc.
* <NAME>, <<EMAIL>>
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This pro... |
j-verse/terser | test/compress/inline.js | <reponame>j-verse/terser<gh_stars>1-10
inline_within_extends_1: {
options = {
evaluate: true,
inline: 3,
passes: 1,
reduce_funcs: true,
reduce_vars: true,
side_effects: true,
unused: true,
}
input: {
(function() {
function foo(foo_b... |
cuttlefish/geogig | src/web/api/src/test/java/org/locationtech/geogig/rest/geopkg/GeoPackageExportIntegrationTest.java | /* Copyright (c) 2016 Boundless and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Distribution License v1.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/edl-v10.html
*
* Contribut... |
chenhaoaixuexi/cloudCourse | roncoo-education-course/roncoo-education-course-service/src/main/java/com/roncoo/education/course/service/dao/impl/CourseChapterAuditDaoImpl.java | <gh_stars>1-10
package com.roncoo.education.course.service.dao.impl;
import com.roncoo.education.course.service.dao.CourseChapterAuditDao;
import com.roncoo.education.course.service.dao.impl.mapper.CourseChapterAuditMapper;
import com.roncoo.education.course.service.dao.impl.mapper.entity.CourseChapterAudit;
impo... |
RafaelMiquelino/okta-signin-widget | src/EnrollSymantecVipController.js | /*!
* Copyright (c) 2015-2016, Okta, Inc. and/or its affiliates. All rights reserved.
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
*
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
* Unless required by ... |
sh4d1t0/ecommerce-react | webpack/configuration/devtool.js | // enviroment
const isDevelopment = process.env.NODE_ENV !== 'production'
module.exports = () =>
!isDevelopment ? 'cheap-source-map' : 'inline-source-map'
|
ANDROFAST/delivery_articulos | delivery/app-release_source_from_JADX/com/google/android/gms/measurement/internal/zzh.java | package com.google.android.gms.measurement.internal;
import com.google.android.gms.common.internal.zzx;
class zzh {
final String mName;
final String zzaRd;
final long zzaSF;
final long zzaSG;
final long zzaSH;
zzh(String str, String str2, long j, long j2, long j3) {
boolean z = true;
... |
vtfn/tolb | src/string/replace.js | import curry3 from '../_internal/curry3';
/**
* Invokes `String.prototype.replace` on a given string.
*
* @function
* @param {(string|RegExp)} search - The first argument to `String.prototype.replace`
* @param {string} replacement - The second argument to `String.prototype.replace`
* @param {string} str - The st... |
avoinov-k/ibmcloud-storage-volume-lib | lib/utils/reasoncode/reason_code.go | <gh_stars>1-10
/*******************************************************************************
* IBM Confidential
* OCO Source Materials
* IBM Cloud Container Service, 5737-D43
* (C) Copyright IBM Corp. 2017, 2018 All Rights Reserved.
* The source code for this program is not published or otherwise divested of
... |
mbari-media-management/vars-kb | org.mbari.kb.ui/src/main/java/org/mbari/kb/ui/dialogs/AddConceptNameDialog2.java | /*
* @(#)AddConceptNameDialog2.java 2009.10.28 at 11:03:10 PDT
*
* Copyright 2009 MBARI
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See t... |
uio-bmi/graph_peak_caller | tests/legacy/test_snarlmap.py | import pytest
if pytest.__version__ < "3.0.0":
pytest.skip()
import numpy as np
import unittest
import offsetbasedgraph as obg
# from test_snarls import snarl_graph2
# from graph_peak_caller.control.linearsnarls import \
# UnmappedIndices, LinearPileup
# from graph_peak_caller.control.snarlmaps import LinearSn... |
T0shik/Tricking-Royal | Client/vue-client/src/lang/ru/watch.js | <reponame>T0shik/Tricking-Royal<gh_stars>10-100
export default {
return: "Вернуться к Батлам",
signInToVote: "Зарегистрируетесь, что бы проголосовать",
matchInTribunal: "Матч сейчас в трибунале"
} |
leiradel/barebones-rpi | barebones07/syscalls.c | #include <stdint.h>
#include <unistd.h>
#include <sys/stat.h>
#include "aux.h"
// Extend the heap space at the end of the .bss section.
void* _sbrk(intptr_t increment) {
extern char heap_start;
static const char* start = &heap_start;
const char* prev = start;
// Keep memory returned by _sbrk 16-byte aligned.... |
Bhaskers-Blu-Org2/azure-shortcuts-for-java | src/com/microsoft/azure/shortcuts/resources/samples/ResourcesSample.java | /**
* Copyright (c) Microsoft Corporation
*
* All rights reserved.
*
* MIT License
*
* 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 r... |
54wall/LiYuJapanese | mvp/MvpLiYu/app/src/main/java/pri/weiqiang/liyujapanese/mvp/model/newsapi/NewsAPIFragmentModelImpl.java | <reponame>54wall/LiYuJapanese
package pri.weiqiang.liyujapanese.mvp.model.newsapi;
import android.util.Log;
import java.util.List;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.disposables.Disposable;
import io.reactivex.functions.Consumer;
import io.reactivex.schedulers.Schedulers;
i... |
pitbox46/graaljs-forge | src/main/java/com/oracle/truffle/js/parser/internal/ir/debug/PrintVisitor.java | /*
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* The Universal Permissive License (UPL), Version 1.0
*
* Subject to the condition set forth below, permission is hereby granted to any
* person obtaining a copy of ... |
Markus-Schwer/quarkus | extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/globals/TemplateGlobalTest.java | package io.quarkus.qute.deployment.globals;
import static org.junit.jupiter.api.Assertions.assertEquals;
import javax.inject.Inject;
import org.jboss.shrinkwrap.api.asset.StringAsset;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;
import io.quarkus.qute.Qute;
import io.... |
yuriy-litvinenko/job4j | 02_junior/junior_chapter_01/src/main/java/ru/job4j/generic/AbstractStore.java | <filename>02_junior/junior_chapter_01/src/main/java/ru/job4j/generic/AbstractStore.java
package ru.job4j.generic;
public abstract class AbstractStore<T extends Base> implements Store<T> {
private SimpleArray<T> values;
AbstractStore(int size) {
values = new SimpleArray<>(size);
}
@Override
... |
whispeer/whispeerNode | includes/mailer.js | <filename>includes/mailer.js
"use strict";
var nodemailer = require("nodemailer");
var User = require("./user");
var configManager = require("./configManager");
var config = configManager.get();
var client = require("./redisClient");
var socketDataCreator = require("./socketData");
var step = require("step");
var h ... |
jercas/offer66-leetcode-newcode | toTheMoon/leetcode_016_ThreeSumClosest.py | <reponame>jercas/offer66-leetcode-newcode
# -*- coding: utf-8 -*-
"""
Created on Thu May 16 17:15:35 2019
@author: jercas
"""
"""
leetcode-16: 最接近三数之和 MEDIUM
'数组' '双指针'
给定一个包括 n 个整数的数组 nums 和 一个目标值 target。找出 nums 中的三个整数,使得它们的和与 target 最接近。返回这三个数的和。
假定每组输入只存在唯一答案。
"""
"""
Thinking:
0: 类同No.15 ThreeSum, 对输入数组的遍历方... |
jhullfly/BetterFriendsServer | public/modules/core/controllers/verifying.client.controller.js | <reponame>jhullfly/BetterFriendsServer<gh_stars>0
/* global angular */
'use strict';
angular.module('core').controller('VerifyingController', ['$scope', '$state', '$stateParams', 'Auth',
function($scope, $state, $stateParams, Auth) {
Auth.register($stateParams.confirmCode).then(function(result) {
if (result... |
bobvodka/GameTextureLoaderV1 | src/Devices/DeviceProxy.cpp | // Code for the device proxy class
#include "DeviceBase.hpp"
#include <gtl/DeviceProxy.hpp>
namespace GameTextureLoader
{
namespace Devices
{
std::streamsize DeviceProxy::read(char* s, std::streamsize n)
{
return dev_->read(s,n);
}
std::streamsize DeviceProxy::write(const char* s, std::streamsize n)
{
... |
iselagb/ui-circulation | test/bigtest/tests/circulation-rules-editor/pane-ui-test.js | import {
beforeEach,
describe,
it,
afterEach,
} from '@bigtest/mocha';
import { expect } from 'chai';
import { kebabCase } from 'lodash';
import { Response } from 'miragejs';
import setupApplication from '../../helpers/setup-application';
import circulationRules from '../../interactors/circulation-rules-editor... |
SpeedOfMagic/CompetitiveProgramming | SoundHound/18-E.cpp | /** MIT License Copyright (c) 2018 <NAME> **/
#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("Ofast")
template<typename T> using v = vector<T>;
#define int long long
typedef long double ld;
typedef string str;
typedef vector<int> vint;
#define rep(a, l, r) for(int a = (l); a < (r); a++)
#d... |
antkmsft/azure-sdk-for-go | services/authorization/mgmt/2020-10-01/authorization/roleassignmentschedulerequests.go | package authorization
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regen... |
IroniX2/python-exercises | session4/exercise1.py | <reponame>IroniX2/python-exercises
# Ex 1: Alphabet List Comprehensions
#
# Create a list of capital letters in the english alphabet
#
# Create a list of capital letter from the english aplhabet,
# but exclude 4 with the Unicode code point of either 70, 75, 80, 85.
#
# Create a list of capital letter from from the en... |
AlexanderBrevig/emu-jukebox | src/audio/EmuEqualizer.cpp | <filename>src/audio/EmuEqualizer.cpp
//
// Created by robin on 16.01.19.
//
#include "EmuEqualizer.h"
ebox::EmuEqualizer::EmuEqualizer()
{
}
ebox::EmuEqualizer::EmuEqualizer(Music_Emu *emu)
{
initialize(emu);
}
void ebox::EmuEqualizer::draw()
{
if(m_emu != nullptr)
{
float treble = static_cast<... |
databricks/genomics-pipelines | src/test/scala/org/bdgenomics/adam/models/FastSnpTableSuite.scala | <reponame>databricks/genomics-pipelines
/*
* Copyright 2019 The Glow 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
*
* Un... |
liuyangspace/java-test | src/javaee/servlet/ServletOutputStream.java | <reponame>liuyangspace/java-test
package javaee.servlet;
import javax.servlet.ServletResponse;
import java.io.IOException;
/**
* Provides an output stream for sending binary data to the client. A
* <code>ServletOutputStream</code> object is normally retrieved via the
* {@link ServletResponse#getOutputStream} metho... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.