repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
ageraab/ClickHouse | src/Functions/GatherUtils/sliceDynamicOffsetBounded.cpp | #ifndef __clang_analyzer__ // It's too hard to analyze.
#include "GatherUtils.h"
#include "Selectors.h"
#include "Algorithms.h"
namespace DB::GatherUtils
{
struct SliceDynamicOffsetBoundedSelectArraySource : public ArraySinkSourceSelector<SliceDynamicOffsetBoundedSelectArraySource>
{
template <typename Source, ty... |
paulhjkelly/taskgraph-metaprogramming | suif/include/suif1/hash.h | <gh_stars>1-10
/* Generic Hash Table Definitions */
/* Copyright (c) 1994 Stanford University
All rights reserved.
This software is provided under the terms described in
the "suif_copyright.h" include file. */
#include <suif_copyright.h>
#ifndef HASH_H
#define HASH_H
#pragma interface
RCS_HEADER(ha... |
kennyooi/ep-ui | src/components/Modal/Modal.js | /**
* Modal component
*/
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { createPortal } from 'react-dom';
import { addClass, removeClass } from '../../helpers/styler';
import './Modal.less';
export default class Modal extends PureCompo... |
wanhello/omgind | internal/gen/ent/sysdictitem.go | <reponame>wanhello/omgind
// Code generated by entc, DO NOT EDIT.
package ent
import (
"fmt"
"strings"
"time"
"entgo.io/ent/dialect/sql"
"github.com/wanhello/omgind/internal/gen/ent/sysdictitem"
)
// SysDictItem is the model entity for the SysDictItem schema.
type SysDictItem struct {
config `json:"-"`
// ID... |
takeharukato/risc-v-workshop | test/tst-spinlock.c | /* -*- mode: C; coding:utf-8 -*- */
/**********************************************************************/
/* OS kernel sample */
/* Copyright 2019 <NAME> */
/* */... |
cyeagy/bss | src/main/java/io/github/yeagy/bss/BetterSqlGenerator.java | <reponame>cyeagy/bss<filename>src/main/java/io/github/yeagy/bss/BetterSqlGenerator.java<gh_stars>1-10
package io.github.yeagy.bss;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collector;
import static java.util.stream.Collecto... |
ClickMechanic/signable | lib/signable/list.rb | module Signable
class List < Struct.new(:data_type, :hash)
def offset
hash['offset']
end
def limit
hash['limit']
end
def total
hash["total_#{data_name}"]
end
def data
@data ||= hash[data_name].map { |attributes| data_type.new attributes }
end
private
... |
francis-pouatcha/forgelab | adpharma/adpharma.modules/adpharma.client.backoffice/src/main/java/org/adorsys/adpharma/client/jpa/debtstatementcustomerinvoiceassoc/DebtStatementCustomerInvoiceAssocRemoveService.java | package org.adorsys.adpharma.client.jpa.debtstatementcustomerinvoiceassoc;
import javafx.concurrent.Service;
import javafx.concurrent.Task;
import javax.inject.Inject;
import org.adorsys.adpharma.client.jpa.debtstatement.DebtStatement;
import org.adorsys.adpharma.client.jpa.debtstatement.DebtStatementRemoveService;
... |
FDA/Healthy-Citizen-Code | hc-data-bridge/src/services/rxnorm/link_rxnormSat_to_drugsMaster.js | const Promise = require('bluebird');
const _ = require('lodash');
const args = require('optimist').argv;
const { mongoConnect, setUpdateAtIfRecordChanged } = require('../util/mongo');
const { loadRxcuiData } = require('./util');
const { conditionForActualRecord } = require('../util/mongo');
const { mongoUrl } = args;... |
geoffmcl/dc4w | src/dc4wMenu.c | <gh_stars>0
// dc4wMenu.c
// this is public domain software - praise me, if ok, just don't blame me!
#include "dc4w.h"
#define ADD_EXCLUDE_FILE // if selected, offer to exclude it from LIST
#undef ADDVIEWUPDATE2 // this is an UNFINISHED quick update without review
extern CC g_sOutCnt;
extern CC g_... |
anirudha-ani/NSU-Problem-Solver | 2016 Long Contest for NSU and KUET - 2 ( BIT episode 1 )/K - Inversion Count.cpp | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <vector>
#include <cmath>
using namespace std;
void update(vector<int> *data , int index ,int value)
{
while(index < data->size())
{
data->at(index) += value;
index += ((index) & (-index));
}
}
int query... |
aserkes/helidon-build-tools | dev-loop/src/test/java/io/helidon/build/dev/BuildLoopTest.java | <reponame>aserkes/helidon-build-tools
/*
* Copyright (c) 2020 Oracle and/or its affiliates.
*
* 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/LICEN... |
jahnvisrivastava100/CompetitiveProgrammingQuestionBank | Data Structures/Linked Lists/merge_two_sorted_linkedlist.cpp | <filename>Data Structures/Linked Lists/merge_two_sorted_linkedlist.cpp
/*
Given two sorted linked lists consisting of N and M nodes respectively. The task is to merge both of the list (in-place)
and return head of the merged list.
Note: It is strongly recommended to do merging in-place using O(1) extra space.
*/
#incl... |
kiranparajuli589/reva | pkg/storage/utils/downloader/mock/downloader_mock.go | <filename>pkg/storage/utils/downloader/mock/downloader_mock.go
// Copyright 2018-2021 CERN
//
// 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... |
enioka/enioka_scan | enioka_scan/src/main/java/com/enioka/scanner/sdk/zebraoss/commands/ImageModeDecoder.java | <reponame>enioka/enioka_scan
package com.enioka.scanner.sdk.zebraoss.commands;
import com.enioka.scanner.sdk.zebraoss.ssi.SsiCommand;
public class ImageModeDecoder extends CommandExpectingAck {
public ImageModeDecoder() {
super(SsiCommand.IMAGER_MODE.getOpCode(), new byte[]{0x00});
}
}
|
yasserzt/PFE2020 | node_modules/vue-instantsearch/src/components/InstantSearchSsr.js | <reponame>yasserzt/PFE2020
import { createInstantSearchComponent } from '../util/createInstantSearchComponent';
export default createInstantSearchComponent({
name: 'AisInstantSearchSsr',
inject: {
// should be possible to configure this with {camelcase: ['error', {allow: ['^\\$_']}]}
// but that didn't wor... |
avlimas/asquare | security/src/main/java/zone/cogni/asquare/security/SecurityController.java | package zone.cogni.asquare.security;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springfr... |
andilyliao/grpc-java | benchmarks/src/generated/main/io/grpc/testing/TestServiceGrpc.java | <gh_stars>1-10
package io.grpc.testing;
import static io.grpc.stub.Calls.createMethodDescriptor;
import static io.grpc.stub.Calls.asyncUnaryCall;
import static io.grpc.stub.Calls.asyncServerStreamingCall;
import static io.grpc.stub.Calls.asyncClientStreamingCall;
import static io.grpc.stub.Calls.duplexStreamingCall;
i... |
atptro/alibabacloud-sdk | ram-20150501/java/src/main/java/com/aliyun/ram20150501/models/GetLoginProfileResponse.java | <reponame>atptro/alibabacloud-sdk
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.ram20150501.models;
import com.aliyun.tea.*;
public class GetLoginProfileResponse extends TeaModel {
@NameInMap("RequestId")
@Validation(required = true)
public String requestId;
@NameInMap("Lo... |
wesleyegberto/spring-study | spring-boot-mongodb/src/main/java/com/github/wesleyegberto/springmongodb/entity/Entry.java | <filename>spring-boot-mongodb/src/main/java/com/github/wesleyegberto/springmongodb/entity/Entry.java
package com.github.wesleyegberto.springmongodb.entity;
public class Entry<T1, T2> {
private T1 key;
private T2 value;
public Entry() {
}
public Entry(T1 key, T2 value) {
this.key = key;
this.value = value;
... |
LordZagreus/LodeRunner | code/ui/containers/box.py | from code.ui.common import UIWidget
from code.tools.eventqueue import EventQueue
from code.tools.xml import XMLNode
from code.utils.common import log, log2, xml_encode, xml_decode, evaluate_spatial_expression
from code.constants.common import STENCIL_MODE_NONE, STENCIL_MODE_PAINT, STENCIL_MODE_ERASE, STENCIL_MODE_PA... |
eden-framework/eden-framework | internal/generator/operator/utils.go | <reponame>eden-framework/eden-framework
package operator
import (
"gitee.com/eden-framework/eden-framework/internal/generator/importer"
"github.com/go-courier/oas"
"regexp"
"strings"
)
func RefName(ref oas.Refer) string {
parts := strings.Split(ref.RefString(), "/")
return parts[len(parts)-1]
}
func BasicType(... |
pegurnee/2015-02-592 | projects/instructions/2_project/src/Consumer.java | <gh_stars>0
/**
* Consumer.java
*
* This is the consumer thread for the bounded buffer problem.
*
* @author <NAME>, <NAME>, <NAME>
* @version 1.0 - July 15, 1999
* Copyright 2000 by <NAME>, <NAME>, <NAME>
* Applied Operating Systems Concepts - John Wiley and Sons, Inc.
*/
import java.util.*;
public class Con... |
bartoszgolek/whattodofordinner | app/src/main/java/biz/golek/whattodofordinner/business/controllers/ShowGeneratePromptsPreferencesControllerImpl.java | <filename>app/src/main/java/biz/golek/whattodofordinner/business/controllers/ShowGeneratePromptsPreferencesControllerImpl.java
package biz.golek.whattodofordinner.business.controllers;
import biz.golek.whattodofordinner.business.contract.controllers.ShowGeneratePromptsPreferencesController;
import biz.golek.whattodofo... |
chptr-one/Hyperskill-JetBrains_Academy | Maze Runner/maze/Maze.java | package maze;
import java.io.*;
import java.util.*;
import java.util.stream.*;
public class Maze implements Serializable {
private final static String PASS = " ";
private final static String WALL = "\u2588\u2588";
private final int rowsToPrint;
private final int colsToPrint;
private final Graph<C... |
maple3142/craft2d | src/net/maple3142/craft2d/game/utils/BreakingTimeCalculator.java | package net.maple3142.craft2d.game.utils;
import net.maple3142.craft2d.game.block.BreakableBlock;
import net.maple3142.craft2d.game.item.Tool;
public class BreakingTimeCalculator {
public static int hardnessToTime = 1000;
public static int calculate(Tool tool, BreakableBlock target) { // ms
if (targe... |
automaton82/pspace | CommonGame/StreamDecorator.cpp | #include "StreamDecorator.h"
OutputStreamDecorator::OutputStreamDecorator() :
// std::ostream(0),
baseStream_(0),
baseStreamDec_(0)
// wroteLine_(false)
{
}
OutputStreamDecorator::OutputStreamDecorator(std::ostream* baseStream) :
// std::ostream(0),
baseStream_(baseStream),
baseStreamDec_(0)
// wroteLine_(false... |
nick6655/management-sdk-python | cohesity_management_sdk/models/san_env_job_parameters.py | <reponame>nick6655/management-sdk-python<gh_stars>10-100
# -*- coding: utf-8 -*-
# Copyright 2021 Cohesity Inc.
class SanEnvJobParameters(object):
"""Implementation of the 'SanEnvJobParameters' model.
Specifies job parameters applicable for all SAN Environment types
Protection Sources in a Protection Jo... |
bgoonz/DS-n-Algos-Mega-Archive | LEETCODE/01-JS-Files/804_unique_morse_code_words.js | <filename>LEETCODE/01-JS-Files/804_unique_morse_code_words.js
/*
International Morse Code defines a standard encoding where each letter is mapped to a series of dots and dashes, as follows: "a" maps to ".-", "b" maps to "-...", "c" maps to "-.-.", and so on.
For convenience, the full table for the 26 letters of the En... |
lucydot/devsim | src/Data/MaterialDB.hh | /***
DEVSIM
Copyright 2013 Devsim 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 or agreed to in writing, soft... |
logox01/performance-signature-dynatrace-plugin | dynatrace-appmon/src/test/java/de/tsystems/mms/apm/performancesignature/dynatrace/rest/xml/DashboardXMLHandlerTest.java | /*
* Copyright (c) 2014-2018 T-Systems Multimedia Solutions GmbH
*
* 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 require... |
seekersapp2013/new | node_modules/carbon-icons-svelte/lib/Badge24/index.js | import Badge24 from "./Badge24.svelte";
export default Badge24; |
luckyvs1/cradleplatform | frontend/marsapp/src/App.js | /**
* Summary:
* Handles the routing for all the pages
*/
import React from "react";
import PropTypes from "prop-types";
import {Route} from "react-router-dom";
import HomePage from "./component/pages/HomePage";
import LoginPage from "./component/pages/LoginPage";
import DashboardPage from "./component/pages/Dashb... |
soldiers1989/market5 | message-server/src/main/java/com/dynamo/message/service/emay/EmayHttpResponseBytes.java | <reponame>soldiers1989/market5
package com.dynamo.message.service.emay;
import java.util.List;
import java.util.Map;
/**
* 【自定义】String类型Http响应
*
* @author Frank
*
*/
public class EmayHttpResponseBytes {
private EmayHttpResultCode resultCode; //HttpClient 结果代码
private int httpCode; //Http链接Code
private Map<St... |
dilin993/carbon-analytics-common | components/data-bridge/org.wso2.carbon.databridge.core/src/main/java/org/wso2/carbon/databridge/core/internal/authentication/session/SessionCache.java | /*
* Copyright (c) 2005-2010, 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.o... |
ArrogantWombatics/openbsd-src | libexec/ld.so/ldconfig/ldconfig_path.c | <reponame>ArrogantWombatics/openbsd-src
/* $OpenBSD: ldconfig_path.c,v 1.1 2016/07/04 20:56:50 kettenis Exp $ */
/*
* Copyright (c) 2013 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright n... |
Dieptranivsr/Ros_Diep | melodic/lib/python2.7/dist-packages/smclib/statemap.py | #
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (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.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis,... |
skullbaselab/aa-afterdark | sf-lecture-notes-master/sql/w3d5-metaprogramming/deprecated/old_demo.rb | <reponame>skullbaselab/aa-afterdark
class Corgus
def set_left_thruster(percent)
puts "setting left thruster to #{percent}%"
@left_thruster = percent
end
def set_right_thruster(percent)
puts "setting right thruster to #{percent}%"
@right_thruster = percent
end
def fire_furry_cannons
puts ... |
ShubhmAsati/auth0-hackathon | backend/job.portal/src/main/java/com/auth0/job/portal/converter/OTPRequestConverter.java | package com.auth0.job.portal.converter;
import com.auth0.job.portal.model.OTPDto;
import com.auth0.job.portal.model.request.VerifyOTPRequest;
import java.util.UUID;
public class OTPRequestConverter {
private OTPRequestConverter() {
}
public static OTPDto toDto(VerifyOTPRequest verifyOTPRequest) {
return O... |
mmienko/aws-cdk-scala | modules/iam/src/main/scala/io/burkard/cdk/services/iam/UnknownPrincipal.scala | <filename>modules/iam/src/main/scala/io/burkard/cdk/services/iam/UnknownPrincipal.scala
package io.burkard.cdk.services.iam
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object UnknownPrincipal {
def apply(
resource: software.constructs.IC... |
the-nerbs/HexEdit | Tests/CFile64Tests.cpp | <gh_stars>0
#include "Stdafx.h"
#include "utils/Garbage.h"
#include "utils/TestFiles.h"
#include "CFile64.h"
#include <catch.hpp>
#include <cstdint>
TEST_CASE("CFile64::CFile64()")
{
CFile64 file;
garbage_fill_and_construct<CFile64>(file);
SECTION("CFile64 query functions")
{
CHECK(file.Get... |
chenzhengda/tensorflow | tensorflow/compiler/plugin/poplar/driver/tools/offloading_util.h | <reponame>chenzhengda/tensorflow
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unles... |
MehfoozurRehman/aidapro | src/Screens/DashboardGoogleMap.js | import React, { useState } from "react";
import { GoogleMap, Autocomplete, LoadScript } from "@react-google-maps/api";
import MapMarker from "Components/MapMarker";
import { LoadingMask } from "./LoadingMask";
export const DashboardGoogleMap = ({ jobSeekers, style }) => {
const [autocomplete, setAutocomplete] = useS... |
hawkwithwind/bintools | src/main/java/com/wxipad/wechat/tools/extend/PinYin.java | //
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package com.wxipad.wechat.tools.extend;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Iterator;
import java.u... |
przodownikR1/springJpaKata | src/main/java/pl/java/scalatech/domain/keys/Travel.java | <gh_stars>1-10
package pl.java.scalatech.domain.keys;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.TableGenerator;
import lombok.Data;
@Entity
@Data
@TableGener... |
tqrg-bot/jenkins | core/src/main/java/hudson/views/ListViewColumn.java | <reponame>tqrg-bot/jenkins<filename>core/src/main/java/hudson/views/ListViewColumn.java
/*
* The MIT License
*
* Copyright (c) 2004-2009, Sun Microsystems, Inc., <NAME>, <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files ... |
illuminatixs-newbms/Lidium | scripts/event/Visitor.js | function init() {
}
function monsterValue(eim, mobId) {
return 1;
}
function setup(mapid) {
var eim = em.newInstance("Visitor" + mapid);
for (var i = 0; i < 16; i++) {
var map = eim.setInstanceMap(502030000 + (parseInt(mapid) * 16) + i);
map.resetFully();
if (i == 1) { //dimensional cube
for (va... |
litanwei/begincode_wenda | begincode-core/src/main/java/net/begincode/core/model/BizFrontProblem.java | package net.begincode.core.model;
import net.begincode.bean.PageParam;
import java.util.Date;
import java.util.List;
/**
* Created by Stay on 2016/9/23 12:34.
*/
public class BizFrontProblem extends PageParam {
private Problem problem;
private String answerName;
private Integer answerUserId;
priva... |
cpaxton/costar_plan | costar_task_plan/python/costar_task_plan/robotics/config.py |
DEFAULT_MODEL_CONFIG = {
"clusters": 10,
"sigma": 1e-8,
"dtw": True,
}
DEFAULT_ROBOT_CONFIG = {
'name': 'robot',
'robot_description_param': "robot_description",
'ik_solver': 'kdl',
'base_link': "base_link",
'end_link': "ee_link",
'joint_states_topic': "/joint_states",
'gripper_... |
r-barnes/sw_comparison | implementations/ugene/src/plugins/GUITestBase/src/runnables/ugene/ugeneui/DocumentProviderSelectorDialogFiller.cpp | <filename>implementations/ugene/src/plugins/GUITestBase/src/runnables/ugene/ugeneui/DocumentProviderSelectorDialogFiller.cpp
/**
* UGENE - Integrated Bioinformatics Tools.
* Copyright (C) 2008-2020 UniPro <<EMAIL>>
* http://ugene.net
*
* This program is free software; you can redistribute it and/or
* modify it un... |
pkestene/COSMA | src/cosma/random_generator.hpp | #pragma once
#include <complex>
#include <random>
namespace cosma {
/*
* generators a random int, float, double,
* complex<int>, complex<float>, complex<double>
*/
template <typename Scalar>
struct random_generator {
static inline Scalar sample();
};
template <>
inline int random_generator<int>::sample() {
... |
nmldiegues/jvm-stm | classpath-0.98/javax/swing/border/LineBorder.java | /* LineBorder.java --
Copyright (C) 2003 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)... |
IgorAntov/job4j | chapter_006/src/test/java/ru/job4j/wait/SimpleBlockingQueueTest.java | <filename>chapter_006/src/test/java/ru/job4j/wait/SimpleBlockingQueueTest.java
package ru.job4j.wait;
import org.junit.Test;
/**
* Test.
*
* @author <NAME>
* @version $Id$
* @since 0.1
*/
public class SimpleBlockingQueueTest {
@Test
public void simpleBlockingQueueTest() throws InterruptedException {
... |
zhiiker/oasis-core | go/oasis-node/cmd/debug/txsource/workload/oversized.go | package workload
import (
"context"
"fmt"
"math/rand"
"time"
"google.golang.org/grpc"
"github.com/oasisprotocol/oasis-core/go/common/crypto/signature"
memorySigner "github.com/oasisprotocol/oasis-core/go/common/crypto/signature/signers/memory"
consensus "github.com/oasisprotocol/oasis-core/go/consensus/api"
... |
lukewagner/wasmint | libwasmint/interpreter/at/thread/InstructionState.h | /*
* Copyright 2015 WebAssembly Community Group
*
* 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 l... |
Sachin-Rungta/lodash | test/sum-methods.js | <reponame>Sachin-Rungta/lodash
import assert from 'assert';
import lodashStable from 'lodash';
import { _, empties, stubZero } from './utils.js';
describe('sum methods', function() {
lodashStable.each(['sum', 'sumBy'], function(methodName) {
var array = [6, 4, 2],
func = _[methodName];
it('`_.' + me... |
berkhess/bioexcel-exascale-co-design-benchmarks | GROMACS/nonbonded_benchmark/gromacs_source_code/src/gromacs/fileio/writeps.h | <reponame>berkhess/bioexcel-exascale-co-design-benchmarks<filename>GROMACS/nonbonded_benchmark/gromacs_source_code/src/gromacs/fileio/writeps.h
/*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GR... |
TheFleksisCekcu/LiquidBounce-b62-deobfed | 1.8.9-Forge/src/main/java/net/ccbluex/liquidbounce/injection/forge/mixins/render/MixinEffectRenderer.java |
package net.ccbluex.liquidbounce.injection.forge.mixins.render;
import org.spongepowered.asm.mixin.Overwrite;
import java.util.Iterator;
import java.util.ConcurrentModificationException;
import org.spongepowered.asm.mixin.Shadow;
import net.minecraft.client.particle.EntityParticleEmitter;
import java.util.List;
impor... |
susburrows/uvcmetrics | src/python/packages/amwg/__init__.py | import derivations
import git
#from derivations import press2alt
|
maniacs-oss/sipio | mod/resources/agents_api.js | <filename>mod/resources/agents_api.js
/**
* @author <NAME>
* @since v1
*/
import ResourcesUtil from 'resources/utils'
import { Status } from 'resources/status'
import isEmpty from 'utils/obj_util'
export default class AgentsAPI {
constructor() {
this.resourcePath = 'config/agents.yml'
this.sche... |
swe-zzf/spring4-sandbox | mvc-thymeleaf/src/test/java/com/hantsylabs/example/spring/test/webdriver/WebDriverCreateTaskITests.java | package com.hantsylabs.example.spring.test.webdriver;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.BlockJUnit4ClassRunner;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.htmlunit.HtmlUnitDriver;
import com.gargoyles... |
thomass171/tcp-22 | engine/src/main/java/de/yard/threed/engine/platform/EngineHelper.java | package de.yard.threed.engine.platform;
import de.yard.threed.core.*;
import de.yard.threed.core.resource.BundleResource;
import de.yard.threed.core.resource.ResourcePath;
import de.yard.threed.core.platform.*;
import de.yard.threed.engine.*;
import de.yard.threed.engine.platform.common.*;
/**
* Interface/Adapter to... |
Graphofthings/CQELS-LGPL | src/main/java/org/deri/cqels/engine/iterator/MappingIter2.java | package org.deri.cqels.engine.iterator;
import org.deri.cqels.engine.ExecContext;
public abstract class MappingIter2 extends MappingIter {
private MappingIterator left,right;
public MappingIter2(MappingIterator left, MappingIterator right, ExecContext context){
super(context);
this.left = left;
this.righ... |
herbrhythm/herbbuckets | src/modules/systems/buckets/engines/localbucket/localbucket.go | package localbucket
import (
"fmt"
"herbbuckets/modules/app"
"herbbuckets/modules/bucket"
bucketsmiddlewares "herbbuckets/modules/systems/buckets/middlewares"
"io"
"net/http"
"net/url"
"os"
"path/filepath"
"strconv"
"time"
"github.com/herb-go/herb/file/simplehttpserver"
"github.com/herb-go/herb/middlewar... |
InjectiveLabs/sdk-go | chain/oracle/types/key.go | package types
import (
fmt "fmt"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
)
const (
ModuleName = "oracle"
StoreKey = ModuleName
// MemStoreKey defines the in-memory store key
MemStoreKey = "mem_capability"
//// Version def... |
wingkwong/competitive-programming | leetcode/problems/medium/208-implement-trie-prefix-tree.cpp | /*
Implement Trie (Prefix Tree)
Implement a trie with insert, search, and startsWith methods.
Example:
Trie trie = new Trie();
trie.insert("apple");
trie.search("apple"); // returns true
trie.search("app"); // returns false
trie.startsWith("app"); // returns true
trie.insert("app");
trie.search("app"); ... |
Lonely-shang/gradle | subprojects/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/validation/ValidationProblemPropertyAnnotationHandler.java | <reponame>Lonely-shang/gradle
/*
* Copyright 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 the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*... |
neurala/via-native-plugins | stub/include/neurala/plugin/PluginArguments.h | /*
* Copyright Neurala Inc. 2013-2022
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
* associated documentation files (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge, publish,... |
wws11/ssm- | src/main/java/com/soecode/lyf/demo/datastruct/array/ArrayStack.java | package com.soecode.lyf.demo.datastruct.array;
/** 基于数组实现的栈数据结构
* @author 魏文思
* @date 2019/8/30$ 16:08$
*/
public class ArrayStack <E>{
private Array<E> array;
public ArrayStack(int capacity){
array = new Array<>(capacity);
}
//获取栈的长度
public int getSize(){
return array.getSize(... |
BetsyMcPhail/seal-tk | sealtk/core/VideoRequestor.cpp | /* This file is part of SEAL-TK, and is distributed under the OSI-approved BSD
* 3-Clause License. See top-level LICENSE file or
* https://github.com/Kitware/seal-tk/blob/master/LICENSE for details. */
#include <sealtk/core/VideoRequestor.hpp>
namespace sealtk
{
namespace core
{
// -------------------------------... |
raylia-w/workspace | SpringBoard/src/main/java/mvc/dao/FileDao.java | package mvc.dao;
import mvc.dto.UploadFile;
public interface FileDao {
/**
* 파일 업로드 기록
* @param uploadFile - 업로드한 파일의 정보
* property : original_filename - 원본파일명
* property : stored_filename - 저장파일명
* property : file_size - 파일 크기
*/
public void insert(UploadFile uploadFile);
}
|
Raistm/language-processor | procesamientos/impresion/Impresion.java | package procesamientos.impresion;
import procesamientos.Procesamiento;
import programa.Programa.CteInt;
import programa.Programa.CteReal;
import programa.Programa.CteString;
import programa.Programa.CteBool;
import programa.Programa.CteChar;
import programa.Programa.Var;
import programa.Programa.DRef;
impo... |
davidbrownell/Common_cpp_Helpers | Libraries/C++/CommonHelpers/v1.0/CommonHelpers/Details/boost_extract/vmd/detail/match_identifier_common.hpp | <filename>Libraries/C++/CommonHelpers/v1.0/CommonHelpers/Details/boost_extract/vmd/detail/match_identifier_common.hpp
// (C) Copyright <NAME> 2011-2015
// Use, modification and distribution are subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://ww... |
Denise-Ng/stash | src/test/java/csdev/couponstash/model/coupon/savings/DateSavingsSumMapTest.java | <reponame>Denise-Ng/stash
package csdev.couponstash.model.coupon.savings;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.time.LocalDate;
import java.util.Arrays;
import org.junit.jupiter.api.Test;
/**
* Unit tests for DateSavingsSumMap.
*/
public class DateSavingsSumMapTest {
@Test
... |
concordion/IdeaConcordionSupport | testData/action/after/CreateMethodFromUsage.java | <filename>testData/action/after/CreateMethodFromUsage.java
package com.test;
import org.concordion.integration.junit4.ConcordionRunner;
import org.junit.runner.RunWith;
@RunWith(ConcordionRunner.class)
public class CreateMethodFromUsage {
public A field;
public A method() {
return null;
}
p... |
koneko096/zap-extensions | addOns/ascanrulesAlpha/src/main/java/org/zaproxy/zap/extension/ascanrulesAlpha/SstiBlindScanRule.java | <gh_stars>0
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2022 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Li... |
uyuni-project/tetra | spec/lib/coarse/main_spec.rb | require "spec_helper"
describe "`tetra`", type: :aruba do
it "lists subcommands" do
run_simple("tetra")
expect(stdout_from("tetra")).to include("Usage:")
expect(stdout_from("tetra")).to include("init")
expect(stdout_from("tetra")).to include("dry-run")
expect(stdout_from("tetra")).to include("g... |
marcelabbc07/TrabalhosPython | Aula21/exercicio2.py | <gh_stars>0
# Aula 21 - 06-12-2019
# Como Tratar e Trabalhar Erros!!!
# DICA! O comando range() funciona de 3 formas diferentes, uma para
# cada situação.
# range(10) - Com a passagem de um único número o range irá começar
# a contar do 0 até 9
# 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
# range(1,10) - Com a passagem de um 2 núm... |
extroxe/jiyin | source/js/sign_up.js | /**
* Created by sailwish009 on 2016/12/2.
*/
$(function () {
jQuery.validator.addMethod("phone", function (value, element) {
var verify_phone = /^1[3|4|5|7|8]\d{9}$/;
return this.optional(element) || (verify_phone.test(value));
}, "请填写正确的手机号");
var validate = $("#register_form").validate... |
misterabdul/goblog-server | internal/models/token.go | package models
import "go.mongodb.org/mongo-driver/bson/primitive"
type RevokedTokenModel struct {
UID primitive.ObjectID `bson:"_id" json:"id,omitempty"`
ExpiresAt primitive.DateTime `json:"expiresAt"`
Owner UserCommonModel `json:"owner"`
CreatedAt interface{} `json:"createdAt"`
UpdatedAt in... |
thothbot/parallax-demo | tmp/demo/content/materials/MaterialsTextureAnisotropy.java | /*
* Copyright 2012 <NAME>, <EMAIL>
*
* This file is part of Parallax project.
*
* Parallax is free software: you can redistribute it and/or modify it
* under the terms of the Creative Commons Attribution 3.0 Unported License.
*
* Parallax is distributed in the hope that it will be useful, but
* WITHOUT A... |
trespasserw/MPS | plugins/mps-console/lang/ideCommands/source_gen/jetbrains/mps/console/ideCommands/migration/MigrationScript_1.java | <filename>plugins/mps-console/lang/ideCommands/source_gen/jetbrains/mps/console/ideCommands/migration/MigrationScript_1.java<gh_stars>0
package jetbrains.mps.console.ideCommands.migration;
/*Generated by MPS */
import jetbrains.mps.lang.migration.runtime.base.MigrationScriptBase;
import org.jetbrains.mps.openapi.mode... |
wtx626/spark-release-HDP-2.5.0.3 | sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen/GenerateUnsafeRowJoiner.scala | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
JLLeitschuh/GT-FHIR2 | omoponfhir-omopv5-jpabase/src/main/java/edu/gatech/chai/omopv5/model/entity/Observation.java | <reponame>JLLeitschuh/GT-FHIR2
/*******************************************************************************
* Copyright (c) 2019 Georgia Tech Research Institute
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtai... |
OttoWinter/esphomeyaml | esphome/components/waveshare_epaper/waveshare_epaper.h | <gh_stars>100-1000
#pragma once
#include "esphome/core/component.h"
#include "esphome/components/spi/spi.h"
#include "esphome/components/display/display_buffer.h"
namespace esphome {
namespace waveshare_epaper {
class WaveshareEPaper : public PollingComponent,
public display::DisplayBuffer,
... |
Sir-Branch/k64f-starter-template | sdk_k64f/middleware/multicore/erpc/erpc_c/setup/erpc_server_setup.h | <reponame>Sir-Branch/k64f-starter-template<filename>sdk_k64f/middleware/multicore/erpc/erpc_c/setup/erpc_server_setup.h
/*
* Copyright (c) 2014-2016, Freescale Semiconductor, Inc.
* Copyright 2016-2017 NXP
* All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef _EMBEDDED_RPC__SERVER_SETUP_... |
JuanTenjo/BetSolver | Frontend/src/Components/Necesarios/Dialogo.js | <filename>Frontend/src/Components/Necesarios/Dialogo.js
import React from 'react';
import Button from "@material-ui/core/Button";
import Dialog from "@material-ui/core/Dialog";
import DialogActions from "@material-ui/core/DialogActions";
import DialogContent from "@material-ui/core/DialogContent";
import DialogContent... |
ebu/ebu-tt-live-toolk | ebu_tt_live/errors.py | <gh_stars>10-100
from .strings import ERR_DOCUMENT_EXTENT_MISSING
class ComponentCompatError(TypeError):
pass
class DataCompatError(TypeError):
pass
class DocumentNotLoadedError(Exception):
pass
class TimeFormatError(Exception):
pass
class TimeFormatOverflowError(Exception):
pass
class ... |
Minionguyjpro/Ghostly-Skills | sources/com/startapp/android/publish/adsCommon/adListeners/AdEventListener.java | package com.startapp.android.publish.adsCommon.adListeners;
import com.startapp.android.publish.adsCommon.Ad;
/* compiled from: StartAppSDK */
public interface AdEventListener {
void onFailedToReceiveAd(Ad ad);
void onReceiveAd(Ad ad);
}
|
ErikWallin/KakuroSolver | akka/src/main/scala/se/marfok/kakurosolver/akka/PuzzleMessages.scala | <reponame>ErikWallin/KakuroSolver<filename>akka/src/main/scala/se/marfok/kakurosolver/akka/PuzzleMessages.scala
package se.marfok.kakurosolver.akka
import se.marfok.kakurosolver.domain.White
import se.marfok.kakurosolver.domain.Entry
sealed trait PuzzleMessage
case object Solve extends PuzzleMessage
case class WhiteS... |
mohaque0/simple-util-cpp | src/util/functional/Range.hpp | <gh_stars>0
#ifndef RANGE_HPP
#define RANGE_HPP
#include <functional>
#include <vector>
namespace Util {
namespace Functional {
template <class InputType, class InputIterator, class OutputType, typename MapFunction>
class MappedRange;
template <class ValueType, class Iterator, typename FilterFunction>
class Filtere... |
ddecrulle/Mapex | src/dictionary/components/reperage/index.js | export { default as dicReperage} from './reperage';
|
TeamSPoon/CYC_JRTL_with_CommonLisp_OLD | platform/lib/all-deps/com/google/gwt/junit/ModuleBatchingStrategy.java | <reponame>TeamSPoon/CYC_JRTL_with_CommonLisp_OLD
/*
* Copyright 2009 Google 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
*
* Un... |
mokiat/lacking-js | app/window.go | <gh_stars>0
//go:build js && wasm
package app
import (
"fmt"
"syscall/js"
"github.com/mokiat/lacking/app"
"github.com/mokiat/lacking/log"
"github.com/mokiat/wasmgl"
)
// Run starts a new application by attaching to the specified in the config
// HTML canvas element. The configuration is used to determine how t... |
ducis/operating-system-labs | sr/lsri/commands/pax/cpio.h | /*-
* Copyright (c) 1992 <NAME>.
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* <NAME> of the University of California, San Diego.
*
* Redistribution and use in source and binary forms, w... |
helmasur/bitwig-extensions | src/main/java/com/bitwig/extensions/controllers/akai/advance/AdvanceControllerExtension.java | <reponame>helmasur/bitwig-extensions
package com.bitwig.extensions.controllers.akai.advance;
import com.bitwig.extension.controller.ControllerExtension;
import com.bitwig.extension.controller.api.ControllerHost;
import com.bitwig.extension.controller.api.CursorRemoteControlsPage;
import com.bitwig.extension.controller... |
judypol/jshcem | webcore/src/main/java/com/shcem/webcore/permission/LoginInfo.java | <reponame>judypol/jshcem<gh_stars>0
/* ========================================
* System Name :化交线上平台
* SubSystem Name :化交站点核心工具集
* File Name: Constants
* ----------------------------------------
* Create Date/Change History
* ----------------------------------------
* 2017/10/20 lizhihua Create
*
*
* ---... |
nerdfiles/ng-amd-microservices-seed | client/app/component/window/index.js | // ./client/app/component/window/index.js
/**
* @ngdoc overview
* @name app.core.window:index
* @description Dynamic window setting on window.
*/
function windowSpec (__interface__) {
'use strict';
/**
* @function WindowSpecController
* @param $scope
* @param $rootScope
* @returns {*} undefined
... |
skiff-org/prosemirror-tables | src/columnsTypes/types/Number.js | import { parseTextToNumber } from '../utils';
import CellDataType from './Type';
class NumberCellType extends CellDataType {
convertContent(cell, convertFromType) {
return parseTextToNumber(cell.textContent)
}
}
export default NumberCellType;
|
EvanQuan/CheeseQuest2 | src/main/java/game/system/save/InvalidSaveNameException.java | <gh_stars>0
package game.system.save;
/**
* Save name cannot contain invalid file name characters
*/
public class InvalidSaveNameException extends Exception {
private static final long serialVersionUID = 1L;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.