repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
TooDumbForAName/modern-boot-floppy
syslinux/core/fs/pxe/idle.c
<filename>syslinux/core/fs/pxe/idle.c /* ----------------------------------------------------------------------- * * * Copyright 2008 <NAME> - All Rights Reserved * Copyright 2009 Intel Corporation; author: <NAME> * * This program is free software; you can redistribute it and/or modify * it under the t...
aadps/kaldi
src/pybind/chain/chain_den_graph_pybind.cc
// pybind/chain/chain_den_graph_pybind.cc // Copyright 2019 Microsoft Corporation (author: <NAME>) // See ../../../COPYING for clarification regarding multiple authors // // Licensed under the Apache License, Version 2.0 (the "License"); // // http://www.apache.org/licenses/LICENSE-2.0 // // THIS CODE IS PROVIDED ...
webdeveloper0012/Chain-link
spec/models/assignment_snapshot_spec.rb
describe AssignmentSnapshot, type: :model do describe "validations" do it { is_expected.to have_valid(:assignment).when(factory_create(:assignment)) } it { is_expected.not_to have_valid(:assignment).when(nil) } it { is_expected.to have_valid(:details).when(nil, '', {a: 1}) } it { is_expected.to hav...
kozborn/programing-principles-and-practise-using-cpp
Chapter11/chapter11-2-5.cpp
#include "../std_lib_facilities.h" struct Person { string name; string lastName; string email; Person(string n, string ln, string e): name(n), lastName(ln), email(e) {} }; ostream& operator<<(ostream& os, const Person& p) { // left is for left align os << left << setw(10) << p.name << setw(15) ...
muathendirangu/design-patterns-using-java
src/com/muathendirangu/structural/decorator/ChristmasTree.java
package com.muathendirangu.structural.decorator; public interface ChristmasTree { String Decorate(); }
uni-hamburg/renew-js
src/features/pointer/tools/PointerTool.js
<reponame>uni-hamburg/renew-js<filename>src/features/pointer/tools/PointerTool.js<gh_stars>0 import { Tool } from '../../../core/toolbox/Tool'; import { CardinalOrientation } from '../../orientation/CardinalOrientation'; export class PointerTool extends Tool { constructor (eventBus, rulePolicy, toolbox, selectio...
InvictrixRom/external_skia
src/sksl/ast/SkSLASTForStatement.h
<gh_stars>1-10 /* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SKSL_ASTFORSTATEMENT #define SKSL_ASTFORSTATEMENT #include "SkSLASTStatement.h" namespace SkSL { /** * A 'for' loop. */ struct ASTForStatement : pu...
patmbolger/shf-project
app/helpers/shf_applications_helper.rb
module ShfApplicationsHelper def can_edit_state? policy(@shf_application).permitted_attributes_for_edit.include? :state end # The AASM gem caches the display_name for a State. We cannot do that because # the I18n.locale may have changed, so we must get the localized name every time def states_selectio...
CloudSlang/cs-actions
cs-maps/src/main/java/io/cloudslang/content/maps/services/ModifyMapElementsService.java
/* * (c) Copyright 2020 EntIT Software LLC, a Micro Focus company, L.P. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License v2.0 which accompany this distribution. * * The Apache License is available at * http://www.apache.org/licenses/LICE...
billwert/azure-sdk-for-java
sdk/spring/spring-cloud-azure-actuator-autoconfigure/src/main/java/com/azure/spring/cloud/actuator/autoconfigure/appconfiguration/AppConfigurationHealthConfiguration.java
<filename>sdk/spring/spring-cloud-azure-actuator-autoconfigure/src/main/java/com/azure/spring/cloud/actuator/autoconfigure/appconfiguration/AppConfigurationHealthConfiguration.java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.spring.cloud.actuator.au...
DatabaseMasters/CrowdFundingWebsite
gulpfile.js
<filename>gulpfile.js /* globals process */ const gulp = require('gulp'); const nodemon = require('gulp-nodemon'); const istanbul = require('gulp-istanbul'); const mocha = require('gulp-mocha'); const server = require('./server'); // HACK not recommended // set port // eslint-disable-next-line no-process-env // const p...
easyopsapis/easyops-api-go
protorepo-tool/basic/delete_tool.validator.pb.go
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: delete_tool.proto package basic import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" _ "github.com/gogo/protobuf/types" _ "github.com/mwitkow/go-proto-validators" github_com_mwitkow_go_proto_validators "git...
antonmedv/year
packages/2019/03/29/index.js
<reponame>antonmedv/year module.exports = new Date(2019, 2, 29)
AzarguNazari/Student_Residence_Service
backend/Authorization-Server/src/main/java/srs/AuthServer/model/AuthUser.java
package srs.AuthServer.model; import java.util.Collection; import javax.persistence.Column; import javax.persistence.GeneratedValue; import javax.persistence.Id; import lombok.Getter; import lombok.Setter; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.userdetails...
dacozai/algorithm-diary
cpp/src/str/intToRoman.cpp
<gh_stars>1-10 #include "test.h" /** Question no.12 medium * Author : Li-Han, Chen; 陳立瀚 * Date : 4th, January, 2020 * Source : https://leetcode.com/problems/integer-to-roman/ * Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. * * Given an integer, convert it to a roman numera...
pjbelo/WebsiteOne
experiments/landing_page_options.rb
ab_test "Landing page options" do description "Mirror, mirror on the wall, who's the better price of all?" alternatives 'text_trail','text_and_image_trail' metrics :signups, :premium_signups end
uk-gov-mirror/DFE-Digital.find-teacher-training
spec/features/courses/results_spec.rb
require 'rails_helper' describe 'Search results', type: :feature do include StubbedRequests::Courses include StubbedRequests::Subjects let(:results_page) { PageObjects::Page::Results.new } let(:base_parameters) { results_page_parameters } let(:subject) do build( :subject, :english, s...
lechium/iPhoneOS_12.1.1_Headers
System/Library/PrivateFrameworks/ContactsUICore.framework/_CNUIUserActionUserActivityItem.h
<gh_stars>10-100 /* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:45:08 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/PrivateFrameworks/ContactsUICore.framework/ContactsUICore * classdump-dyld is licensed under GPLv3, Co...
alvaropp/AdventOfCode2017
2020/day3-2.py
import numpy as np with open("day3.txt", "r") as f: map = f.read().splitlines() moves = [ np.array([1, 1]), np.array([1, 3]), np.array([1, 5]), np.array([1, 7]), np.array([2, 1]), ] def count_trees(move): pos = np.array([0, 0]) n_lines = len(map) n_trees = 0 while pos[0] < n_l...
eenurkka/incubator-nuttx
arch/arm/src/sama5/sam_serialinit.c
/**************************************************************************** * arch/arm/src/sama5/sam_serialinit.c * * 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 copyrig...
checho651/bfx-report-ui
src/state/filters/saga.js
import { put, takeLatest, } from 'redux-saga/effects' import queryTypes from 'state/query/constants' import { getTarget } from 'state/query/utils' import uiTypes from 'state/ui/constants' import { decodeFilters } from 'state/filters/utils' import { fetchInvoices, refresh as refreshInvoices } from 'state/invoices/a...
Hyq0823/Stardust
src/main/java/com/java8/Student.java
package com.java8; /** * @Author: huangyunquan * @Description:Created on 2018/12/4 20:36. */ public class Student { private String name; public String getName() { return name; } public void setName(String name) { this.name = name; } }
techoopsie/oopsie-sdk-java
src/main/java/io/oopsie/sdk/Application.java
<filename>src/main/java/io/oopsie/sdk/Application.java package io.oopsie.sdk; import io.oopsie.sdk.error.NotFoundInModelException; import java.util.stream.Stream; public class Application { private final String name; private final Resources resources; Application(String name, Resources resources) { ...
jacadcaps/webkitty
Source/WebCore/layout/inlineformatting/LineLayoutContext.h
/* * Copyright (C) 2019 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
consulo/incubating-consulo-ruby
ruby-api/src/main/java/org/jetbrains/plugins/ruby/ruby/sdk/jruby/JRubySdkType.java
<reponame>consulo/incubating-consulo-ruby /* * Copyright 2000-2008 JetBrains s.r.o. * * 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 * *...
deti/boss
backend/model/migrate/env.py
<filename>backend/model/migrate/env.py import conf from alembic import context from sqlalchemy import engine_from_config, pool from logging.config import fileConfig import logging from model import db from sqlalchemy.sql.sqltypes import Boolean from sqlalchemy.dialects.mysql.base import TINYINT USE_TWOPHASE = False #...
DVSR1966/par4all
packages/PIPS/validation/Scilab/Scilab2C-2/interfaces/int_cos.h
<filename>packages/PIPS/validation/Scilab/Scilab2C-2/interfaces/int_cos.h /* * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab * Copyright (C) 2008-2008 - INRIA - <NAME> * * This file must be used under the terms of the CeCILL. * This source file is licensed as described in the file COPYING, which...
brainliubo/openairstudy
RRC_Rel14/LTE_DL-CCCH-MessageType.h
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "EUTRA-RRC-Definitions" * found in "/home/guicliu/ue_folder/openair2/RRC/LTE/MESSAGES/asn1c/ASN1_files/lte-rrc-14.7.0.asn1" * `asn1c -pdu=all -fcompound-names -gen-PER -no-gen-OER -no-gen-example -D /home/guicliu/ue_folder/cmake_targets...
gfreshinc/points
test/domain/rule_test.rb
<reponame>gfreshinc/points require "test_helper" require 'securerandom' require 'json' module GfreshPoint module Domain class RuleTest < Minitest::Test end end end
soyastudio/curly-clouds
curly-clouds-commons/src/main/java/soya/framework/commons/reflect/cloning/ICloningStrategy.java
<reponame>soyastudio/curly-clouds package soya.framework.commons.reflect.cloning; import java.lang.reflect.Field; public interface ICloningStrategy { enum Strategy { NULL_INSTEAD_OF_CLONE, // return null instead of a clone SAME_INSTANCE_INSTEAD_OF_CLONE, // return same instance instead of a clone IGNORE // ign...
au-re/exhibit
src/ApplicationList/ApplicationList/demo/completeList.js
import { ApplicationList, ApplicationListDropdown, ApplicationListItem } from "../../../lib"; import React from "react"; export default () => ( <ApplicationList> <ApplicationListItem label="not active" link="/Other" /> <ApplicationListItem label="active" link="/ApplicationList" /> <ApplicationListItem l...
Bechol/job4j
chapter_003/src/test/java/listtomap/UserConvertTest.java
package listtomap; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import org.junit.Test; import static org.hamcrest.core.Is.is; import static org.junit.Assert.assertThat; /** * Test. * * @author <NAME> (<EMAIL>) * @version $Id$ * @since 0.1 */ public class UserC...
antkmsft/azure-sdk-for-go
sdk/internal/log/log.go
<reponame>antkmsft/azure-sdk-for-go //go:build go1.18 // +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package log import ( "fmt" "os" "time" ) /////////////////////////////////////////////////////////////////////////////////////////////////// // NO...
eaciit/gdrj
modules/summarysalespls/update4pvaaddproductcat.go
<reponame>eaciit/gdrj package main import ( "eaciit/gdrj/model" "eaciit/gdrj/modules" "os" "flag" "github.com/eaciit/dbox" // "github.com/eaciit/orm/v1" "github.com/eaciit/toolkit" // "strings" "time" ) var conn dbox.IConnection var count int var ( t0 time.Time fiscalyear, iscoun...
alwell-kevin/gitlab
ee/app/helpers/ee/events_helper.rb
<reponame>alwell-kevin/gitlab<filename>ee/app/helpers/ee/events_helper.rb<gh_stars>0 # frozen_string_literal: true module EE module EventsHelper extend ::Gitlab::Utils::Override override :event_note_target_url def event_note_target_url(event) if event.epic_note? group_epic_url(event.group,...
naver/webgraphics
mozilla/gfx/graphite2/src/Code.cpp
/* GRAPHITE2 LICENSING Copyright 2010, SIL International All rights reserved. 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 License, or (at yo...
ZhekehZ/catboost
catboost/libs/helpers/ut/short_vector_ops_ut.cpp
#include <library/unittest/registar.h> #include <catboost/libs/helpers/short_vector_ops.h> #include <library/sse/sse.h> Y_UNIT_TEST_SUITE(ShortVectorOpsTest) { Y_UNIT_TEST(CalculateScorePattern) { #ifdef ARCADIA_SSE const double values[] = {0.0, 0.25, 0.5, 0.75}; auto genericHorizontalSum = NGene...
Xilinx/graphanalytics
louvainmod/src/partitionLouvain.cpp
<reponame>Xilinx/graphanalytics /* * Copyright 2021 Xilinx, 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 * * Unless require...
Zubrailx/university
year-1/Programming/lab-4/lab4/src/com/company/human/WoodenWoman.java
package com.company.human; import com.company.enums.*; import com.company.exceptions.SomeSameObjectsException; public class WoodenWoman extends AdvancedHumanWithBodyParts{ public static int id = 0; { id++; if (id > 1){ try { throw new SomeSameObjectsExc...
lightxun/LightJoker-For-Web
code/jq+bootstrap/Plugins/ckeditor/v4.14.1/plugins/uicolor/lang/sq.js
<gh_stars>1-10 /** * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'uicolor', 'sq', { title: 'UI Mbledhës i Ngjyrave', options: 'Variantet e Ngjyrave', highlight:...
deltegic/deltegic
thirdparty/aria2/src/XmlRpcRequestParserStateMachine.cc
/* <!-- copyright */ /* * aria2 - The high speed download utility * * Copyright (C) 2011 <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (a...
Freankll/vue-cli-3.0
src/api/kabuto/data-collision.js
import fetch from '@/libs/fetch/fetch'; import {getUrlByEnv} from './kabuto-common'; /** * 查询数据碰撞 * @param parameter */ export function pageDataCollisions(params) { return fetch({ url: getUrlByEnv(`/kabuto/in/data-collisions/page`), method: 'get', params }); } export function pageDa...
chrishmorris/PiMS
current/logic/src/org/pimslims/lab/experiment/LeftToRightGradient.java
package org.pimslims.lab.experiment; import java.util.Map; public class LeftToRightGradient extends Gradient { public LeftToRightGradient(float min, float max, String start, String end) { super(min, max, start, end); } @Override public Map<String, Float> gradient() { th...
jjiege/odoo
addons/hr_payroll_account/wizard/hr_payroll_payslips_by_employees.py
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, models class HrPayslipEmployees(models.TransientModel): _inherit = 'hr.payslip.employees' @api.multi def compute_sheet(self): journal_id = False if self.env.context.get...
xyxiaoyou/snappy-store
gemfire-junit/src/main/java/com/gemstone/gemfire/internal/cache/TXManagerImplJUnitTest.java
/* * Copyright (c) 2010-2015 Pivotal Software, Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. You * may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless req...
generate-cordova-package/generate-cordova-package-0.0.x
tests/render-plugin-demo-app/render-plugin-demo-app.test.js
<reponame>generate-cordova-package/generate-cordova-package-0.0.x<filename>tests/render-plugin-demo-app/render-plugin-demo-app.test.js<gh_stars>0 /* global it, expect */ /* (see <https://github.com/standard/standard/issues/905>) */ const renderPluginDemoApp = require('../../lib/cordova-plugin/demo-app/render') const ...
ggrrll/pandapipes
pandapipes/io/io_utils.py
<reponame>ggrrll/pandapipes<filename>pandapipes/io/io_utils.py # Copyright (c) 2020-2021 by Fraunhofer Institute for Energy Economics # and Energy System Technology (IEE), Kassel, and University of Kassel. All rights reserved. # Use of this source code is governed by a BSD-style license that can be found in the LICENSE...
eloymore/P32021
dependencies/CeguiDependencies/src/src/devil-1.7.8/src-ILUT/src/ilut_directx9.c
<reponame>eloymore/P32021 //----------------------------------------------------------------------------- // // ImageLib Utility Toolkit Sources // Copyright (C) 2000-2009 by <NAME> // Last modified: 01/30/2009 // // Filename: src-ILUT/src/ilut_directx9.c // // Description: DirectX 9 functions for textures // //-------...
harigad/Car_Keys_UI
app/controllers/testdrives/testdrives.js
$.header.openWindow($.testdrives); $.header.setTitle("test drives"); var header_row = Ti.UI.createTableViewRow(); var header_label = Ti.UI.createLabel({ height:Ti.UI.SIZE, left:20, text: "+ new test drive", color:"#40a3ff", font:{ fontSize:40 } }); header_row.addEventListener("click",function(){ va...
inodeman/kie-tools
scripts/unpack-maven-packages.js
<gh_stars>10-100 #!/usr/bin/env node /* * Copyright 2019 Red Hat, Inc. 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...
kokizzu/UVa
929/929.go
// UVa 929 - Number Maze package main import ( "container/heap" "fmt" "math" "os" ) type ( node struct{ y, x, cost int } priorityQueue []*node ) var directions = [][2]int{{0, -1}, {1, 0}, {0, 1}, {-1, 0}} func (pq priorityQueue) Len() int { return len(pq) } func (pq priorityQueue) Less(i, j int) bo...
Diez37/elastic-migrate
index/aliase.go
package index import "github.com/olivere/elastic/v7" type Alias struct { alias string routing *string filter elastic.Query } func NewAlias(alias string) *Alias { return &Alias{alias: alias} } func (alias *Alias) Alias() string { return alias.alias } func (alias *Alias) SetRouting(routing string) *Alias { ...
youngzil/quickstart-application-container
quickstart-quickserver/src/main/libsrc/QuickServerV2.1.0/src/main/org/quickserver/util/io/JarFileList.java
/* * This file is part of the QuickServer library * Copyright (C) QuickServer.org * * Use, modification, copying and distribution of this software is subject to * the terms and conditions of the GNU Lesser General Public License. * You should have received a copy of the GNU LGP License along with this * libra...
TencentCloud/tencentcloud-sdk-go-intl-en
tencentcloud/tcr/v20190924/models.go
// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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 // ...
qqizai/Func_Js_Crack
Funny_Js_Crack/138-中华英才网(RSA)/chinahr_login.py
# -*- coding: utf-8 -*- # @Time: 2019/12/24 9:36 # @Version: 1.0 # @Email: <EMAIL> # 代码千万条,整洁第一条,代码不规范,调试两行泪 import json import re import requests import execjs class ChinahrLogin: def __init__(self): self.username = 'username' self.password = 'password' self.index_url = 'https://passport...
fairhopeweb/isotope-mail
client/src/services/image.js
const dataUrlToBlob = dataUrl => { const dataUrlParts = dataUrl.split(','); const mime = dataUrlParts[0].match(/:(.*?);/)[1]; const binStr = atob(dataUrlParts[1]); const len = binStr.length; const u8arr = new Uint8Array(len); for (let i = 0; i < len; i++) { u8arr[i] = binStr.charCodeAt(i); } return...
ziwa-gangwang/AndroidDemo
app/src/main/java/com/zhou/android/ui/PwdEditText.java
<filename>app/src/main/java/com/zhou/android/ui/PwdEditText.java package com.zhou.android.ui; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.RectF; import android.text.InputType; import android.util.AttributeSet; imp...
craftyguy/u-root
pkg/acpi/rsdp_linux_test.go
<reponame>craftyguy/u-root // Copyright 2019 the u-root Authors. All rights reserved // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package acpi import ( "testing" "github.com/craftyguy/u-root/pkg/testutil" ) // TestRSDP tests whether any method for getting...
solidfire/solidfire-sdk-java
src/generated/java/com/solidfire/element/api/DriveStats.java
<gh_stars>1-10 /* * Copyright &copy 2014-2016 NetApp, Inc. 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 * *...
HoffmanAufs/retrieval_test
pkg/api/export_test.go
// Copyright 2020 The Swarm Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package api import "github.com/gauss-project/aurorafs/pkg/boson" type Server = server type ( BytesPostResponse = bytesPostResponse ChunkAddressRe...
INC-PSTORE/pstore
frontend/app/containers/unshielding-page/actions.js
/* * Unshield Page actions */ import { CHANGE_SELECTED_PTOKEN, CHANGE_AMOUNT_TO_UNSHIELD, UPDATE_STEP, DO_NOTHING, CHANGE_ETH_ADDRESS_TO_UNSHIELD, GET_LATEST_UNSUCCESSFUL_UNSHIELD_SUCCESS, GET_LATEST_UNSUCCESSFUL_UNSHIELD_FAILURE, REFRESH_UNSHIELD_FAILURE, UPDATE_INC_TX_INFO, UPDATE_ETH_TX_INFO, ...
erikpe/traci
src/se/ejp/traci/gui/BufferedImageDrawArea.java
<reponame>erikpe/traci package se.ejp.traci.gui; import java.awt.image.BufferedImage; import se.ejp.traci.model.Color; public class BufferedImageDrawArea extends AbstractDrawArea { private final BufferedImage image; public BufferedImageDrawArea(final int width, final int height) { super(width, h...
Arodev76/L2Advanced
dist/gameserver/data/scripts/ai/Elpy.java
package ai; import l2f.commons.util.Rnd; import l2f.gameserver.ai.Fighter; import l2f.gameserver.geodata.GeoEngine; import l2f.gameserver.model.Creature; import l2f.gameserver.model.instances.NpcInstance; import l2f.gameserver.utils.Location; public class Elpy extends Fighter { public Elpy(NpcInstance actor) { su...
T0UGH/zady-micro
zady-micro-report/src/main/java/com/edu/neu/zadymicroreport/controller/StatisticController.java
<reponame>T0UGH/zady-micro package com.edu.neu.zadymicroreport.controller; import com.edu.neu.zadymicrocommon.annotation.Auth; import com.edu.neu.zadymicrocommon.exception.NotFoundException; import com.edu.neu.zadymicrocommon.pojo.Bornout; import com.edu.neu.zadymicrocommon.pojo.DashBoard; import com.edu.neu.zadymicro...
hatbui345/yng-fishjoy
room/app/cmd/gateCmd.js
const SysCmd = require('../consts/sysCmd') /** * 网关接口定义 */ class GateCmd extends SysCmd{ constructor(){ super() this.initReq(); this.initPush(); } initReq(){ super.initReq(); /** * 分配登录服务器 * @type {{route: string, msg: {enc: string, data: {token...
vnma0/hestia
src/app/problemList/problemLauncher.js
<reponame>vnma0/hestia<filename>src/app/problemList/problemLauncher.js import React from 'react'; import { ListItemIcon, ListItemText } from '@material-ui/core'; import Description from '@material-ui/icons/Assignment'; import { withNamespaces } from 'react-i18next'; /** * @name ProblemLauncher * @description Element...
sergeishay/Screenters
source-pack/pro/ControlledSelect/ControlledSelectInput/index.js
<filename>source-pack/pro/ControlledSelect/ControlledSelectInput/index.js export { default } from './ControlledSelectInput'; export * from './ControlledSelectInput';
ckamtsikis/cmssw
DQM/SiStripMonitorSummary/interface/SiStripCablingDQM.h
<filename>DQM/SiStripMonitorSummary/interface/SiStripCablingDQM.h #ifndef SiStripMonitorSummary_SiStripCablingDQM_h #define SiStripMonitorSummary_SiStripCablingDQM_h #include "CalibFormats/SiStripObjects/interface/SiStripDetCabling.h" #include "CalibTracker/Records/interface/SiStripDetCablingRcd.h" #include "DQM/SiSt...
MarcusJones/udacity_blockchain
PROJECT7_flight_surety_FINAL/src/server/server.js
import FlightSuretyApp from '../../build/contracts/FlightSuretyApp.json'; // import FlightSuretyData from '../../build/contracts/FlightSuretyData.json'; import Config from './config.json'; import Web3 from 'web3'; import express from 'express'; import { start } from 'repl'; let config = Config['localhost']; let web3 ...
verdantyang/janusgraph
janusgraph-backend-testutils/src/main/java/org/janusgraph/graphdb/GraphDatabaseConfigurationInstanceExecutorServiceTest.java
<filename>janusgraph-backend-testutils/src/main/java/org/janusgraph/graphdb/GraphDatabaseConfigurationInstanceExecutorServiceTest.java // Copyright 2021 JanusGraph 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...
rekeiri/slogo
src/model/commands/control/StringVar.java
<filename>src/model/commands/control/StringVar.java package model.commands.control; import java.util.List; import model.commands.Command; import model.commands.CommandException; import model.state.State; public class StringVar extends Command { private String name; @Override public List<State> execute(List<State...
insphereapplication/rhodes
platform/bb/Hsqldb/src/com/rho/db/HsqlDBResult.java
<gh_stars>0 package com.rho.db; import org.hsqldb.Record; import org.hsqldb.Result; import org.hsqldb.Trace; import org.hsqldb.Types; import org.hsqldb.HsqlException; import com.xruby.runtime.builtin.ObjectFactory; import com.xruby.runtime.lang.*; import j2me.math.Number; public class HsqlDBResult implements IDBResu...
bifeldy/PM-Mingguan
Week13_13536/app/src/main/java/id/ac/umn/week13_13536/SignedInActivity.java
package id.ac.umn.week13_13536; import android.content.Intent; import android.os.PersistableBundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; i...
leffss/go-admin
cmd/var.go
<reponame>leffss/go-admin package cmd var ( password string mode string )
best08618/asylo
gcc-gcc-7_3_0-release/libgomp/testsuite/libgomp.oacc-c-c++-common/data-1.c
<reponame>best08618/asylo<filename>gcc-gcc-7_3_0-release/libgomp/testsuite/libgomp.oacc-c-c++-common/data-1.c /* { dg-do run } */ #include <stdlib.h> #include <openacc.h> int i; int is_mapped (void *p, size_t n) { #if ACC_MEM_SHARED return 1; #else return acc_is_present (p, n); #endif } int main(void) { int j...
TigerBSD/FreeBSD-Custom-ThinkPad
FreeBSD/contrib/llvm/tools/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/AuxVector.cpp
<filename>FreeBSD/contrib/llvm/tools/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/AuxVector.cpp //===-- AuxVector.cpp -------------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // Licen...
cameronbraid/zephyr
kernel-core/src/main/java/io/zephyr/common/io/Checker.java
<gh_stars>10-100 package io.zephyr.common.io; @FunctionalInterface public interface Checker<T> { boolean check(T value); }
SmartElect/SmartElect
audit/tests/test_message_uuid.py
from uuid import uuid4 from django.conf import settings from register.tests.base import LibyaRapidTest from register.models import SMS class MessageUUID(LibyaRapidTest): def setUp(self): self.uuid = uuid4().hex self.conn = self.create_connection() def test_incoming_message(self): # ...
fossabot/goradd
pkg/page/control/repeater.go
<gh_stars>1-10 package control import ( "bytes" "context" "github.com/goradd/gengen/pkg/maps" "github.com/goradd/goradd/pkg/html" "github.com/goradd/goradd/pkg/log" "github.com/goradd/goradd/pkg/page" ) type RepeaterI interface { PagedControlI DrawItem(ctx context.Context, i int, data interface{}, buf *bytes....
ncl427/openair-cn
SRC/NAS/API/NETWORK/nas_message_xml.h
/* * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to You under * the Apache Licens...
johnapost/overwatch-league-fantasy
src/app/shared/hasErrors.js
// @flow export default (fieldsError: Object) => Object.keys(fieldsError).some(field => fieldsError[field]);
CrankySupertoon/VoidCraft-Community-Edition
src/main/java/tamaized/dalquor/common/vademecum/IVadeMecumCrafting.java
<reponame>CrankySupertoon/VoidCraft-Community-Edition<filename>src/main/java/tamaized/dalquor/common/vademecum/IVadeMecumCrafting.java package tamaized.dalquor.common.vademecum; import net.minecraft.client.gui.FontRenderer; import tamaized.dalquor.client.gui.VadeMecumGUI; public interface IVadeMecumCrafting { publi...
iagerogiannis/numerical-analysis
numerical_analysis/splines/__init__.py
from .bezier import Bezier from .composite_bezier import CompositeBezier, CompositeQuadraticBezier, CompositeCubicBezier
Versal/cdnjs
ajax/libs/rimg/0.3.5/rimg.js
<filename>ajax/libs/rimg/0.3.5/rimg.js 'use strict'; !function(){ if(!console){ console = { log: function(){}, error: function(){} } } var Rimg = function() { var hidden = { status : 'init', observer : null, breakpoints : ...
tonko2/AtCoder
abc/abc249/b/main.py
<filename>abc/abc249/b/main.py import sys import math from collections import defaultdict, deque sys.setrecursionlimit(10 ** 6) stdin = sys.stdin INF = float('inf') ni = lambda: int(ns()) na = lambda: list(map(int, stdin.readline().split())) ns = lambda: stdin.readline().strip() S = ns() alpha = set() lower_flag =...
gtorvald/gauge3panel
node_modules/@iconscout/react-unicons/icons/uil-money-withdraw.js
<reponame>gtorvald/gauge3panel import React from 'react'; import PropTypes from 'prop-types'; const UilMoneyWithdraw = (props) => { const { color, size, ...otherProps } = props return React.createElement('svg', { xmlns: 'http://www.w3.org/2000/svg', width: size, height: size, viewBox: '0 0 24 24', ...
onnohaldar/istd-ld-voorbeelden
pub-examples/iWmo_Jw_Eb_Splits/data/view_28315_data.js
var viewData = {"id":28315,"isExpandedObject":false}; var objectRelations = { "28315" : [{"via": "is geassocieerd met","to": ["28314"]}] }; var objectData = { "28315" : { "id":28315, "typeIconPath":"data/icons/UML/UML_ClassDiagram.png", "data" : [ { "lang":"nl", "name":"WMO315", "type":"Klassendiagram", "c...
dyna-mis/Hilabeling
src/gui/editorwidgets/core/qgseditorwidgetautoconf.cpp
<reponame>dyna-mis/Hilabeling /*************************************************************************** qgseditorwidgetautoconf.cpp --------------------- begin : July 2016 copyright : (C) 2016 by <NAME> email : <EMAIL>.<EMAIL>cchi at camptocamp.com ******...
rob-duewer/caf-common
util-naming/src/main/test/com/hpe/caf/naming/NameTest.java
<gh_stars>0 /* * Copyright 2015-2017 Hewlett Packard Enterprise Development LP. * * 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 * ...
SQuAT-Team/SQuAT-docker
squat.modifiability/src/main/java/io/github/squat_team/modifiability/kamp/KAMPPCMBot.java
package io.github.squat_team.modifiability.kamp; import java.util.ArrayList; import java.util.List; import edu.squat.transformations.ArchitecturalVersion; import io.github.squat_team.AbstractPCMBot; import io.github.squat_team.model.PCMArchitectureInstance; import io.github.squat_team.model.PCMScenarioResult; import ...
jessamynsmith/django-opendebates
opendebates/tests/test_headlines.py
from functools import partial from django.contrib.sites.models import Site from django.core.urlresolvers import reverse from django.test import TestCase import mock from ..models import Submission from .factories import SubmissionFactory, UserFactory, VoterFactory, SiteFactory, DebateFactory # Force the reverse() ...
Master-LC/Java-Utils
src/main/java/com/hz/tgb/crypto/sign/SignatureUtil.java
<filename>src/main/java/com/hz/tgb/crypto/sign/SignatureUtil.java package com.hz.tgb.crypto.sign; import com.google.common.base.Preconditions; import com.google.common.collect.Lists; import com.google.common.collect.Maps; import com.google.common.collect.Sets; import java.lang.reflect.Field; import java.util.*;...
AccelByte/accelbyte-services-api
platform-sdk/pkg/platformclient/i_a_p/delete_i_a_p_item_config_responses.go
<gh_stars>1-10 // Code generated by go-swagger; DO NOT EDIT. package i_a_p // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io/ioutil" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" ) // DeleteIA...
royyau41/presentation
app/lib/getData.js
<gh_stars>0 var db=require('db').db; exports.propGroup={ getLastPropgroupNo:function(){ var $sql='select max(number) number from propgroup where deletedate =0 '; var res=runSql($sql); return res[0].number||0; } }; exports.property={ getList:function(propgroup,specClause,orderBy){ if (typeof orderBy=='...
wolflion/Code2018
C/DS-LCB/chap02LinearList/0202LinkList/LinkList.h
<gh_stars>0 #include <stdio.h> #include <malloc.h> #define MaxSize 50 typedef char ElemType; typedef struct LNode { ElemType data; struct LNode *next; }LinkList; void InitList(LinkList * &L); void DestoryList(LinkList *L); int ListEmpty(LinkList *L); int ListLength(LinkList *L); void DispList(LinkList *L); int Ge...
smagill/opensphere-desktop
open-sphere-base/core/src/main/java/io/opensphere/core/math/WGS84EarthConstants.java
<reponame>smagill/opensphere-desktop package io.opensphere.core.math; import io.opensphere.core.util.MathUtil; /** Earth constants. */ public final class WGS84EarthConstants { /** Circumference around the equator. */ public static final double CIRCUMFERENCE_EQUATORIAL_M; /** Mean circumference. */ pu...
evgenyvinnik/jvsc-android-apps
FluteHero2/src/ca/jvsh/flute/scoreloop/UserActivity.java
<reponame>evgenyvinnik/jvsc-android-apps /* * In derogation of the Scoreloop SDK - License Agreement concluded between * Licensor and Licensee, as defined therein, the following conditions shall * apply for the source code contained below, whereas apart from that the * Scoreloop SDK - License Agreement shall remain...
lhuard1A/origin
pkg/client/testclient/fake_identities.go
package testclient import ( ktestclient "k8s.io/kubernetes/pkg/client/unversioned/testclient" "k8s.io/kubernetes/pkg/fields" "k8s.io/kubernetes/pkg/labels" userapi "github.com/openshift/origin/pkg/user/api" ) // FakeIdentities implements IdentitiesInterface. Meant to be embedded into a struct to get a default //...
carpe-noctem-cassel/alica
alica_tests/src/test/test_task_assignment.cpp
#include "BehaviourCreator.h" #include "ConditionCreator.h" #include "ConstraintCreator.h" #include "UtilityFunctionCreator.h" #include "engine/AgentIDConstPtr.h" #include "engine/AlicaClock.h" #include "engine/AlicaEngine.h" #include "engine/IRoleAssignment.h" #include "engine/PlanBase.h" #include "engine/PlanReposito...
energonQuest/dtEarth
ext/include/applications/osgearth_shadercomp/osgearth_shadercomp.cpp
<filename>ext/include/applications/osgearth_shadercomp/osgearth_shadercomp.cpp /* -*-c++-*- */ /* osgEarth - Dynamic map generation toolkit for OpenSceneGraph * Copyright 2008-2013 Pelican Mapping * http://osgearth.org * * osgEarth is free software; you can redistribute it and/or modify * it under the terms of the GNU ...