repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
woshidaniu-com/niutal
niutal-component-wjdc-parent/niutal-component-wjdc-ext/src/main/java/com/woshidaniu/wjdc/dao/daointerface/IWjdjztDao.java
/** * <p>Copyright (R) 2014 我是大牛软件股份有限公司。<p> */ package com.woshidaniu.wjdc.dao.daointerface; import java.util.List; import java.util.Map; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; import com.woshidaniu.wjdc.dao.entites.WjdjztModel; @Repository("wjdjztDao") publ...
Fraser-Greenlee/transformer-vae
transformer_vae/tokenizer_train.py
''' Train a BPE on a given Huggingface dataset. ''' import os from tqdm import tqdm from dataclasses import dataclass, field from datasets import load_dataset from tokenizers import ByteLevelBPETokenizer, CharBPETokenizer from transformers import HfArgumentParser TOKENIZERS = { 'byte': ByteLevelBPETokenizer, ...
BearerPipelineTest/daml
ledger/ledger-api-bench-tool/src/main/scala/com/daml/ledger/api/benchtool/services/CommandService.scala
<reponame>BearerPipelineTest/daml<gh_stars>0 // Copyright (c) 2022 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. // SPDX-License-Identifier: Apache-2.0 package com.daml.ledger.api.benchtool.services import com.daml.ledger.api.benchtool.AuthorizationHelper import com.daml.ledger.api.v1.c...
modelingcovid/covidmodel
lib/controls.js
import {addDays, daysToMonths, today} from './date'; import {formatNumber, formatPercent, formatShortCalendarDate} from './format'; export const stateLabels = { AL: 'Alabama', AK: 'Alaska', AS: 'American Samoa', AZ: 'Arizona', AR: 'Arkansas', CA: 'California', CO: 'Colorado', CT: 'Connecticut', DE: '...
tied/innovation-funding-service
ifs-resources/src/main/java/org/innovateuk/ifs/questionnaire/resource/QuestionnaireTextOutcomeResource.java
<filename>ifs-resources/src/main/java/org/innovateuk/ifs/questionnaire/resource/QuestionnaireTextOutcomeResource.java package org.innovateuk.ifs.questionnaire.resource; public class QuestionnaireTextOutcomeResource { private Long id; private String text; private QuestionnaireDecisionImplementation implem...
jonathanedgecombe/anvil
api-client/src/main/java/com/wyverngame/anvil/api/client/event/UpdateFaceEvent.java
package com.wyverngame.anvil.api.client.event; import com.wyverngame.anvil.api.event.Event; public final class UpdateFaceEvent extends Event<Void> { private final long target; private final long newFace; public UpdateFaceEvent(long target, long newFace) { this.target = target; this.newFace = newFace; } pub...
indefinitelee/Learning
KnightMoves.js
function minKnightMoves(x, y) { let q = [[0, 0]]; let steps = 0; let visited = new Set(); visited.add(`${0}-${0}`); x = Math.abs(x); y = Math.abs(y); let directions = [ [-2, 1], [-1, 2], [-1, -2], [-2, -1], [2, 1], [1, 2], [1, -2], [2, -1]]; while( q.length > 0 ) { let length = q.length; ...
projectPiki/pikmin2
src/JSystem/JKR/JKRCompArchive.cpp
#include "types.h" /* Generated from dpostproc .section .rodata # 0x804732E0 - 0x8049E220 .global lbl_804735C8 lbl_804735C8: .4byte 0x4A4B5243 .4byte 0x6F6D7041 .4byte 0x72636869 .4byte 0x76652E63 .4byte 0x70700000 .global lbl_804735DC lbl_804735DC: ...
interference-project/interference
src/main/java/su/interference/sql/JoinCondition.java
<gh_stars>10-100 /** The MIT License (MIT) Copyright (c) 2010-2019 head systems, ltd 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 ...
layeredapps/dashboard
src/www/api/user/set-session-ended.js
<filename>src/www/api/user/set-session-ended.js const dashboard = require('../../../../index.js') module.exports = { patch: async (req) => { if (!req.query || !req.query.sessionid) { throw new Error('invalid-sessionid') } const session = await global.api.user.Session.get(req) if (!session) { ...
dmgerman/zephyrd3
drivers/serial/uart_mcux.c
<filename>drivers/serial/uart_mcux.c DECL|base|member|UART_Type *base; DECL|baud_rate|member|u32_t baud_rate; DECL|callback|member|uart_irq_callback_user_data_t callback; DECL|cb_data|member|void *cb_data; DECL|clock_name|member|char *clock_name; DECL|clock_subsys|member|clock_control_subsys_t clock_subsys; DECL|irq_co...
microsoftgraph/msgraph-beta-sdk-go
models/managedtenants/management_action_status.go
package managedtenants import ( "errors" ) // Provides operations to manage the tenantRelationship singleton. type ManagementActionStatus int const ( TOADDRESS_MANAGEMENTACTIONSTATUS ManagementActionStatus = iota COMPLETED_MANAGEMENTACTIONSTATUS ERROR_MANAGEMENTACTIONSTATUS TIMEOUT_MANAGEMENTACTION...
littlecurl/AppProjects
AndroidDatabaseDemo/app/src/main/java/cn/edu/heuet/demo/MainActivity.java
<reponame>littlecurl/AppProjects<filename>AndroidDatabaseDemo/app/src/main/java/cn/edu/heuet/demo/MainActivity.java<gh_stars>100-1000 package cn.edu.heuet.demo; import android.content.Intent; import android.os.Bundle; import android.view.View; import androidx.appcompat.app.AppCompatActivity; import androidx.databindi...
Hydrorastaman/PDFOut-SDK
kernel/include/font/CIDSystemInfoDictionary.h
#pragma once #include <object/ObjectDictionary.h> #include <font/CMapName.h> namespace kernel{ namespace font{ enum CIDSystemInfoDictionaryKey{ CIDSystemInfoDictionaryKeyRegistry, // Required CIDSystemInfoDictionaryKeyOrdering, // Required CIDSystemInfoDictionaryKeySupplement // Required ...
cwaldron97/bitcoin-s
core-test/src/test/scala/org/bitcoins/core/serializers/p2p/messages/RawAddrMessageSerializerTest.scala
package org.bitcoins.core.serializers.p2p.messages import org.bitcoins.core.number.UInt64 import org.bitcoins.core.protocol.CompactSizeUInt import org.scalatest.{FlatSpec, MustMatchers} class RawAddrMessageSerializerTest extends FlatSpec with MustMatchers { //from this bitcoin developer guide example //https://b...
Srinivasan47/iOS-scroll
js/analytics.js
(function() { $('#mainWrapper').off('click.analytics').on('click.analytics', '[wg-analytics^="on"]', function(e) { var analyticsName = $.trim(this.getAttribute('wg-analytics').split('|')[1]), params = { 'userId' : $('.avatar-name').attr('studentId') }; console.log('@w...
upb-uc4/University-Credits-4.0
product_code/admission_service/impl/src/main/scala/de/upb/cs/uc4/admission/impl/AdmissionServiceImpl.scala
<filename>product_code/admission_service/impl/src/main/scala/de/upb/cs/uc4/admission/impl/AdmissionServiceImpl.scala<gh_stars>1-10 package de.upb.cs.uc4.admission.impl import akka.cluster.sharding.typed.scaladsl.{ ClusterSharding, EntityRef } import akka.stream.Materializer import akka.util.Timeout import akka.{ Done,...
Alok255/hackerrank
practice/algorithms/implementation/cavity_map/CavityMap.scala
<filename>practice/algorithms/implementation/cavity_map/CavityMap.scala<gh_stars>100-1000 import scala.io.Source object CavityMap extends App { val lines = Source.stdin.getLines().toList val n = lines.head.toInt val map = lines.tail.mkString val innerIndexes = map.indices.filter( i => i > n && i < n * (n...
strategicallynicole/oaky
src/pages/about.js
<reponame>strategicallynicole/oaky /** * @description : * @author : * @group : * @created : 02/07/2021 - 18:56:32 * * MODIFICATION LOG * - Version : 1.0.0 * - Date : 02/07/2021 * - Author : * - Modification : **/ i...
Snowapril/VFS
VFS/RenderPass/ReflectiveShadowMapPass.h
<gh_stars>1-10 // Author : <NAME> (snowapril) #if !defined(VFS_REFLECTIVE_SHADOW_MAP_PASS_H) #define VFS_REFLECTIVE_SHADOW_MAP_PASS_H #include <RenderPass/RenderPassBase.h> #include <DirectionalLight.h> namespace vfs { class GLTFScene; class ReflectiveShadowMapPass : public RenderPassBase { public: explicit Re...
databeast/whatnot
mutex/deadlock.go
package mutex import ( "bufio" "bytes" "fmt" "github.com/petermattis/goid" "io/ioutil" "runtime" "sync" "time" ) const deadlockdumpheader = "POTENTIAL DEADLOCK:" // THIS IS THE THING THAT DOES DEADLOCK ANALYSIS func deadlockcheck(lockFn func(), ptr interface{}) { if Opts.Disable { lockFn() return } pr...
MistressAlison/OrangeJuiceTheSpire
OrangeJuiceTheSpire/src/main/java/Moonworks/cards/IndiscriminateFireSupport.java
<gh_stars>1-10 package Moonworks.cards; import Moonworks.OrangeJuiceMod; import Moonworks.actions.IndiscriminateFireSupportAction; import Moonworks.cardModifiers.NormaDynvarModifier; import Moonworks.cards.abstractCards.AbstractNormaAttentiveCard; import Moonworks.characters.TheStarBreaker; import basemod.helpers.Card...
wu87988622/ohara
ohara-common/src/main/java/oharastream/ohara/common/annotations/Optional.java
<gh_stars>1-10 /* * Copyright 2019 is-land * * 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...
m-ahmadi/exref
fb/moment.js/basic.js
<filename>fb/moment.js/basic.js moment().format(); // "2014-09-08T08:02:17-05:00" (ISO 8601, no fractional seconds) moment().format("dddd, MMMM Do YYYY, h:mm:ss a"); // "Sunday, February 14th 2010, 3:25:50 pm" moment().format("ddd, hA"); // "Sun, 3PM" moment('gibberi...
thednp/shorter-js
src/strings/scrollHeight.js
<reponame>thednp/shorter-js /** * A global namespace for `scrollHeight` property. * @type {string} */ const scrollHeight = 'scrollHeight'; export default scrollHeight;
JaredRiceSr/GoAsteroid
parser/file_test.go
package parser import ( "fmt" "testing" "github.com/benchlab/bvmUtils" ) func TestEmptyContract(t *testing.T) { p, errs := ParseFile("../samples/tests/empty.grd") bvmUtils.Assert(t, p != nil, "parser should not be nil") bvmUtils.Assert(t, errs == nil, errs.Format()) } func TestConstructorContract(t *testing.T...
Song-Li/TAJS
test/src/dk/brics/tajs/test/nativeobjects/JSObject_defineProperty_test.java
<reponame>Song-Li/TAJS<filename>test/src/dk/brics/tajs/test/nativeobjects/JSObject_defineProperty_test.java package dk.brics.tajs.test.nativeobjects; import dk.brics.tajs.Main; import dk.brics.tajs.options.Options; import dk.brics.tajs.test.Misc; import dk.brics.tajs.util.AnalysisResultException; import org.junit.Befo...
yamanakahirofumi/RogueInJava
src/main/java/org/hiro/Main2.java
package org.hiro; import org.hiro.character.Player; import org.hiro.output.Display; public class Main2 { /* * my_exit: * Leave the process properly */ static void my_exit(int st) { Mach_dep.resetltchars(); System.exit(st); } /* * leave: * Leave quickly, but c...
cknow/validatorjs
packages/test/src/types/undefined-types.js
<reponame>cknow/validatorjs export const undefinedTypes = [ undefined ];
mtaimoorkhan/jml4sec
BM/OpenJMLUI/runtime/org/jmlspecs/unfinished/JMLEqualsSetEnumerator.java
<gh_stars>0 // @(#)$Id: JMLSetEnumerator.java-generic,v 1.32 2005/12/24 21:20:31 chalin Exp $ // Copyright (C) 2005 Iowa State University // // This file is part of the runtime library of the Java Modeling Language. // // This library is free software; you can redistribute it and/or // modify it under the terms of the...
samyvic/OS-Project
Read Only/gdb-7.12.1/sim/cris/cris-sim.h
/* Collection of junk for CRIS. Copyright (C) 2004-2017 Free Software Foundation, Inc. Contributed by Axis Communications. This file is part of the GNU simulators. 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 S...
smbc-digital/iag-webapp
src/StockportWebapp/wwwroot/assets/javascript/stockportgov/cludo.js
define(["jquery", "cludo"], function ($, cludo) { var init = function () { var cludoSettings = { customerId: 112, engineId: 1144, type: 'standardOverlay', hideSearchFilters: true, initSearchBoxText: '', searchInputs: ["cludo-search-fo...
Andrei15193/Laboratoare-Facultate
Semestrul4/AOP/L1/aop1/persistence/file/AllMarksInFile.java
<gh_stars>1-10 package aop1.persistence.file; import java.io.EOFException; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.util.LinkedList; import java.util.List; import org.apache.log4j.Level...
comex/libogc
wiiuse/wiiboard.c
<filename>wiiuse/wiiboard.c /* * wiiuse * * Written By: * <NAME> < para > * Email: < thepara (--AT--) g m a i l [--DOT--] com > * * Copyright 2006-2007 * * This file is part of wiiuse. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public L...
mdwhatcott/advent-of-code
go/2019/day07/iter.go
<reponame>mdwhatcott/advent-of-code<filename>go/2019/day07/iter.go package advent // python's itertools to the rescue! // // import itertools // itertools.permutations(range(5), 5) // var phaseCombinations = [][]int{ {0, 1, 2, 3, 4}, {0, 1, 2, 4, 3}, {0, 1, 3, 2, 4}, {0, 1, 3, 4, 2}, {0, 1, 4, 2, 3}, {0, 1, 4, ...
sniperkit/colly
plugins/data/transform/optimus/sources/csv/csv.go
<reponame>sniperkit/colly package csv import ( "encoding/csv" "fmt" "io" "sync" "gopkg.in/Clever/optimus.v3" ) type table struct { err error rows chan optimus.Row m sync.Mutex stopped bool } func (t *table) start(reader *csv.Reader) { defer t.Stop() defer close(t.rows) headers, err := read...
vitei/Usa
Engine/Scene/Model/ModelEffectComponents.h
/**************************************************************************** // Usagi Engine, Copyright © Vitei, Inc. 2016 *****************************************************************************/ #ifndef __FADE_RUNTIEM_COMPONENT__ #define __FADE_RUNTIEM_COMPONENT__ #include "Engine/Framework/GameComponents.h...
fangjinuo/langx
langx-java/src/main/java/com/jn/langx/util/struct/ThreadLocalHolder.java
package com.jn.langx.util.struct; import com.jn.langx.util.Emptys; import com.jn.langx.util.function.Supplier0; public class ThreadLocalHolder<V> implements ValueHolder<V> { private ThreadLocal<V> local; public ThreadLocalHolder() { this((V) null); } public ThreadLocalHolder(final Supplier0<...
bianapis/sd-customer-campaign-execution-v2
src/main/java/org/bian/dto/BQExecutionInitiateOutputModelCustomerCampaignProcedureInstanceRecord.java
package org.bian.dto; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.bian.dto.BQExecutionInitiateOutputModelCustomerCampaignProcedureInstanceRecordCustomerCampa...
ephes/django-cast
tests/test_post_published.py
<reponame>ephes/django-cast import pytest from datetime import timedelta from django.urls import reverse from django.utils import timezone from cast.models import Post class TestPublished: pytestmark = pytest.mark.django_db def test_get_only_published_entries(self, client, unpublished_post): bp = ...
baratharon/graal-erl
graal-erl/com.oracle.truffle.erl/src/com/oracle/truffle/erl/nodes/local/ErlLocalVariableNode.java
/* * Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * The Universal Permissive License (UPL), Version 1.0 * * Subject to the condition set forth below, permission is hereby granted to any * person obtaining a copy of ...
kettlebell/ergo
src/test/scala/org/ergoplatform/nodeView/viewholder/ErgoNodeViewHolderSpec.scala
<gh_stars>0 package org.ergoplatform.nodeView.viewholder import java.io.File import org.ergoplatform.ErgoBoxCandidate import org.ergoplatform.modifiers.ErgoFullBlock import org.ergoplatform.nodeView.history.ErgoHistory import org.ergoplatform.nodeView.state.StateType.Utxo import org.ergoplatform.nodeView.state._ impor...
yonzkon/EwokOS
kernel/src/kmessage.c
#include <kmessage.h> #include <string.h> #include <proc.h> #include <mm/kmalloc.h> static int _pkgIDCount = 0; int ksend(int id, int pid, PackageT* pkg) { if(pkg == NULL) { return -1; } ProcessT* toProc = procGet(pid); if(toProc == NULL) { return -1; } KMessageT* msg = kmalloc(sizeof(KMessageT)); if(ms...
hernandito/nzbhydra2-1
other/github-release-plugin/src/main/java/org/nzbhydra/github/mavenreleaseplugin/PrecheckMojo.java
package org.nzbhydra.github.mavenreleaseplugin; import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugins.annotations.Mojo; @SuppressWarnings("unchecked") @Mojo(name = "precheck", requiresOnline = true, //Obviously inheritByDefault = false, aggregator = true //Onl...
damavis/damavis-spark
damavis-spark-core/src/test/scala/com/damavis/spark/utils/SparkTestSupport.scala
package com.damavis.spark.utils import scala.util.Try trait SparkTestSupport { def checkExceptionOfType[T <: Throwable](tryResult: Try[_], exClass: Class[T], pattern: String): Unit = { assert(tryResult.isFailure) try { ...
irhamzh/bri-superteam
src/modules/generalAffair/pengelolaanKendaraan/kendaraan/pajakKendaraan/actions.js
import Service from '../../../../../config/services' import { AlertMessage } from '../../../../../helpers' import { CREATE_PAJAK_KENDARAAN_LOADING, CREATE_PAJAK_KENDARAAN_SUCCESS, CREATE_PAJAK_KENDARAAN_ERROR, UPDATE_PAJAK_KENDARAAN_LOADING, UPDATE_PAJAK_KENDARAAN_SUCCESS, UPDATE_PAJAK_KENDARAAN_ERROR, DE...
ncbray/pystream
bin/util/application/errorhandler.py
# Copyright 2011 <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 agreed to in writing, softw...
zzh8829/CompetitiveProgramming
USACO/2013-2014/Jan/Bronze/bteams.cpp
<reponame>zzh8829/CompetitiveProgramming #include <iostream> #include <climits> #include <cstdio> #include <vector> using namespace std; bool bm[12]; int n1,n2,n3,n4; int best = INT_MAX; int a[12]; void combinations(int pos,int k,void (*callback)(),int& nt) { if(k==0) { callback(); return ; } ...
ascartabelli/lamb
src/array/getIndex.js
import _toArrayLength from "../privates/_toArrayLength"; import _toNaturalIndex from "../privates/_toNaturalIndex"; /** * Retrieves the element at the given index in an array-like object.<br/> * Like {@link module:lamb.slice|slice} the index can be negative.<br/> * If the index isn't supplied, or if its value isn't...
navikt/spsak
saksbehandling/webapp/src/test/java/no/nav/foreldrepenger/web/app/SjekkDtoStrukturTest.java
package no.nav.foreldrepenger.web.app; import java.beans.IntrospectionException; import java.beans.Introspector; import java.beans.PropertyDescriptor; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.lang.reflect.Modifier; import java.net.URISyntaxException; import java.util.ArrayList; impo...
tipresias/augury
src/augury/ml_estimators/confidence_estimator.py
<gh_stars>1-10 """Model for predicting percent confidence that a team will win.""" from typing import Union from sklearn.pipeline import make_pipeline, Pipeline import pandas as pd import numpy as np from xgboost import XGBClassifier from augury.sklearn.metrics import bits_objective from augury.settings import SEED ...
zhaitianduo/libosmium
include/osmium/osm/entity_bits.hpp
#ifndef OSMIUM_OSM_ENTITY_BITS_HPP #define OSMIUM_OSM_ENTITY_BITS_HPP /* This file is part of Osmium (https://osmcode.org/libosmium). Copyright 2013-2020 <NAME> <<EMAIL>> and others (see README). Boost Software License - Version 1.0 - August 17th, 2003 Permission is hereby granted, free of charge, to any person or...
taymoork2/react-widgets
scripts/start/commands/demo.js
const {startPackage} = require('../../utils/package'); module.exports = { command: 'demo <widgetName>', desc: 'Start a widget demo', builder: {}, handler: ({widgetName}) => { let pkgName; if (widgetName.startsWith('widget-')) { if (widgetName.endsWith('-demo')) { pkgName = widgetName; ...
ahmadabudames/data-structures-and-algorithms
python/code_challenges/linked_list/linked_list/linked_list.py
<filename>python/code_challenges/linked_list/linked_list/linked_list.py class Node: def __init__(self, value): self.value = value self.next = None class LinkedList: def __init__(self): self.head = None def insert(self, value='null'): try: node = Node(value) ...
arubdesu/zentral
zentral/contrib/santa/migrations/0002_collectedapplication_bundle_path.py
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2017-05-29 18:42 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('santa', '0001_initial'), ] operations = [ migrations.AddField( ...
sunsiyue/ACMEDB_MAIN
java/testing/org/apache/derbyTesting/functionTests/tests/lang/PredicatePushdownTest.java
package org.apache.derbyTesting.functionTests.tests.lang; import java.sql.CallableStatement; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.Statement; import java.util.Arrays; import java.util.Properties; import junit.framework.Test; import org.apache.d...
mikiec84/sshkit
lib/sshkit/backends/netssh/known_hosts.rb
<filename>lib/sshkit/backends/netssh/known_hosts.rb module SSHKit module Backend class Netssh < Abstract class KnownHostsKeys include Mutex_m def initialize(path) super() @path = File.expand_path(path) @hosts_keys = nil end def keys_for(host...
fredblain/docQE-corp
systems/2017/english-russian/newstest2017.jhu-pbmt.4986.en-ru/rt.com.45940.newstest2017.jhu-pbmt.4986.en-ru.ru
Еврейский режиссер бьет Берлинский отель для устранения Израиля набрать код после того, как арабские "запрос" - Новости РТ Французский режиссер еврейского происхождения развязала фурор в СМИ после того, как он показал, что Бристольский отель Кемпински в Берлине не списка, наберите код Израиля, работник, ссылаясь на "пр...
MrHacky/gridx
tests/doh/status/HScroller.js
define([ 'dojo/_base/query', 'dojo/dom-geometry', 'dojo/dom-style', '../GTest' ], function(query, domGeo, domStyle, GTest){ GTest.statusCheckers.push( { id: 'HScroller 1', name: 'when columns width exceed the width of body, show horizontal scroll bar', condition: function(grid){ return !grid.autoWidth &&...
xiaosongdeyx001/shujuku-----123
tourismwork-master/src/apps/manage/src/main/java/com/opentravelsoft/action/manage/finance/invoice/InvoiceAction.java
<reponame>xiaosongdeyx001/shujuku-----123 package com.opentravelsoft.action.manage.finance.invoice; import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import com.opentravelsoft.action.ManageAction; import com.opentravelsoft.e...
PassKit/passkit-java-grpc-sdk
src/main/java/com/passkit/grpc/Reporting.java
<reponame>PassKit/passkit-java-grpc-sdk // Generated by the protocol buffer compiler. DO NOT EDIT! // source: io/common/reporting.proto package com.passkit.grpc; public final class Reporting { private Reporting() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registr...
PJB2TY/hbase
hbase-server/src/main/java/org/apache/hadoop/hbase/quotas/FixedIntervalRateLimiter.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
eGovFrame/egovframework.rte.root
Integration/egovframework.rte.itl.integration/src/test/java/egovframework/rte/itl/integration/metadata/dao/hibernate/HibernateOrganizationDefinitionDaoTest.java
package egovframework.rte.itl.integration.metadata.dao.hibernate; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; import javax.sql.DataSource; import org.dbunit.database.IDatabase...
ate47/consoleexperience
src/main/java/com/fuzs/consoleexperience/client/element/TintedTooltipElement.java
package com.fuzs.consoleexperience.client.element; import com.fuzs.consoleexperience.client.gui.screen.util.RenderTooltipUtil; import net.minecraftforge.client.event.RenderTooltipEvent; import net.minecraftforge.common.ForgeConfigSpec; public class TintedTooltipElement extends GameplayElement { private int backg...
pmcollins/keybasket
test/unit/maintenance_request_test.rb
<filename>test/unit/maintenance_request_test.rb require File.dirname(__FILE__) + '/../test_helper' class MaintenanceRequestTest < Test::Unit::TestCase fixtures :units, :properties, :companies def test_create mr = MaintenanceRequest.create( :unit_id => 1 ) assert(mr) assert(mr.errors.empty?) ...
Otaka/Ktr4j
KotorConverter/src/main/java/com/kotor4j/kotorconverter/original/rim/Rim.java
package com.kotor4j.kotorconverter.original.rim; import com.kotor4j.kotorconverter.original.bif.BiffEntry; import java.io.File; /** * @author Dmitry */ public class Rim { private File file; private BiffEntry[] resourceEntries; public BiffEntry[] getResourceEntries() { return resourceEntries; ...
metux/chromium-deb
third_party/WebKit/Source/core/dom/NonDocumentTypeChildNode.h
<filename>third_party/WebKit/Source/core/dom/NonDocumentTypeChildNode.h // Copyright 2014 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. #ifndef NonDocumentTypeChildNode_h #define NonDocumentTypeChildNode_h #include "c...
ercastil/superset-ui
plugins/plugin-chart-test/node_modules/@superset-ui/chart-controls/lib/components/CertifiedIconWithTooltip.js
"use strict"; exports.__esModule = true; exports.default = void 0; var _propTypes = _interopRequireDefault(require("prop-types")); var _react = _interopRequireDefault(require("react")); var _reactBootstrap = require("react-bootstrap"); var _lodash = require("lodash"); var _core = require("@superset-ui/core"); fu...
chengshangqian/netty
learning/netty-in-action/src/main/java/com/fandou/learning/netty/action/chapter10/ToIntDecoder.java
package com.fandou.learning.netty.action.chapter10; import io.netty.buffer.ByteBuf; import io.netty.channel.ChannelHandlerContext; import io.netty.handler.codec.ReplayingDecoder; import java.util.List; /** * 将字节转码为整数:继承ReplayingDecoder类 * 调用readInt等从缓冲中读取具体类型数据的方法时,不需要额外判断可读数据的长度,该类已经默认实现此调用 * 如果程序读取超出缓冲中可读数据范围,r...
Rotzbua/aocrecs.com
js/src/graphql/Latest.js
<filename>js/src/graphql/Latest.js import gql from 'graphql-tag'; import MatchFragment from "../graphql/MatchFragment.js" export default gql` query Latest($dataset_id: Int!, $order: [String], $offset: Int!, $limit: Int!) { latest { matches(dataset_id: $dataset_id, order: $order, offset: $offset, limit: $limit) ...
Zodzie/Javacord
javacord-core/src/main/java/org/javacord/core/entity/message/MessageAttachmentImpl.java
<filename>javacord-core/src/main/java/org/javacord/core/entity/message/MessageAttachmentImpl.java<gh_stars>100-1000 package org.javacord.core.entity.message; import com.fasterxml.jackson.databind.JsonNode; import org.apache.logging.log4j.Logger; import org.javacord.api.DiscordApi; import org.javacord.api.entity.Discor...
abrahamtovarmob/flang
runtime/libpgmath/lib/generic/rpowr.c
<filename>runtime/libpgmath/lib/generic/rpowr.c /* * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. * See https://llvm.org/LICENSE.txt for license information. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception * */ #include "mthdecls.h" float __mth_i_rpowr(float arg1, float...
wfu8/lightwave
vmidentity/rest/core/common/src/main/java/com/vmware/identity/rest/core/data/DTO.java
<reponame>wfu8/lightwave<filename>vmidentity/rest/core/common/src/main/java/com/vmware/identity/rest/core/data/DTO.java /* * Copyright (c) 2012-2015 VMware, 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 Lic...
mpaullos/cursoemvideo-python
Exercicios/Mundo2/ex064.py
<reponame>mpaullos/cursoemvideo-python n = cont = soma = 0 n = int(input('Digite um número, caso queira parar digite 999: ')) while n != 999: soma += n cont+=1 n = int(input('Digite um número, caso queira parar digite 999: ')) print('Você digitou {} números e a soma entre eles foi {}'.format(cont,soma))
RestExpress/HyperExpress
hal/src/test/java/com/strategicgains/hyperexpress/domain/hal/HalResourceImplTest.java
/* Copyright 2014, Strategic Gains, 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 required by applicable law or agreed to in writ...
phamngoctuong/lebab
src/syntax/ArrowFunctionExpression.js
<reponame>phamngoctuong/lebab import BaseSyntax from './BaseSyntax'; /** * The class to define the ArrowFunctionExpression syntax */ export default class ArrowFunctionExpression extends BaseSyntax { /** * The constructor of ArrowFunctionExpression * * @param {Object} cfg * @param {Node} cfg.body * @...
dfreerksen/toller
toller.gemspec
<gh_stars>1-10 # frozen_string_literal: true $LOAD_PATH.push File.expand_path('lib', __dir__) require 'toller/version' Gem::Specification.new do |spec| spec.name = 'toller' spec.version = Toller::VERSION spec.authors = ['<NAME>'] spec.email = ['<EMAIL>'] spec.homepage = 'https://git...
rzasap/felix-search-webconsole-plugin
src/main/java/com/neva/felix/webconsole/plugins/search/utils/TemplateRenderer.java
<gh_stars>10-100 package com.neva.felix.webconsole.plugins.search.utils; import com.google.common.collect.ImmutableMap; import org.apache.commons.io.IOUtils; import org.apache.commons.lang3.text.StrSubstitutor; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.IOException; import java.io.InputSt...
getdnsapi/libnss_getdns
ifaddr.c
<reponame>getdnsapi/libnss_getdns // Copyright Verisign, Inc and NLNetLabs.  See LICENSE file for details #define _GNU_SOURCE #include <arpa/inet.h> #include <sys/socket.h> #include <netdb.h> #include <ifaddrs.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "context_interface...
guyang66/gy-nodejs-kcoco
controller/commonController.js
<gh_stars>0 const path = require('path') const fs=require('fs') const chalk = require('chalk'); module.exports = app => ({ async test () { const { ctx, $helper } = app ctx.body = $helper.Result.success('') }, /** * 获取验证码 * @returns {Promise<void>} */ async getCaptcha () { const { ctx, $co...
TheEpicBlock/Flywheel
src/main/java/com/jozufozu/flywheel/api/FlywheelRendered.java
package com.jozufozu.flywheel.api; /** * Something (a BlockEntity or Entity) that can be rendered using the instancing API. */ public interface FlywheelRendered { /** * @return true if there are parts of the renderer that cannot be implemented with Flywheel. */ default boolean shouldRenderNormally() { retur...
maloft/hep
fwk/core.go
// Copyright 2017 The go-hep 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 fwk import ( "fmt" "reflect" "go-hep.org/x/hep/fwk/fsm" ) type statuscode int func (sc statuscode) Error() string { return fmt.Sprintf("fwk:...
raphw/declarative-parser
src/main/java/com/blogspot/mydailyjava/dp/delegation/FloatDelegate.java
<gh_stars>1-10 package com.blogspot.mydailyjava.dp.delegation; import java.lang.reflect.Field; import java.util.Locale; public class FloatDelegate extends PropertyDelegate { public FloatDelegate(Field field, Locale locale) { super(field, locale); } @Override public void setValue(Object bean,...
louisgevers/udrinkio
game/Pyramid.js
const deck = require('./deck.js') module.exports = class Pyramid { constructor(size, users) { this.deck = deck.createDeck() this.users = new Map() users.forEach((username, userId) => { this.users.set(userId, username) }) this.pyramid = this.generatePyramid(size)...
chaohu/Daily-Learning
Foundation-of-CS/ics14_lab1-3/lab1/src/selections-f10.c
<reponame>chaohu/Daily-Learning #include "tmin.c" #include "isAsciiDigit.c" #include "conditional.c" #include "allEvenBits.c" #include "implication.c" #include "isLessOrEqual.c" #include "bang.c" #include "howManyBits.c" #include "byteSwap.c" #include "leastBitPos.c" #include "logicalShift.c" #include "float_neg.c" #in...
mhconradt/analytics-toolbox-core
modules/geohash/bigquery/test/integration/GEOHASH_BOUNDARY.test.js
const { runQuery } = require('../../../../../common/bigquery/test-utils'); test('GEOHASH_BOUNDARY should work', async () => { const query = 'SELECT ST_ASTEXT(`@@BQ_PREFIX@@carto.GEOHASH_BOUNDARY`(\'ezrq\')) AS output'; const rows = await runQuery(query); expect(rows.length).toEqual(1); expect(rows[0].o...
risdict4d/abunzidata
src/main/java/org/opendatakit/aggregate/odktables/relation/DbTable.java
<filename>src/main/java/org/opendatakit/aggregate/odktables/relation/DbTable.java /* * Copyright (C) 2012-2013 University of Washington * * 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 *...
scottmac/hiphop-php
src/cpp/base/object_data.cpp
<gh_stars>1-10 /* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010 Facebook, Inc. (http://www.facebook.com) ...
jsdevel/StaticPages
lib/saxon.jar.src/com/icl/saxon/expr/FragmentValue.java
// Decompiled by Jad v1.5.8e. Copyright 2001 <NAME>. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: packimports(3) fieldsfirst lnc // Source File Name: FragmentValue.java package com.icl.saxon.expr; import com.icl.saxon.*; import com.icl.saxon.om.*; import com.icl.saxon.output.Emi...
inductiveload/wstools
wstools/scan_download.py
<filename>wstools/scan_download.py<gh_stars>0 #! /usr/bin/env python3 import argparse import logging from xlsx2csv import Xlsx2csv from io import StringIO import csv import os import subprocess import utils.ht_source def parse_header_row(hr): mapping = {} for i, col in enumerate(hr): mapping[col.l...
CalvinVon/dalao-proxy
src/commands/plugin-manager.command/install.command/index.js
<gh_stars>10-100 const { install, uninstall } = require('./install-plugin'); module.exports = function pluginInstallCommand(pluginCommand) { pluginCommand .command('install <name> [names...]') .alias('add', 'update') .description('install plugins to extends ability') .option('-D, --...
ResearchHub/ResearchHub-Backend-Open
src/search/views/post.py
<gh_stars>10-100 from django_elasticsearch_dsl_drf.filter_backends import ( CompoundSearchFilterBackend, DefaultOrderingFilterBackend, HighlightBackend, FilteringFilterBackend, NestedFilteringFilterBackend, IdsFilterBackend, OrderingFilterBackend, SuggesterFilterBackend, PostFilterFi...
nguyentruongngoclan/MalmoAI
Minecraft/build/tmp/recompileMc/sources/net/minecraft/client/renderer/VertexBufferUploader.java
<gh_stars>0 package net.minecraft.client.renderer; import net.minecraft.client.renderer.vertex.VertexBuffer; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; @SideOnly(Side.CLIENT) public class VertexBufferUploader extends WorldVertexBufferUploader { private Vertex...
santiagoep/wesan
src/components/Task/Task.js
import React, { useState } from 'react'; import { StyledCard, StyledDate, StyledPriority, } from './Task.styled'; import Tags from '../Tags/Tags'; import es from '../../config/languages/es'; import { dateFormat } from '../../utils/dates'; import TaskDetail from '../TaskDetail/TaskDetail'; const Task = ({ title,...
mariebidouille/Examples
Apps/Gate/TinyJSON/tiny-json.c
<reponame>mariebidouille/Examples /* <https://github.com/rafagafe/tiny-json> Licensed under the MIT License <http://opensource.org/licenses/MIT>. SPDX-License-Identifier: MIT Copyright (c) 2016-2018 <NAME> <<EMAIL>>. Permission is hereby granted, free of charge, to any person obtaining a copy of this so...
orekyuu/doma
doma-processor/src/test/java/org/seasar/doma/internal/apt/processor/domain/OfAbstractDomain.java
<reponame>orekyuu/doma package org.seasar.doma.internal.apt.processor.domain; import org.seasar.doma.Domain; @Domain(valueType = int.class, factoryMethod = "of") public abstract class OfAbstractDomain { private final int value; private OfAbstractDomain(int value) { this.value = value; } public int getV...
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/g++.dg/eh/weak1-a.cc
<gh_stars>1-10 extern void f() { throw 7; }
mayankkejriwal/nxparser
src/main/java/org/semanticweb/yars/nx/namespace/DC.java
<reponame>mayankkejriwal/nxparser<gh_stars>10-100 package org.semanticweb.yars.nx.namespace; import org.semanticweb.yars.nx.Resource; public class DC { public static final String NS = "http://purl.org/dc/elements/1.1/"; public final static Resource TITLE = new Resource(NS+"title"); public final static Resource DE...
KeyMaker13/portfolio
documents/javaFiles/dataStructures/week03/ArrayIterator.java
package sets.arrayset; import java.util.*; /** * <p>Title: </p> * * <p>Description: </p> * * <p>Copyright: Copyright (c) 2005</p> * * <p>Company: </p> * * @author Prof. <NAME> * @version 1.0 */ public class ArrayIterator <T> implements Iterator<T> { private int current; // position of next private int a...
kagwicharles/Seniorproject-ui
node_modules/@iconify/icons-ic/twotone-theaters.js
var data = { "body": "<path d=\"M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm6 10h-4V5h4v14zm4-2h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z\" fill=\"currentColor\"/><path opacity=\".3\" d=\"M10 5h4v14h-4z\" fill=\"currentColor\"/>", "width": 24, "height": 24 }; exports._...