repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
ScalablyTyped/SlinkyTyped | c/couchbase/src/main/scala/typingsSlinky/couchbase/mod/N1qlStringQuery.scala | package typingsSlinky.couchbase.mod
import typingsSlinky.couchbase.mod.N1qlQuery.Consistency
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
/**
* Class for holding a explici... |
Git-liuxiaoyu/cloud-hospital-parent | cloud-hospital-parent/cloud-hospital-nacos-parent/physical-exam-service/src/main/java/com/example/physicalexamservice/util/converter/PhysicalExamRecordEsPoConverter.java | <gh_stars>0
package com.example.physicalexamservice.util.converter;
import com.example.physicalexamservice.inlet.web.vo.PhysicalExamRecordVo;
import com.example.physicalexamservice.outlet.dao.es.po.PhysicalExamRecordEsPo;
import com.example.physicalexamservice.outlet.dao.mysql.po.PhysicalExamRecordMysqlPo;
import com.... |
roy-zz/spring | lecture-advanced/src/test/java/hello/advanced/trace/hellotrace/HelloTraceV1Test.java | <filename>lecture-advanced/src/test/java/hello/advanced/trace/hellotrace/HelloTraceV1Test.java<gh_stars>0
package hello.advanced.trace.hellotrace;
import hello.advanced.trace.TraceStatus;
import org.junit.jupiter.api.Test;
public class HelloTraceV1Test {
@Test
void begin_end() {
HelloTraceV1 trace = ... |
workflowfm/pew | pew-mongo/src/main/scala/com/workflowfm/pew/mongodb/MongoExecutor.scala | package com.workflowfm.pew.mongodb
import scala.annotation.tailrec
import scala.concurrent._
import scala.concurrent.duration._
import scala.util.Failure
import scala.util.Success
import scala.util.Try
import org.bson._
import org.bson.codecs._
import org.bson.codecs.configuration.{ CodecProvider, CodecRegistries, Co... |
honchardev/KPI | year_1/prog_base_sem2/tasks/threads/consumer.h | <gh_stars>0
#pragma once
#include "sharedObject.h"
// Structure do describe consumer thread.
typedef struct consumer_s consumer_t;
// Constructor.
consumer_t * consumer_new(sharedObj_t * shObj);
// Destructor.
void consumer_delete(consumer_t * self);
|
leleAichaoshen/MVPFrame | app/src/main/java/com/king/mvpframe/util/SP_Constant.java | <gh_stars>0
package com.king.mvpframe.util;
public class SP_Constant {
public static final String TOKEN = "token";
public static final String USER_INFO = "userInfo";
}
|
riematrix/crawler | lib/lightbox.js | function LightBox(){
this.lightbox = document.createElement("div");
this.dimmer = document.createElement("div");
this.content = document.createElement("div");
this.header = document.createElement("div");
var lightbox = this.lightbox;
lightbox.id = "lightbox";
var content = this.cont... |
FeGs/chocolat | app/models/project.rb | <reponame>FeGs/chocolat<gh_stars>0
class Project < ActiveRecord::Base
include ActiveUUID::UUID
has_many :api_keys
before_create :generate_api_keys!
ApiKey::SCOPES.each do |scope|
define_method scope do
api_keys.send(scope).permitted.take
end
end
def repository
Repository::Database.conne... |
minziappa/abilists | src/main/java/com/abilists/service/StartStopService.java | package com.abilists.service;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.abilists.bean.model.MIndustryMod... |
abdusabri/hsds-react | src/components/TagList/TagList.css.js | import styled from 'styled-components'
import { getColor } from '../../styles/utilities/color'
import { setFontSize } from '../../styles/utilities/font'
export const TagListUI = styled('div')`
max-height: 36px;
overflow: hidden;
will-change: contents;
&.is-showingAll {
max-height: none;
}
`
export cons... |
benrs/OOProject | AndroidCode/app/src/main/java/ca/qc/johnabbott/cs603/Controllers/ToolBox.java | package ca.qc.johnabbott.cs603.Controllers;
import ca.qc.johnabbott.cs603.Tools.*;
import ca.qc.johnabbott.cs603.Views.DrawingView;
import ca.qc.johnabbott.cs603.Views.PreviewView;
import android.graphics.Color;
public class ToolBox {
private DrawingView drawing;
private PreviewView preview;
private Tool... |
sgholamian/log-aware-clone-detection | NLPCCd/Hadoop/9590_2.java | //,temp,sample_5493.java,2,11,temp,sample_8652.java,2,8
//,3
public class xxx {
protected synchronized Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException {
if (LOG.isDebugEnabled()) {
log.info("loading class");
}
}
}; |
ezwang/pcr | api/courses/migrations/0001_initial.py | <reponame>ezwang/pcr
# -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-02-08 08:37
from __future__ import unicode_literals
import api.courses.models
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
... |
thibaut-mechdyne/ParaView | Remoting/Core/vtkProcessModuleConfiguration.h | <filename>Remoting/Core/vtkProcessModuleConfiguration.h<gh_stars>100-1000
/*=========================================================================
Program: ParaView
Module: vtkProcessModuleConfiguration.h
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/H... |
uuk0/mcpython-4 | chat/command/CommandItemInfo.py | <reponame>uuk0/mcpython-4
"""mcpython - a minecraft clone written in python licenced under MIT-licence
authors: uuk, xkcdjerry
original game by forgleman licenced under MIT-licence
minecraft by Mojang
blocks based on 1.14.4.jar of minecraft, downloaded on 20th of July, 2019"""
import globals as G
import chat.command.... |
mes-amis/checkr-ruby | lib/checkr/adverse_item.rb | module Checkr
class AdverseItem < APIResource
attribute :text
api_class_method :all, :get, '/v1/reports/:report_id/adverse_items', :constructor => :AdverseItemList
APIClass.register_subclass(self, 'adverse_item')
end
end
|
lmignot/sdp-portfolio | exercises/week11/src/main/scala/visitor/Visitor.scala | package visitor
trait Visitor {
def visit(element: HtmlElement): Unit
def visit(parentElement: HtmlParentElement): Unit
}
|
Oracle-Exam-Preparation/OCP | src/main/java/com/trl/_tests/lambdaExpression/t2/Test.java | package com.trl._tests.lambdaExpression.t2;
/**
* This test is taken from the book: OCP: Oracle ®
* Certified Professional
* Java® SE 8 Programmer II
* by <NAME>, <NAME>
* ... |
ming3000/leetcode_300 | 005_longestPalindrome.go | package leetcode_300
func longestPalindrome(s string) string {
if len(s) < 2 {
return s
}
dp := make([][]bool, len(s))
for i := 0; i < len(s); i++ {
dp[i] = make([]bool, len(s))
}
var ret string
for i := len(s) - 1; i >= 0; i-- {
for j := i; j < len(s); j++ {
if i == j {
dp[i][j] = true
} else ... |
mejuri-inc/flowcommerce_spree | app/serializers/api/v2/order_serializer_decorator.rb | <reponame>mejuri-inc/flowcommerce_spree
# frozen_string_literal: true
Api::V2::OrderSerializer.class_eval do
attribute :duty_included, if: proc { object.flow_io_attributes.present? }
attribute :vat_included, if: proc { object.flow_io_attributes.present? }
def duty_included
flow_io_order_attributes&.[]('duty... |
nathanbunker/project-tracker | src/main/java/org/openimmunizationsoftware/pt/servlet/BudgetServlet.java | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.openimmunizationsoftware.pt.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.SimpleDateFormat;
import java.util.Collections;
import java.util.Comparator;
import java.util.Dat... |
cfowles/mop-frontend | src/giraffe-ui/nav/nav.js | <reponame>cfowles/mop-frontend<gh_stars>0
import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import CloseSvg from '../svgs/close.svg'
export const MoNav = ({ isOpenMobile, children, close }) => (
<div
id='nav'
className={classNames('mo-nav', { 'nav--visible': is... |
vavramovski/spring_graalvm | spring-native-configuration/src/main/java/org/hibernate/validator/ValidatorHints.java | <filename>spring-native-configuration/src/main/java/org/hibernate/validator/ValidatorHints.java
/*
* Copyright 2019-2021 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 ... |
deitry/offline-alchemy | app/src/main/java/com/dmsvo/offlinealchemy/classes/db/Converters.java | package com.dmsvo.offlinealchemy.classes.db;
import android.arch.persistence.room.TypeConverter;
import android.support.annotation.IntegerRes;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* Created by DmSVo on 06.01.2018.
*/
public class Converters {
final String delimiter = ... |
letscode-17/Java | src/main/java/com/examplehub/maths/ArithmeticProgression.java | package com.examplehub.maths;
/** https://en.wikipedia.org/wiki/Arithmetic_progression */
public class ArithmeticProgression {
/**
* Get nth item.
*
* @param firstItem the initial term of an arithmetic progression.
* @param commonDifference the common difference of successive members.
* @param nth th... |
RishabhSrivastava1423/Java | src/test/java/com/thealgorithms/strings/AnagramsTest.java | package com.thealgorithms.strings;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
public class AnagramsTest {
@Test
public void isAlphabetical() {
String input1 = "late";
Anagrams anagrams = new Anagrams();
assertTrue(anagrams.approach1(input1, "t... |
ytxhao/CyberLink2Android | app/src/main/cpp/mupnp/src/src/mupnp/service.c | /******************************************************************
*
* mUPnP for C
*
* Copyright (C) <NAME> 2005
* Copyright (C) 2006 Nokia Corporation. All rights reserved.
*
* This is licensed under BSD-style license, see file COPYING.
*
******************************************************************/
#i... |
RaviH/micronaut-core | configurations/kafka/src/main/java/io/micronaut/configuration/kafka/metrics/KafkaProducerMetrics.java | /*
* Copyright 2017-2018 original 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 applicable law or agre... |
jensonwe/mvvmFX | mvvmfx-testing-utils/src/test/java/de/saxsys/mvvmfx/testingutils/jfxrunner/TestFxTest.java | package de.saxsys.mvvmfx.testingutils.jfxrunner;
import javafx.scene.Node;
import javafx.scene.Parent;
import javafx.scene.layout.VBox;
import org.junit.Test;
import org.loadui.testfx.GuiTest;
import static org.assertj.core.api.Assertions.assertThat;
/**
*
* This test is used to check the compatibility of {@link ... |
bieganski/gitlab-runner | common/mock_Network.go | // Code generated by mockery v1.1.0. DO NOT EDIT.
package common
import (
context "context"
io "io"
mock "github.com/stretchr/testify/mock"
)
// MockNetwork is an autogenerated mock type for the Network type
type MockNetwork struct {
mock.Mock
}
// DownloadArtifacts provides a mock function with given fields: ... |
akinfermo/elcarro-oracle-operator | oracle/controllers/common.go | <gh_stars>1-10
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law o... |
akrumel/f.lux | src/ArrayProperty.js | import { assert } from "akutils";
import createPropertyClass from "./createPropertyClass";
import ArrayShadow from "./ArrayShadow";
import IndexedApi from "./IndexedApi";
import IndexedShadowImpl from "./IndexedShadowImpl";
import Property from "./Property";
import MapProperty from "./MapProperty";
import StateType fr... |
trinibucc/TP2-AlgoBlocks | src/main/java/edu/fiuba/algo3/modelo/dibujo/Segmento.java | package edu.fiuba.algo3.modelo.dibujo;
import edu.fiuba.algo3.modelo.excepciones.SegmentoInvalidoError;
public class Segmento {
private Posicion inicio;
private Posicion fin;
public Segmento(Posicion inicio, Posicion fin){
if(inicio.esIgualA(fin)){
throw new SegmentoInvalidoError();
... |
liveqmock/platform-tools-idea | java/java-tests/testSrc/com/intellij/openapi/vfs/changes/PsiChangeTrackerTest.java | <reponame>liveqmock/platform-tools-idea
package com.intellij.openapi.vfs.changes;
import com.intellij.openapi.application.ex.PathManagerEx;
import com.intellij.psi.util.PsiFilter;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.openapi.vcs.FileStatus;
import com.intellij.openapi.vcs.changes.PsiCh... |
dardok/ossim-plugins | png/src/ossimPngWriterFactory.h | //----------------------------------------------------------------------------
//
// License: See top level LICENSE.txt file
//
// Author: <NAME>
//
// Description: Factory for OSSIM Portable Network Graphics (PNG) writer.
//----------------------------------------------------------------------------
// $Id: ossimPng... |
leifwalsh/mongo | src/mongo/db/storage/mmap_v1/record_store_v1_simple_test.cpp | <filename>src/mongo/db/storage/mmap_v1/record_store_v1_simple_test.cpp
// record_store_v1_simple_test.cpp
/**
* Copyright (C) 2014 MongoDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as publi... |
engagementgamelab/CivicSeed | client/code/data/data.tangrams.js | <reponame>engagementgamelab/CivicSeed<gh_stars>1-10
// Ideally, this is JSON, and is formatted as such
// But the browserify module bundled with socketstream
// does not currently support JSON, so we just
// manually attach it to module.exports
module.exports = [
{
"id": 0,
"name": "correct1",
"level": 0... |
FlorisSteenkamp/mat | node/to-scale-axis.js | import { length } from 'flo-bezier3';
import { traverseEdges } from './traverse-edges.js';
import { traverseVertices } from './traverse-vertices.js';
import { getLargestVertex } from './mat/get-largest-vertex.js';
import { getLeaves } from './mat/get-leaves.js';
import { cull } from './mat/to-scale-axis/cull.js';
impor... |
InNoHurryToCode/xray-162 | code/engine/xrGame/ai/monsters/bloodsucker/bloodsucker_state_capture_jump.h | <gh_stars>10-100
#pragma once
#include "../state.h"
//#include "../../../entitycondition.h"
template <typename _Object>
class CStateCaptureJumpBloodsucker : public CState<_Object> {
protected:
typedef CState<_Object> inherited;
typedef CState<_Object>* state_ptr;
public:
CStateCaptureJumpBloodsucker(_Obj... |
BinaryStudioAcademy/bsa-2021-mindbridge | backend/core/db/src/main/java/com/mindbridge/data/domains/usersAchievement/model/UsersAchievement.java | package com.mindbridge.data.domains.usersAchievement.model;
import com.mindbridge.data.domains.achievement.model.Achievement;
import com.mindbridge.data.domains.user.model.User;
import com.mindbridge.data.model.BaseAuditableEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
... |
dit4c/dit4c | dit4c-portal/app/controllers/InstanceController.scala | package controllers
import com.softwaremill.tagging._
import scala.concurrent.duration._
import play.api.mvc.Controller
import akka.util.Timeout
import play.api.mvc.Action
import domain.InstanceAggregate
import services.InstanceSharder
import scala.concurrent._
import akka.actor._
class InstanceController(
val in... |
onnoA/sample-collection | shop-common/src/main/java/com/onnoa/shop/common/distributed/primarykey/serialnumber/ISerialNumberGenerator.java | <reponame>onnoA/sample-collection
package com.onnoa.shop.common.distributed.primarykey.serialnumber;
import java.util.List;
/***
* 流水号生成器接口描述。<br>
* 注意:序列号模板和备注仅在第一创建时有效,用户初始化数据配置<br>
* 在第二次执行时,模板使用数据库中已有的,备注也不会被更新到数据库。
* @author 丁伟
* @date 2016年3月31日
* @version 1.0
*/
public interface ISerialNumberGenerator {... |
jack-education-org/das-qna-config | components/AutoSave.js | <filename>components/AutoSave.js
import { FormSpy } from "react-final-form";
import { useState, useEffect } from "react";
import styled from "styled-components";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faSave } from "@fortawesome/free-solid-svg-icons";
const AutoSaveHOC = ({ debounce... |
markrickert/teacup | spec/ios/child_controllers_spec.rb | describe 'Child view controllers' do
tests RootViewController
it 'should have the correct color' do
@controller.child_controller.view.backgroundColor.should == UIColor.yellowColor
end
end |
harfang3dadmin/harfang3d | harfang/foundation/sha1.cpp | /*
Copyright (c) 2011, <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following di... |
openGtsD/OpenGTS_2.5.8 | src/org/opengts/war/track/page/ForgotPassword.java | <filename>src/org/opengts/war/track/page/ForgotPassword.java
// ----------------------------------------------------------------------------
// Copyright 2007-2015, GeoTelematic Solutions, Inc.
// All rights reserved
// ----------------------------------------------------------------------------
//
// Licensed under th... |
p-koscielniak/hexagonjs | src/utils/date-localizer/index.js | import {
EventEmitter,
} from 'utils/event-emitter';
import {
preferences,
} from 'utils/preferences';
import {
userFacingText,
} from 'utils/user-facing-text';
import {
zeroPad,
} from 'utils/format';
import {
randomId,
range,
} from 'utils/utils';
import logger from 'utils/logger';
userFacingText({
... |
pikislabis/wizz-vis | app/serializers/api/v1/widget_multiserie_serializer.rb | class Api::V1::WidgetMultiserieSerializer < Api::V1::WidgetSerializer
end
|
npocmaka/Windows-Server-2003 | net/dhcp/server/server/endpoint.h | <reponame>npocmaka/Windows-Server-2003
/*++
Copyright (C) 1998 Microsoft Corporation
Module Name:
endpoint.h
Abstract:
endpoint structure.
Environment:
NT5 DHCP Server.
--*/
#ifndef ENDPOINT_H_INCLUDED
#define ENDPOINT_H_INCLUDED
typedef struct _ENDPOINT {
ENDPOINT_ENTRY IpTblE... |
moja-global/flint | Source/moja.modules.gdal/include/moja/modules/gdal/rasterreadergdal.h | #pragma once
#include "moja/datarepository/rasterreaderinterface.h"
#include "moja/modules/gdal/_modules.gdal_exports.h"
namespace moja {
namespace flint {
class SpatialLocationInfo;
} // namespace flint
namespace modules {
namespace gdal {
class GDAL_API MetaDataRasterReaderGDAL : public datarepository::MetaData... |
zealoussnow/chromium | tools/mac/power/power_sampler/sampling_controller_unittest.cc | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "tools/mac/power/power_sampler/sampling_controller.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "testing/gmoc... |
oonsamyi/flow | tests/ensure_parsed_no_saved_state/A.js | <reponame>oonsamyi/flow<filename>tests/ensure_parsed_no_saved_state/A.js<gh_stars>1000+
export var foo: string;
|
HilscherAutomation/netPI-netx-programming-examples | examples/sources/PacketHandlerECS.c | <reponame>HilscherAutomation/netPI-netx-programming-examples
/**************************************************************************************
Exclusion of Liability for this demo software:
The following software is intended for and must only be used for reference and in an
evaluation laboratory environmen... |
aliakseis/FVD | src/3rdparty/pythonqt/generated_cpp_54/com_trolltech_qt_multimedia/com_trolltech_qt_multimedia1.cpp | <filename>src/3rdparty/pythonqt/generated_cpp_54/com_trolltech_qt_multimedia/com_trolltech_qt_multimedia1.cpp
#include "com_trolltech_qt_multimedia1.h"
#include <PythonQtConversion.h>
#include <PythonQtMethodInfo.h>
#include <PythonQtSignalReceiver.h>
#include <QVariant>
#include <qabstractvideobuffer.h>
#include <qact... |
carl10086/dm-learnin | dm-fast/src/main/java/com/ysz/dm/fast/basic/juc/lock/LockStripedDm_002.java | package com.ysz.dm.fast.basic.juc.lock;
import com.google.common.util.concurrent.Striped;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.locks.Lock;
public class LockStripedDm_002 {
private static Striped<Lock> striped = Striped.lock(128);
public static void main(String[] args) {
/... |
suvinsnair/privacy-friendly-shopping-list | app/src/main/java/privacyfriendlyshoppinglist/secuso/org/privacyfriendlyshoppinglist/logic/product/business/domain/AutoCompleteLists.java | <gh_stars>10-100
package privacyfriendlyshoppinglist.secuso.org.privacyfriendlyshoppinglist.logic.product.business.domain;
import privacyfriendlyshoppinglist.secuso.org.privacyfriendlyshoppinglist.framework.utils.StringUtils;
import java.util.Set;
import java.util.TreeSet;
/**
* Description:
* Author: <NAME>
* Cr... |
mikaelvesavuori/acmecorp-potted-plants-components | src/tokens/colors.js | // THIS FILE IS AUTO-GENERATED BY FIGMAGIC. DO NOT MAKE EDITS IN THIS FILE! CHANGES WILL GET OVER-WRITTEN BY ANY FURTHER PROCESSING.
const colors = {
"black": "rgba(27, 25, 25, 1)",
"deepBlue": "rgba(20, 6, 62, 1)",
"purple": "rgba(85, 33, 232, 1)",
"gray": "rgba(89, 89, 89, 1)",
"white": "rgba(249, 246, 246, 1)"... |
leusonmario/2022PhDThesis | HikariCP/1bca94af9ec625f21d1b58ff10efb5be71ab87a6/randoop_6/RegressionTest38.java | <reponame>leusonmario/2022PhDThesis
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class RegressionTest38 {
public static boolean debug = false;
@Test
public void test19001() throws Throwable {
i... |
isi-dwade/guepard | sdk/core/flash/display/StageScaleMode.js | <reponame>isi-dwade/guepard
/*class flash.display.StageScaleMode*/
(function ()
{
"use strict";
var s = {};
s.__init__ = function ()
{
/*public*/
this/*const*/.EXACT_FIT/*String*/ = "exactFit";
/*public*/
this/*const*/.NO_BORDER/*String*/ = "noBorder";
/*public*/
this/*const*/.NO_SC... |
jasonivey/scripts | validate_lsdvr_tests.py | <filename>validate_lsdvr_tests.py
import argparse
import datetime
from contextlib import closing
import gzip
import json
import os
import sys
import socket
import traceback
import urllib.request, urllib.error, urllib.parse
import lsdvr_http_api
_VERBOSE_OUTPUT = False
_DATE_TIME_CONVERSION_FMT = '%Y-%m-%d %H:%M:%S'... |
niello/deusexmachina | DEM/Game/src/AI/Movement/SteerAction.h | <gh_stars>10-100
#pragma once
#include <AI/Navigation/TraversalAction.h>
#include <Events/EventNative.h>
// Provides steering traversal action, processed by the character controller
// or similar components. It is the most common case, simple movement.
namespace DEM::AI
{
class Steer : public Events::CEventNative
{
... |
natura-cosmeticos/node-base | src/commands/authentication-command.js | <filename>src/commands/authentication-command.js<gh_stars>1-10
const { EventEmitter } = require('events');
const BaseCommand = require('./base-command');
const { unauthorized } = require('../base-events');
const invalidAuthorizationError = {
message: 'authorization.invalid',
};
module.exports = class Authenticatio... |
caetanosauer/zero | src/cmd/base/command.cpp | <filename>src/cmd/base/command.cpp
#include "command.h"
#include "kits_cmd.h"
#include "genarchive.h"
#include "mergeruns.h"
#include "agglog.h"
#include "logcat.h"
#include "verifylog.h"
#include "truncatelog.h"
#include "propstats.h"
#include "logpagestats.h"
#include "loganalysis.h"
#include "dbscan.h"
#include "ad... |
hahwul/mad-metasplo | archive/exploits/windows/remote/17692.rb | <filename>archive/exploits/windows/remote/17692.rb
# Exploit Title: Solarftp v2.1.2 PASV buffer overflow
# Date: Aug 17, 2011
# Author: qnix
# Software Link: http://solarftp.com/files/solarftps-setup.exe
# Version: 2.1.2
# Tested on: Windows XP Universal
# Detailed info: http://0x80.org/blog/?p=545
require 'ms... |
test-coverage-enforce-bot/wso2-ode | axis2/src/test/java/org/apache/ode/axis2/httpbinding/HttpMethodConverterTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
cacristo/ceos-project | jexan/src/test/java/net/ceos/project/poi/annotated/bean/stock/market/StockMarket.java | <filename>jexan/src/test/java/net/ceos/project/poi/annotated/bean/stock/market/StockMarket.java<gh_stars>0
/**
* Copyright 2016 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
... |
nettee/leetcode | solutions/0437.path-sum-iii/0437.path-sum-iii.1570968392.cpp | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
int pathSum(TreeNode* root, int sum) {
return rootPathSum(root, sum)
+ nonR... |
TangXiaofui/LeetCode-in-Go | Algorithms/0885.spiral-matrix-iii/spiral-matrix-iii_test.go | <gh_stars>1000+
package problem0885
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
)
// tcs is testcase slice
var tcs = []struct {
R int
C int
r0 int
c0 int
ans [][]int
}{
{
1,
4,
0,
0,
[][]int{{0, 0}, {0, 1}, {0, 2}, {0, 3}},
},
{
5,
6,
1,
4,
[][]int{{1, 4}, {1,... |
aelchao/ego | ego-portal/src/main/java/com/ego/portal/controller/PageController.java | package com.ego.portal.controller;
import com.ego.portal.service.TbContentService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.annotation.Resource;
@Controller
public class PageController {
@Re... |
omenocal/snowplow | 3-enrich/scala-common-enrich/src/main/scala/com.snowplowanalytics.snowplow.enrich/common/enrichments/registry/CookieExtractorEnrichment.scala | <reponame>omenocal/snowplow<filename>3-enrich/scala-common-enrich/src/main/scala/com.snowplowanalytics.snowplow.enrich/common/enrichments/registry/CookieExtractorEnrichment.scala
/*
* Copyright (c) 2012-2018 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Ver... |
Pandinosaurus/pyquickhelper | _unittests/ut_pycode/test_profiling.py | """
@brief test tree node (time=5s)
"""
import sys
import os
import unittest
import warnings
import time
try:
from pstats import SortKey
except ImportError:
# python < 3.7
from pyquickhelper.pycode.profiling import SortKey
import pandas
from pyquickhelper.pycode import ExtTestCase
from pyquickhelper.pa... |
TomConnery/GrowthAPI | src/main/java/tomconn/growthapi/implementations/growthprofile/probability/math/function/container/SingleValueContainer.java | package tomconn.growthapi.implementations.growthprofile.probability.math.function.container;
import tomconn.growthapi.interfaces.growthprofile.probability.math.function.container.SingleValueDomainContainer;
import java.util.Objects;
/**
* Default implementation of {@link SingleValueDomainContainer}
*
* @param <T>... |
amco/mutant | spec/unit/mutant/differ_spec.rb | <gh_stars>1-10
# encoding: utf-8
require 'spec_helper'
describe Mutant::Differ do
let(:object) { described_class }
describe '.build' do
subject { object.build(old_string, new_string) }
let(:old_string) { "foo\nbar" }
let(:new_string) { "bar\nbaz" }
it { should eql(Mutant::Differ.new(%w(foo bar... |
dwijpr/islam | storage/app/Al-QuranIndonesia_com.andi.alquran.id_source_from_JADX/com/google/android/gms/internal/et.java | package com.google.android.gms.internal;
import android.content.Context;
import android.net.Uri;
import android.view.MotionEvent;
import com.google.android.gms.p039a.C1108c;
import com.google.android.gms.p039a.C1111d;
@op
public final class et {
private final ex f3922a;
public et(String str, Context context,... |
gzlabs/hightide | hightide-core/src/main/java/io/hightide/resources/Resource.java | <reponame>gzlabs/hightide
package io.hightide.resources;
/**
* @author <a href="mailto:<EMAIL>"><NAME></a>
*/
public @interface Resource {
}
|
MarvinVoV/galaxy-crawler | src/main/java/com/galaxy/crawler/core/engine/event/UrlExtractEvent.java | package com.galaxy.crawler.core.engine.event;
/**
* @author hufeng
* @version : UrlExtractEvent.java, v 0.1 2020年07月13日 10:09 上午 hufeng Exp $
*/
public class UrlExtractEvent {
} |
fayazmum/c_labs | lab_10_1_1/src/insert_remove.c | #include "../inc/insert_remove.h"
void remove_duplicates(node_t **head, comparator cmp)
{
node_t *first = *head;
node_t *second, *temp, *third;
while (first && first->next)
{
temp = first;
second = first->next;
while (second)
{
if (cmp(first->data, secon... |
AlfredGerke/ZABonline | source/wavemaker/common/packages/zabonline/mod/DummyServiceVariable.js | <filename>source/wavemaker/common/packages/zabonline/mod/DummyServiceVariable.js
dojo.provide("wm.packages.zabonline.mod.DummyServiceVariable");
dojo.declare("DummyServiceVariable", null, {
constructor: function() {
console.debug('Start DummyServiceVariable.constructor');
console.debug('End DummyService... |
blueseerERP/blueseer | src/com/blueseer/inv/LocationTransfer.java | /*
The MIT License (MIT)
Copyright (c) <NAME>
All rights reserved.
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,... |
ketyi/dgl | examples/mxnet/scenegraph/data/prepare_visualgenome.py | """Prepare Visual Genome datasets"""
import os
import shutil
import argparse
import zipfile
import random
import json
import tqdm
import pickle
from gluoncv.utils import download, makedirs
_TARGET_DIR = os.path.expanduser('~/.mxnet/datasets/visualgenome')
def parse_args():
parser = argparse.ArgumentParser(
... |
muhaj/magnificent-turtle | src/pages/career.js | import React from "react";
import PageWrapper from "../components/PageWrapper";
import Hero from "../sections/common/Hero";
import Content from "../sections/career/Content";
import Feature from "../sections/career/Feature";
import Roles from "../sections/career/Roles";
const Career = () => {
return (
<>
<... |
exoego/airframe | airframe-rx/src/main/scala/wvlet/airframe/rx/RxVar.scala | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribute... |
xzrunner/raytracing | include/raytracing/bxdf/BRDF.h | #pragma once
#include "raytracing/utilities/RGBColor.h"
#include "raytracing/utilities/Constants.h"
#include <memory>
namespace rt
{
class ShadeRec;
class Vector3D;
class Sampler;
class BRDF
{
public:
virtual ~BRDF() {}
virtual RGBColor f(const ShadeRec& sr, const Vector3D& wo, const Vector3D& wi) const;
virt... |
eugeneilyin/mdi-norm | es/RoundLaptopWindows.js | <filename>es/RoundLaptopWindows.js
import React from 'react';
import { Icon } from './Icon';
import { b, k, n, o, x, bc, bf, jt, ke } from './fragments';
export var RoundLaptopWindows =
/*#__PURE__*/
function RoundLaptopWindows(props) {
return React.createElement(Icon, props, React.createElement("path", {
d: "M20... |
deathlyhallows010/-Interview-Bit-Python | Math/Rearrange Array.py | # https://www.interviewbit.com/problems/rearrange-array/
# Rearrange Array
# Rearrange a given array so that Arr[i] becomes Arr[Arr[i]] with O(1) extra space.
class Solution:
# @param A : list of integers
# Modify the array A which is passed by reference.
# You do not need to return anything in this cas... |
wri/wri-terramatch-mobile-client | app/components/home/settings/index.js | <filename>app/components/home/settings/index.js
// @flow
import React, { Component } from "react";
import { StyleSheet, Text, View, Linking } from "react-native";
import Screen from "../../common/screen";
import Touchable from "../../common/touchable";
import Styles from "../../../styles/";
import Config from "react-n... |
NoahChian/Devops | src/main/java/org/iii/ideas/catering_service/rest/bo/CustomerQuerySFBoFactory.java | <filename>src/main/java/org/iii/ideas/catering_service/rest/bo/CustomerQuerySFBoFactory.java<gh_stars>0
package org.iii.ideas.catering_service.rest.bo;
public class CustomerQuerySFBoFactory {
private Long fac_id;
private String fac_name;
private String fac_add;
private String fac_tel;
public Long getFac_id... |
MatthewWilkes/mw4068-packaging | src/melange/src/soc/views/helper/decorators.py | <reponame>MatthewWilkes/mw4068-packaging
#!/usr/bin/env python2.5
#
# Copyright 2008 the Melange 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/... |
stemkit-collection/stemkit-cpp | include/sk/rt/thread/Condition.h | /* vim: sw=2:
* Copyright (c) 2011, <NAME> <<EMAIL>>
*
* Distributed under the MIT Licence.
* This is free software. See 'LICENSE' for details.
* You must read and accept the license prior to use.
*
* Author: <NAME> (<EMAIL>)
*/
#ifndef _SK_RT_THREAD_CONDITION_H_
#define _SK_RT_THREAD_CONDITION_H_
#inclu... |
adventure-db/adventure | src/db/store/edges.c | #include "edges.h"
edge_p edges_add(struct store *edges, edge_p e_old, node_p start, node_p end)
{
edge_p e_new, size;
if(e_old == 0) {
size = 8;
e_new = store_alloc(edges, size + 8);
} else {
size = store_read_ui64(edges, e_old);
e_new = store_alloc(edges, size + 8);
store_copy(edges, e_new, e_old, size... |
Lc3586/Microservice | src/Applications/SimpleApi/Api/wwwroot/plug-in/naiveupload/Model/AppendFileResultStatus.js | <reponame>Lc3586/Microservice<filename>src/Applications/SimpleApi/Api/wwwroot/plug-in/naiveupload/Model/AppendFileResultStatus.js
//# sourceMappingURL=AppendFileResultStatus.js.map |
BeauJoh/HeCBench | asta-omp/support/verify.h | <filename>asta-omp/support/verify.h<gh_stars>10-100
/*
* Copyright (c) 2016 University of Cordoba and University of Illinois
* All rights reserved.
*
* Developed by: IMPACT Research Group
* University of Cordoba and University of Illinois
* http://impact.crhc.illinois.edu/
*
... |
bitpodprashant/s3StorageArsenal | tests/unit/matrix.js | <reponame>bitpodprashant/s3StorageArsenal
'use strict';// eslint-disable-line strict
const assert = require('assert');
const Matrix = require('../../index').testing.matrix.TestMatrix;
describe('Matrix', () => {
const params = {
auth: ['v2', 'v4'],
user: 'nobody',
password: '<PASSWORD>',
... |
Heersin/wine | dlls/wiaservc/wiadevmgr.c | <filename>dlls/wiaservc/wiadevmgr.c
/*
* WiaDevMgr functions
*
* Copyright 2009 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (a... |
il-dar/bittensor | miners/TEXT/gpt2_wiki/gpt2_wiki.py | #!/bin/python3
"""GPT2 Language Modelling miner
This file demonstrates training the GPT2 neuron with language modelling.
Example:
$ python miners/TEXT/gpt2-wiki.py
Look at the yaml config file to tweak the parameters of the model. To run with those
default configurations, run:
$ cd miners/TEXT
... |
inh3rit/SmartIM | example/src/main/java/cn/ieclipse/smartim/actions/DisconnectAction.java | package cn.ieclipse.smartim.actions;
import java.awt.event.ActionEvent;
import cn.ieclipse.smartim.views.IMPanel;
import icons.SmartIcons;
/**
* Created by Jamling on 2017/7/12.
*/
public class DisconnectAction extends IMPanelAction {
public DisconnectAction(IMPanel panel) {
super(panel, SmartIcon... |
slaskawi/pnc | rest/src/main/java/org/jboss/pnc/rest/provider/ArtifactProvider.java | <filename>rest/src/main/java/org/jboss/pnc/rest/provider/ArtifactProvider.java
/**
* JBoss, Home of Professional Open Source.
* Copyright 2014 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this f... |
Site-Command/vagrant-bindfs | lib/vagrant-bindfs/vagrant/capabilities/ubuntu/fuse.rb | <reponame>Site-Command/vagrant-bindfs
# frozen_string_literal: true
module VagrantBindfs
module Vagrant
module Capabilities
module Ubuntu
module Fuse
class << self
# Ubuntu 6.10 and after automatically load fuse.
# Just check if it is installed
def bind... |
michikono/generator-enterprise-angular | generators/app/templates/%CLIENTSIDEFOLDER%/%APPSUBFOLDER%/filters/filters.module.js | /**
* Module for filters
*/
(function () {
'use strict';
angular.module('<%= appName %>.filters', []);
})();
|
naoyam/physis | translator/map.cc | // Licensed under the BSD license. See LICENSE.txt for more details.
#include "translator/map.h"
#include "translator/rose_util.h"
#include "translator/grid.h"
#include "translator/translation_context.h"
#include "translator/physis_names.h"
namespace si = SageInterface;
namespace sb = SageBuilder;
namespace ru = phys... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.