repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
MaiReo/crass
src/cui/ktg/ktg.cpp
<reponame>MaiReo/crass #include <windows.h> #include <tchar.h> #include <crass_types.h> #include <acui.h> #include <cui.h> #include <resource.h> #include <package.h> #include <cui_error.h> #include <utility.h> #include <stdio.h> struct acui_information ktg_cui_information = { _T("工畫堂スタジオ"), /* copyright */ _T(""), ...
AljazBozic/CommonUtils
tests/unit_tests/timing/TimingTest.cpp
#include "common_utils/timing/Timing.h" #include <gtest/gtest.h> using namespace common_utils; namespace timing_tests { //###################################################################################################### // Timing test. TEST(TimingTest, PrintReport) { timing::start("TimingTest...
porscheinformatik/pnet-data-api
pnet-data-api-java/src/main/java/pnet/data/api/util/RestrictContractType.java
<filename>pnet-data-api-java/src/main/java/pnet/data/api/util/RestrictContractType.java package pnet.data.api.util; import java.util.Collection; /** * Restricts contract types. * * @author ham * @param <SELF> the type of the filter for chaining */ public interface RestrictContractType<SELF extends Restrict<SELF>...
EtherTyper/dummydroid-patched
de/onyxbits/raccoon/standalone/gui/bridge/DirectoryManager.java
package de.onyxbits.raccoon.standalone.gui.bridge; import de.onyxbits.raccoon.platformtools.Binaries; import de.onyxbits.raccoon.platformtools.bridge.BridgeDirectory; import de.onyxbits.raccoon.standalone.SystemProperties; import de.onyxbits.raccoon.standalone.base.AbstractModule; import de.onyxbits.raccoon.standalone...
EricVanEldik/openui5
src/sap.ui.core/test/sap/ui/core/qunit/component/testdata/async/lib2/library-preload.js
sap.ui.predefine("sap/test/lib2/library", ['jquery.sap.global', 'sap/test/lib4/library'], function(jQuery, library1) { "use strict"; sap.ui.getCore().initLibrary({ name:"sap.test.lib2", noLibraryCSS:true }); }); sap.ui.require.preload({ "version":"2.0", "name":"sap.test.lib2", "modules":{ "sap/test/lib2/...
tilnewman/castle-crawl
src/save-game.cpp
<gh_stars>0 // This is an open source non-commercial project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com // // save-game.cpp // #include "save-game.hpp" #include "board.hpp" #include "context.hpp" #include <filesystem> #include <fstream> namespace ca...
black-shadows/LeetCode-Solutions
C++/read-n-characters-given-read4.cpp
<filename>C++/read-n-characters-given-read4.cpp // Time: O(n) // Space: O(1) int read4(char *buf); class Solution { public: /** * @param buf Destination buffer * @param n Maximum number of characters to read * @return The number of characters read */ int read(char *buf, i...
ideacrew/ledger_redux
components/qbo/app/entities/qbo/vendors/vendor.rb
module Qbo::Vendors class Vendor < Dry::Struct attribute :"GivenName", Types::Strict::String.meta(omittable: true) attribute :"DisplayName", Types::Strict::String.meta(omittable: false) attribute :"FamilyName", Types::Strict::String.meta(omittab...
meteoorkip/GROOVE
groove/src/groove/gui/display/StateDisplay.java
<gh_stars>1-10 /* * GROOVE: GRaphs for Object Oriented VErification Copyright 2003--2007 * University of Twente * * 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/lic...
Dabble-of-DevOps-Bio/ella
src/webui/src/js/store/modules/views/workflows/actions/getReferences.js
import processReferences from '../../../../common/helpers/processReferences' import { getReferencesIdsForAllele } from '../../../../common/helpers/reference' function getReferences({ http, path, state }) { let alleles = state.get('views.workflows.interpretation.data.alleles') // Get all reference ids from alle...
UCLA-SEAL/RefFinder
Ref-Finder/code/metapackage/MetaInfo.java
/* * Ref-Finder * Copyright (C) <2015> <PLSE_UCLA> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version....
toywar94/Swime
src/main/java/com/swime/util/NoticeHandler.java
//package com.swime.util; // //import lombok.extern.log4j.Log4j; //import org.springframework.context.annotation.Bean; //import org.springframework.security.core.Authentication; //import org.springframework.security.core.context.SecurityContextHolder; //import org.springframework.web.bind.annotation.RequestMapping; //i...
1162242970/Bill
app/src/main/java/com/felix/simplebook/activity/sign/ISignListener.java
package com.felix.simplebook.activity.sign; /** * Created by android on 18-5-24. */ public interface ISignListener { void onSignInSuccess(); void onSignInFailed(); void onSignUpSuccess(); void onSignUpFailed(); }
markusbuchholz/Cpp-High-Performance-Second-Edition
Chapter08/constexpr_if_mod.cpp
#if _MSC_VER #pragma warning(disable : 4244) #endif #include <gtest/gtest.h> #include <cmath> #include <type_traits> template <typename T> auto generic_mod(const T& v, const T& n) -> T { assert(n != 0); if (std::is_floating_point_v<T>) { return std::fmod(v, n); } else { return v % n; // if T is a float...
comqdhb/JSFML
src/java/org/jsfml/graphics/Glyph.java
package org.jsfml.graphics; /** * Describes a glyph in a {@link Font}. * * @see Font */ public final class Glyph { /** * The offset to move horizontally to the next character. */ public final int advance; /** * The bounding rectangle of the glyph, in coordinates relative to the baseline...
8osm/AtomMC
src/main/java/net/minecraft/client/gui/recipebook/IRecipeShownListener.java
<reponame>8osm/AtomMC<filename>src/main/java/net/minecraft/client/gui/recipebook/IRecipeShownListener.java package net.minecraft.client.gui.recipebook; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; @SideOnly(Side.CLIENT) public interface IRecipeShownListener { v...
backtory/neveshtanak
src/ir/pegahtech/saas/client/shared/enums/UserDirection.java
<reponame>backtory/neveshtanak<filename>src/ir/pegahtech/saas/client/shared/enums/UserDirection.java package ir.pegahtech.saas.client.shared.enums; public enum UserDirection { From(1),To(2),Both(3); private final int val; private UserDirection(int val){ this.val = val; } public int getVal(){ return val; } }
mateusmarinho/python3-cursoemvideo
PythonExercicios/08-listas/ex083.py
'''Crie um programa onde o usuário digite uma expressão qualquer que use parênteses. Seu aplicativo deverá analisar se a expressão passada está com os parênteses abertos e fechados na ordem correta.''' expressao = input('Digite a expressão: ') pilha = [] for simb in expressao: if simb == '(': pilha...
RodSalg/PROJECTS-IN-C--AEDI-AND-AEDII-
aed2 codebench/lista10/questao1.c
<reponame>RodSalg/PROJECTS-IN-C--AEDI-AND-AEDII-<gh_stars>1-10 #include <stdio.h> #include <stdlib.h> // a tabela funciona agora vou aperfeiçoar para utilizar na q1 // // constante que representa o tamanho da tabela //#define M 99 typedef struct { int matricula; } Pessoa; // inicializa a tabela com esse valor ...
jainvikas8/trusted-firmware-m
platform/ext/target/cypress/psoc64/libs/mtb-pdl-cat1/docs/pdl_api_reference_manual/html/group__group__crypto__lld__vu.js
<filename>platform/ext/target/cypress/psoc64/libs/mtb-pdl-cat1/docs/pdl_api_reference_manual/html/group__group__crypto__lld__vu.js<gh_stars>1-10 var group__group__crypto__lld__vu = [ [ "Functions", "group__group__crypto__lld__vu__functions.html", "group__group__crypto__lld__vu__functions" ] ];
vanncho/SurviveSoftUni
src/game/models/DumbZombie.java
<reponame>vanncho/SurviveSoftUni package game.models; import game.staticData.Constants; import game.models.interfaces.RandomDirectionMovable; import game.sprites.ImageLoader; import game.sprites.SpriteAnimation; import javafx.geometry.Rectangle2D; import javafx.scene.image.ImageView; import javafx.util.Duration; publ...
matty-matt/movie-keeper-core
trailer-service/src/main/java/com/kociszewski/moviekeeper/infrastructure/TrailerController.java
package com.kociszewski.moviekeeper.infrastructure; import com.kociszewski.moviekeeper.domain.queries.GetTrailersQuery; import lombok.RequiredArgsConstructor; import org.axonframework.messaging.responsetypes.ResponseTypes; import org.axonframework.queryhandling.QueryGateway; import org.springframework.web.bind.annotat...
wdlkmpx/fsp
bsd_src/function.c
/*- * Copyright (c) 1990 The Regents of the University of California. * All rights reserved. * * This code is derived from software contributed to Berkeley by * <NAME> of the University of California, Berkeley. * * Redistribution and use in source and binary forms, with or without * modification, are permitted ...
kyzyx/scanalyze
ProxyScan.h
// ProxyScan.h placeholder for unloaded scans // created 3/12/99 <NAME> (<EMAIL>) #ifndef _PROXYSCAN_H_ #define _PROXYSCAN_H_ #include "RigidScan.h" class ProxyScan: public RigidScan { public: // ProxyScan manipulation ProxyScan (const crope& proxyForFileName, const Pnt3& mi...
abhay-lal/18CSC207J-APP
Exercise-3/06.py
class Banks_SRMIST: def getBalance(): return 0 class CUB(Banks_SRMIST): def getBalance(balance): return balance class HDFC(Banks_SRMIST): def getBalance(balance): return balance class Indian_Bank(Banks_SRMIST): def getBalance(balance): return balance Banks_SRMI...
msimar/gravity
Core/src/main/java/org/zalando/core/utils/SnackBarBuilder.java
package org.zalando.core.utils; import android.content.Context; import android.content.res.Resources; import android.content.res.TypedArray; import android.graphics.Color; import android.support.annotation.ColorRes; import android.support.annotation.NonNull; import android.support.annotation.StringRes; import android....
Nohysiwe/FastAPIBlogBackend
PythonBlog/databases/relationDatabase/orms/uniqueViewORM.py
from .. import DB_BASE as Base from sqlalchemy.dialects.postgresql import TIMESTAMP from sqlalchemy import Column, Integer, Sequence class UniqueViewORM(Base): __tablename__ = 'tb_unique_view' __table_args__ = {'comment': '访问量表'} id = Column(Integer, Sequence("tb_unique_view_id_seq"), primary_key=True...
unity-idm/furms
furms-rest-api/src/main/java/io/imunity/furms/rest/admin/CommunityRestService.java
/* * Copyright (c) 2021 <NAME>.c. All rights reserved. * See LICENSE file for licensing information. */ package io.imunity.furms.rest.admin; import io.imunity.furms.api.communites.CommunityService; import io.imunity.furms.api.community_allocation.CommunityAllocationService; import io.imunity.furms.api.generic_gro...
kkcookies99/UAST
Dataset/Leetcode/valid/28/130.cpp
class Solution { public: int XXX(string haystack, string needle) { if(needle.size()==0) return 0; if(haystack.size()==0) return -1; int i=0,j=0; while(i<haystack.size()&&j<needle.size()){ if(haystack[i]==needle[j]){ j++; i++; }...
sanaehirotaka/ark-savegame-toolkit
src/main/java/qowyn/ark/properties/PropertyUnknown.java
<filename>src/main/java/qowyn/ark/properties/PropertyUnknown.java package qowyn.ark.properties; import java.io.IOException; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.databind.JsonNode; import qowyn.ark.ArkArchive; import qowyn.ark.NameSizeCalculator; import qowyn.ark.types.ArkName...
sassoftware/conary
conary_test/webfieldstest.py
# # Copyright (c) SAS Institute Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
tapis-project/notifications
api/src/main/java/edu/utexas/tacc/tapis/notifications/api/responses/RespSubscriptions.java
<reponame>tapis-project/notifications<filename>api/src/main/java/edu/utexas/tacc/tapis/notifications/api/responses/RespSubscriptions.java package edu.utexas.tacc.tapis.notifications.api.responses; import com.google.gson.JsonArray; import edu.utexas.tacc.tapis.notifications.api.responses.results.TapisSubscriptionDTO; i...
hao-wang/Montage
js-test-suite/testsuite/77d71a1b426d3d2e825198cbbb11b3e8.js
load("fcfbc86708bc3a4062c2091a062e13b6.js"); load("faa81dc98fc13338aca921d45eebae79.js"); // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * The production IterationStatement: "for (var VariableDeclarationNoIn in Expression) Statem...
duke-libraries/dul-hydra
app/controllers/application_controller.rb
require 'dul_hydra' class ApplicationController < ActionController::Base include Blacklight::Controller include Blacklight::Base include Hydra::Controller::ControllerBehavior include Hydra::AccessControlsEnforcement include Ddr::Auth::RoleBasedAccessControlsEnforcement # This applies appropriate access c...
sho25/activemq
activemq-broker/src/main/java/org/apache/activemq/memory/CacheEntry.java
<gh_stars>0 begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|/** * 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 ...
aiplan4eu/unified-planning
unified_planning/test/test_partial_order_plan.py
# Copyright 2021 AIPlan4EU 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 applicable law or agreed to in wri...
navikt/fpinfo-historikk
src/main/java/no/nav/foreldrepenger/historikk/tjenester/tilbakekreving/TilbakekrevingMapper.java
<filename>src/main/java/no/nav/foreldrepenger/historikk/tjenester/tilbakekreving/TilbakekrevingMapper.java package no.nav.foreldrepenger.historikk.tjenester.tilbakekreving; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public final class TilbakekrevingMapper { private static final Logger LOG = LoggerF...
TharakaCz/ains-food-order-and-tranceport-system
food-order-system/src/main/java/com/foodordersystem/controller/TranceportController.java
/** * Jun 6, 2019 * food-order-system * com.foodordersystem.controller */ package com.foodordersystem.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotatio...
liuxingA/LearnReactNative
5678/HelloWorld/index.ios.js
<filename>5678/HelloWorld/index.ios.js /** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import KeyboardDemo from './Demo/KeyboardDemo'; import NetDemo from './Dem...
hjc851/Dataset2-HowToDetectAdvancedSourceCodePlagiarism
Variant Programs/4-3/12/EtdDeveloper.java
import java.util.ArrayDeque; import java.util.LinkedList; import java.util.List; import java.util.stream.Collectors; public class EtdDeveloper extends Compiler { private ArrayDeque<Sue> fitBacklog = null; private ArrayDeque<Malfunction> anomalyCue = null; private int clipOther = 0; public EtdDeveloper() { ...
noelevans/playground
rpi/reset_piglow.py
from piglow import PiGlow def main(): piglow = PiGlow() piglow.all(0) if __name__ == '__main__': main()
udongo/udongo
spec/factories/redirects.rb
<filename>spec/factories/redirects.rb FactoryGirl.define do factory :redirect do source_uri '/nl/foo' destination_uri '/nl/bar' status_code 303 end end
mhnvelu/DataStructures-And-Algorithms
src/main/java/com/dsa/tree/ListOfDepthsSolution1.java
<filename>src/main/java/com/dsa/tree/ListOfDepthsSolution1.java package com.dsa.tree; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; /* Problem: Given a binary tree, design an algorithm which creates a linked list of all the nodes at each depth If the tree has depth D, then the algor...
deepcloudlabs/dcl202-2021-mar-01
study-arrays/src/com/example/StudyArrays.java
<reponame>deepcloudlabs/dcl202-2021-mar-01<filename>study-arrays/src/com/example/StudyArrays.java<gh_stars>0 package com.example; import java.util.Arrays; import java.util.Comparator; @SuppressWarnings("unused") public class StudyArrays { public static void main(String[] args) { int number = 42; // scalar variabl...
TCKACHIKSIS/lms
problem/migrations/0007_problemstats.py
# Generated by Django 3.1.8 on 2021-05-24 12:00 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('problem', '0006_merge_20210517_1923'), ] operations = [ migrations.CreateModel( name='ProblemSt...
guxuede/gm
src/main/java/com/guxuede/ShaderLesson2.java
package com.guxuede; import com.badlogic.gdx.ApplicationListener; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.backends.lwjgl.LwjglApplication; import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.GL30; import com.badlogi...
itspriyansh/filemanager-packages
packages/server-nodejs/node_modules/ignore-styles/ignore-styles.js
<reponame>itspriyansh/filemanager-packages<gh_stars>1-10 export const DEFAULT_EXTENSIONS = [ '.css', '.scss', '.sass', '.pcss', '.stylus', '.styl', '.less', '.sss', '.gif', '.jpeg', '.jpg', '.png', '.svg', '.mp4', '.webm', '.ogv' ] export let oldHandlers = {} export function noOp () {}...
yaowng/searchuser_app
app/components/UserItemCounter/index.js
import React from 'react'; import Wrapper from './Wrapper'; function UserItemCounter({ profile }) { return ( <Wrapper> <p> <strong>Repositories:</strong> {profile.public_repos} || <strong>Followers:</strong> {profile.followers} || <strong>Following:</strong> {profile.following} ...
slaby93/bidwrangler_demo
src/routes/Auction/routes/View/View.js
<filename>src/routes/Auction/routes/View/View.js import React from 'react'; import styled from 'styled-components'; import Button, { LinkButton, ButtonsWrapper } from 'components/elements/Button'; export const View = ({ className, currentPrice, name, authorId, userUid, onBid, auctionId, isOwner, isMyBidWinning, ...
johnaparker/MiePy
examples/tests/incident_expansion.py
"""Decompose an x-polarized plane wave into the VSHs""" import numpy as np import matplotlib.pyplot as plt import miepy ### source definition source = miepy.sources.plane_wave.from_string(polarization='x') k = 2*np.pi/1 Nmax = 5 ### grid plane x = np.linspace(-.3,.3,30) y = np.linspace(-.3,.3,30) z = 0 X,Y,Z = np.me...
uk-gov-mirror/DFE-Digital.get-help-with-tech
db/migrate/20200907114036_create_computacenter_user_changes.rb
class CreateComputacenterUserChanges < ActiveRecord::Migration[6.0] def change create_table :computacenter_user_changes do |t| t.integer :user_id t.text :first_name t.text :last_name t.text :email_address t.text :telephone t.text :responsible_body t.text :responsible_body...
Diffblue-benchmarks/heroic
heroic-dist/src/test/java/com/spotify/heroic/AbstractLocalClusterIT.java
<filename>heroic-dist/src/test/java/com/spotify/heroic/AbstractLocalClusterIT.java<gh_stars>100-1000 package com.spotify.heroic; import static org.junit.Assert.assertEquals; import com.google.common.base.Throwables; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import ...
drganam/stainless
core/src/main/scala/stainless/extraction/imperative/AntiAliasing.scala
/* Copyright 2009-2021 EPFL, Lausanne */ package stainless package extraction package imperative import inox.FatalError import scala.util.Try trait AntiAliasing extends oo.CachingPhase with SimpleSorts with oo.IdentityTypeDefs with oo.SimpleClasses with EffectsAnalyzer with EffectsChecker...
RuralDeer/RrokDemo
rrokclient/src/main/java/com/cn/request/enums/DataSource.java
package com.cn.request.enums; /** * Date: 2019/7/22 * <p> * Time: 2:02 PM * <p> * author: 鹿文龙 */ public enum DataSource { /** * 网络 */ NET, /** * 缓存 */ CACHE }
terifan/HuffmanCodec
src/org/terifan/compression/util/Log.java
package org.terifan.compression.util; import java.io.PrintStream; public class Log { public final static PrintStream out = System.out; public static int LEVEL = 0; private final static String INDENT = "... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... "; private s...
best08618/asylo
gcc-gcc-7_3_0-release/libgomp/testsuite/libgomp.c/pr45784.c
/* PR c/45784 */ /* { dg-do run } */ void foo (int n) { char *p, vla[2 * n]; int i; #pragma omp parallel for for (p = vla; p < vla + (sizeof (vla) / sizeof (vla[0])); p++) *p = ' '; #pragma omp parallel for for (i = 0; i < 2 * n; i++) if (vla[i] != ' ') __builtin_abort (); } void bar (int n)...
fnando/signal
test/test_helper.rb
# frozen_string_literal: true require "simplecov" SimpleCov.start require "bundler/setup" require "active_record" I18n.enforce_available_locales = false require "minitest/utils" require "minitest/autorun" require "voltage" require "voltage/mock" require "support/observable" require "support/observable_with_call" r...
Salman-Shaik/truth-or-dare
src/webapp/public/js/common/networkCalls.js
<filename>src/webapp/public/js/common/networkCalls.js import { showErrorAlert } from "./methods"; export const fetchGames = async () => await fetch("/games") .then((r) => r.text()) .then((data) => JSON.parse(data)) .catch((e) => showErrorAlert("Didn't Fetch, Please Try Again!")); export const fetchParti...
zayyaroo06/connect-java-sdk
src/main/java/com/squareup/connect/models/V1VariationInventoryAlertType.java
<gh_stars>0 /* * Square Connect API * Client library for accessing the Square Connect APIs * * OpenAPI spec version: 2.0 * Contact: <EMAIL> * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ ...
dosier/G-Earth
G-Earth/src/main/java/wasm/disassembly/values/WFloat.java
package wasm.disassembly.values; import java.io.BufferedInputStream; import java.io.IOException; import java.io.OutputStream; import java.nio.ByteBuffer; public class WFloat { public static float read(BufferedInputStream in) throws IOException { byte[] bytes = new byte[4]; in.read(bytes); ...
kierangillen/force
src/desktop/components/fair_week_marketing/Meta.js
import PropTypes from "prop-types" import React from "react" export const FairWeekMeta = props => { const { meta: { description, title } } = props return ( <div> <title>{title}</title> <meta property="og:title" content={title} /> <meta property="description" content={description} /> <m...
HJBDev/vue-atlas
src/Loading/index.js
export { default as VaLoading } from './install'
sarang-apps/darshan_browser
ios/chrome/browser/autofill/form_input_suggestions_provider.h
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef IOS_CHROME_BROWSER_AUTOFILL_FORM_INPUT_SUGGESTIONS_PROVIDER_H_ #define IOS_CHROME_BROWSER_AUTOFILL_FORM_INPUT_SUGGESTIONS_PROVIDER_H_ #import <Fo...
go-tk/jroh
go/apicommon/incomingrpc.go
package apicommon import ( "bytes" "context" "encoding/json" "fmt" "io" "net/http" ) type IncomingRPC struct { Namespace string ServiceName string MethodName string FullMethodName string MethodIndex int Params Model Results Model RemoteIP string InboundHeader http....
pago/AufgabenViewer
src/com/pagosoft/myview/view/PDFViewerPanel.java
/* * Copyright (c) 2010 <NAME>. All rights reserved. */ package com.pagosoft.myview.view; import com.google.inject.Inject; import com.pagosoft.eventbus.ApplicationListener; import com.pagosoft.eventbus.EventBus; import com.pagosoft.myview.domain.Document; import com.pagosoft.myview.events.DocumentChangedE...
giubueno/services-core
services/catarse/db/migrate/20200715210652_creation_and_push_to_online_rdevents_on_solidarity_projects.rb
<reponame>giubueno/services-core class CreationAndPushToOnlineRdeventsOnSolidarityProjects < ActiveRecord::Migration[4.2] def up execute <<-SQL CREATE OR REPLACE FUNCTION public.is_solidarity_project(project_id integer) RETURNS boolean LANGUAGE sql AS $$ select exists( ...
longtuge/app
src/main/java/app/coolweather/com/myapplication/model/shopping/common/util/TokenUtils.java
<reponame>longtuge/app<filename>src/main/java/app/coolweather/com/myapplication/model/shopping/common/util/TokenUtils.java package app.coolweather.com.myapplication.model.shopping.common.util; import android.content.Context; import java.util.HashMap; import java.util.Map; public class TokenUtils { // Volley请求类提供了一...
jperedadnr/FXGL
fxgl-base/src/main/java/com/almasb/fxgl/physics/box2d/collision/WorldManifold.java
<reponame>jperedadnr/FXGL<gh_stars>1-10 /* * FXGL - JavaFX Game Library. The MIT License (MIT). * Copyright (c) AlmasB (<EMAIL>). * See LICENSE for details. */ package com.almasb.fxgl.physics.box2d.collision; import com.almasb.fxgl.core.math.Vec2; import com.almasb.fxgl.physics.box2d.common.JBoxSettings; import co...
puyanLiu/LPYFramework
node-demo/lesson1/app6.js
/** * async(https://github.com/caolan/async ) * demo https://github.com/alsotang/async_demo */ var async = require('async'); // 并发连接数的计数器 var concurrencyCount = 0; var fetchUrl = function (url, callback) { // delay 的值在 2000 以内,是个随机的整数 var delay = parseInt((Math.random() * 10000000) % 2000, 10); concurrencyCo...
PesiTheWizard/townsquare
server/game/cards/01-DTR/Ambush.js
<reponame>PesiTheWizard/townsquare const ActionCard = require('../../actioncard.js'); const GameActions = require('../../GameActions/index.js'); class Ambush extends ActionCard { setupCardAbilities(ability) { this.job({ title: 'Ambush', playType: 'noon', cost: ability.co...
jasonnam/buck
src/com/facebook/buck/util/ContextualProcessExecutor.java
<reponame>jasonnam/buck<filename>src/com/facebook/buck/util/ContextualProcessExecutor.java /* * Copyright (c) Facebook, Inc. and its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Lice...
falost/avatar-box
uni_modules/uni-sec-check/uniCloud/cloudfunctions/common/uni-sec-check/utils/type.js
const _toString = Object.prototype.toString function isPlainObject(obj) { return _toString.call(obj) === '[object Object]' } function isFn(fn) { return typeof fn === 'function' } module.exports = { isPlainObject, isFn }
teambition/urbs-console
src/bll/user_test.go
<gh_stars>1-10 package bll import ( "context" "testing" "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "github.com/teambition/urbs-console/src/service" "github.com/teambition/urbs-console/src/service/mock_service" "github.com/teambition/urbs-console/...
spynad/ITMO_Study
Programming/Lab7/server/src/main/java/connection/ConnectionListenerImpl2.java
package connection; import java.io.IOException; import java.net.InetSocketAddress; import java.nio.channels.SelectionKey; import java.nio.channels.Selector; import java.nio.channels.ServerSocketChannel; import java.nio.channels.SocketChannel; import java.nio.channels.spi.SelectorProvider; public class ConnectionListe...
b2wdigital/asgard-events-indexer
indexer/__main__.py
import asyncio from indexer.app import main asyncio.get_event_loop().run_until_complete(main())
DurasExperience/proto
client/app/desktop/components/WebGLExperiment/chapters/Indochine/02/index.js
<reponame>DurasExperience/proto<filename>client/app/desktop/components/WebGLExperiment/chapters/Indochine/02/index.js<gh_stars>0 import { Group, Mesh, SphereBufferGeometry, MeshBasicMaterial } from 'three' import HandWoman from './HandWoman' import HandMan from './HandMan' // import HandSplines from './HandSplines' imp...
AlexRogalskiy/DevArtifacts
master/autotools-book-files/autotools/book/flaim-ch8-10/sql/src/sqlstatement.h
//------------------------------------------------------------------------------ // Desc: This file contains SQL statement class. // Tabs: 3 // // Copyright (c) 2006-2007 Novell, Inc. All Rights Reserved. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser ...
bjornreppen/natur-kart
src/Kodetre/Kodeliste/KodeVindu.js
<gh_stars>0 import Detaljeringsgrad from "./Detaljeringsgrad"; import Overordnet from "./Overordnet"; import React, { useState, useEffect } from "react"; import språk from "../../språk"; import Graf from "./Graf"; import Flagg from "./Flagg"; import Kodekort from "./Kodekort"; import Kodeliste from "./Kodeliste"; impor...
ivomarvan/quick_faces
src/img/processor/faces/marker/marker.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "<NAME>" __email__ = "<EMAIL>" __description__ = ''' Img processor for writing tags to image. ''' import sys import os import cv2 # root of project repository THE_FILE_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__))) PROJECT_ROOT = os.path.a...
MarginC/kame
netbsd/sys/arch/arc/jazz/asc.c
<filename>netbsd/sys/arch/arc/jazz/asc.c /* $NetBSD: asc.c,v 1.6 2001/11/14 18:15:15 thorpej Exp $ */ /* $OpenBSD: asc.c,v 1.9 1998/03/16 09:38:39 pefo Exp $ */ /* NetBSD: asc.c,v 1.10 1994/12/05 19:11:12 dean Exp */ /*- * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved....
XWJACK/WeChatPlugin-MacOS
Other/Headers/EmoticonMsgInfo.h
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import <objc/NSObject.h> #import "PBCoding-Protocol.h" @class NSString; @interface EmoticonMsgInfo : NSObject <PBCoding> { BOOL _disa...
karpovichDima/JDBC_oAuth2
src/main/java/com/dazito/oauthexample/model/FileEntity.java
<reponame>karpovichDima/JDBC_oAuth2 package com.dazito.oauthexample.model; import lombok.Getter; import lombok.Setter; import javax.persistence.*; import java.util.UUID; @Entity @Getter @Setter @DiscriminatorValue("FILE") public class FileEntity extends FileElement { }
Samdooo/Peio
src/Peio/GUI/Animation.h
<filename>src/Peio/GUI/Animation.h #pragma once #include "GUIHeader.h" #include "..\Array.h" #include "..\Clock.h" #include <functional> namespace Peio::GUI { struct PEIO_GUI_EXPORT Animation { virtual void Reset(double offset = 0.0); virtual double Update(); virtual void Cancel(); virtual void End(); v...
jerebenitez/IFE-simpact-openfoam
src/mainp/fixval.h
<filename>src/mainp/fixval.h SUBROUTINE fixval(iwrit,ndime,ndofn,ifpre,nvfix,rot_free,iffix,label) !*** APPLY fixities IMPLICIT NONE LOGICAL, INTENT(IN) :: rot_free INTEGER (kind=4), INTENT(IN) :: iwrit,ndime,ndofn,label(:) INTEGER (kind=4), INTENT(IN OUT) :: ifpre(:,:),iffix(:...
OmarElsahragty/portfolio
src/http/errors/Boom.Errors.js
import boom from "boom"; import { SERVER_ERROR } from "./constants"; class BoomHttpErrors { notFound(message) { return boom.notFound(message); } unauthorized(message) { return boom.unauthorized(message); } badData(message) { return boom.badData(message); } badRequest(message) { return ...
UKGovernmentBEIS/PRS-Exemptions-Register
NdsBeisSharedModel/src/main/java/com/northgateps/nds/beis/api/metadata/GdipGdarFieldMetadataTagApplicator.java
package com.northgateps.nds.beis.api.metadata; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import com.northgateps.nds.platform.application.api.metadata.AbstractFieldMetadataTagApplicator; import com.northgateps.nds.platform.application.api.validation.ValidationContext; import ...
davewhiiite/uvc
firmware/uvc_controller/mbed-os/features/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_MBED_PSA_SRV/services/attestation/psa_inject_attestation_key_impl.c
/* * Copyright (c) 2018-2019 ARM Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.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/license...
fasten-project/core
analyzer/restapi-plugin/src/main/java/eu/fasten/analyzer/restapiplugin/GraphResolverInitializer.java
package eu.fasten.analyzer.restapiplugin; import org.springframework.web.client.RestClientException; import org.springframework.web.client.RestTemplate; public class GraphResolverInitializer { public static void sendRequestToInitGraphResolver() { RestTemplate restTemplate = new RestTemplate(); tr...
Dielam/MMIT
MMIT/src/test/java/com/mmit/negocio/jugadores/TOAJugadorEquipoTestNG.java
/* * Copyright (C) 2018 Your Organisation * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is ...
ZintrulCre/LeetCode_Archiver
LeetCode/python3/1022.py
<filename>LeetCode/python3/1022.py class Solution: def sumRootToLeaf(self, root: TreeNode) -> int: mod = 10 ** 9 + 7 def Sum(node: TreeNode, curr: int) -> int: if not node.left and not node.right: return curr * 2 + node.val % mod sum = 0 sum += Su...
jsuo/XVim2
XVim2/XcodeHeader/IDESourceEditor/DVTTextReplacable-Protocol.h
<reponame>jsuo/XVim2 // // Generated by class-dump 3.5 (64 bit) (Debug version compiled Mar 30 2018 09:30:25). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import <IDESourceEditor/NSObject-Protocol.h> @class NSArray, NSString, NSURL; @protocol DVTTextReplacable <NSObject> ...
SINTEF/simapy
src/sima/simo/thrustloss.py
<filename>src/sima/simo/thrustloss.py # Generated with ThrustLoss # from enum import Enum from enum import auto class ThrustLoss(Enum): """""" NONE = auto() SURFACE = auto() def label(self): if self == ThrustLoss.NONE: return "None" if self == ThrustLoss.SURFACE: ...
alexman111/Containers
java7/src/main/java/deltix/containers/interfaces/BinaryArrayReadWrite.java
<filename>java7/src/main/java/deltix/containers/interfaces/BinaryArrayReadWrite.java package deltix.containers.interfaces; public interface BinaryArrayReadWrite extends BinaryArrayReadOnly { BinaryArrayReadWrite assign(byte[] bytes); BinaryArrayReadWrite append(byte[] bytes); BinaryArrayReadWrite assign(...
endowp/Python101
08/08_P14.py
<reponame>endowp/Python101 n=int(input()) dg={} #group di={} #รุ่น dd={} #ภาค t=() namet=() for i in range(n): info = input() t+=(info,) name, g, i, d = info.strip().split() namet+=(name, ) if g not in dg: dg[g] = {name} else: ...
blackmiaool/kexie_game
old/js/scenes/save.js
var backto; var scene = new sys.Scene({ id: "save", dom_id: "scene_save", init: function () { angular.module('home_app') .controller("save_controller", ["$rootScope", "$scope", function ($rootScope, $scope) { $scope.buttons = []; $rootScope.$on("save_pre_...
ktotheoz/pixellight
Base/PLMath/src/Graph/GraphPath.cpp
/*********************************************************\ * File: GraphPath.cpp * * * Copyright (C) 2002-2013 The PixelLight Team (http://www.pixellight.org/) * * This file is part of PixelLight. * * Permission is hereby granted, free of charge, to any person obtaining a co...
user3301/TrialOfTheGrasses
Go/ValidPalindromeII.go
package gosoln func ValidPalindromeII(s string) bool { re := []rune(s) l, r := 0, len(s)-1 for l < r { if re[l] == re[r] { l++ r-- } else { return isPalindrome(re[l+1:r+1]) || isPalindrome(re[l:r]) } } return true } func isPalindrome(re []rune) bool { l, r := 0, len(re)-1 for l < r { if re[l...
hxlzp/Travel
app/src/main/java/com/example/hxl/travel/presenter/contract/AddressLinkerContract.java
package com.example.hxl.travel.presenter.contract; import android.content.Context; import com.example.hxl.travel.base.BasePresenter; import com.example.hxl.travel.base.BaseView; import com.example.hxl.travel.model.bean.User; import java.util.List; /** * Created by hxl on 2017/8/23 0023 at haichou. */ public inte...
CuteShaun/frontend-2019-homeworks
submissions/Roman-Halenko/js-oop-frogger/js/app.js
// Enemies our player must avoid const Enemy = function(x, y) { // Variables applied to each of our instances go here, // we've provided one for you to get started // The image/sprite for our enemies, this uses // a helper we've provided to easily load images this.x = x; this.y = y; this.wi...
jiripetrlik/droolsjbpm-integration
kie-remote/kie-remote-client/src/main/java/org/kie/remote/client/api/RemoteRuntimeEngineFactory.java
/* * Copyright 2015 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, soft...