repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
williamlin0504/free5gcWithOCF
lib/pfcp/pfcpType/MACAddressesRemoved.go
package pfcpType type MACAddressesRemoved struct { MACAddressesRemoveddata []byte }
MaximilianKorn/opencast
modules/authorization-manager/src/main/java/org/opencastproject/authorization/xacml/manager/util/Util.java
<reponame>MaximilianKorn/opencast<gh_stars>100-1000 /** * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * * The Apereo Foundation licenses this file to you under the...
unexpectedpanda/createsend-java
src/com/createsend/models/campaigns/CampaignForCreationFromTemplate.java
<filename>src/com/createsend/models/campaigns/CampaignForCreationFromTemplate.java package com.createsend.models.campaigns; public class CampaignForCreationFromTemplate extends Campaign { public String FromName; public String FromEmail; public String ReplyTo; public String[] ListIDs; public String[...
TheoVerhelst/Aphelion
include/states/PauseState.hpp
<reponame>TheoVerhelst/Aphelion<filename>include/states/PauseState.hpp #ifndef PAUSESTATE_HPP #define PAUSESTATE_HPP #include <states/AbstractState.hpp> // Forward declarations class SceneSerializer; class PauseState : public AbstractState { public: PauseState(StateStack& stack, const SceneSerializer& serializer...
VickyKoblinski/verdigris
components/analytics/src/UIAnalyticsEvent.js
const { warn } = console; export default class UIAnalyticsEvent { constructor(props) { this.payload = props.payload; this.context = props.context || []; this.handlers = props.handlers || []; this.hasFired = false; } fire = channel => { if (this.hasFired) { warn('Cannot fire events more...
Caisin/hope
apps/param/internal/service/novel_pay_config.go
<filename>apps/param/internal/service/novel_pay_config.go package service import ( "context" "github.com/go-kratos/kratos/v2/log" "go.opentelemetry.io/otel" "hope/apps/param/internal/biz" "hope/apps/param/internal/convert" pb "hope/api/param/novelpayconfig/v1" ) type NovelPayConfigService struct { pb.Unimplem...
TheMarstonConnell/MCLib
src/xyz/marstonconnell/graphics/engine/drawing/AnimatedDrawable.java
package xyz.marstonconnell.graphics.engine.drawing; import java.awt.Image; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.IOException; import java.io.InputStream; import java.util.HashMap; import java.util.Map.Entry; import javax.imageio.ImageIO; import javax.swing.Timer; imp...
zhangjunfang/eclipse-dir
nsp/src/main/webapp/scripts/lib/fckeditor/editor/_source/classes/fcktoolbarfontformatcombo.js
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright * (C) 2003-2008 <NAME> == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your choice: - * GNU General Public License Version 2 or later (the "GPL") * http://www.gnu.org/licenses/gpl.html - GNU L...
esean/stl_voro_fill
sw/3rd_party/VTK-7.1.0/Rendering/Core/Testing/Python/pickCellPoints.py
<gh_stars>1-10 #!/usr/bin/env python import sys import vtk from vtk.test import Testing # Quad pts = vtk.vtkPoints() pts.SetNumberOfPoints(6) coords = [(0,0,0),(2,0,0),(4,0,0),(0,4,0),(2,4,0),(4,4,0)] for i in range(0,6): pts.InsertPoint(i,coords[i]) quads = vtk.vtkCellArray() cellpoints=[(0,1,4,3),(1,...
parthsingh29/imagelab
src/main/java/com/imagelab/App.java
<filename>src/main/java/com/imagelab/App.java package com.imagelab; import com.imagelab.operator.basic.ReadImage; import com.imagelab.util.Constants; import com.imagelab.util.Utilities; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.scene.Scene; import j...
chenlili-git/2019-10-08
2019-11-26-选项卡/tab.js
class Tab { constructor(that) { this.box = that; this.opts = { btns: ['按钮一', '按钮二', '按钮三'], content: ['1111', '2222', '3333'] } } init(opts) { $.extend(true, this.opts, opts); this.creatBtn(); this.creatDiv(); this.events(); ...
PERSISTLab/BatterylessSimulation
se/sics/mspsim/ui/DoubleBarChart.java
/** * Copyright (c) 2007, Swedish Institute of Computer Science. * 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 * not...
Syncinus/Hbm-s-Nuclear-Tech-GIT
src/main/java/com/hbm/render/model/ModelBoltAction.java
package com.hbm.render.model; import org.lwjgl.opengl.GL11; import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelRenderer; import net.minecraft.client.renderer.BufferBuilder; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.client.renderer.OpenGlHelper; import n...
jimmysharp/KanACLogger
app/src/main/java/jimmysharp/kanaclogger/model/TwitterManager.java
package jimmysharp.kanaclogger.model; import android.content.Context; import android.content.SharedPreferences; import android.net.Uri; import android.util.Log; import com.annimon.stream.Collectors; import com.annimon.stream.Stream; import java.util.LinkedList; import java.util.List; import rx.Single; import twitter4...
ScalablyTyped/SlinkyTyped
t/twilsock/src/main/scala/typingsSlinky/twilsock/telemetrytrackerMod.scala
package typingsSlinky.twilsock import typingsSlinky.twilsock.configurationMod.Configuration import typingsSlinky.twilsock.packetinterfaceMod.PacketInterface import typingsSlinky.twilsock.telemetryMod.TelemetryEvent import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import sca...
Open-Earth-Foundation/traction
services/showcase/api/main.py
import logging import os import time from pathlib import Path import uvicorn from fastapi import FastAPI from fastapi.staticfiles import StaticFiles from fastapi.middleware.cors import CORSMiddleware from starlette.websockets import WebSocket, WebSocketDisconnect from api.core.config import settings from api.endpoin...
seratch/go-slack-sdk-experimental
webapi/conversations_setPurpose/endpoint.go
package conversations_setPurpose const ApiMethod string = "conversations.setPurpose"
kent013/PhotoSubmitter
Pod/Classes/Services/SalesforcePhotoSubmitter/Libraries/ChatterAPI/Utilities/SFObjectFetcher.h
// // ObjectFetcher.h // DemoApp // // Copyright 2011 Salesforce.com. All rights reserved. // // This is sample code provided as a learning tool. Feel free to // learn from it and incorporate elements into your own code. // No guarantees are made about the quality or security of this code. // // THIS SOFTWARE ...
sanskritiagarwal/Java
src/irabank/dto/RolesDTO.java
<reponame>sanskritiagarwal/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 edu.irabank.dto; import java.io.Serializable; import java.util.Date; import java.util...
chenFlyingkite/MyTosWiki
app/src/main/java/com/flyingkite/mytoswiki/library/StoneDesktopAdapter.java
<reponame>chenFlyingkite/MyTosWiki package com.flyingkite.mytoswiki.library; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import com.flyingkite.library.widget.RVAdapter; import com.flyingk...
hlan-by/openframework
packages/google-sheets/src/main/java/eu/ibagroup/easyrpa/openframework/googlesheets/style/BorderStyle.java
<reponame>hlan-by/openframework package eu.ibagroup.easyrpa.openframework.googlesheets.style; public interface BorderStyle { // NOT ALLOWED public String STYLE_UNSPECIFIED = "STYLE_UNSPECIFIED"; public String DOTTED = "DOTTED"; public String DASHED = "DASHED"; public String SOLID = "SOLID"; public S...
Rossojo/edmm
TOSCin/src/main/java/io/github/edmm/plugins/cfn/model/types/ServiceDiscoveryType.java
<filename>TOSCin/src/main/java/io/github/edmm/plugins/cfn/model/types/ServiceDiscoveryType.java package io.github.edmm.plugins.cfn.model.types; import io.github.edmm.model.edimm.ComponentType; public enum ServiceDiscoveryType { HttpNamespace(ComponentType.Software_Component), Instance(ComponentType.Software_C...
la8457478/realestateweb
src/components/muse-ui/lib/Form/Form.js
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _utils = require('../utils'); exports.default = { name: 'mu-form', provide: function provide() { return { muForm: this }; }, props: { model: { type: Object, required: true }, inline: Bool...
fh-erfurt/RentATool
src/main/java/de/rat/model/common/Account.java
<gh_stars>1-10 package de.rat.model.common; import de.rat.model.BaseModel; import javax.persistence.Column; import javax.persistence.Entity; import javax.validation.constraints.Email; import javax.validation.constraints.NotEmpty; /**Represents a class account. * @author <NAME>, <NAME>, <NAME> */ @Entity public cla...
Octagonal-T/praeterbot
commands/steal.js
module.exports={ name: 'steal', description: 'Adds a external emoji, a included image, or a image url!', args: true, format: 'steal [name] <url or emoji>', permissions: ['MANAGE_EMOJIS'], myPermissions: ['MANAGE_EMOJIS'], aliases: [], category: 'Moderation', async run(msg, args, client){ if(args.length == 1)...
siouxmathware/ijsbeer-ai
lib/modernisation/syllable_corrector.py
import json import os.path as op from lib.modernisation.syllable_tokenizer import SyllableTokenizer from lib import constants class SyllableCorrector: """ Modernisation strategy by substituting syllables and combinations thereof by their modernised equivalents. The default replacements used are given by ...
MarginC/kame
netbsd/sys/arch/acorn32/include/asm.h
<reponame>MarginC/kame<filename>netbsd/sys/arch/acorn32/include/asm.h<gh_stars>10-100 /* $NetBSD: asm.h,v 1.1 2001/10/05 22:27:49 reinoud Exp $ */ #include <arm/asm.h>
yanalucky/MBB
fcgo_order/Fcgo/Work/Mine/Fcgo_AfterSalesServiceListModel.h
// // Fcgo_AfterSalesServiceListModel.h // Fcgo // // Created by huafanxiao on 2017/7/3. // Copyright © 2017年 huafanxiao. All rights reserved. // #import <Foundation/Foundation.h> @interface Fcgo_AfterSalesServiceListModel : NSObject @property (nonatomic,copy) NSString *picurl,*goodsName,*orderNo,*created,*spu...
Retardeded/QueueFree-Front
app/src/androidTest/java/com/example/myapplication/RegisterTest.java
<filename>app/src/androidTest/java/com/example/myapplication/RegisterTest.java package com.example.myapplication; import android.app.Activity; import android.app.Instrumentation; import android.os.Bundle; import android.view.View; import androidx.test.espresso.ViewInteraction; import androidx.test.rule.ActivityTestRu...
rozlana-g/FEDOT
fedot/core/operations/evaluation/operation_implementations/models/ts_implementations.py
from typing import Optional from copy import copy import numpy as np import torch import torch.nn as nn from torch.utils.data import DataLoader, TensorDataset from scipy import stats from scipy.special import inv_boxcox, boxcox from statsmodels.tsa.api import STLForecast from statsmodels.tsa.ar_model import AutoReg fr...
rapifireio/rapifire-android-client
app/src/main/java/com/rapifire/rapifireclient/domain/model/User.java
<filename>app/src/main/java/com/rapifire/rapifireclient/domain/model/User.java package com.rapifire.rapifireclient.domain.model; /** * Created by ktomek on 05.12.15. */ public class User { private String username; private String authId; private String authKey; private String password; public Use...
AoHRuthless/King-of-the-Hill
src/com/valygard/KotH/command/CommandInfo.java
<gh_stars>1-10 /** * CommandInfo.java is part of King of the Hill. */ package com.valygard.KotH.command; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; /** * @author Anand * */ @Retention(RetentionPolicy.RUNTIME) public @interface CommandInfo { /** * The ...
robwormald/gitrank
app/packages/npm/stringstream@0.0.4.js
module.exports = require("npm:stringstream@0.0.4/stringstream");
iamtofr/Stundenplaner
BackEnd/Schemas/schemaToAlgorithm.js
<gh_stars>1-10 /** * This module defines a schema of objects for the algorithmus. * It using mongoose as framework. * * @type {Schema} */ const mongoose = require('mongoose'); let Schema = mongoose.Schema; let toAlgorithm = new Schema({ periods: [{type: Schema.Types.ObjectId, ref: 'period', required: true}],...
sachinshrestha483/AlgoDS
src/algo/dp/MinimizeArraySize.java
<reponame>sachinshrestha483/AlgoDS /* Problem Statement: Find minimum possible size of array with given rules for removing elements Description: Given an array of numbers and a constant k, minimize size of array with following rules for removing elements. Exactly three elements can be removed at one go. The removed th...
jkanche/epiviz-electron
src/src/epiviz/ui/charts/custom-setting.js
/** * Created by <NAME> ( florinc [at] umd [dot] edu ) * Date: 3/29/14 * Time: 2:52 PM */ goog.provide('epiviz.ui.charts.CustomSetting'); /** * @param {string} id * @param {epiviz.ui.charts.CustomSetting.Type} type * @param defaultValue * @param {string} [label] * @param {Array} [possibleValues] * @construc...
Falcons-Robocup/code
packages/visualizer/include/int/widgets/Field/Annotation/RobotLabel.h
<gh_stars>1-10 // Copyright 2016 <NAME> (Falcons) // SPDX-License-Identifier: Apache-2.0 /* * RobotLabel.h * * Created on: November 20, 2016 * Author: <NAME> */ #ifndef ROBOTLABEL_H #define ROBOTLABEL_H #include <vtkFollower.h> #include <vtkTextProperty.h> #include <vtkTextActor.h> #include <vtkVectorText....
turlodales/theos-projects
app_dumps/VKClient.folder/PhotoRowCell.h
/** * This header is generated by class-dump-z 0.2-0. * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3. * * Source: (null) */ #import "VKMCell.h" @class VKPhotoRow, NSArray; __attribute__((visibility("hidden"))) @interface PhotoRowCell : VKMCell { NSArray* _previews; } @property(retain, n...
cloud5innovation/coopers-furnitute
database/migrations/20200707183159_addOnDeleteToColors.js
exports.up = function(knex) { return knex.schema.alterTable("colors", (table) => { table.dropForeign("product_title"); table .foreign("product_title") .references("products.title") .onDelete("CASCADE") .onUpdate("CASCADE"); }); } exports.down = function(kne...
dvla/vehicles-presentation-common
app/uk/gov/dvla/vehicles/presentation/common/model/FeedbackForm.scala
package uk.gov.dvla.vehicles.presentation.common.model import play.api.data.Forms.{mapping, nonEmptyText, text} import play.api.libs.json.Json case class FeedbackForm(rating: String, feedback: String) object FeedbackForm { object Form { final val rating = "rating" final val feedback = "feedback" fina...
ayushworks/sttp
model/shared/src/main/scala/sttp/model/ws/WebSocketException.scala
<reponame>ayushworks/sttp<filename>model/shared/src/main/scala/sttp/model/ws/WebSocketException.scala package sttp.model.ws trait WebSocketError class WebSocketClosed() extends Exception with WebSocketError class WebSocketBufferFull() extends Exception with WebSocketError
se-simon/ScrewBox
screwbox-playground-debo/src/main/java/de/suzufa/screwbox/playground/debo/systems/DebugConfigSystem.java
<reponame>se-simon/ScrewBox package de.suzufa.screwbox.playground.debo.systems; import de.suzufa.screwbox.core.Engine; import de.suzufa.screwbox.core.entityengine.EntitySystem; import de.suzufa.screwbox.core.entityengine.systems.PhysicsDebugSystem; import de.suzufa.screwbox.core.keyboard.Key; public class DebugConfig...
luxcium/questrade-ts
dist/src/private/api/MarketsCalls/_getMarketsQuotesOptions/_getQuotesOptionsByIds.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var _getMarketsQuotesOptions_1 = require("./_getMarketsQuotesOptions"); exports._getQuotesOptionsByIds = function (credentials) { return function (optionIds) { return tslib_1.__awaiter(void 0, void 0, void 0, fu...
fancylou/o2oa
x_common_core_application/src/main/java/com/x/common/core/application/definition/PasswordDefinition.java
<reponame>fancylou/o2oa package com.x.common.core.application.definition; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.junit.Test; import com.x.base.core.gson.GsonPropertyObject; public class PasswordDefinition extends LoadableDefinition { public static final String RegularExpression...
nmcl/wfswarm-example-arjuna-old
graalvm/transactions/fork/narayana/ArjunaJTS/jts/classes/com/arjuna/ats/internal/jts/utils/Helper.java
/* * JBoss, Home of Professional Open Source * Copyright 2006, Red Hat Middleware LLC, and individual contributors * as indicated by the @author tags. * See the copyright.txt in the distribution for a full listing * of individual contributors. * This copyrighted material is made available to anyone wishing to u...
tblink-rpc/tblink-rpc-core
cpp/include/tblink_rpc/IParamValBool.h
/* * IParamValInt.h * * Created on: Apr 3, 2021 * Author: mballance */ #pragma once #include "IParamVal.h" namespace tblink_rpc_core { class IParamValBool; typedef std::shared_ptr<IParamValBool> IParamValBoolSP; typedef std::unique_ptr<IParamValBool> IParamValBoolUP; class IParamValBool : public virtual I...
LaudateCorpus1/PCVT
src/main/java/data/persist/certificate/DeviceAssociatedCertificate.java
<reponame>LaudateCorpus1/PCVT<gh_stars>1-10 package data.persist.certificate; //import javax.persistence.JoinColumn; //import javax.persistence.ManyToOne; //import javax.persistence.MappedSuperclass; import java.io.IOException; import java.nio.file.Path; import hirs.data.persist.Device; import hirs.data.persist.certi...
phil-hanisch/rulewerk
rulewerk-examples/src/main/java/org/semanticweb/rulewerk/examples/AspExample.java
package org.semanticweb.rulewerk.examples; /*- * #%L * Rulewerk Examples * %% * Copyright (C) 2018 - 2020 Rulewerk Developers * %% * 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 * *...
venanciolm/aurius
aurius-impl/src/main/java/com/farmafene/aurius/impl/DatoRegistroTypeDecimal.java
/* * Copyright (c) 2009-2010 <EMAIL> * All rights reserved. * * 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 th...
joegeisz/pylith
unittests/libtests/meshio/data/MeshDataCubitQuad.cc
<reponame>joegeisz/pylith<filename>unittests/libtests/meshio/data/MeshDataCubitQuad.cc<gh_stars>1-10 // -*- C++ -*- // // ====================================================================== // // <NAME>, U.S. Geological Survey // <NAME>, GNS Science // <NAME>, University of Chicago // // This code was developed as p...
yrezgui/evergreen
src/positioner/src/getPosition.js
import Position from './Position' /** * Function to create a Rect. * @param {Object} dimensions * @param {Number} dimensions.width * @param {Number} dimensions.height * @param {Object} position * @param {Number} position.left * @param {Number} position.top * @return {Object} Rect { width, height, left, top, ri...
hfboyce/MCL-DSCI-571-machine-learning
exercises/en/test_04_12.py
def test(): # Here we can either check objects created in the solution code, or the # string value of the solution, available as __solution__. A helper for # printing formatted messages is available as __msg__. See the testTemplate # in the meta.json for details. # If an assertion fails, the messag...
tsalemy/ConcurrentComputing
ReplicatedKeyValueStoreRDMA/infinity/src/infinity/memory/Buffer.cpp
<gh_stars>0 /* * Memory - Buffer * * (c) 2018 <NAME>, ETH Zurich * Contact: <EMAIL> * */ #include "Buffer.h" #include <stdlib.h> #include <string.h> #include <infinity/core/Configuration.h> #include <infinity/utils/Debug.h> #define MIN(a,b) (((a)<(b)) ? (a) : (b)) namespace infinity { namespace memory { Buf...
PPPy290351/nanos
src/riscv64/plic.h
#define PLIC_MAX_INT 0x35 #define PLIC_VIRTIO_INTS_START 1 #define PLIC_VIRTIO_INTS_END 9 #define PLIC_PCIE_INTS_START 0x20 #define PLIC_PCIE_INTS_END 0x23 #define PLIC_PRIORITY 0 #define PLIC_PENDING 0x1000 #define PLIC_ENABLE_C1 0x2080 #define PLIC_THRESH_C1 0x201000 #define PLIC_CLAIM_C1 0x201004 void pli...
dalihub/dali-adaptor
dali/internal/canvas-renderer/common/canvas-renderer-impl.h
<filename>dali/internal/canvas-renderer/common/canvas-renderer-impl.h<gh_stars>1-10 #ifndef DALI_INTERNAL_CANVAS_RENDERER_IMPL_H #define DALI_INTERNAL_CANVAS_RENDERER_IMPL_H /* * Copyright (c) 2021 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use t...
aajjbb/contest-files
Codeforces/DrazilAndFactorial.cpp
<gh_stars>1-10 #include <bits/stdc++.h> template<typename T> T gcd(T a, T b) { if(!b) return a; return gcd(b, a % b); } template<typename T> T lcm(T a, T b) { return a * b / gcd(a, b); } template<typename T> void chmin(T& a, T b) { a = (a > b) ? b : a; } template<typename T> void chmax(T& a, T b) { a = (a...
pitmanst/jpype
native/common/jp_platform.cpp
<gh_stars>0 /***************************************************************************** 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 U...
powertac/powertac-experiment-scheduler
src/main/java/org/powertac/rachma/resource/WorkDirectoryManager.java
<reponame>powertac/powertac-experiment-scheduler package org.powertac.rachma.resource; import org.powertac.rachma.job.Job; import org.powertac.rachma.util.InternalResourceExporter; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; import java.io.IOException; i...
reven86/dava.engine
Modules/TArc/Sources/TArc/DataProcessing/DataListener.h
<filename>Modules/TArc/Sources/TArc/DataProcessing/DataListener.h #pragma once #include "DataWrapper.h" #include "Base/BaseTypes.h" namespace DAVA { namespace TArc { class DataListener { public: virtual ~DataListener(); virtual void OnDataChanged(const DataWrapper& wrapper, const Vector<Any>& fields) = 0; p...
PacktPublishing/Scala-Reactive-Programming
Chapter10/akka-streams-scala-helloworld-app/src/main/scala/com/packt/publishing/akka/streams/hello/AkkaStreamsNumbersApp.scala
<gh_stars>10-100 package com.packt.publishing.akka.streams.hello import akka.actor.ActorSystem import akka.stream.ActorMaterializer import akka.stream.scaladsl.{Flow, Sink, Source} object AkkaStreamsNumbersApp extends App{ implicit val actorSystem = ActorSystem("NumberSystem") implicit val materializer = ActorMa...
yasenagat/AndroidTest
VolleyTest/src/main/java/com/dgcy/http/base/IRequestMsg.java
package com.dgcy.http.base; public interface IRequestMsg<T> { String getCmd(); String getRequestData(); Class<T> getResponseType(); String getUniquenKey(); long getExpireTime(); String getCacheKey(); }
EzzalddeenAli/utilsx
utilsx/src/main/java/org/kingtec/utils/tools/ServiceUtil.java
//package org.kingtec.utils.tools; // //import android.app.Activity; //import android.app.AlarmManager; //import android.app.NotificationManager; //import android.content.Context; //import android.media.AudioManager; //import android.net.ConnectivityManager; //import android.os.PowerManager; //import android.os.Vibrato...
vorpal-research/borealis
SMT/MathSAT/ExecutionContext.h
<reponame>vorpal-research/borealis<filename>SMT/MathSAT/ExecutionContext.h /* * ExecutionContext.h * * Created on: Aug 5, 2013 * Author: sam */ #ifndef MATHSAT_EXECUTIONCONTEXT_H_ #define MATHSAT_EXECUTIONCONTEXT_H_ #include <unordered_map> #include <unordered_set> #include <vector> #include "SMT/MathSAT/...
endritarrahmani-prosperoware/cxjs
docs/content/widgets/configs/ContentResolver.js
import {Md} from '../../../components/Md'; import pureContainer from './PureContainer'; export default { ...pureContainer, params: { key: true, type: 'value/object', description: <cx><Md> Parameter binding. If `params` change, the content is recreated. </Md></cx> ...
twilightgod/twilight-poj-solution
2575/5831497_AC_110MS_392K.cpp
/******************************************************************************* * Online Judge : POJ * Problem Title : Jolly Jumpers * Problem URL : http://acm.pku.edu.cn/JudgeOnline/problem?id=2575 * ID : 2575 * Date : 9/8/2009 * Time : 19:40:51 * ...
slater1998/x7
x7-repo/x7-cache/src/main/java/io/xream/x7/cache/DefaultArgsToString.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 ...
vivaxy/examples
javascript/source-map/src/__tests__/fixtures/webpack/src/get-a.js
<reponame>vivaxy/examples<gh_stars>10-100 /** * @since 2020-03-08 06:12 * @author vivaxy */ function getA() { return 1; } export default getA;
thothd/unit-e
src/script/ismine.cpp
<gh_stars>10-100 // Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <script/ismine.h> #include <key.h> #include <keystore.h> #includ...
mezzofy/mzcoupon-android-customer-lib
libMzCouponAPI/src/main/java/mezzofy/com/libmzcoupon/module/MZChannel.java
package mezzofy.com.libmzcoupon.module; import android.content.Context; import com.google.gson.Gson; import org.json.JSONObject; import mezzofy.com.libmzcoupon.data.ChannelLocationDataListModel; import mezzofy.com.libmzcoupon.utills.CommonModule; import mezzofy.com.libmzcoupon.utills.JSONSTRINGS; public class MZC...
ndoxx/wcore
source/tests/catch_algo.cpp
<gh_stars>0 #include <catch2/catch.hpp> #include <iostream> #include "algorithms.h" #include "catch_math_common.h" TEST_CASE("Previous power of 2.", "[algo]") { REQUIRE(pp2(17) == 16); REQUIRE(pp2(182) == 128); } TEST_CASE("Next power of 2.", "[algo]") { REQUIRE(np2(17) == 32); REQUIRE(np2(182) == 25...
jmix-framework/jmix
jmix-flowui/flowui/src/main/java/io/jmix/flowui/component/validation/FutureOrPresentValidator.java
/* * Copyright 2022 Haulmont. * * 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...
denisepen/InsideVagrant_Rails_App
node_modules/msgpack-lite/global.js
/* globals msgpack */ module.exports = msgpack;
sorabae/android-typecheck
src/main/scala/kr/ac/kaist/safe/analyzer/domain/AbsBinding.scala
/** * ***************************************************************************** * Copyright (c) 2016, KAIST. * All rights reserved. * * Use is subject to license terms. * * This distribution may include materials developed by third parties. * *****************************************************************...
roberttod/tiny-atom
tasks/build.js
const shell = require('execa').shell const sh = (...args) => shell(...args, { stdio: 'inherit' }) const files = [ 'package.json', 'package-lock.json', 'LICENSE', 'CHANGELOG.md', 'README.md' ] ;(async function () { await sh('rm -rf dist') await sh('mkdir -p dist') for (let file of files) { await s...
FluffyQuack/ja2-stracciatella
src/game/Editor/Editor_Undo.cc
<reponame>FluffyQuack/ja2-stracciatella<gh_stars>100-1000 #include "PODObj.h" #include "Structure.h" #include "TileDef.h" #include "WorldDef.h" #include "WorldMan.h" #include "Smooth.h" #include "Input.h" #include "Debug.h" #include "Isometric_Utils.h" #include "EditScreen.h" #include "Editor_Undo.h" #include "Render_F...
greenvilleassociates/fusionshellplus
efront/www/editor/tiny_mce_new/plugins/advlink/langs/ca_dlg.js
<filename>efront/www/editor/tiny_mce_new/plugins/advlink/langs/ca_dlg.js tinyMCE.addI18n('ca.advlink_dlg',{ title:"Insereix/edita enlla\u00E7", url:"URL de l\'enlla\u00E7", target:"Objectiu", titlefield:"T\u00EDtol", is_email:"L\'URL que heu introdu\u00EFt sembla ser una adre\u00E7a de correu electr\u00F2nic, voleu afe...
poppeman/Pictus
source/Pictus/wintypes.h
<reponame>poppeman/Pictus<gh_stars>10-100 #ifndef PICTUS_WINTYPES_H #define PICTUS_WINTYPES_H #include "app_types.h" #include <wx/event.h> #include <orz/intl_language.h> #include <wx/colour.h> namespace Win { enum MouseButton { NoButton, Left, Right, Middle, Extra1, Extra2 }; class MouseEvent { publi...
mrpotatoes/computer-science-in-javascript
src/recursion/array/array.js
/* eslint-disable no-unused-vars, no-undef, arrow-body-style */ // http://oskarhane.com/create-a-nested-array-recursively-in-javascript/ // Create a nested array recursively in Javascript // // Take this: // [ // {id: 1, title: 'hello', parent: 0}, // {id: 2, title: 'hello', parent: 0}, // {id: 3, title: '...
yrgohrm/oop_ht21
lektion24/ThreadEx2.java
public class ThreadEx2 { private static class Interruptable implements Runnable { public void run() { while (!Thread.currentThread().isInterrupted()) { System.out.println("Jobbar..."); try { Thread.sleep(50); }...
podlove/podlove-web-player
build/blocks/output.js
const { distDir, prepend } = require('./dir') module.exports = (publicPath, prefix = '') => ({ path: distDir, filename: '[name].js', chunkFilename: prepend('[name].js', prefix), publicPath })
jxg01713/zstack
header/src/main/java/org/zstack/header/apimediator/ApiMessageInterceptionException.java
<reponame>jxg01713/zstack<filename>header/src/main/java/org/zstack/header/apimediator/ApiMessageInterceptionException.java<gh_stars>0 package org.zstack.header.apimediator; import org.zstack.header.errorcode.ErrorCode; /** * Created with IntelliJ IDEA. * User: frank * Time: 11:38 PM * To change this templ...
Ehsan-aghapour/AI-Sheduling-Reprodution
src/runtime/cpu/operators/CpuElementwise.cpp
<filename>src/runtime/cpu/operators/CpuElementwise.cpp /* * Copyright (c) 2021 Arm Limited. * * SPDX-License-Identifier: MIT * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without r...
fernandotonon/QtMeshEditor
src/RotationGizmo.cpp
<reponame>fernandotonon/QtMeshEditor /*///////////////////////////////////////////////////////////////////////////////// /// A QtMeshEditor file /// /// Copyright (c) HogPog Team (www.hogpog.com.br) /// /// The MIT License /// /// Permission is hereby granted, free of charge, to any person obtaining a copy /// of this ...
keep-practicing/algorithms
data-structures/singlelinkedlist/singlelinkedlist.go
// 单链表实现 package singlelinkedlist // Node is an element of a linked list. type Node struct { Value interface{} next *Node } // List represents a single linked list. // The zero value for List is an empty list ready to use. type List struct { Head *Node len int } // Init initializes or clears list l. func (l *...
marsgis/mars3d-es5-example
example/layer-graphic/file/czml/map.js
// import * as mars3d from "mars3d" var map // mars3d.Map三维地图对象 var graphicLayer // 矢量图层对象 // 需要覆盖config.json中地图属性参数(当前示例框架中自动处理合并) var mapOptions = { scene: { center: { lat: 31.623244, lng: 123.508771, alt: 345435, heading: 0, pitch: -48 } // cameraController: { // maximumZoomDistance: 500000000, ...
rnarla123/aliyun-openapi-java-sdk
aliyun-java-sdk-copyright/src/main/java/com/aliyuncs/copyright/model/v20190123/SaveCopyrightPersonRequest.java
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed u...
angelorc/okchain
x/backend/keeper/keeper_channel.go
package keeper import ( "fmt" "time" "github.com/okex/okchain/x/backend/config" "github.com/okex/okchain/x/backend/orm" "github.com/okex/okchain/x/backend/types" "github.com/tendermint/tendermint/libs/log" ) func pushAllKline1m(klines map[string][]types.KlineM1, keeper Keeper, nextStartTS int64) { keeper.Log...
Texas-C/echo
thirdparty/vulkan/vulkan-validationlayers/layers/sync_utils.cpp
<filename>thirdparty/vulkan/vulkan-validationlayers/layers/sync_utils.cpp /* * Copyright (c) 2019-2021 Valve Corporation * Copyright (c) 2019-2021 LunarG, 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 obt...
mechasource/mechcommander2
source/tools/editor/usertextedit.h
<gh_stars>10-100 //===========================================================================// // Copyright (C) Microsoft Corporation. All rights reserved. // //===========================================================================// #pragma once #if !defined(AFX_USERTEXTEDIT_H__5C5823FE_6B1B_4...
Enterprise-Neurosystem/ai-signal-processing
aisp-core/aisp-core-main/src/main/java/org/eng/aisp/classifier/anomaly/normal/StatUtils.java
/******************************************************************************* * Copyright [2022] [IBM] * * 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/...
huangshiyou/shiyouh.github.io
files/csce111/examples/chap3/Seasons.java
<gh_stars>0 import java.util.Scanner; /** This program translates the English names of the seasons into Spanish. */ public class Seasons { public static void main(String[] args) { String input; // Create a Scanner object for keyboard input. Scanner keyboard = new Sc...
morning-song/sunspot
sunspot_rails/dev_tasks/rdoc.rake
rdoc_task = begin require 'rdoc/task' RDoc::Task rescue LoadError begin require 'rake/rdoctask' Rake::RDocTask rescue nil end end if rdoc_task rdoc_task.new(:doc) do |rdoc| rdoc.main = '../README.md' rdoc.rdoc_files.include('../README.md', 'lib/sunspot/rails/**/*.r...
SKCraft/Plume
src/main/java/com/skcraft/plume/module/border/WorldBorderConfig.java
<filename>src/main/java/com/skcraft/plume/module/border/WorldBorderConfig.java package com.skcraft.plume.module.border; import com.skcraft.plume.util.Location3d; import ninja.leaping.configurate.objectmapping.Setting; import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable; public class WorldBorde...
bluerelay/windyquery
windyquery/combiner/raw_stmt.py
from ._base import _rule class RawStmt: @_rule('raw_stmt : RAW') def p_raw_raw(self, p): p.lexer.append('RAW', p[1], 1) @_rule('raw_stmt : RRULE') def p_raw_rrule(self, p): p.lexer.append('RRULE', p[1]) @_rule('raw_stmt : WITH_VALUES') def p_raw_with_values(self, p): ...
fsxfreak/club-suite
clubsuite/suite/migrations/0022_auto_20170301_0407.py
<gh_stars>10-100 # -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-01 04:07 from __future__ import unicode_literals import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('suite', '0021_auto_20170227_2231'), ] operations =...
NickG-Math/Mackey
docs/html/Graph__Policies_8hpp.js
<reponame>NickG-Math/Mackey<filename>docs/html/Graph__Policies_8hpp.js var Graph__Policies_8hpp = [ [ "bicolored_edge_with_id", "structmackey_1_1bicolored__edge__with__id.html", "structmackey_1_1bicolored__edge__with__id" ], [ "MinLength", "classmackey_1_1MinLength.html", "classmackey_1_1MinLength" ], [ "Mi...
xsthunder/a
old/week1/0I.cc
const bool test=0; #include<iostream> #include<cctype> #include<algorithm> #include<cstdio> #include<cstdlib> #include<vector> #include<map> #include<queue> #include<set> #include<cctype> #include<cstring> #include<utility> #include<cmath> const int inf=0x7fffffff; #define IF if(test) #define FI if(!test) #define gts(s...
DTomoo/betting
src/main/java/com/dt/betting/db/domain/bet/ScoreGuestBetPiece.java
package com.dt.betting.db.domain.bet; public class ScoreGuestBetPiece extends BetPiece<Long> { public ScoreGuestBetPiece(long scoreGuest) { super(scoreGuest); } @Override public BetPieceType getType() { return BetPieceType.SCORE_GUEST; } public long getScoreIfOk() { return getValue().longV...
CoderMMK/RSPS
Server/src/server/model/items/Item.java
<reponame>CoderMMK/RSPS package server.model.items; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import server.Config; import server.Server; /** * Handles The Item Wielding Of The Server Used When Hardcoding Additional Items * Fixing Bugged Items * * @author Sanity Revised by...
dtk/dtk-server
application/model/module/module/dsl/adapters/v3/object_model_form/choice.rb
# # Copyright (C) 2010-2016 dtk contributors # # This file is part of the dtk project. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unles...