repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
donnior/reactor
reactor-net/src/main/java/reactor/io/net/http/model/HttpHeaders.java
/* * Copyright (c) 2011-2015 Pivotal Software Inc, All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unles...
qiumingkui/sample_mystore
sample_mystore_common/src/main/java/com/mystore/common/meta/ClassMeta.java
<reponame>qiumingkui/sample_mystore package com.mystore.common.meta; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.util.HashMap; import java.util.Map; import com.mystore.common.utils.SimpleBeanUtil; public class ClassMeta<T> { protected Class<T> clazz; protected Map<String, Field> ...
cesarlaso/tfm-udima-arquitectura-del-software-dsl-ecore-xtext-emf
eclipse-emf-udima/es.udima.cesarlaso.tfm/src/es/udima/cesarlaso/tfm/communications/Packet.java
/** */ package es.udima.cesarlaso.tfm.communications; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EObject; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>Packet</b></em>'. * <!-- end-user-doc --> * * <!-- begin-model-doc --> * Un paquete define la unida...
ishiura-compiler/CF3
testsuite/EXP_4/test583.c
/* CF3 Copyright (c) 2015 ishiura-lab. Released under the MIT license. https://github.com/ishiura-compiler/CF3/MIT-LICENSE.md */ #include<stdio.h> #include<stdint.h> #include<stdlib.h> #include"test1.h" int8_t x6 = -1; int32_t x8 = -344; int32_t t0 = -12916537; static int32_t x12 = -24419046; int16_t x14 = -2730...
Labanpz/owf-setup
apache-tomcat-7.0.21/webapps/owf/js/util/pageload.js
/** * @ignore */ var Ozone = Ozone || {}; /** * @ignore */ Ozone.util = Ozone.util || {}; /** * @namespace */ Ozone.util.pageLoad = Ozone.util.pageLoad || {}; /** * @field * @description enable or disable the automatic sending of loadtime */ Ozone.util.pageLoad.autoSend = true; /** * @fi...
GenaAiv/portfolio-website
node_modules/eslint/lib/rules/line-comment-position.js
/** * @fileoverview Rule to enforce the position of line comments * @author <NAME> */ "use strict"; const astUtils = require("./utils/ast-utils"); //------------------------------------------------------------------------------ // Rule Definition //--------------------------------------------------------...
iainx/grs
_LoginControl/Classes/LCDragOffWindow.h
<reponame>iainx/grs<gh_stars>1-10 // // LCDragOffWindow.h // LoginControl // // Created by <NAME> on 5/31/10. // Copyright 2010 8th Light. All rights reserved. // #import <Cocoa/Cocoa.h> @interface LCDragOffWindow : NSWindow { NSArray *deletionTypes; id delegate; } + (LCDragOffWindow*) sharedWindow; - ...
kaarolch/datadog-agent
pkg/tagger/collectors/common_test.go
// Unless explicitly stated otherwise all files in this repository are licensed // under the Apache License Version 2.0. // This product includes software developed at Datadog (https://www.datadoghq.com/). // Copyright 2016-2020 Datadog, Inc. package collectors import ( "fmt" "sort" "testing" "github.com/stretch...
abersnaze/RxNetty
rxnetty-examples/src/test/java/io/reactivex/netty/examples/tcp/interval/TcpIntervalTest.java
<gh_stars>0 /* * Copyright 2014 Netflix, 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...
touxiong88/92_mediatek
frameworks/opt/ngin3d/java/com/mediatek/ngin3d/animation/AnimationGroup.java
/* Copyright Statement: * * This software/firmware and related documentation ("MediaTek Software") are * protected under relevant copyright laws. The information contained herein is * confidential and proprietary to MediaTek Inc. and/or its licensors. Without * the prior written permission of MediaTek inc. and/or ...
maxwlang/CyBuy
Headers/Application/Main/Startup.h
<reponame>maxwlang/CyBuy // // Startup.h // Cydia // // Created on 8/31/16. // @interface Startup : NSObject // Startup + (void)runStartupTasks; // Status + (void)updateExternalKeepAliveStatus:(BOOL)keepAlive; @end
Aki78/FlightAI
cpp/apps/LandTactics/LTUnit.h
#ifndef LTUnit_h #define LTUnit_h #include "fastmath.h" #include "tresholdFunctions.h" #include "Vec2.h" #include "Vec3.h" #include "geom2D.h" #include "Body2D.h" #include "LTcommon.h" #include "LTUnitType.h" //#include "LTFaction.h" class LTGun{ public: LTGunType * type = 0; int n=1; // twin,quad ... ...
orobio/gulden-official
src/validation/witnessvalidation.h
<filename>src/validation/witnessvalidation.h // Copyright (c) 2017-2018 The Gulden developers // Authored by: <NAME> (<EMAIL>) // Distributed under the GULDEN software license, see the accompanying // file COPYING #ifndef WITNESS_VALIDATION_H #define WITNESS_VALIDATION_H #include "validation/validation.h" #include <b...
LeeTiK/embeddedlinux-jvmdebugger-intellij
src/com/atsebak/embeddedlinuxjvm/console/EmbeddedLinuxJVMConsoleView.java
package com.atsebak.embeddedlinuxjvm.console; import com.intellij.codeEditor.printing.PrintAction; import com.intellij.execution.impl.ConsoleViewImpl; import com.intellij.execution.ui.ConsoleViewContentType; import com.intellij.execution.ui.RunnerLayoutUi; import com.intellij.execution.ui.layout.PlaceInGrid; import co...
yuanz271/PyDSTool
PyDSTool/utils.py
<reponame>yuanz271/PyDSTool """ User utilities. """ from __future__ import absolute_import, print_function import collections import numbers import os from distutils.util import get_platform from .errors import * from .common import * from .common import _num_types, _seq_types from .parseUtils impo...
vkinsane/OOP-Car-Game-SY-SEM-2
docs/html/search/functions_b.js
<filename>docs/html/search/functions_b.js<gh_stars>10-100 var searchData= [ ['_7egame',['~Game',['../classcp_1_1_game.html#a1c1387e83a2325e45cbf2099c430c502',1,'cp::Game']]], ['_7egamesimulator',['~GameSimulator',['../classcp_1_1_game_simulator.html#a64ab0578e27b01b32c492b3d48676a23',1,'cp::GameSimulator']]], ['_...
mariohofmann/svnclientadapter
tests/org/tigris/subversion/svnclientadapter/basictests/CheckOutTest.java
/******************************************************************************* * Copyright (c) 2004, 2006 svnClientAdapter project and others. * * 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 Lice...
mamontov-cpp/saddy
src/sadsleep.cpp
<reponame>mamontov-cpp/saddy<filename>src/sadsleep.cpp<gh_stars>10-100 #include "sadsleep.h" #ifdef WIN32 #include <windows.h> #else #include <unistd.h> #endif void sad::sleep(unsigned int milliseconds) { #ifdef WIN32 Sleep(milliseconds); #else usleep(milliseconds * 1000); #endif }
suggitpe/java-gui
mercury/src/main/java/org/suggs/apps/mercury/view/actions/file/ExitAction.java
/* * ExitAction.java created on 20 Oct 2008 06:56:31 by suggitpe for project GUI - Mercury * */ package org.suggs.apps.mercury.view.actions.file; import org.suggs.apps.mercury.model.util.image.ImageManager; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.eclipse.jface.action.Action; ...
srcarter3/awips2
edexOsgi/com.raytheon.edex.plugin.shef/src/com/raytheon/edex/transform/shef/obs/MetarSynopticCode.java
/** * This software was developed and / or modified by Raytheon Company, * pursuant to Contract DG133W-05-CQ-1067 with the US Government. * * U.S. EXPORT CONTROLLED TECHNICAL DATA * This software product contains export-restricted data whose * export/transfer/disclosure is restricted by U.S. law. Dissemination ...
arnaud-dezandee/tailscale
tstest/integration/vms/gen/test_codegen.go
// Copyright (c) 2021 Tailscale Inc & AUTHORS All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // build ignore package main import ( _ "embed" "fmt" "log" "os" "time" "github.com/dave/jennifer/jen" "github.com/iancoleman/strcase" "t...
ScalablyTyped/scala-st-std
scala-st-std/src/main/scala/org.scalablytyped/std/WindowEventHandlersEventMap.scala
package org.scalablytyped.std import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation._ trait WindowEventHandlersEventMap extends js.Object { var afterprint: Event var beforeprint: Event var beforeunload: BeforeUnloadEvent var hashchange: HashChangeEvent var languagechange: Ev...
pymir3/pymir3
mir3/modules/tool/score2midi.py
import argparse import mir3.data.score as score import mir3.lib.midi.MidiOutFile as MidiOutFile import mir3.module class Score2Midi(mir3.module.Module): def get_help(self): return """convert the internal score representation to midi""" def build_arguments(self, parser): parser.add_argument('in...
mabartos/bartOS-server-core
services/src/main/java/org/mabartos/persistence/jpa/model/services/user/UserServiceImpl.java
<reponame>mabartos/bartOS-server-core /* * Copyright (c) 2020. * <NAME> * SmartHome BartOS * All rights reserved. */ package org.mabartos.persistence.jpa.model.services.user; import io.quarkus.runtime.StartupEvent; import org.mabartos.api.model.user.UserModel; import org.mabartos.api.service.user.UserRoleService...
syz247179876/e_mall
payment_app/serializers/payment_serializers.py
# -*- coding: utf-8 -*- # @Time : 2020/6/1 10:03 # @Author : 司云中 # @File : payment_serializers.py # @Software: PyCharm import time from user_app.models import User from order_app.models.order_models import Order_basic, Order_details from payment_app.models.Alipay_models import PayInformation from shop_app.models.c...
moutainhigh/ses-server
ses-app/ses-web-ros/src/main/java/com/redescooter/ses/web/ros/controller/setup/GroupSettingController.java
package com.redescooter.ses.web.ros.controller.setup; import com.redescooter.ses.api.common.annotation.AvoidDuplicateSubmit; import com.redescooter.ses.api.common.vo.base.*; import com.redescooter.ses.api.foundation.vo.setting.GroupResult; import com.redescooter.ses.web.ros.service.setting.RosGroupService; import com....
GabrielNagy/pdk
package-testing/spec/spec_helper_package.rb
<reponame>GabrielNagy/pdk require 'beaker-rspec' require 'beaker-puppet' Dir['./spec/package/support/*.rb'].sort.each { |f| require f } RSpec.shared_context :set_path do let(:path) { windows_node? ? nil : "#{install_dir}/bin:$PATH" } end set :env, PDK_DISABLE_ANALYTICS: 'true' RSpec.configure do |c| c.include S...
BigdataGit/hadoop-learning
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/constraint/TestPlacementProcessor.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...
PrynsTag/oneBarangay
ocr/tests.py
"""Create your OCR tests here."""
darenr/MOMA-Art
geotagger/nationality-to-countrycode.py
<gh_stars>1-10 country_mappings = { 'Afghani': 'AFG', 'Albanian': 'ALB', 'Antarctic': 'ATA', 'Algerian': 'DZA', 'Samoan': 'ASM', 'Andorran': 'AND', 'Angolan': 'AGO', 'Antiguan': 'ATG', 'Azerbaijani': 'AZE', 'Argentine': 'ARG', 'Australian': 'AUS', 'Austrian': 'AUT', 'Bahameese': 'BHS', 'Bahrainian': 'B...
amikey/elasticsearch
modules/lang-painless/src/main/java/org/elasticsearch/painless/antlr/PainlessParserBaseVisitor.java
// ANTLR GENERATED CODE: DO NOT EDIT package org.elasticsearch.painless.antlr; import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor; /** * This class provides an empty implementation of {@link PainlessParserVisitor}, * which can be extended to create a visitor which only needs to handle a subset * of the avail...
Lewington-pitsos/mlutils
lepmlutils/pdutils/droptfm.py
from .transform import Transform from .taggeddataframe import TaggedDataFrame from .coltag import ColTag from typing import List import pandas as pd # DropTfm removes a number of columns from a dataframe. class DropTfm(Transform): def __init__(self, to_drop: List[str]): self.to_drop = to_drop def ...
giuraionut/task-manager
api/src/main/java/com/example/api/user/UserController.java
package com.example.api.user; import com.example.api.jwt.AuthorVerifier; import com.example.api.misc.MiscService; import com.example.api.response.Response; import lombok.AllArgsConstructor; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.security.a...
tied/msteams-jira-server-addon
src/main/java/com/microsoft/teams/service/messaging/TeamsMessageCreator.java
package com.microsoft.teams.service.messaging; import com.microsoft.teams.service.models.TeamsMessage; import org.jose4j.jwt.GeneralJwtException; public interface TeamsMessageCreator { TeamsMessage create(String teamsMsg) throws GeneralJwtException; }
eadium/gobuns
redis/redis_test.go
package redis import ( "context" "errors" "fmt" "time" goredis "github.com/go-redis/redis/v8" ) type localStorage struct { storage map[string]interface{} } func (localStorage) GetEx(ctx context.Context, key string, expiration time.Duration) *goredis.StringCmd { panic("implement me") } func (localStorage) Ge...
gagaboy/clause
thirdparty/daemontools/admin/daemontools-0.76/src/coe.c
<filename>thirdparty/daemontools/admin/daemontools-0.76/src/coe.c /* Public domain. */ #include <fcntl.h> #include "coe.h" int coe(int fd) { return fcntl(fd,F_SETFD,1); }
MarkCDavid/vilnius-tech-accounting
src/main/java/vilnius/tech/seeds/CategorySeeder.java
package vilnius.tech.seeds; import org.hibernate.Session; import vilnius.tech.hibernate.FinancialCategory; import vilnius.tech.hibernate.User; import vilnius.tech.hibernate.service.FinancialCategoryService; import vilnius.tech.hibernate.service.UserService; public class CategorySeeder implements Seeder { @Overri...
jjzhang166/balancer
contrib/tools/byacc/skeleton.c
<reponame>jjzhang166/balancer<gh_stars>10-100 /* $Id: skeleton.c,v 1.9 2008-07-09 16:12:44 pg Exp $ */ #include "defs.h" /* The definition of yysccsid in the banner should be replaced with */ /* a #pragma ident directive if the target C compiler supports */ /* #pragma ident directives. */ /* */ /* I...
EMBL-EBI-SUBS/subs-api
src/test/java/uk/ac/ebi/subs/api/utils/SubmittableHelper.java
package uk.ac.ebi.subs.api.utils; import uk.ac.ebi.subs.data.component.Archive; import uk.ac.ebi.subs.data.component.Team; import uk.ac.ebi.subs.data.status.ProcessingStatusEnum; import uk.ac.ebi.subs.data.status.SubmissionStatusEnum; import uk.ac.ebi.subs.repository.model.AssayData; import uk.ac.ebi.subs.repository.m...
vishakhaakumar/SQAProject_WarehouseAPI
src/main/java/app/repository/ProductRepository.java
package app.repository; import app.model.Product; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import java.util.Optional; @Repository public interface ProductRepository extends JpaRepository<Product, Long>, ProductRepositoryCustom { Optional<Pro...
debarati007/Leetcode
src/main/java/Misc/DSA/GridUniquePaths.java
<filename>src/main/java/Misc/DSA/GridUniquePaths.java package Misc.DSA; import java.util.Arrays; public class GridUniquePaths { //recursive solution //base case : when reached at end i.e i=n-1 and j=m-1,return 1. //result from right subtree+left recursive subtree gives the result. //always we have 2 s...
vbillet/Torque3D
Engine/source/gui/worldEditor/editTSCtrl.h
<filename>Engine/source/gui/worldEditor/editTSCtrl.h //----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Soft...
chipmaurer/presto-connector
trino/src/main/java/io/trino/plugin/pravega/decoder/JsonRowDecoderFactory.java
<filename>trino/src/main/java/io/trino/plugin/pravega/decoder/JsonRowDecoderFactory.java /* * Copyright (c) <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.a...
harr999y/Whisperwind
Whisperwind/Whisperwind_MeshConverter/include/FbxXmlConverter.h
<filename>Whisperwind/Whisperwind_MeshConverter/include/FbxXmlConverter.h<gh_stars>1-10 /*------------------------------------------------------------------------- This source file is a part of Whisperwind.(GameEngine + GamePlay + GameTools) For the latest info, see http://lisuyong.com Copyright (c) 2012 <NAME> (<...
cragkhit/elasticsearch
references/bcb_chosen_clones/default#133849#8#21.java
<gh_stars>10-100 public static void main(String[] args) { System.out.println("Chapter 1 example 1: Hello World"); Document document = new Document(); try { PdfWriter.getInstance(document, new FileOutputStream("Chap0101.pdf")); document.open(); document.add...
Imbibed/myFirstGatsbyContentfulApp
src/components/Footer/components/FooterIconLink.js
import React from "react"; import { Link } from 'mailjet-react-components'; const FooterIconLink = props => <Link disabled={false} {...props} iconSize="20px" mode="icon" size="small" target="_blank"/> export default FooterIconLink;
eclipse/keti
model/src/main/java/org/eclipse/keti/acs/rest/PolicyEvaluationRequestV1.java
<filename>model/src/main/java/org/eclipse/keti/acs/rest/PolicyEvaluationRequestV1.java /******************************************************************************* * Copyright 2018 General Electric Company * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in ...
chenyaoyang/Beth
app/src/main/java/com/chen/beth/blockchainfragment/BlockChainFooterDatabinding.java
package com.chen.beth.blockchainfragment; import androidx.databinding.ObservableField; import com.chen.beth.models.LoadingState; public class BlockChainFooterDatabinding { public ObservableField<Boolean> loadingState = new ObservableField<>(); public BlockChainFooterDatabinding(){ loadingState.set(tr...
liuqingdada/ShengSiYuan
jdk8/src/main/java/com/shengsiyuan/jdk8/methodreference/Student.java
package com.shengsiyuan.jdk8.methodreference; public class Student { private String name; private int score; public Student(String name, int score) { this.name = name; this.score = score; } public String getName() { return name; } public void setName(String name...
michelcareau/DSpace
dspace-server-webapp/src/main/java/org/dspace/app/rest/submit/factory/impl/ItemMetadataValueReplacePatchOperation.java
/** * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ package org.dspace.app.rest.submit.factory.impl; import java.util.List; import javax.servlet.http.Http...
takuto-y/the
packages/code/test/processPackageJSONTest.js
'use strict' /** * @file Test for processPackageJSON. * Runs with mocha. */ const { strict: { equal }, } = require('assert') const processPackageJSON = require('../lib/processors/processPackageJSON') describe('process-package-jso-n', () => { before(() => {}) after(() => {}) it('Do test', async () => { ...
showsmall/goa.c
code/test/main.go
package main import ( "fmt" "runtime" ) func main() { v := struct{}{} a := make(map[int]struct{}) for i := 0; i < 10000; i++ { a[i] = v } runtime.GC() printMemStats("After Map Add 100000") for i := 0; i < 10000-1; i++ { delete(a, i) } runtime.GC() printMemStats("After Map Delete 9999") for i :=...
ItsGagan/rekall
app/models/score.rb
<filename>app/models/score.rb # frozen_string_literal: true class Score < ApplicationRecord belongs_to :result belongs_to :query belongs_to :query_group belongs_to :user def update_ratings_with(params) doc_score = valid_scorer_scale_value(params[:score]) return false unless doc_score doc = para...
pengm2ng/TENOK_COIN_PROJECT
tenok-coin/src/main/java/org/tenok/coin/data/entity/OrderDataAccessable.java
<gh_stars>1-10 package org.tenok.coin.data.entity; import java.util.Date; public interface OrderDataAccessable extends Orderable { /** * * @return timestamp */ public Date getTimeStamp(); }
slowy07/google-cloud-cpp
google/cloud/bigtable/instance_update_config_test.cc
// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
mamoudmatook/PythonSpecializaionInRussian
1-DiveIntoPython/week2/storage.py
import json import tempfile import argparse import os STORAGE_FILE = os.path.join(tempfile.gettempdir(), 'storage.data') def main(): storage = None argparser = argparse.ArgumentParser(description='') argparser.add_argument('-k', '--key', dest='key', required=True) argparser.add_argument('-v', '--value'...
bednya/wilson
wilson/run/smeft/rge.py
<gh_stars>10-100 """Solving the SMEFT RGEs.""" from . import beta from copy import deepcopy from math import pi, log from scipy.integrate import solve_ivp from wilson.util.smeftutil import C_array2dict, C_dict2array, arrays2wcxf_nonred import numpy as np def smeft_evolve_leadinglog(C_in, scale_in, scale_out, newphy...
hixio-mh/citadel_sdk_2.1.1
drivers/broadcom/unicam/unicam_bcm5820x_csi.c
<gh_stars>0 /****************************************************************************** * Copyright (C) 2017 Broadcom. The term "Broadcom" refers to Broadcom Limited * and/or its subsidiaries. * * This program is the proprietary software of Broadcom and/or its licensors, * and may only be used, duplicated,...
masanam/Trading
public/angular/core/routes/user.routes.js
<reponame>masanam/Trading<gh_stars>1-10 'use strict'; // Setting up route angular.module('user').config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) { // Home state routing $stateProvider .state('user', { url: '/user', abstract: true, te...
CompOpt4Apps/Artifact-DataDepSimplify
chill/include/chill/graph.hh
<reponame>CompOpt4Apps/Artifact-DataDepSimplify /***************************************************************************** Copyright (C) 2008 University of Southern California Copyright (C) 2010 University of Utah All Rights Reserved. Purpose: Graph<VertexType, EdgeType> template class supports topological ...
gxing19/Design-Patterns-Java
src/main/java/com/gxitsky/behavioral/mediator/full/Colleague.java
package com.gxitsky.behavioral.mediator.full; /** * @author gxing * @desc 抽象同事类 * @date 2021/6/21 */ public abstract class Colleague { protected Mediator mediator; public Colleague(Mediator mediator) { this.mediator = mediator; } abstract void receive(); abstract void send(); }
WillemElbers/unity-idm
core/src/main/java/pl/edu/icm/unity/server/translation/form/EnquiryTranslationProfile.java
/* * Copyright (c) 2015 ICM Uniwersytet Warszawski All rights reserved. * See LICENCE.txt file for licensing information. */ package pl.edu.icm.unity.server.translation.form; import java.util.List; import pl.edu.icm.unity.server.registries.RegistrationActionsRegistry; import pl.edu.icm.unity.server.registries.Type...
AllAlgorithms/Go
algorithms/graph/tsp/tsp_test.go
<reponame>AllAlgorithms/Go package tsp import ( "reflect" "testing" ) func TestTSP(t *testing.T) { t.Run("TSP Test", func(t *testing.T) { graph := CreateGraph(4) graph.AppendEdge(0, 1, 6) graph.AppendEdge(0, 2, 5) graph.AppendEdge(0, 3, 5) graph.AppendEdge(1, 2, 4) graph.AppendEdge(1, 3, 7) graph.Ap...
p-g-krish/deepmac-tracker
data/js/ac/22/05/00/00/00.24.js
deepmacDetailCallback("ac2205000000/24",[{"d":"2017-01-31","t":"add","a":"13F., No.1, Taiyuan 1st St. Zhubei City Hsinchu County TW 30265","c":"TW","o":"Compal Broadband Networks, Inc."}]);
rudigh/churchtools_ce
system/assets/ckeditor/plugins/churchtools/plugin.js
<gh_stars>1-10 ( function() { CKEDITOR.plugins.add( 'churchtools', { init: function( editor ) { var me = this; editor.addCommand( 'vorname', { exec: function( editor ) { div = editor.document.createElement('span'); div.setHt...
rio-31/android_frameworks_base-1
packages/SystemUI/src/com/android/systemui/statusbar/phone/AutoHideElement.java
/* * Copyright (C) 2020 The Android Open Source 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 * * Unless required by app...
qua-platform/qua-libs
examples/spectroscopy/resonator-spectroscopy/resonator_spectroscopy.py
""" resonator_spectroscopy.py: Resonator spectroscopy to find the resonance frequency Author: <NAME> - Quantum Machines Created: 8/11/2020 Created on QUA version: 0.6.156 """ from configuration import config from qm.qua import * from qm.QuantumMachinesManager import QuantumMachinesManager from qm import SimulationConf...
joedevgee/cms-hitech-apd
web/src/components/Wrapper.js
<filename>web/src/components/Wrapper.js<gh_stars>1-10 import PropTypes from 'prop-types'; import React, { Component } from 'react'; class Wrapper extends Component { componentDidMount() { if (!this.props.isDev) return; this.addTota11y(); } addTota11y = () => { const script = document.createElement('...
Xett/gba-modern
source/scenes/IrqCtxTestScene.cpp
<gh_stars>0 //-------------------------------------------------------------------------------- // IrqCtxTestScene.cpp //-------------------------------------------------------------------------------- // <insert description here> //-------------------------------------------------------------------------------- #includ...
ko7m/NXP_Kinetis_Bootloader
doc/core_html/group__sbloader.js
var group__sbloader = [ [ "SB File Format", "group__sb__file__format.html", "group__sb__file__format" ], [ "boot_cmd_t", "group__sbloader.html#structboot__cmd__t", [ [ "address", "group__sbloader.html#ac0d31ca829f934cccd89f8054e02773e", null ], [ "checksum", "group__sbloader.html#a59eac9627282a484fb...
linyuanshou/linkchain
types/params.go
package types import ( "math/big" cmn "github.com/lianxiangcloud/linkchain/libs/common" "github.com/lianxiangcloud/linkchain/libs/crypto/merkle" ) var IsTestMode = false const ( // BloomBitsBlocks is the number of blocks a single bloom bit section vector // contains. BloomBitsBlocks uint64 = 4096 ) const ( ...
ckorzen/pdfact
pdfact-core/src/main/java/pdfact/core/pipes/parse/PlainParseDocumentPipe.java
<gh_stars>10-100 package pdfact.core.pipes.parse; import pdfact.core.model.Document; import pdfact.core.pipes.parse.stream.pdfbox.PdfBoxPdfStreamsParser; import pdfact.core.util.exception.PdfActException; /** * A plain implementation of {@link ParseDocumentPipe}. * * @author <NAME> */ public class PlainParseDocu...
dudejagaurav/bitsat
src/main/java/roundzero/day13/StringFind.java
package roundzero.day13; /** * Created by Gaurav on 15/10/17. */ public class StringFind { public int strStr(final String haystack, final String needle) { if (haystack.length() < 1 || needle.length() < 1 || haystack.length() < needle.length()) { return -1; } int startInde...
jrcastro2/react-invenio-app-ils
src/lib/pages/backoffice/ILL/Library/LibrarySearch/LibraryList/index.js
export { default as LibraryList } from './LibraryList'; export { default as LibraryListEntry } from './LibraryListEntry';
masud-technope/ACER-Replication-Package-ASE2017
corpus/norm-class/eclipse.jdt.ui/10727.java
<filename>corpus/norm-class/eclipse.jdt.ui/10727.java comment param param param foo param bar foo string bar system println bar
FrankKair/pygorithms
algorithms/quicksort.py
# Time: O(n^2) with average O(n log n) # Space: O(1) def quicksort(array): def quicksort(array, left, right): if left >= right: return pivot = array[int((left + right) / 2)] index = partition(array, left, right, pivot) quicksort(array, left, index - 1) quicksort(a...
XIANG07/u-boot-zjxiang
u-boot-1.1.6/board/esd/cms700/fpgadata.c
<gh_stars>0 0x07,0x20,0x12,0x00,0x12,0x01,0x04,0x00,0x00,0x00,0x00,0x02,0x08,0xff,0x02,0x08, 0xfe,0x08,0x00,0x00,0x00,0x20,0x01,0x0f,0xff,0xff,0xff,0x09,0x00,0x00,0x00,0x00, 0xf9,0x60,0x40,0x93,0x02,0x08,0xff,0x02,0x08,0xff,0x02,0x08,0xe8,0x08,0x00,0x00, 0x00,0x06,0x01,0x00,0x09,0x05,0x00,0x02,0x08,0xed,0x04,0x...
TrackerSB/MasterThesis
code/examples/VsevolodTymofyeyev/AIExchangeService.py
<reponame>TrackerSB/MasterThesis from http.client import HTTPResponse from typing import Optional from aiExchangeMessages_pb2 import VehicleID, SimulationID, SimulationIDs, TestResult, MaySimulationIDs # FIXME Missing functions: Check status of simulations class AIExchangeService: from aiExchangeMessages_pb2 i...
jlandess/LandessDevCore
Examples/ReflectionExample.cpp
<filename>Examples/ReflectionExample.cpp // // Created by phoenixflower on 5/13/20. // #include "ReflectionExample.hpp" #include "Primitives/General/Immutable.hpp" #include "IO/Database.hpp" #include "ReflectionDemoTypes.h" #include <iostream> #include "Primitives/General/ContextualVariant.h" #include "IO/DatabaseOpera...
ETroll/TrollOS
kernel/mem/mmap.c
#include <tros/mem/mmap.h> #include <tros/klib/kstring.h> #include <tros/tros.h> static unsigned int* __mmap_memory_map = 0; static unsigned int __mmap_max_blocks = 0; void mmap_initialize(unsigned int phys_loc, unsigned int max_blocks) { __mmap_memory_map = (unsigned int*)phys_loc; __mmap_max_blocks = max_bl...
MihailMiller/OpenAlchemy
tests/open_alchemy/schemas/artifacts/property_/test_relationship.py
<reponame>MihailMiller/OpenAlchemy """Tests for retrieving artifacts for a relationship property.""" import functools import pytest from open_alchemy import types from open_alchemy.schemas import artifacts GET_TESTS = [ pytest.param( True, {"$ref": "#/components/schemas/RefSchema"}, {"Re...
tgame14/AppliedThermodynamics
src/main/java/com/tgame/apptherm/proxies/CommonProxy.java
package com.tgame.apptherm.proxies; import com.tgame.apptherm.libs.multiblocks.multiblock.MultiblockServerTickHandler; import cpw.mods.fml.common.registry.TickRegistry; import cpw.mods.fml.relauncher.Side; public class CommonProxy { public void initSounds() { } public void initRenderers() { ...
ArrogantWombatics/openbsd-src
sys/arch/zaurus/include/_types.h
/* $OpenBSD: _types.h,v 1.7 2012/11/05 19:39:34 miod Exp $ */ #ifndef _MACHINE__TYPES_H_ #define _MACHINE__TYPES_H_ #include <arm/_types.h> #endif
qtoggle/espqtoggle
src/espgoodies/drivers/onewire.h
<reponame>qtoggle/espqtoggle<gh_stars>1-10 /* * Copyright 2019 The qToggle Team * * 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 * ...
waruqi/SakuraEngine
Extern/include/whereami/src/whereami.c
<reponame>waruqi/SakuraEngine // (‑●‑●)> released under the WTFPL v2 license, by <NAME> (@gpakosz) // https://github.com/gpakosz/whereami // in case you want to #include "whereami.c" in a larger compilation unit #if !defined(WHEREAMI_H) #include "whereami.h" #endif #ifdef __cplusplus extern "C" { #endif #if !defined...
zhangkn/iOS14Header
System/Library/Health/Plugins/ActivitySharingPlugin.bundle/ASFriendListManager.h
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 12:33:15 PM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/Health/Plugins/ActivitySharingPlugin.bundle/ActivitySharingPlugin * classdump-dyld is licensed under GPLv3, Copyright ...
mcraken/spring-scaffy
src/main/java/com/scaffy/acquisition/key/RestProjection.java
/** * */ package com.scaffy.acquisition.key; /** * @author Raken * */ public class RestProjection { public String propertyName; public String function; public RestProjection(String projection){ readFunction(projection); readPropertyName(projection); } public String getPropertyName() { return p...
Forcepoint/fp-bd-dim-controller
internal/backup/utils.go
package backup import ( "fmt" "time" ) var daysOfWeek = map[string]time.Weekday{ "sunday": time.Sunday, "monday": time.Monday, "tuesday": time.Tuesday, "wednesday": time.Wednesday, "thursday": time.Thursday, "friday": time.Friday, "saturday": time.Saturday, } func parseWeekday(v string) (time.W...
masonleung2016/crm
src/main/java/com/ufostudio/crm/common/entity/ErrorCodeEnum.java
<reponame>masonleung2016/crm<gh_stars>1-10 package com.ufostudio.crm.common.entity; /** * @Author: LCF * @Date: 2020/7/5 17:38 * @Package: com.ufostudio.crm.common.entity */ @SuppressWarnings ("ALL") public enum ErrorCodeEnum { NO_POWER(1000, "权限不足"), USER_EXIST(1001, "登录名已经存在"), USERNAME_PASSSWO...
adiwg/mdTranslator
lib/adiwg/mdtranslator/writers/html/sections/html_nominalResolution.rb
# HTML writer # nominal resolution # History: # <NAME> 2019-09-24 original script require_relative 'html_measure' module ADIWG module Mdtranslator module Writers module Html class Html_NominalResolution def initialize(html) @html = html ...
KingMikeXS/dl
mechanics/bane+break_p/a.py
<filename>mechanics/bane+break_p/a.py # encoding: utf8 sword = 0.75 blade = 0.97 ; blade2 = 0.97 dagger = 0.75 ; dagger2 = 0.38 axe = 1.14 lance = 0.84 ; lance2 = 0.45 bow = 0.29 ; bow2 = 0.37 wand = 0.98 staff = 0.69 ''' 568攻教官 1.03ex 0.97系数 1.2克制特效 1.2破防特效 break是10/6倍 +x add : 209.7 220.7 231.7 ...
tobiasandersson/othello
src/kth/game/othello/score/ScoreItem.java
package kth.game.othello.score; /** * An instance of this class contains the score of a player. */ public class ScoreItem implements Comparable<ScoreItem>{ private String playerId; private int score; public ScoreItem(String playerId, int score) { this.playerId = playerId; this.score = score; } /** * @r...
rrvt/KeePassLastPass
KeePass.1.39.a/LibraryMB/CSVLexF.cpp
// Csv Lexical Analyzer // rrvt 9/1/94 // Copyright Software Design & Engineering, <NAME>, 2013. All rights reserved. #include "stdafx.h" #include "CSVLexf.h" #include "GetPathDlg.h" typedef enum {other, quote, comma, sChar, bslsh, eol, cr, delch, eofch} Character_Classes; // character class table static Charac...
Alf21/vehicle-system
src/main/java/me/alf21/tacho/BlockBarTacho.java
package me.alf21.tacho; import me.alf21.textdraw.BoxHeight; import me.alf21.vehiclesystem.Calculation; import me.alf21.vehiclesystem.Tacho; import me.alf21.vehiclesystem.VehicleData; import me.alf21.vehiclesystem.VehicleSystem; import net.gtaun.shoebill.constant.TextDrawAlign; import net.gtaun.shoebill.constant.TextDr...
florisa/RequirementsBazaar
src/main/de/rwth/dbis/acis/bazaar/service/dal/jooq/tables/records/RoleRoleMapRecord.java
<filename>src/main/de/rwth/dbis/acis/bazaar/service/dal/jooq/tables/records/RoleRoleMapRecord.java /* * This file is generated by jOOQ. */ package de.rwth.dbis.acis.bazaar.service.dal.jooq.tables.records; import de.rwth.dbis.acis.bazaar.service.dal.jooq.tables.RoleRoleMap; import org.jooq.Field; import org.jooq.Rec...
r1mikey/research-unix-v7
usr/src/libF77/d_sinh.c
double d_sinh(x) double *x; { double sinh(); return( sinh(*x) ); }
sieverssj/rave
rave-providers/rave-opensocial-provider/rave-opensocial-core/src/test/java/org/apache/rave/opensocial/service/FieldRestrictingPersonTest.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 ...
deeuu/supriya
supriya/ugens/HPZ1.py
<reponame>deeuu/supriya import collections from supriya import CalculationRate from supriya.ugens.LPZ1 import LPZ1 class HPZ1(LPZ1): """ A two point difference filter. :: >>> source = supriya.ugens.In.ar(bus=0) >>> hpz_1 = supriya.ugens.HPZ1.ar( ... source=source, .....
xiongraorao/FaceCluster
src/main/java/com/oceanai/util/DistanceUtil.java
package com.oceanai.util; import com.oceanai.cluster.bean.Cluster; import com.oceanai.cluster.bean.DataPoint; import java.util.List; /** * 距离计算方式. * * @author <NAME> * @since 2018-09-30-10:58 */ public class DistanceUtil { /** * 闵可夫斯基距离,Lp范数 * * @param dp1 point 1 * @param dp2 point 2 * @return...
ashfaqnisar/popcorn-native-app
app/modules/PlayerManager/index.js
<filename>app/modules/PlayerManager/index.js export { default } from './PlayerManager'