repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
alex2ching/QQConnector | WPFTencentQQ/CCodecWarpper/RespEncounterInfo.h | <filename>WPFTencentQQ/CCodecWarpper/RespEncounterInfo.h
#pragma once
#include"PacketType.h"
#include"../JceProtocol/JceStruct.h"
#include"../JceProtocol/JCELong.h"
#include"../JceProtocol/JCEShort.h"
#include"../JceProtocol/JCEChar.h"
#include"VipBaseInfo.h"
#include"RishState.h"
class CRespEncounterInfo:pub... |
ViaOA/oa-web | src/test/java/test/hifive/model/oa/propertypath/PointsRecordPP.java | <filename>src/test/java/test/hifive/model/oa/propertypath/PointsRecordPP.java
// Generated by OABuilder
package test.hifive.model.oa.propertypath;
import test.hifive.model.oa.*;
public class PointsRecordPP {
private static EmailPPx email;
private static InspireOrderPPx inspireOrder;
private static Point... |
thekerrlab/brainstaves | brainstaves/bs_recordmindwave.py | <gh_stars>0
'''
Record data from headset. Protocol:
./bt_pair
./bt_read
./bt_record # calls this file
'''
import os
import sys
import time
import pylab as pl
import bsmindwave as bsmw
if len(sys.argv)>1:
name = sys.argv[1]
else:
print('Setting default')
name = 'v1'
mapping = {'v1': '00:81:F9:08:A1:72',
... |
jwilger/racing_on_rails | test/integration/events_test.rb | # frozen_string_literal: true
require_relative "racing_on_rails/integration_test"
# :stopdoc:
class EventsTest < RacingOnRails::IntegrationTest
test "index" do
Timecop.freeze(Time.zone.local(2013, 3)) do
FactoryBot.create(:event)
FactoryBot.create(:event)
get "/events"
assert_redirected... |
peroxy/starsky | src/main/java/com/starsky/backend/repository/UserRepository.java | package com.starsky.backend.repository;
import com.starsky.backend.domain.user.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import java.util.List;
import java.util.Optional;
@RepositoryRestResource(exported = false)
p... |
bantonsson/sbt | compile/inc/src/main/scala/sbt/inc/Changes.scala | /* sbt -- Simple Build Tool
* Copyright 2010 <NAME>
*/
package sbt
package inc
import xsbt.api.NameChanges
import java.io.File
final case class InitialChanges(internalSrc: Changes[File], removedProducts: Set[File], binaryDeps: Set[File], external: APIChanges[String])
final class APIChanges[T](val modified: Set[T],... |
damicoedoardo/NNMF | RecSysFramework/Recommender/SLIM/BPR/SLIM_BPR.py | <filename>RecSysFramework/Recommender/SLIM/BPR/SLIM_BPR.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on 28 June 2017
@author: XXX
"""
import sys
import time
import numpy as np
from scipy.special import expit
from RecSysFramework.Recommender import Recommender
class SLIM_BPR(Recommender):
"""
... |
xlnwel/grl | algo/sacd/nn.py | <reponame>xlnwel/grl
import logging
import numpy as np
import tensorflow as tf
from tensorflow_probability import distributions as tfd
from utility.rl_utils import epsilon_greedy, epsilon_scaled_logits
from core.module import Module, Ensemble
from nn.func import mlp
from algo.sac.nn import Temperature
from algo.dqn.nn... |
techAi007/spring-boot | spring-boot-project/spring-boot/src/main/java/org/springframework/boot/r2dbc/OptionsCapableConnectionFactory.java | <filename>spring-boot-project/spring-boot/src/main/java/org/springframework/boot/r2dbc/OptionsCapableConnectionFactory.java
/*
* Copyright 2012-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.
... |
joshlyman/Josh-LeetCode | 022_Generate_Parentheses.py | class Solution:
def generateParenthesis(self, n: int) -> List[str]:
# remaining # of ( must be > # of )
path = []
results = []
self.dfs(path,results,0,0,n,n)
return results
# path, para,results, remain # of (, remain # of ), current... |
koki0702/chainer0 | chainer0/links/__init__.py | <filename>chainer0/links/__init__.py
from chainer0.links.linear import Linear
from chainer0.links.embed_id import EmbedID
from chainer0.links.simple_rnn import SimpleRNN
from chainer0.links.classifier import Classifier |
CreepyCre/DimDoors | src/main/schematics/org/dimdev/dimdoors/util/schematic/v2/SchematicBiomePalette.java | package org.dimdev.dimdoors.util.schematic.v2;
import com.mojang.serialization.Codec;
import com.mojang.serialization.codecs.UnboundedMapCodec;
import net.minecraft.util.registry.BuiltinRegistries;
import net.minecraft.world.biome.Biome;
public class SchematicBiomePalette {
public static final UnboundedMapCodec<Bio... |
ginlime/narou | preset/ncode.syosetu.com/n2525bs/converter.rb | <reponame>ginlime/narou
# -*- coding: utf-8 -*-
#
# 対象小説情報
# タイトル: 魔剣ゾルディの女主人公とっかえひっかえ成長記録
# 作者: 木原ゆう
# URL: http://ncode.syosetu.com/n2525bs/
#
converter "n2525bs 魔剣ゾルディの女主人公とっかえひっかえ成長記録" do
def before(io, text_type)
super
io.string.gsub!(/(\/{2,})/) do
if $1.length == 3
"❤"
else
... |
yangaoting/guns-dubbo-metting | guns-api/src/main/java/com/stylefeng/guns/api/film/FilmAsyncServiceApi.java | <filename>guns-api/src/main/java/com/stylefeng/guns/api/film/FilmAsyncServiceApi.java
package com.stylefeng.guns.api.film;
import com.stylefeng.guns.api.film.vo.ActorVo;
import com.stylefeng.guns.api.film.vo.FilmDescVo;
import com.stylefeng.guns.api.film.vo.ImgVo;
import java.util.List;
public interface FilmAsyncSer... |
kn0t3k/kyrys | include/friend.hpp | <reponame>kn0t3k/kyrys<filename>include/friend.hpp<gh_stars>0
#pragma once
#include <reference.hpp>
namespace Kyrys {
/**
* @brief class Friend represents one user in user's friend list. This class obtain informations about friend as ID, IP adress(not neccesary), history of communication etc.
*
*/... |
uwplse/staccato | src/edu/washington/cse/instrumentation/resolution/MethodDescSelector.java | package edu.washington.cse.instrumentation.resolution;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Set;
import javassist.CtClass;
import javassist.CtMethod;
import javassist.NotFoundException;
import edu.washington.cse.instrumentation.TaintUtils;
public class Meth... |
ScalablyTyped/SlinkyTyped | a/aws-sdk/src/main/scala/typingsSlinky/awsSdk/cloudsearchMod/BuildSuggestersRequest.scala | package typingsSlinky.awsSdk.cloudsearchMod
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
@js.native
trait BuildSuggestersRequest extends StObject {
var DomainName: typi... |
ryanhs/graphql-koa-scripts | tests/e2e/test-server-simple/using-test.test.js | <gh_stars>0
const { UsingTestServer } = require('../../../src');
describe('using UsingTestServer(App, fn)', () => {
it(
'auto quit',
UsingTestServer(`${__dirname}/app.js`, async () => {
expect(1).toBe(1);
}),
);
it(
'try /qs',
UsingTestServer(`${__dirname}/app.js`, async ({ supertest }... |
yuanice/aliyun-odps-java-sdk | odps-sdk-impl/odps-mapred-local/src/test/java/com/aliyun/odps/mapred/local/AllowNoInputPositive.java | <reponame>yuanice/aliyun-odps-java-sdk<filename>odps-sdk-impl/odps-mapred-local/src/test/java/com/aliyun/odps/mapred/local/AllowNoInputPositive.java
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for addition... |
sravani-m/Web-Application-Security-Framework | tools/arachni/system/gems/gems/arachni-1.5.1/spec/arachni/framework/parts/platform_spec.rb | <gh_stars>1-10
require 'spec_helper'
describe Arachni::Framework::Parts::Platform do
include_examples 'framework'
describe '#list_platforms' do
it 'returns information about all valid platforms' do
expect(subject.list_platforms).to eq({
'Operating systems' => {
... |
leanwithdata/hop | plugins/tech/parquet/src/main/java/org/apache/hop/parquet/transforms/input/ParquetValueConverter.java | <filename>plugins/tech/parquet/src/main/java/org/apache/hop/parquet/transforms/input/ParquetValueConverter.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 ow... |
danielNaczo/Python3Parser | src/main/java/io/github/danielnaczo/python3parser/manipulation/AddFunctionManipulation.java | package io.github.danielnaczo.python3parser.manipulation;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.CharStreams;
import org.antlr.v4.runtime.CommonTokenStream;
import io.github.danielnaczo.python3parser.Python3Le... |
threefoldtech/threefold-forums | app/serializers/category_and_topic_lists_serializer.rb | # frozen_string_literal: true
class CategoryAndTopicListsSerializer < ApplicationSerializer
has_one :category_list, serializer: CategoryListSerializer, embed: :objects
has_one :topic_list, serializer: TopicListSerializer, embed: :objects
has_many :users, serializer: BasicUserSerializer, embed: :objects
def us... |
nickwinder/buildkit | spec/client/organizations_spec.rb | # frozen_string_literal: true
require 'spec_helper'
describe Buildkit::Client::Organizations do
context '#organizations' do
it 'returns the list of organizations' do
VCR.use_cassette 'organizations' do
organizations = client.organizations
expect(organizations.size).to be == 1
orga... |
aalleavitch/react-storefront | packages/react-storefront/test/amp/AmpMenu.test.js | <gh_stars>0
/**
* @license
* Copyright © 2017-2018 Moov Corporation. All rights reserved.
*/
import React from 'react'
import { mount } from 'enzyme'
import Menu from '../../src/amp/AmpMenu'
import MenuContext from '../../src/menu/MenuContext'
import Provider from '../TestProvider'
import AppModelBase from '../../s... |
deepns/go | exercises/practice/ocr-numbers/.meta/example.go | package ocr
import "strings"
var digit = map[string]byte{
" _ | ||_| ": '0',
" | | ": '1',
" _ _||_ ": '2',
" _ _| _| ": '3',
" |_| | ": '4',
" _ |_ _| ": '5',
" _ |_ |_| ": '6',
" _ | | ": '7',
" _ |_||_| ": '8',
" _ |_| _| ": '9',
}
func recognizeDigit(lines []string, s... |
YaibaToKen/soulus | src/main/java/yuudaari/soulus/common/world/SummonerReplacer.java | <filename>src/main/java/yuudaari/soulus/common/world/SummonerReplacer.java<gh_stars>0
package yuudaari.soulus.common.world;
import java.util.ArrayList;
import java.util.Map;
import net.minecraft.block.Block;
import net.minecraft.init.Blocks;
import net.minecraft.nbt.NBTBase;
import net.minecraft.nbt.NBTTagCompound;
im... |
niloc132/RelaxFactory | rxf-server/src/main/java/rxf/server/RelaxFactoryServerImpl.java | package rxf.server;
import one.xio.AsioVisitor;
import one.xio.HttpMethod;
import java.io.IOException;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.UnknownHostException;
import java.nio.channels.ClosedChannelException;
import java.nio.channels.SelectableChannel;
import java.nio.chan... |
ionox0/bunny | rabix-bindings/src/main/java/org/rabix/bindings/BindingsFactory.java | package org.rabix.bindings;
import org.apache.commons.lang.NotImplementedException;
import org.rabix.bindings.model.Application;
import org.rabix.bindings.model.Job;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Comparator;
import java.util.SortedSet;
import java.util.TreeSet;
public clas... |
bonniech3n/merou | grouper/setup.py | <reponame>bonniech3n/merou
import logging
from argparse import ArgumentParser
from typing import TYPE_CHECKING
from grouper import __version__
from grouper.settings import default_settings_path
if TYPE_CHECKING:
from argparse import Namespace
def build_arg_parser(description):
# type(str) -> ArgumentParser
... |
iadgovuser26/HIRS | HIRS_Utils/src/test/java/hirs/persist/DBAlertManagerDateFilterTest.java | <filename>HIRS_Utils/src/test/java/hirs/persist/DBAlertManagerDateFilterTest.java
package hirs.persist;
import hirs.data.persist.SpringPersistenceTest;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.joda.time.DateTime;
import org.testng.Assert;
import org.testng.annotati... |
zeryabkhan91/solidus_square | spec/models/solidus_square/payment_method_spec.rb | <filename>spec/models/solidus_square/payment_method_spec.rb
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe SolidusSquare::PaymentMethod, type: :model do
it { is_expected.to delegate_method(:create_profile).to(:gateway) }
describe '#payment_profiles_supported?' do
it 'return true' do
... |
caridy/es6-module-transpiler | test/features/export_identifier.globals.js | (function(exports) {
"use strict";
var jQuery = function() { };
exports.jQuery = jQuery;
})(window);
|
robtweed/wc-admin-ui | components/adminui-crud.js | /*
----------------------------------------------------------------------------
| admin-ui: SB2-Admin UI Theme WebComponents Library |
| |
| Copyright (c) 2020 M/Gateway Developments Ltd, |
... |
Myent/demo | libraries/jquery/13-06-2016bkpJsBarcode-master/dist/JsBarcode.all.js | /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModu... |
ggt3/SLogo | src/errors/UnmatchedBracketException.java | <gh_stars>0
package errors;
/**
* Exception for different number of brackets
*
* @author <NAME>
*
*/
public class UnmatchedBracketException extends SLogoException {
private static final long serialVersionUID = 1L;
public UnmatchedBracketException() {
super(String.format("The number of '[' and ']' do not ma... |
cmc333333/parsons | parsons/targetsmart/targetsmart_api.py | import requests
import petl
from parsons.etl.table import Table
from parsons.utilities import check_env
URI = 'https://api.targetsmart.com/'
class TargetSmartConnector(object):
def __init__(self, api_key):
self.uri = URI
self.api_key = check_env.check('TS_API_KEY', api_key)
self.headers ... |
ihmcrobotics/ihmc-open-robotics-software | ihmc-quadruped/src/robotics/java/us/ihmc/quadrupedRobotics/controlModules/QuadrupedControlManagerFactory.java | package us.ihmc.quadrupedRobotics.controlModules;
import us.ihmc.commonWalkingControlModules.controllerCore.FeedbackControllerTemplate;
import us.ihmc.commonWalkingControlModules.controllerCore.command.feedbackController.FeedbackControlCommandList;
import us.ihmc.graphicsDescription.yoGraphics.YoGraphicsListRegistry;
... |
egotter/egotter | app/javascript/packs/ad_block_detector.js | <filename>app/javascript/packs/ad_block_detector.js
class AdBlockDetector {
constructor(token) {
this.token = token;
}
detect(callback) {
if (window.adBlockerDetected || !document.getElementById(this.token)) {
logger.log('Blocking Ads: Yes', window.adBlockerDetected);
callback();
} else {... |
rnarla123/aliyun-openapi-java-sdk | aliyun-java-sdk-retailadvqa-public/src/main/java/com/aliyuncs/retailadvqa_public/model/v20200515/ListDatasetResponse.java | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... |
rayform/swell-js | test/page/actions/cart.js | <gh_stars>10-100
export default {
initCart() {
return async (dispatch, getState) => {
const { api } = getState();
const cart = await api.cart.get();
dispatch({
type: 'SET_CART',
payload: cart,
});
};
},
addItem(product) {
return async (dispatch, getState) => {
... |
MrJoy/surface_master | examples/system_monitor.rb | #!/usr/bin/env ruby
# require "bignum"
require "rubygems"
require "bundler/setup"
Bundler.require(:default, :development)
require "surface_master"
def goodbye(interaction)
data = []
(0..7).each do |x|
(0..7).each do |y|
data << { x: x, y: y, red: 0x00, green: 0x00, blue: 0x00 }
end
end
interacti... |
Akarin-project/Paper2Srg | src/main/java/net/minecraft/advancements/FunctionManager.java | package net.minecraft.advancements;
import com.google.common.collect.Maps;
import com.google.common.io.Files;
import java.io.File;
import java.nio.charset.StandardCharsets;
import java.util.ArrayDeque;
import java.util.Iterator;
import java.util.Map;
import javax.annotation.Nullable;
import org.apache.commons.io.FileU... |
maicadk/netlify-plugin | browserMonitoring/index.js | import { getErrorResponse, settings } from "../settings.js"
import { missingSettings, skipBrowserMonitoring } from "./utils.js"
import { insertBrowserMonitoring } from "./htmlInsertion.js"
export const injectBrowserMonitoring = async (pluginApi) => {
const { inputs, utils, constants } = pluginApi
const { build } ... |
uk-gov-mirror/hmcts.probate-frontend | test/end-to-end/pages/summary/summary.js | 'use strict';
const summaryContentEn = require('app/resources/en/translation/summary');
const summaryContentCy = require('app/resources/cy/translation/summary');
module.exports = async function(language = 'en', redirect) {
const I = this;
const summaryContent = language === 'en' ? summaryContentEn : summaryCo... |
GrinCash/Grinc-core | depends/work/build/i686-w64-mingw32/qt/5.9.7-f2560c1efa6/qtbase/tests/auto/gui/painting/qwmatrix/tst_qwmatrix.cpp | <filename>depends/work/build/i686-w64-mingw32/qt/5.9.7-f2560c1efa6/qtbase/tests/auto/gui/painting/qwmatrix/tst_qwmatrix.cpp
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the t... |
nuggetwheat/study | src/cc/Books/CormenIntroductionToAlgorithms/Graph.hpp |
#ifndef Books_CormenIntroductionToAlgorithms_Graph_hpp
#define Books_CormenIntroductionToAlgorithms_Graph_hpp
#include <cassert>
#include <iostream>
#include <list>
#include <map>
#include <ostream>
#include <set>
#include <utility>
#include <vector>
#include <Common/Graph.hpp>
namespace study {
template <typena... |
windmaomao/adventofcode | problem/dynamic/min-number-coins.js | <gh_stars>0
const minNumberCoins = (n, denoms) => {
const res = new Array(n + 1).fill(-1)
res[0] = 0
let i = 0
while (i < denoms.length) {
const coin = denoms[i]
for (let k = 1; k < res.length; k++) {
if (k >= coin) {
const left = k - coin
if (res[left] >=0) {
const n = res[left] + 1
i... |
innovator-zero/SJTU-OJ | 1991/main.cpp | <gh_stars>0
#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
int k,n;
double x[100000],low,high,mid;
int judge(double r);
int main()
{
int i;
cin>>n>>k;
for(i=0; i<n; ++i)
{
cin>>x[i];
}
low=x[0];
high=x[n-1];
while((high-low)>=pow(10,-7))
{
... |
hrist-dina/gifton | src/js/classes/FancyBox.js | <gh_stars>1-10
import $ from "jquery";
import fancybox from "@fancyapps/fancybox";
export class FancyBox {
constructor(selector = ".js-fancybox") {
this.selector = $(selector);
this.init();
}
init() {
this.bind();
}
bind() {
this.selector.fancybox();
}
} |
henesy/plan9-1e | sys/src/cmd/acid/hobbit.c | <reponame>henesy/plan9-1e<gh_stars>0
#include <u.h>
#include <libc.h>
#include <bio.h>
#include <ctype.h>
#include <mach.h>
#define Extern extern
#include "acid.h"
#define STARTSYM "_main"
#define PROFSYM "_mainp"
#define FRAMENAME ".frame"
extern ulong hobbitfindframe(ulong);
extern void hobbitctrace(int);
extern v... |
jdenisgiguere/rasterframes | core/src/main/scala/astraea/spark/rasterframes/rules/SpatialFilterPushdownRules.scala | /*
* This software is licensed under the Apache 2 license, quoted below.
*
* Copyright 2018 Astraea. 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.o... |
steveuk/ham-and-jam | dlls/haj/haj_deployee.h | <reponame>steveuk/ham-and-jam
// haj_deployee.h
/////////////////////////////////////////////////////////////////////////////
#ifndef __INC_DEPLOYEE
#define __INC_DEPLOYEE
/////////////////////////////////////////////////////////////////////////////
// includes
#ifndef BASEANIMATING_H
#include "baseanimating.h"
#en... |
greenflute/noear_solon | _plugin/jap-solon-plugin/src/main/java/com/fujieid/jap/solon/integration/XPluginImpl.java | package com.fujieid.jap.solon.integration;
import com.fujieid.jap.solon.JapInitializer;
import com.fujieid.jap.solon.JapProps;
import org.noear.solon.SolonApp;
import org.noear.solon.core.Plugin;
/**
* @author noear
* @since 1.6
*/
public class XPluginImpl implements Plugin {
@Override
public void start(S... |
matthew-dailey/playaround | accumulo/src/test/java/matt/PathAggregatorTest.java | package matt;
import org.junit.Test;
import java.util.Set;
import static org.junit.Assert.assertEquals;
public class PathAggregatorTest {
@Test
public void removePath_test() {
Filterer.PathAggregator aggregator = new Filterer.PathAggregator(TestHelpers.inputPaths, TestHelpers.allExemplars);
Set<String... |
tiferrei/PEDASI | datasources/connectors/csv.py | <gh_stars>0
"""
Connectors for handling CSV data.
"""
import csv
import typing
from django.http import JsonResponse
import mongoengine
from mongoengine import context_managers
from .base import DataSetConnector, InternalDataConnector
class CsvConnector(DataSetConnector):
"""
Data connector for retrieving ... |
lambdaxymox/barrelfish | include/dma/client/dma_client_channel.h | <gh_stars>100-1000
/*
* Copyright (c) 2014 ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ETH Zurich D-INFK, Universitaetsstrasse 6, CH-8092 Zurich. Attn: Systems Group.
*/
#ifndef... |
arturolszak/hycube | src/main/java/net/hycube/maintenance/HyCubeRecoveryExtension.java | package net.hycube.maintenance;
import java.util.Arrays;
import net.hycube.core.InitializationException;
import net.hycube.core.NodeAccessor;
import net.hycube.environment.NodeProperties;
import net.hycube.extensions.Extension;
public class HyCubeRecoveryExtension implements Extension, HyCubeRecoveryExtensionEntryPo... |
sealuzh/termite-replication | manual-investigation/mosa/test-301.java | <reponame>sealuzh/termite-replication<filename>manual-investigation/mosa/test-301.java
public void test14() throws Throwable {
MockFile mockFile0 = new MockFile("", "");
FileIterator.FileIteratorBuilder fileIterator_FileIteratorBuilder0 = FileIterator.createDepthFirstFileIteratorBuilder(mockFile0);
... |
bombazook/prototok | spec/prototok/ciphers/V1/sign_spec.rb | <gh_stars>1-10
require 'spec_helper'
RSpec.describe Prototok::Ciphers::V1::Sign do
end
|
ndoxx/wcore | hosts/surfaceplot/source/include/arguments.h | <reponame>ndoxx/wcore<gh_stars>0
#ifndef ARGUMENTS_H
#define ARGUMENTS_H
#include <cstdint>
namespace sandbox
{
extern void parse_program_arguments(int argc, char const *argv[]);
}
#endif // ARGUMENTS_H
|
featherfly/common | common-dozer/src/main/java/cn/featherfly/common/dozer/DozerBeanMapper.java | <reponame>featherfly/common
package cn.featherfly.common.dozer;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.github.dozermapper.core.CustomConverter;
import com.github.dozermapper.core.CustomFieldMapper;
import com.github.d... |
tgoprince/menthor-editor | net.menthor.ontouml2uml/src/net/menthor/ontouml2uml/OntoUML2UML.java | <reponame>tgoprince/menthor-editor<filename>net.menthor.ontouml2uml/src/net/menthor/ontouml2uml/OntoUML2UML.java<gh_stars>10-100
package net.menthor.ontouml2uml;
import java.io.File;
import java.io.IOException;
import java.text.ParseException;
import java.util.HashMap;
import java.util.List;
import net.menthor.common... |
walison17/pulso-api | pulso/wsgi.py | <reponame>walison17/pulso-api
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pulso.settings")
application = get_wsgi_application()
|
jdamiani27/PyRaceView | pyraceview/messages/car_stats.py | from numpy import uint32
from ..messages import MsgBase
from ..util import BitBuffer, ByteArray
from ..percar import PerCarStatsData
from dataclasses import dataclass
from typing import List
TIMECODE_BITS = uint32(32)
NUM_CARS_BITS = uint32(8)
@dataclass
class MsgCarStats(MsgBase):
timecode: int
... |
mauro7x/AlgoCraft | src/modelo/herramientas/reglas/ReglasEstandarPico.java | package modelo.herramientas.reglas;
import modelo.recursos.BloqueDiamante;
import modelo.recursos.BloqueMadera;
import modelo.recursos.BloqueMetal;
import modelo.recursos.BloquePiedra;
public class ReglasEstandarPico implements ReglasDesgasteRecurso {
@Override
public void gastar(BloqueMetal metal, f... |
cameljockey/ten-pin-bowling | src/main/java/com/bowling/round/Round.java | /*
* Copyright (C) 2014 <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
Uvacoder/html-demo-code-and-experiments | Node-FileUtils/examples/isFile.js | <filename>Node-FileUtils/examples/isFile.js
var File = require ("../build/file-utils").File;
new File ("../src").isFile (function (error, isFile){
console.log (isFile); //Prints: false
new File ("isFile.js").isFile (function (error, isFile){
console.log (isFile); //Prints: true
});
}); |
Bigfluf/BloodMagic | src/main/java/WayofTime/alchemicalWizardry/common/harvest/GourdHarvestHandler.java | <reponame>Bigfluf/BloodMagic
package WayofTime.alchemicalWizardry.common.harvest;
import WayofTime.alchemicalWizardry.api.harvest.IHarvestHandler;
import net.minecraft.block.Block;
import net.minecraft.init.Blocks;
import net.minecraft.world.World;
public class GourdHarvestHandler implements IHarvestHandler
{
pub... |
equinor/lcm | api/tests/create_product_row_test.py | <filename>api/tests/create_product_row_test.py
import unittest
from tests.utils import read_file
from util.excel import excel_raw_file_to_sheet, sheet_to_bridge_dict
from util.azure_table import process_meta_blob
class CreateProductTableRow(unittest.TestCase):
@staticmethod
def test_create_row():
wit... |
best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gcc.dg/tree-ssa/pr21029.c | <reponame>best08618/asylo
/* { dg-do run } */
/* { dg-options "-O2 -fwrapv" } */
/* PR tree-optimization/21029
f() used to get optimized to an infinite loop by tree-vrp, because
j is assumed to be non-negative. Even though the conversion from
unsigned to signed has unspecified results if the expression valu... |
dymmerufc/web-dymmer-backend | src/models/qualityMeasureDataset.js | const mongoose = require('../database/index');
const qualityMeasureDatasetSchema = new mongoose.Schema({
featureModel: {
type: mongoose.Schema.Types.ObjectId,
ref: 'FeatureModels',
required: true,
},
qualityMeasures: [{
qualityMeasureId: {
type: mongoose.Schema.T... |
gaoht/house | java/classes3/com/ziroom/ziroomcustomer/util/af.java | <reponame>gaoht/house
package com.ziroom.ziroomcustomer.util;
import android.content.Context;
import com.freelxl.baselibrary.f.g;
public class af
{
public static void showToast(Context paramContext, int paramInt)
{
showToast(paramContext, paramInt, 0);
}
public static void showToast(Context paramContex... |
alexjung/ComputeLibrary | arm_compute/core/NEON/kernels/assembly/arm_gemm_compute_iface.hpp | <gh_stars>1-10
/*
* Copyright (c) 2020 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
* 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... |
zanachka/webdext | chrome-debug/contentscript.js | <reponame>zanachka/webdext<gh_stars>10-100
var s = document.createElement('script');
s.src = chrome.extension.getURL('webdext.js');
(document.head||document.documentElement).appendChild(s);
|
RamilGauss/MMO-Framework | Source/Core/TornadoEngine/Modules/FeatureManager.h | <filename>Source/Core/TornadoEngine/Modules/FeatureManager.h
/*
Author: <NAME> a.k.a. Gauss
<NAME>
Contacts: [<EMAIL>, <EMAIL>]
See for more information LICENSE.md.
*/
#pragma once
#include <vector>
#include <ECS/include/Feature.h>
namespace nsTornadoEngine
{
class DllExport TFeatureManager
... |
js-lib-com/wood | wood-core/src/main/java/js/wood/eval/Opcode.java | <reponame>js-lib-com/wood
package js.wood.eval;
/**
* Operator codes and factory for operator instances. This class provides implemented operator constants and related
* operator instances. For every opcode constant there is an {@link Operator} instance retrievable using
* {@link #instance()} getter.
* <p>
* Curr... |
sarang-apps/darshan_browser | components/services/filesystem/directory_impl_unittest.cc | // Copyright 2015 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 <stddef.h>
#include <stdint.h>
#include <map>
#include <string>
#include "base/macros.h"
#include "base/stl_util.h"
#include "base/test/task_en... |
botandrose/adva_cms | test/webrat/lib/webrat/sinatra.rb | <reponame>botandrose/adva_cms
require 'webrat/rack'
require 'sinatra'
require 'sinatra/test'
class Sinatra::Application
# Override this to prevent Sinatra from barfing on the options passed from RSpec
def self.load_default_options_from_command_line!
end
end
disable :run
disable :reload
module Webrat
class Si... |
noahzhy/cpp_2018_fall | hw7-2/message_book.h | #ifndef __message_book__
#define __message_book__
#include <iostream>
#include <map>
#include <vector>
#include <string>
using namespace std;
class MessageBook {
public:
MessageBook();
~MessageBook();
void AddMessage(int number, const string& message);
void DeleteMessage(int number);
vector<int> GetNumbers() con... |
CSNW/d3.compose | src/helpers/get-unique-values.js | <gh_stars>100-1000
import isSeriesData from './is-series-data';
export default function getUniqueValues(data, fn, compare) {
if (!isSeriesData(data)) {
return data.map(fn);
}
var values = data.reduce(function(memo, series) {
var unique = series.values
.map(fn)
.filter(function(value) { retur... |
chris-twiner/aalto-xml | src/main/java/com/fasterxml/aalto/in/MergedStream.java | <filename>src/main/java/com/fasterxml/aalto/in/MergedStream.java
package com.fasterxml.aalto.in;
import java.io.*;
/**
* Simple {@link InputStream} implementation that is used to "unwind" some
* data previously read from an input stream; so that as long as some of
* that data remains, it's returned; but as long as... |
tuhrig/functional-interpreter | src/de/tuhrig/thofu/Interpreter.java | <filename>src/de/tuhrig/thofu/Interpreter.java
package de.tuhrig.thofu;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.apache.log4j.Logger;
import de.tuhrig.thofu.interfaces.EnvironmentListener;
import de.tuhrig.thofu.interfaces.H... |
mattermost/awat | test/e2e/users_test.go | <reponame>mattermost/awat
// Copyright (c) 2020-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
//
//+build e2e
package e2e
var correctSlackUsers map[string]string = map[string]string{
"<EMAIL>": "j",
"<EMAIL>": "james",
"<EMAIL>": "l<PASSWORD... |
aibrahimRS/geowave | extensions/cli/redis-embed/src/main/java/org/locationtech/geowave/datastore/redis/cli/RunRedisServerOptions.java | <gh_stars>0
/**
* Copyright (c) 2013-2019 Contributors to the Eclipse Foundation
*
* See the NOTICE file distributed with this work for additional information regarding copyright
* ownership. All rights reserved. This program and the accompanying materials are made available
* under the terms of the Apache License... |
tstephen/DTRules | dtrules-engine/src/main/java/com/dtrules/mapping/XMLTag.java | /**
* Copyright 2004-2011 DTRules.com, Inc.
*
* See http://DTRules.com for updates and documentation for the DTRules Rules Engine
*
* 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 Licens... |
alexgo1/fuse-med-ml | fuse/eval/metrics/detection/metrics_detection_common.py | from functools import partial
from typing import Dict, List, Optional
from fuse.eval.metrics.libs.instance_segmentation import MetricsInstanceSegmentaion
import numpy as np
from fuse.eval.metrics.metrics_common import MetricPerSampleDefault
def calculate_precision(metric_result : List[float], threshold : float = 0.5... |
kanish671/goalert | validation/validate/labelkey_test.go | package validate
import "testing"
func TestLabelKey(t *testing.T) {
check := func(valid bool, values ...string) {
for _, val := range values {
t.Run(val, func(t *testing.T) {
err := LabelKey("", val)
if valid && err != nil {
t.Errorf("got %v; want nil", err)
} else if !valid && err == nil {
... |
txiang61-benchmarks/react | annotated/com/flowpowered/react/engine/Island.java | <gh_stars>0
/*
* This file is part of React, licensed under the MIT License (MIT).
*
* Copyright (c) 2013 Flow Powered <https://flowpowered.com/>
* Original ReactPhysics3D C++ library by <NAME> <http://danielchappuis.ch>
* React is re-licensed with permission from ReactPhysics3D author.
*
* Permission is hereby ... |
jeffmasty/fullnodej | src/main/java/org/fullnodej/data/TxOut.java | package org.fullnodej.data;
import java.math.BigDecimal;
import lombok.Data;
@Data
public class TxOut {
/** header hash of local best block including this tx in hex. not mined=empty*/
String bestblock;
int confirmations;
BigDecimal value;
ScriptPubKey scriptPubKey;
int version;
boolean coinbase;
}
|
azhao96/simple-logo | src/model/MakeVariable.java | <reponame>azhao96/simple-logo
package model;
import java.util.List;
/**
* MakeVariable function to implement Make.
* Created by blakekaplan
*/
public class MakeVariable extends Node {
private static final String MAKE = "MakeVariable ";
private static final int VARIABLE_NAME = 0;
private static final ... |
zuoyebushiwo/elasticsearch-1.5.0 | src/test/java/org/xbib/elasticsearch/river/jdbc/util/IndexableObjectTests.java | <reponame>zuoyebushiwo/elasticsearch-1.5.0<gh_stars>0
package org.xbib.elasticsearch.river.jdbc.util;
import org.testng.annotations.Test;
import org.xbib.elasticsearch.plugin.jdbc.util.IndexableObject;
import org.xbib.elasticsearch.plugin.jdbc.util.PlainIndexableObject;
import static org.testng.Assert.assertEquals;
i... |
maryrosecook/codewithisla | src/demos/planets.js | <filename>src/demos/planets.js
;(function(exports) {
var EnvStore, demoUtils, Isla;
if(typeof module !== 'undefined' && module.exports) { // node
EnvStore = require('../env-store.js').EnvStore;
demoUtils = require('../demo-utils.js').demoUtils;
Isla = require('../../node_modules/isla/src/isla.js').Isla;... |
decomp/experimental | cmd/bin2c/main.go | // bin2c is a tool which converts binary executables to equivalent C source
// code.
package main
import (
"debug/pe"
"flag"
"fmt"
"go/printer"
"go/token"
"log"
"os"
"strconv"
"strings"
"github.com/mewkiz/pkg/errutil"
)
func usage() {
const use = `
Usage: bin2c -addr ADDRESS [OPTION]... FILE
Convert binar... |
mohajain/GDevelop | Extensions/ParticleSystem/SPARK/include/Core/SPK_RegWrapper.h | <filename>Extensions/ParticleSystem/SPARK/include/Core/SPK_RegWrapper.h
//////////////////////////////////////////////////////////////////////////////////
// SPARK particle engine //
// Copyright (C) 2008-2009 - <NAME> - <EMAIL> //
// //
// This software is provided 'as-is', without a... |
swenker/studio | python/cloud/alioss/test_oss_browser.py | <reponame>swenker/studio
__author__ = 'samsung'
import unittest
import base64
import sha
import hmac
import oss_browser
class TestOSSService(unittest.TestCase):
@unittest.skip("this get passed")
def test_list_buckets(self):
oss = oss_browser.OSSService()
oss.list_buckets(... |
ampsight/mage-server | public/app/admin/events/event.access.controller.js | var _ = require('underscore');
module.exports = AdminEventAccessController;
AdminEventAccessController.$inject = ['$scope', '$location', '$routeParams', '$q', '$filter', 'Event', 'EventAccess', 'UserService'];
function AdminEventAccessController($scope, $location, $routeParams, $q, $filter, Event, EventAccess, UserS... |
kevinpeterson/lexevs-service | src/test/java/edu/mayo/cts2/framework/plugin/service/lexevs/service/association/AssociationQueryImpl.java | <gh_stars>1-10
/*
* Copyright: (c) Mayo Foundation for Medical Education and
* Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the
* triple-shield Mayo logo are trademarks and service marks of MFMER.
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/lexevs-service/L... |
Dzenly/tia | other/tmp-light-utils/index.js | <filename>other/tmp-light-utils/index.js
'use strict';
let util = require('util');
let fileUtils = require('dz-file-utils');
let dirUtils = require('dz-dir-utils');
let timer = require('dz-timer-utils');
let dateUtils = require('dz-date-utils');
process.env.FORCE_COLOR = '1';
let chalk = require('chalk');
let cfg = {... |
dima-vm/private-VictoriaMetrics | vendor/google.golang.org/grpc/xds/internal/server/rds_handler.go | /*
*
* Copyright 2021 gRPC 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 agree... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.