repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
PloadyFree/bacs-learn-current
external-api-sybon/src/main/java/istu/bacs/externalapi/sybon/SybonSubmitResult.java
<filename>external-api-sybon/src/main/java/istu/bacs/externalapi/sybon/SybonSubmitResult.java package istu.bacs.externalapi.sybon; import lombok.Data; import java.util.List; @Data public class SybonSubmitResult { private Integer id; private SybonBuildResult buildResult; private List<SybonTestGroupResult>...
dataplumber/dmas
inventory/src/main/java/gov/nasa/podaac/inventory/model/DatasetSpatial.java
<gh_stars>1-10 //Copyright 2008, by the California Institute of Technology. //ALL RIGHTS RESERVED. United States Government Sponsorship acknowledged. package gov.nasa.podaac.inventory.model; import java.io.Serializable; import com.vividsolutions.jts.geom.Polygon; /** * @author clwong * $Id: DatasetSpatial.java 505...
yumilceh/libqi
tests/qi/testutils/testutils.hpp
#pragma once #include <memory> #include <string> #include <vector> #include <chrono> #include <boost/optional.hpp> #include <boost/config.hpp> #include <gtest/gtest.h> #include <ka/typetraits.hpp> #include <ka/utility.hpp> #include <qi/clock.hpp> #include <qi/future.hpp> namespace test { /// Runs a process from con...
plewto/Pigiron
smf/header.go
<filename>smf/header.go package smf /* ** header.go defines MIDI file header chunk. ** */ import ( "fmt" "os" "github.com/plewto/pigiron/pigerr" ) var headerID chunkID = [4]byte{0x4d, 0x54, 0x68, 0x64} // SMFheadr strut implements Chunk interface for MIDI file headers. // type Header struct { format int track...
bridges-wood/CiphersApp
src/main/java/com/polytonic/cipher/FileIO.java
package com.polytonic.cipher; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStreamReader; import java.nio.charset.StandardCharsets; import java.util.Has...
cloudify-cosmo/cloudify-gcp-plugin
cloudify_gcp/pubsub/subscription.py
<filename>cloudify_gcp/pubsub/subscription.py # ####### # Copyright (c) 2018-2020 Cloudify Platform Ltd. 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://...
ksowmya/cloudstack-1
plugins/alert-handlers/snmp-alerts/src/org/apache/cloudstack/alert/snmp/SnmpHelper.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 may...
fossabot/lauth
api/post_userinfo.go
package api import ( "github.com/gin-gonic/gin" "github.com/macrat/lauth/errors" "github.com/macrat/lauth/metrics" ) type PostUserInfoRequest struct { GetUserInfoRequest AccessToken string `form:"access_token" header:"-"` } func (req *PostUserInfoRequest) Bind(c *gin.Context) *errors.Error { if e := (&req.Get...
KaviiChathuranga/Student-Management-javaFX-Desktop
2ndSemProject_Common/src/lk/ijse/student/service/custom/Batch_TeacherService.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package lk.ijse.student.service.custom; import java.util.List; import lk.ijse.student.dto.BatchDto; import lk.ijse.student.dto.Batch_S...
c7yrus/alyson-v3
src/utils/vertx/events/incoming/layout.events.incoming.js
// import { // LAYOUT_CHANGE, // CMD_VIEW as VIEW_CHANGE, // CMD_POPUP as POPUP_CHANGE, // SUB_LAYOUT as SUBLAYOUT_CODE, // CMD_NOTIFICATION as NOTIFICATION_MESSAGE, // SUBLAYOUT_CHANGE, // CMD_RELOAD as RELOAD_PAGE, // } from 'constants'; export const CMD_LAYOUT = message => ({ type: 'LAYOUT_CHANGE', payload: mes...
niejuqian/TestDemo
app/src/main/java/com/testdemo/util/DBHelper.java
<gh_stars>1-10 package com.testdemo.util; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.os.Environment; import android.text.TextUtils; import android.util.Log; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; i...
Jamaika1/grok
src/lib/jp2/codestream/markers/PPMMarker.h
/* * Copyright (C) 2016-2021 Grok Image Compression Inc. * * This source code is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This source code is distributed in th...
sorskoot/RosieBot
vue.config.js
var FriendlyErrorsWebpackPlugin = require('friendly-errors-webpack-plugin'); module.exports = { pluginOptions: { electronBuilder: { removeElectronJunk: false // True by default } }, configureWebpack: { plugins: [ new FriendlyErrorsWebpackPlugin(), ], }, lintOnSave: false, devSe...
LevelFourAB/silo
silo-search-api/src/main/java/se/l4/silo/index/search/query/UserQuery.java
<reponame>LevelFourAB/silo package se.l4.silo.index.search.query; import org.eclipse.collections.api.list.ImmutableList; import org.eclipse.collections.api.list.primitive.ImmutableFloatList; import se.l4.silo.index.search.QueryClause; import se.l4.silo.index.search.internal.UserQueryImpl; /** * Query from a user th...
nathants/c-utils
util/read.h
#pragma once #include "util.h" #include "lz4.h" typedef struct readbuf_s { // public u8 *buffer; i32 bytes; // private FILE **files; u8 **buffers; i32 bytes_left; i32 bytes_read; i32 *offset; i32 *chunk_size; bool lz4; u8 *lz4_buf; i32 lz4_size; } readbuf_t; readbu...
tristan-chauveau/otoroshi
manual/src/main/paradox/snippets/tcp-proxy.js
const proxy = require("node-tcp-proxy"); const hosts = ["192.168.1.40", "192.168.1.41", "192.168.1.42"]; const portsHttp = [8080, 8080, 8080]; const portsHttps = [8443, 8443, 8443]; const proxyHttp = proxy.createProxy(80, hosts, portsHttp, { tls: false }); const proxyHttps = proxy.createProxy(443, hosts, portsHttp...
blit/stupidedi
lib/stupidedi/guides/004010/segment_reqs.rb
# frozen_string_literal: true module Stupidedi using Refinements module Guides module FortyTen # # @see X222.pdf 2.2 Implementation Usage # module SegmentReqs # Declares that this segment must always be sent. Required segments # within Situational loops only occur when...
OSADP/Pikalert-Vehicle-Data-Translator-
libs/vdt4/vdt_point.cc
#include <math.h> #include "vdt_point.hh" using namespace std; vdt_point::vdt_point() { }; const double vdt_point::operator[](const int n) { if (n == 0) { return get_latitude(); } return get_longitude(); } bool vdt_point::operator==(const vdt_point& o) { return (o.get_latitude() == get_latitude...
twigkit/aws-sdk-java
aws-java-sdk-swf-libraries/src/main/java/com/amazonaws/services/simpleworkflow/flow/LambdaFunctionFailedException.java
<filename>aws-java-sdk-swf-libraries/src/main/java/com/amazonaws/services/simpleworkflow/flow/LambdaFunctionFailedException.java /* * Copyright 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not * use this file except i...
cszczepaniak/fivethirtyeight-riddler
SpellingBee/go/1.12/utils/utils_test.go
package utils import ( "testing" "github.com/cszczepaniak/fivethirtyeight-riddler/SpellingBee/board" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func TestBoardSubsets(t *testing.T) { type boardConfig struct { middle rune others []rune } tests := []struct { b boardConf...
TomatoYoung/beegfs
client_module/source/common/net/message/storage/listing/ListDirFromOffsetMsg.h
<filename>client_module/source/common/net/message/storage/listing/ListDirFromOffsetMsg.h #ifndef LISTDIRFROMOFFSETMSG_H_ #define LISTDIRFROMOFFSETMSG_H_ #include <common/net/message/NetMessage.h> #include <common/storage/Path.h> #include <common/storage/EntryInfo.h> /** * This message supports only serialization. (d...
tgsoverly/pybee-open-close
pxbee/drivers/timer/timer.c
<reponame>tgsoverly/pybee-open-close<filename>pxbee/drivers/timer/timer.c /**************************************************************************** * Copyright (C) 2012 - 2015 Digi International Inc, All Rights Reserved. * * This software is provided as instructional material without charge * by Digi Intern...
wkboys/CustomView
app/src/main/java/com/template/customview/RectRefreshTextView.java
<reponame>wkboys/CustomView package com.template.customview; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Rect; import android.util.AttributeSet; import android.util.Log; import android.view.SurfaceHolder; import a...
maciejg-git/vue-bootstrap-icons
dist-mdi/mdi/chevron-triple-right.js
import { h } from 'vue' export default { name: "ChevronTripleRight", vendor: "Mdi", type: "", tags: ["chevron","triple","right"], render() { return h( "svg", {"xmlns":"http://www.w3.org/2000/svg","width":"24","height":"24","viewBox":"0 0 24 24","class":"v-icon","fill":"currentColor","data-name...
ninalofrese/androidcore
ComponentsActivities/revisaorecycler/src/main/java/com/example/revisaorecycler/adapters/AnimalAdapter.java
<filename>ComponentsActivities/revisaorecycler/src/main/java/com/example/revisaorecycler/adapters/AnimalAdapter.java package com.example.revisaorecycler.adapters; import android.graphics.drawable.Drawable; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widge...
FlorianLance/exvr
cpp-projects/exvr-designer/experiment/experiment.hpp
/*********************************************************************************** ** exvr-designer ** ** MIT License ** ** Copyright (c) [2018] [<NAME>][EPFL-LNCO] ...
oddevan/cordcutdb
config/initializers/omniauth.rb
<reponame>oddevan/cordcutdb<filename>config/initializers/omniauth.rb Rails.application.config.middleware.use OmniAuth::Builder do provider :github, ENV['CCDB_GITHUB_ID'], ENV['CCDB_GITHUB_SECRET'], scope: "user:email" end
alexwawl/leetcode-solutions-javascript-python
solutions/0240_Searcha2DMatrixII.js
/** * @param {number[][]} matrix * @param {number} target * @return {boolean} */ var searchMatrix = function(matrix, target) { function search(x1, y1, x2, y2){ if(x2 < x1 || y2 < y1 || x1 >= matrix.length || y1 >= matrix[0].length || y2 < 0 || x2 < 0){ return false; } let mid...
mikenakis/Public
kit/kit/src/mikenakis/kit/ExceptionDiffersFromExpectedException.java
<filename>kit/kit/src/mikenakis/kit/ExceptionDiffersFromExpectedException.java package mikenakis.kit; import java.util.Optional; /** * "Exception Differs from Expected" {@link UncheckedException}. * * @author michael.gr */ public class ExceptionDiffersFromExpectedException extends UncheckedException { public fin...
ut-osa/syncchar
linux-2.6.16-unmod/include/asm-ppc/mpc8260.h
<reponame>ut-osa/syncchar /* * Since there are many different boards and no standard configuration, * we have a unique include file for each. Rather than change every * file that has to include MPC8260 configuration, they all include * this one and the configuration switching is done here. */ #ifdef __KERNEL__ #i...
lokesh-coder/lesyjs
benchmark/benchmark.suite.js
const b = require("benny"); const commander = require("commander"); const yargs = require("yargs"); const { build: gluegun } = require("gluegun"); const lesy = require("@lesy/compiler"); const { commanderCode, gluegunCode, yargsCode, lesyCode } = require("./libs"); const options = { // minSamples: 100 }; b.suite( ...
0lOveLycaT0/IT-PROJECT-EXTRA-PACK
IT-PROJECT EXTRA PACK PE/jni/mcpe/level/biome/Biome.h
<reponame>0lOveLycaT0/IT-PROJECT-EXTRA-PACK<gh_stars>1-10 #pragma once class BiomeDecorator; class Random; class BlockPos; class BlockSource; class LevelChunk; class Biome { public: enum BiomeType { }; public: static Biome *beaches; static Biome *birchForest; static Biome *birchForestHills; static Biome *bir...
deepdialog/deepdialog
deepdialog/nlg/__init__.py
# -*- coding: utf-8 -*- """NLG Module."""
LaurentPlagne/Legolas
Legolas/BlockMatrix/Structures/TriDiagonal/TriDiagonalScalarGaussSeidelSolver.hxx
<reponame>LaurentPlagne/Legolas<filename>Legolas/BlockMatrix/Structures/TriDiagonal/TriDiagonalScalarGaussSeidelSolver.hxx #ifndef __TRIDIAGONALSCALARGAUSSSEIDELSOLVER_HXX__ #define __TRIDIAGONALSCALARGAUSSSEIDELSOLVER_HXX__ #include "Legolas/Vector/Vector.hxx" #include "Legolas/BlockMatrix/ScalarMatrixSolver.hxx" na...
gschizas/fallenswordhelper
dist/resources/beta/1524/30/injectUpgradeAlert-8dcbea16.js
<reponame>gschizas/fallenswordhelper<filename>dist/resources/beta/1524/30/injectUpgradeAlert-8dcbea16.js<gh_stars>1-10 import{u as a,j as s,H as e,a4 as o,a as t}from"./calfSystem-ebf4b17d.js" import{n,d as p,p as d}from"./parseGoldUpgrades-99e79a94.js" function r(a){t(3,d,[a])}function f(){const s=e("lastUpgradeCheck"...
anandundavia/ProjectEuler
problem=016/Solution.java
import java.math.BigInteger; final class Solution { private static int solve(int exponent) { final char chars[] = BigInteger.TWO.pow(exponent).toString(10).toCharArray(); int sum = 0; for (final char c : chars) { sum += c - '0'; } return sum; } public static void main(String[] args) throws Exception ...
npocmaka/Windows-Server-2003
enduser/sakit/sak/frameworks/localui/ldm/display.h
//#-------------------------------------------------------------- // // File: display.h // // Synopsis: This file holds the declarations of the // CDisplay class .The class is responsible // for displaying the appropriate bitmap on // the local display // // ...
jatinssaluja/lorawan-stack
pkg/gatewayconfigurationserver/gcsv2/middleware.go
// Copyright © 2019 The Things Network Foundation, The Things Industries B.V. // // 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...
t-rasmud/itextpdf
itext/src/main/java/com/itextpdf/text/pdf/CFFFontSubset.java
/* * * This file is part of the iText (R) project. Copyright (c) 1998-2020 iText Group NV * Authors: <NAME>, <NAME>, et al. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License version 3 * as published by the Free Software Foun...
LukeSkywalker92/heuslertools
heuslertools/squid/load_squid_data.py
""" Functions to load SQUID data from measurement files """ import numpy as np from heuslertools.tools.data_handling import search_data_start import warnings def load_squid_data(file): """ Loads a SQUID measurement and returns the field, temperature and long moment data. Deprecated, use SQUIDMeasurement in...
spiritl7db/uni-app
src/platforms/h5/service/api/network/socket.js
const { invokeCallbackHandler: invoke } = UniServiceJSBridge const eventNames = ['open', 'close', 'error', 'message'] const callbacks = {} const socketTasks = [] /** * SocketTask */ class SocketTask { /** * WebSocket实例 */ _webSocket /** * 构造函数 * @param {string} url * @param {Array} protocols ...
zmyer/cyclops-react
cyclops-futurestream/src/test/java/cyclops/futurestream/react/lazy/sequence/FutureStreamCollectableTest.java
<gh_stars>100-1000 package cyclops.futurestream.react.lazy.sequence; import com.oath.cyclops.types.foldable.Folds; import cyclops.futurestream.LazyReact; import cyclops.streams.CollectableTest; public class FutureStreamCollectableTest extends CollectableTest { @Override public <T> Folds<T> of(T... values) { ...
HeyRobotShop/beatoftheday
db/schema.rb
<reponame>HeyRobotShop/beatoftheday # This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # # This file is the source Rails uses to defi...
kirbasyunus/ProjectEuler-solution-with-c
euler4/main.c
<filename>euler4/main.c #include <stdio.h> #include <stdlib.h> int palindrome(int n); int main() { int c=101101, a=99, b=99; if(palindrome(c)==1) printf("78"); else{ printf("11"); } } int palindrome(int a){ int n,b=0,c=0,i; int array[10]; n=a; //printf("is your number...
gmaclennan/mapbox-gl-js
bench/benchmarks/map_load.js
'use strict'; const Evented = require('../../src/util/evented'); const formatNumber = require('../lib/format_number'); const createMap = require('../lib/create_map'); module.exports = function() { const evented = new Evented(); const mapsOnPage = 6; evented.fire('log', { message: `Creating ${mapsOnPage}...
111andre111/logstash
tools/benchmark-cli/src/test/java/org/logstash/benchmark/cli/MainTest.java
<filename>tools/benchmark-cli/src/test/java/org/logstash/benchmark/cli/MainTest.java /* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this f...
grassrootza/grassroot-platform
grassroot-core/src/main/java/za/org/grassroot/core/domain/notification/EventReminderNotification.java
<filename>grassroot-core/src/main/java/za/org/grassroot/core/domain/notification/EventReminderNotification.java package za.org.grassroot.core.domain.notification; import za.org.grassroot.core.domain.User; import za.org.grassroot.core.domain.task.EventLog; import za.org.grassroot.core.enums.NotificationDetailedType; i...
haydarai/rheem
rheem-core/src/main/java/org/qcri/rheem/core/api/Configuration.java
package org.qcri.rheem.core.api; import org.apache.commons.io.IOUtils; import org.apache.commons.lang3.StringUtils; import org.qcri.rheem.core.api.configuration.CollectionProvider; import org.qcri.rheem.core.api.configuration.ConstantValueProvider; import org.qcri.rheem.core.api.configuration.ExplicitCollectionProvide...
jdsimcoe/ervell
src/v2/components/ChannelMetadata/components/ChannelMetadataCollaborators/components/CollaboratorsListItem/components/CollaboratorsListItemUser/index.js
<reponame>jdsimcoe/ervell import React, { Component } from 'react' import { propType } from 'graphql-anywhere' import Link from 'v2/components/ChannelMetadata/components/ChannelMetadataCollaborators/components/CollaboratorsListItem/components/Link' import collaboratorLinkFragment from 'v2/components/ChannelMetadata/c...
scottyw/tetromino
gameboy/memory/mbc1.go
package memory import ( "fmt" ) type mbc1 struct { // ROM and RAM data and mask read from the cart rom [][0x4000]byte ram [][0x2000]byte // Record of what as written between 0x0000 and 0x8000 enabledRegion uint8 romRegion uint8 ramRegion uint8 modeRegion uint8 // Selected ROM and RAM banks comp...
ruibaby/ExamOnline
src/main/Java/cc/ryanc/filter/SetCharacterEncodingFilter.java
package cc.ryanc.filter; import javax.servlet.*; import javax.servlet.annotation.WebFilter; import javax.servlet.http.HttpServletRequest; import java.io.IOException; /** * Created with IntelliJ IDEA. * Author: RYAN0UP * Date: 2017/9/13 * 设置编码格式的过滤器 */ @WebFilter(filterName = "SetCharacterEncodingFil...
ProjectBlackFalcon/DatBot
DatBot.ProtocolBuilder/Utils/messages/game/context/roleplay/havenbag/HavenBagPackListMessage.java
<gh_stars>1-10 package protocol.network.messages.game.context.roleplay.havenbag; import java.io.IOException; import java.util.ArrayList; import java.util.List; import protocol.utils.ProtocolTypeManager; import protocol.network.util.types.BooleanByteWrapper; import protocol.network.NetworkMessage; import protocol.netw...
gmulders/abacus
abacus-core/src/main/java/org/gertje/abacus/nodes/AbstractTermNode.java
package org.gertje.abacus.nodes; import org.gertje.abacus.token.Token; /** * Abstract super class for all term nodes. */ public abstract class AbstractTermNode extends AbstractExpressionNode implements BinaryOperationNode { protected ExpressionNode lhs; protected ExpressionNode rhs; public AbstractTermNode(Exp...
nikoncode/hibernate-types
hibernate-types-55/src/main/java/com/vladmihalcea/hibernate/type/array/internal/BooleanArrayTypeDescriptor.java
<filename>hibernate-types-55/src/main/java/com/vladmihalcea/hibernate/type/array/internal/BooleanArrayTypeDescriptor.java package com.vladmihalcea.hibernate.type.array.internal; /** * @author <EMAIL> * @version 2.9.13 */ public class BooleanArrayTypeDescriptor extends AbstractArrayTypeDescriptor<boolean[]> { p...
kevinwallimann/enceladus
menas/ui/service/ValidationResult.js
<gh_stars>10-100 /* * Copyright 2018 ABSA Group Limited * * 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 applica...
gangserver/py_test
python/bitcoin/ch04/04_19.py
import pandas as pd df = pd.read_excel("data/ohlc.xlsx") df = df.set_index("date") df.to_excel("data/ohlc-2.xlsx") print(df)
ronnyp07/pdv
modules/sales/client/controllers/sales.client.controller.js
<reponame>ronnyp07/pdv<gh_stars>0 (function () { 'use strict'; // Sales controller angular .module('sales') .controller('SalesController', SalesController); SalesController.$inject = [ '$scope', '$state', 'Authentication', 'sales', 'ParameterRestServices', 'ProductRestServices', ...
LXD312569496/ByteX
HookProguard/src/main/java/com/ss/android/ugc/bytex/hookproguard/MemberSpecificationHolder.java
package com.ss.android.ugc.bytex.hookproguard; import proguard.MemberSpecification; import proguard.util.ClassNameParser; import proguard.util.StringMatcher; import proguard.util.StringParser; class MemberSpecificationHolder { private final MemberSpecification instance; private StringMatcher methodNameMatcher...
lebui89x/maychufoodnow
src/main/java/com/food/ordering/zinger/model/notification/NotificationModel.java
<filename>src/main/java/com/food/ordering/zinger/model/notification/NotificationModel.java package com.food.ordering.zinger.model.notification; import com.food.ordering.zinger.constant.Enums; public class NotificationModel { Enums.NotificationType type; String title; String message; String payload; ...
eddylu1s/PoGoTelegramBot
locales.js
process.env.DEFAULT_LOCALE = 'nl' process.env.LOCALES = '[["nl","Nederlands"], ["en","English"], ["es", "Español"]]'
ajchdev/outside-event
node_modules/@wordpress/hooks/build-module/createHooks.js
<reponame>ajchdev/outside-event import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck"; /** * Internal dependencies */ import createAddHook from './createAddHook'; import createRemoveHook from './createRemoveHook'; import createHasHook from './createHasHook'; import createRunHook from './createRunHo...
vorushin/moodbox_aka_risovaska
client/moc_qtsingleapplication.cpp
/**************************************************************************** ** Meta object code from reading C++ file 'qtsingleapplication.h' ** ** Created: Tue May 5 10:34:51 2009 ** by: The Qt Meta Object Compiler version 61 (Qt 4.5.1) ** ** WARNING! All changes made in this file will be lost! ****************...
schloepke/gamemachine
server/java/server/src/user/java/plugins/core/FactionService.java
<reponame>schloepke/gamemachine package plugins.core; import java.util.ArrayList; import java.util.List; import java.util.UUID; import java.util.concurrent.ConcurrentHashMap; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.google.common.base.Strings; import io.gamemachine.messages.Fa...
mirotik666/-web-project-portfol
node_modules/ramda-fantasy/src/lift3.js
<filename>node_modules/ramda-fantasy/src/lift3.js var curryN = require('ramda/src/curryN'); module.exports = curryN(4, function lift3(f, a1, a2, a3) { return a1.map(f).ap(a2).ap(a3); });
artyomtserashkovich/HostOcean
HostOcean/host-ocean/src/state/signalr/index.js
import * as queueActions from "./../../modules/mainpage/actions/queuesActions"; import * as requestsActions from "./../../modules/requests/actions"; export default (emit, connection) => { connection.on("onUserLeftQueue", data => { emit(queueActions.removeUserFromQueue(data)); }); connection.on("on...
ampatspell/ember-cli-documents
addon/document/internal/-query-loader-state.js
<filename>addon/document/internal/-query-loader-state.js import createState from './-create-state'; const defaults = { isLoading: false, isLoaded: false, isError: false, error: null }; const computed = [ 'isLoadable' ]; const stateMixin = Class => class QueryLoaderStateMixin extends Class { constructor(lo...
MinerArcana/Naming
src/main/java/com/minerarcana/naming/worlddata/WeakEntityReference.java
<reponame>MinerArcana/Naming package com.minerarcana.naming.worlddata; import net.minecraft.entity.Entity; import net.minecraft.world.IWorld; import net.minecraft.world.server.ServerWorld; import javax.annotation.Nullable; import java.lang.ref.WeakReference; import java.util.UUID; public class WeakEntityReference { ...
FCC-Alumni/alumni-network
client/src/assets/dropdowns/countries.js
<reponame>FCC-Alumni/alumni-network<gh_stars>10-100 export const countries = [ { key: "", text: "---", value: "" }, { flag: "ad", key: "ad", text: "Andorra", value: "ad" }, { flag: "ae", key: "ae", text: "United Arab Emirates", value: "ae" }, { flag: "af", key: "af", text: "Afghanistan", value: "af" }, { flag...
Wujingli/OpenWebGlobeDataProcessing
source/apps/tilerenderer/main.cpp
/******************************************************************************* # ____ __ __ _ _____ _ _ # # / __ \ \ \ / / | | / ____| | | | # # | | | |_ __ ___ _ __ \ /\ / /__| |__ | | __| | ___ | |__ ___ ...
npocmaka/Windows-Server-2003
drivers/wdm/audio/drivers/usbaudio.2/typei.c
//+------------------------------------------------------------------------- // // Microsoft Windows // // Copyright (C) Microsoft Corporation, 1999 - 2000 // // File: typei.c // //-------------------------------------------------------------------------- #include "common.h" #include "perf.h" #d...
josehu07/SplitFS
kernel/linux-5.4/drivers/mtd/devices/docg3.h
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Handles the M-Systems DiskOnChip G3 chip * * Copyright (C) 2011 <NAME> */ #ifndef _MTD_DOCG3_H #define _MTD_DOCG3_H #include <linux/mtd/mtd.h> /* * Flash memory areas : * - 0x0000 .. 0x07ff : IPL * - 0x0800 .. 0x0fff : Data area * - 0x1000 .. 0x17ff ...
stereoboy/isaac_sdk_20191213
engine/gems/bayes_filters/examples/ekf_body_1d.cpp
<gh_stars>1-10 /* Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. NVIDIA CORPORATION and its licensors retain all intellectual property and proprietary rights in and to this software, related documentation and any modifications thereto. Any use, reproduction, disclosure or distribution of this software an...
UnProgrammatore/CCQ
serial/src/factor_base.c
#include "factor_base.h" /* Questa funzione deve ritornare una base di fattori per il crivello quadratico. Dato N il numero da fattorizzare si considerano i numeri primi, trovati con il crivello di Eratostene minori di exp((1/2)sqrt(log(N)loglog(N))), successivamente vanno esclusi dalla lista quei numeri per i...
doom38/jython_v2.2.1
bugtests/test308.py
""" Test import of java class from sys.path zipfile. """ import support import zipfile, time support.compileJava("test308d/test308j.java") def addZipEntry(zip, name, data): entry = zipfile.ZipInfo() entry.filename = name entry.date_time = time.gmtime(time.time()) zip.writestr(entry, data) zip = zip...
pengwu/scapy_env
venv/share/pyshared/pyx/deco.py
# -*- encoding: utf-8 -*- # # # Copyright (C) 2002-2011 <NAME> <<EMAIL>> # Copyright (C) 2003-2011 <NAME> <<EMAIL>> # Copyright (C) 2002-2011 <NAME> <<EMAIL>> # # This file is part of PyX (http://pyx.sourceforge.net/). # # PyX is free software; you can redistribute it and/or modify # it under the terms of the GNU Gener...
negarineh/PIOSP
PIOSP/app/controllers/surveyResults.js
<filename>PIOSP/app/controllers/surveyResults.js<gh_stars>0 /*eslint no-undef: "error"*/ /*eslint-env node*/ var SurveyResults = require('../models/surveyResults'); /** * it creates records for survey results by receiving answers, descriptions, name of photo ,and id of participant * * @param {string} options re...
clegoues/cil
test/small2/regparm0.c
<reponame>clegoues/cil // regparm0.c // test of the regparm(0) problem in linux/arch/i386/kernel/signal.c // first, problematic prototype; basically, the regparm(0) is // parsed as associated with the return type (int), and hence a // no-op; the regparm(3) should be what's attached to do_signal __attribute__((regparm(...
code-krypt/maggi
maggi-container/src/test/java/com/drykode/maggi/container/drools/sample/DroolsSampleCodeGenerator.java
package com.drykode.maggi.container.drools.sample; import com.drykode.maggi.container.engines.drools.models.SessionInput; import com.drykode.maggi.container.engines.drools.models.SessionOutputCollector; public class DroolsSampleCodeGenerator { public static void main(String[] args) { SessionInput sessionInput...
StJivko/SoftUni
PBJava/src/NestedLoopLab/Travelling.java
package NestedLoopLab; import java.util.Scanner; public class Travelling { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); double savings = 0; double saved = 0; while (true) { String country = scanner.nextLine(); if (count...
JamesLoveCurry/bione_input
biapp-frs-web/target/biapp-frs-web/js/datashow/jQuery.exLabel.js
/** * create by kanglg on 2015.07.21 * ver 0.2.2 */ (function($){ // 基础类 function Base(options) { this.options = options; this.events = {}; this.build(); } // 数据绑定 function DataBinder(object_id) { var pubSub = jQuery({}); var data_attr = "bind-" + object_id, message = object_id + ":change"; $(docume...
karanchawla/ai_for_robotics
5_deep_learning/solution/01_DL_framework/Support.py
<reponame>karanchawla/ai_for_robotics # Copyright 2017 <NAME>, ASL, ETH Zurich, Switzerland # Copyright 2017 <NAME>, ASL, ETH Zurich, Switzerland # Copyright 2017 <NAME>, ASL, ETH Zurich, Switzerland import numpy as np class Variables(): """ Variable structure for networks variables / parameters and their ...
cthoyt/pybel-tools
src/pybel_tools/document_utils.py
<gh_stars>1-10 # -*- coding: utf-8 -*- """Utilities to merge multiple BEL documents on the same topic.""" import logging from typing import Iterable, Mapping, Optional, Set, TextIO, Union from xml.etree import ElementTree import pandas as pd import requests from bel_resources import make_knowledge_header from pybel...
soloplxya/tp
src/test/java/woofareyou/model/ModelManagerTest.java
package woofareyou.model; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import static woofareyou.model.Model.PREDICATE_SHOW_ALL_PETS; import static woofareyou.testutil.Assert.assertThro...
labibramadhan/hybrid-apps-development
node_modules/rs-todo/src/server/boot.js
<gh_stars>0 import localTodo from '../models/localTodo'; import encryptor from 'simple-encryptor'; import {encryptPersist, decryptLoaded} from 'rs-helper/lib/server'; module.exports = (params) => { const app = params.app; const conf = params.conf; const io = params.io; const ec = encryptor(conf.key); ...
Nanosim-LIG/opencl-ruby
lib/opencl_ruby_ffi/Image.rb
using OpenCLRefinements if RUBY_VERSION.scan(/\d+/).collect(&:to_i).first >= 2 module OpenCL # Creates an Image # # ==== Attributes # # * +context+ - Context the created Image will be associated to # * +format+ - an ImageFormat # * +desc+ - an ImageDesc # # ==== Options # # * +:flags+ - a single...
andreho/haxxor
src/main/java/net/andreho/haxxor/api/impl/HxMethodReferenceImpl.java
package net.andreho.haxxor.api.impl; import net.andreho.haxxor.Hx; import net.andreho.haxxor.api.HxAnnotation; import net.andreho.haxxor.api.HxMember; import net.andreho.haxxor.api.HxMethod; import net.andreho.haxxor.api.HxMethodBody; import net.andreho.haxxor.api.HxParameter; import net.andreho.haxxor.api.HxType; im...
OptionMetrics/petl
examples/transform/maps.py
from __future__ import absolute_import, print_function, division # fieldmap() ############ import petl as etl from collections import OrderedDict table1 = [['id', 'sex', 'age', 'height', 'weight'], [1, 'male', 16, 1.45, 62.0], [2, 'female', 19, 1.34, 55.4], [3, 'female', 17, 1.78, 74.4]...
JamesRyanATX/drone
spec/lib/drone/status_spec.rb
<filename>spec/lib/drone/status_spec.rb<gh_stars>0 require 'spec_helper' describe Drone::Status do subject { Drone::Status.new } before { subject.reset } describe "#log_error" do before do 5.times { |i| subject.log_capture(i) } 2.times { |i| subject.log_error } end it "increments the ...
abrams27/mimuw
sem4/so/zadania/zad5/minix_source/usr/src/minix/servers/vfs/const.h
#ifndef __VFS_CONST_H__ #define __VFS_CONST_H__ /* Tables sizes */ #define NR_FILPS 1024 /* # slots in filp table */ #define NR_LOCKS 8 /* # slots in the file locking table */ #define NR_MNTS 16 /* # slots in mount table */ #define NR_VNODES 1024 /* # slots in vnode table */ #define N...
joevandyk/monkeycharger
vendor/plugins/active_merchant/test/remote_tests/remote_pay_junction_test.rb
require File.dirname(__FILE__) + '/../test_helper' class PayJunctionTest < Test::Unit::TestCase include ActiveMerchant::Billing cattr_accessor :current_invoice AMOUNT = 250 def setup @gateway = PayJunctionGateway.new( :login => 'pj-ql-01', :password => '<PASSWORD>' ) @creditca...
evis-market/web-interface-backend
src/app/conf/environ.py
<reponame>evis-market/web-interface-backend """Read .env file""" import environ import os.path env = environ.Env( DEBUG=(bool, False), DEBUG_SQL=(bool, False), ACCESS_TOKEN_LIFETIME_MINUTES=(int, 10), REFRESH_TOKEN_LIFETIME_DAYS=(int, 60), HTTP_PORT=(int, 8000), ) if os.path.exists('.env'): e...
Catfish30/codigotecsup
tec-proyecto/src/components/ModalNotas.js
import React from 'react' import { useState } from 'react'; import {Button,Modal} from 'react-bootstrap' export default function ModalNotas({value,actualizarInput,manejarSubmit}) { const [show, setShow] = useState(false); const handleClose = () => setShow(false); const handleShow = () => setShow(true); ...
osoco/better-ways-of-thinking-about-software
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/common/djangoapps/terrain/stubs/ecommerce.py
""" Stub implementation of ecommerce service for acceptance tests """ import re import six.moves.urllib.parse from .http import StubHttpRequestHandler, StubHttpService class StubEcommerceServiceHandler(StubHttpRequestHandler): # pylint: disable=missing-class-docstring # pylint: disable=missing-function-docs...
ta-forever/downlords-taf-client
src/main/java/com/faforever/client/util/ZipUtil.java
package com.faforever.client.util; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.util.zip.ZipEntry; import java.util.zip.ZipOutputStream; public class ZipUtil { /** * Zip a list of file into one zip file. * * @param files * ...
JackChan1999/boohee_v5.6
src/main/java/android/support/v7/app/AppCompatDelegateImplV11.java
<filename>src/main/java/android/support/v7/app/AppCompatDelegateImplV11.java package android.support.v7.app; import android.content.Context; import android.util.AttributeSet; import android.view.View; import android.view.Window; class AppCompatDelegateImplV11 extends AppCompatDelegateImplV7 { AppCompatDelegateImp...
coderoom-cn/javaStudy
src/main/java/cn/coderoom/thread/advance/package-info.java
<filename>src/main/java/cn/coderoom/thread/advance/package-info.java /** * * @package cn.coderoom.thread.advance * @author lim * @email <EMAIL> * @date 2020/1/10 17:14 */ package cn.coderoom.thread.advance;
bacndcmc/IoT-data-simulator
ui/public-src/src/app/screens/Main/components/definition/DefinitionWizard/DefinitionWizard.js
import React, { Component } from "react"; import { observable, action, computed } from "mobx"; import { inject, observer } from "mobx-react"; import glamorous from "glamorous"; import { css} from 'glamor' import Button from "material-ui/Button"; import Radio, { RadioGroup } from "material-ui/Radio"; import TextField f...
achimtimis/L-Project
quiz-service/quiz-service-app/src/main/java/app/repository/IQuestionEntityDao.java
<gh_stars>0 package app.repository; import app.domain.questions.QuestionEntity; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; /** * Created by achy_ on 6/8/2017. */ @Repository public interface IQuestionEntityDao extends JpaRepository<QuestionEntity,...
Dbevan/SunderingShadows
d/verhedin/virtual/wadi/landing.c
// Wadi al-Emir River Landing // for Verhedin // Thorn@ShadowGate // 13 June 2000 // Shamelessly ripped off from Tristan's // Shadow Dock and altered to make a dock // with only the basic amentities // landing.c #include <std.h> #include <daemons.h> #define BOAT "/d/verhedin/virtual/wadi/obj/boat.c" #define BOAT_DIR "...
kowalt/neuroCloud
BE/nnCloudRESTService/src/main/java/com/mycompany/nncloudrestservice/logic/Register.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.mycompany.nncloudrestservice.logic; import com.mycompany.nncloudrestservice.daos.UserDAO; import com.mycompany.nnc...