repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
PlatONnetwork/client-sdk-java
core/src/main/java/com/platon/contracts/ppos/StakingContract.java
package com.platon.contracts.ppos; import com.platon.abi.solidity.datatypes.BytesType; import com.platon.abi.solidity.datatypes.generated.Uint16; import com.platon.abi.solidity.datatypes.generated.Uint256; import com.platon.contracts.ppos.abi.Function; import com.platon.contracts.ppos.dto.CallResponse; import com.plat...
vlasy/dx-scanner
lib/services/git/__MOCKS__/gitLabServiceMockFolder/listIssuesResponse.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.mockListIssuesResponseForUser = exports.listIssuesResponse = void 0; exports.listIssuesResponse = (items, pagination) => { const defaultItems = [ { user: { id: '9970', login: 'git...
Hamed-kshiem/CE-IoT
src/main/java/iotpanel/CE/Security/APISecurityConfig.java
/* * Copyright (c) 2020. Hamed CE * */ package iotpanel.CE.Security; import net.minidev.json.JSONUtil; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Configuration; import org.springframework.core.annotation.Order; import org.springframework.security.authe...
pettyferlove/rich
rich-common/rich-common-message/src/main/java/com/github/rich/message/domain/dto/message/EmailMessage.java
package com.github.rich.message.domain.dto.message; import com.github.rich.message.domain.dto.Message; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.ToString; /** * @author Petty */ @Data @EqualsAndHashCode(callSuper = true) @ToString(callSuper = true) public class EmailMessage extends Message ...
hleclerc/Evel
src/Evel/TlsConnection_WF.cpp
#include "TlsConnection_WF.h" namespace Evel { TlsConnection_WF::~TlsConnection_WF() { if ( f_close ) f_close( this ); } void TlsConnection_WF::on_rdy() { if ( f_rdy ) f_rdy( this ); } void TlsConnection_WF::parse( char **data, size_t size, size_t rese ) { if ( f_parse ) f_parse( this, data, size, rese ...
triceo/kogito-apps
jitexecutor/jitexecutor-dmn/src/main/java/org/kie/kogito/jitexecutor/dmn/responses/JITDMNResult.java
<filename>jitexecutor/jitexecutor-dmn/src/main/java/org/kie/kogito/jitexecutor/dmn/responses/JITDMNResult.java /* * Copyright 2022 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. * You may ob...
wsw2008new/iBase4J
iBase4J-SYS-Service/src/main/java/org/ibase4j/provider/sys/SysMenuProviderImpl.java
package org.ibase4j.provider.sys; import java.util.Map; import org.ibase4j.core.base.BaseProviderImpl; import org.ibase4j.core.support.dubbo.spring.annotation.DubboService; import org.ibase4j.dao.sys.SysMenuExpandMapper; import org.ibase4j.model.generator.SysMenu; import org.springframework.beans.factory.anno...
scala-steward/reactive-aws-clients
reactive-aws-kms/core/src/main/scala/com/github/j5ik2o/reactive/aws/kms/model/ops/CreateKeyRequestOps.scala
<gh_stars>10-100 // Auto-Generated package com.github.j5ik2o.reactive.aws.kms.model.ops import software.amazon.awssdk.services.kms.model._ final class CreateKeyRequestBuilderOps(val self: CreateKeyRequest.Builder) extends AnyVal { @SuppressWarnings(Array("org.wartremover.warts.AsInstanceOf")) final def policyAsS...
lycantropos/voronoi
tests/integration_tests/utils_tests/test_compare_floats.py
<gh_stars>0 from _voronoi import compare_floats as bound from hypothesis import given from voronoi.utils import compare_floats as ported from . import strategies @given(strategies.floats, strategies.floats, strategies.sizes) def test_basic(left: float, right: float, max_ulps: int) -> None: assert bound(left, rig...
gadge/spare
packages/padder/matrix-padder/src/matrixPadder.js
<filename>packages/padder/matrix-padder/src/matrixPadder.js import { Pad } from '@texting/padder' import { mapper } from '@vect/matrix-mapper' import { matrixPadderFull } from './matrixPadderFull' import { columnWidth } from './columnWidth' /** * * @param {string[][]} mx * @param {object...
joelpinheiro/craft-store
sd_second_project/src/communication/package-info.java
<reponame>joelpinheiro/craft-store<gh_stars>1-10 /** * Infraestruturas comuns. * Solução do Problema dos Barbeiros Sonolentos que implementa o modelo cliente-servidor * de tipo 2 (replicação do servidor) com lançamento estático dos threads barbeiro. * A comunicação baseia-se em passagem de mensagens sobre socke...
tobyapi/online-judge-solutions
poj/3254.cpp
<filename>poj/3254.cpp #include<iostream> #include<algorithm> #define mod 100000000 using namespace std; int dp[145][1<<12]; int main(void){ int n,m,g[12][12],in; cin >> n >> m; for(int i=0;i<n;i++) for(int j=0;j<m;j++)cin >> g[i][j]; dp[0][0]=1; for(int i=0;i<n*m;i++){ int x=i%m,y=i/m; f...
certcomm/CertProof
app/js/components/Thread/js/stores/ThreadStore.js
import { observable } from "mobx" export class ThreadStore { @observable thread = {}; setData(data) { this.thread = data; } setError(err) { this.error = err; } getError() { return this.error; } getData() { return this.thread; } } export default new ThreadStore
zagura/aoc-2017
2019/14day/task2.cpp
<filename>2019/14day/task2.cpp /* * ===================================================================================== * * Filename: task1.cpp * * Description: Day 14 - Space Stoichometry * * Version: 1.0 * Created: 17.12.2019 * * Author: <NAME> (zagura), <<EMAIL>> * ...
CresTechGlobalPractice/DBS_Automation
src/main/java/com/crestech/common/utilities/CommonAlertElements.java
package com.crestech.common.utilities; import java.time.Duration; import java.util.List; import org.openqa.selenium.remote.RemoteWebElement; import org.openqa.selenium.support.PageFactory; import com.crestech.annotation.values.ElementDescription; import io.appium.java_client.AppiumDriver; import io.appium.java_clie...
creepyCaller/minecraft-analysis
src/net/minecraft/network/play/client/CPacketRecipePlacement.java
<filename>src/net/minecraft/network/play/client/CPacketRecipePlacement.java package net.minecraft.network.play.client; import com.google.common.collect.Lists; import java.io.IOException; import java.util.List; import net.minecraft.item.ItemStack; import net.minecraft.network.Packet; import net.minecraft.network.Packet...
daddykotex/smithy4s
modules/aws-kernel/src/smithy4s/aws/AwsCredentials.scala
/* * Copyright 2021 <NAME> * * Licensed under the Tomorrow Open Source Technology License, Version 1.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://disneystreaming.github.io/TOST-1.0.txt * * Unless required by...
v-2vikc/weblogic-kubernetes-operator
operator/src/main/java/oracle/kubernetes/operator/Main.java
// Copyright 2017, 2019, Oracle Corporation and/or its affiliates. All rights reserved. // Licensed under the Universal Permissive License v 1.0 as shown at // http://oss.oracle.com/licenses/upl. package oracle.kubernetes.operator; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStre...
smgdream/Odyink
install.c
#include <stdio.h> #include <stdlib.h> #include "include/def.h" #include "include/format.h" #define SIZE_MED 256 void install(void) { char index[INDEX_LEN]; char logs[SIZE_MED]; // Install Odyink Server printf("Enter to start installation\n"); getchr(); clear(); printf("Instailling Odyink Server...\n"); // M...
LucidSigma/stardust
Stardust/src/system/gpu/GPU.cpp
<reponame>LucidSigma/stardust #include "stardust/system/gpu/GPU.h" #include <glad/glad.h> namespace stardust { namespace system { namespace { GPUInfo gpuInfo{ }; bool hasGPUInfoBeenQueried = false; } [[nodiscard]] const GPUInfo& GetGPUInfo() { ...
fugue/fugue-client
cmd/listEvents.go
<reponame>fugue/fugue-client package cmd import ( "fmt" "github.com/fugue/fugue-client/client/events" "github.com/fugue/fugue-client/format" "github.com/spf13/cobra" ) type listEventsOptions struct { Offset int64 MaxItems int64 RangeFrom int64 RangeTo int64 EventType []string Change ...
muthukumaravel7/armnn
Documentation/navtreeindex29.js
var NAVTREEINDEX29 = { "_types_8hpp.xhtml#a1cfaa710db2a54673b21d2ea2da757c8afb278fa5defd7e699fcbc930c3e76ccd":[8,0,0,0,28,26,4], "_types_8hpp.xhtml#a2d299363c9fc33334c571fa29ca4f58c":[8,0,0,0,28,16], "_types_8hpp.xhtml#a2d299363c9fc33334c571fa29ca4f58ca19bb0af2c3c530538cb41aff7f235b96":[8,0,0,0,28,16,5], "_types_8hpp.x...
sintefneodroid/droid
docs/cvs/structdroid_1_1_runtime_1_1_messaging_1_1_f_b_s_1_1_f_vector3s.js
<filename>docs/cvs/structdroid_1_1_runtime_1_1_messaging_1_1_f_b_s_1_1_f_vector3s.js var structdroid_1_1_runtime_1_1_messaging_1_1_f_b_s_1_1_f_vector3s = [ [ "__assign", "structdroid_1_1_runtime_1_1_messaging_1_1_f_b_s_1_1_f_vector3s.html#af6af8965cf357ba6797f25981e9ff509", null ], [ "__init", "structdroid_1_1_...
ValentinKalinin1989/job4j
middle_threads/src/main/java/RectangleMove.java
<filename>middle_threads/src/main/java/RectangleMove.java import javafx.scene.shape.Rectangle; public class RectangleMove implements Runnable { private final Rectangle rect; private int x; private int y; public RectangleMove(Rectangle rect, int x, int y) { this.rect = rect; this.x = x;...
hifive/hifive-pitalium
pitalium/src/test/java/com/htmlhifive/pitalium/it/exec/frame/FrameScreenshotTest.java
package com.htmlhifive.pitalium.it.exec.frame; import static org.hamcrest.CoreMatchers.*; import static org.junit.Assert.*; import com.htmlhifive.pitalium.image.util.ImageUtils; import org.junit.Before; import org.junit.Test; import com.htmlhifive.pitalium.core.PtlTestBase; import com.htmlhifive.pitalium.core.io.Per...
Tattus/Space-Invadus
Space-Invadus/resourcesManagerus.cpp
/* resourcesManagerus.cpp ---------------------- Créé par : Tattus le : 03/05/2015 Modifié le : 15/05/2015 */ #include "resourcesManagerus.hpp" static C_ResourcesManager *myInstanceRM = NULL; C_ResourcesManager::C_ResourcesManager() { myErrorCode = NO_ERROR; myFileName = ""; ...
batchblue/chiketto
lib/chiketto/ticket_class.rb
<reponame>batchblue/chiketto module Chiketto class TicketClass < Resource attr_accessor :name, :cost, :fee, :currency, :free, :minimum_quantity, :maximum_quantity, :quantity_total, ...
rayoack/yeep-mobile
App/Services/api.js
import axios from 'axios' import BaseURL from '../Config/BaseURL' // import { store } from '../redux/store' export const API = { getUriForProvider(provider) { switch (provider) { case 'facebook': return `${BaseURL.api}/auth/facebook` case 'google': return `${BaseURL.api}/auth/...
clairempr/bureau
bureau/personnel/apps.py
from django.apps import AppConfig class PersonnelConfig(AppConfig): name = 'bureau.personnel'
TristenSeth/campy
campy/graphics/gbufferedimage.py
<filename>campy/graphics/gbufferedimage.py """ """ import campy.datastructures.grid as _grid import campy.gui.ginteractors as _ginteractors import campy.graphics.gcolor as _gcolor import campy.graphics.gtypes as _gtypes import campy.private.platform as _platform import campy.io.base64helper as _base64helper GBUFFERED...
ChromaPIE/Never-Enough-Currency
src/main/java/com/zundrel/currency/common/inventory/SlotSameItem.java
<reponame>ChromaPIE/Never-Enough-Currency<gh_stars>1-10 package com.zundrel.currency.common.inventory; import net.minecraft.inventory.IInventory; import net.minecraft.inventory.Slot; import net.minecraft.item.ItemStack; public class SlotSameItem extends Slot { public SlotSameItem(IInventory inv, int index, int xPos,...
abrams27/mimuw
sem4/so/zadania/zad4/minix_source/usr/src/minix/lib/libsys/sys_schedule.c
#include "syslib.h" int sys_schedule(endpoint_t proc_ep, int priority, int quantum, int cpu) { message m; m.m_lsys_krn_schedule.endpoint = proc_ep; m.m_lsys_krn_schedule.priority = priority; m.m_lsys_krn_schedule.quantum = quantum; m.m_lsys_krn_schedule.cpu = cpu; return(_kernel_call(SYS_SCHEDULE, &m)...
tony2u/Medusa
Example/Client/HelloWorld/Game/HelloWorldLayer.cpp
<reponame>tony2u/Medusa // Copyright (c) 2015 fjz13. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. #include "HelloWorldLayer.h" #include "Core/Chrono/ProfileSample.h" #include "Node/Panel/PanelFactory.h" HelloWorldLayer::HelloWorld...
tilm4nn/ebc4j
ebc4j/src/main/java/net/objectzoo/ebc/executor/FlowExecutor.java
<reponame>tilm4nn/ebc4j /* * The MIT License * * Copyright (C) 2011 <NAME> * * http://www.object-zoo.net * * mailto:<EMAIL> * * 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 witho...
EnderNightLord-ChromeBook/zircon-rpi
src/sys/pkg/tests/system-tests/check/check.go
// Copyright 2020 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package check import ( "context" "fmt" "go.fuchsia.dev/fuchsia/src/testing/host-target-testing/device" "go.fuchsia.dev/fuchsia/src/testing/host-targe...
Ascend/modelzoo
built-in/ACL_TensorFlow/Official/cv/RetinaNet_for_ACL/scripts/retinanet_postprocess/retinaPostprocess.py
<gh_stars>10-100 # Copyright 2021 Huawei Technologies Co., Ltd # # 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 applic...
JacobsonMT/Gemma
gemma-web/src/main/webapp/scripts/api/entities/gene/GenePage.js
<filename>gemma-web/src/main/webapp/scripts/api/entities/gene/GenePage.js Ext.namespace('Gemma'); Gemma.DIFF_THRESHOLD = 0.01; Gemma.MAX_DIFF_RESULTS = 125; /** * * Top level container for all sections of gene info * * To open the page at a specific tab, include ?tab=[tabName] suffix in the URL. Tab names ...
arunrajora/algorithms
codes/maths/hcf.cpp
// HCF (Highest Common Factor) #include<iostream> using namespace std; int hcf(int a,int b){ return b?hcf(b,a%b):a; } int main(){ cout<<hcf(9,12); }
krattai/AEBL
blades/xbmc/xbmc/network/linux/ZeroconfAvahi.h
<reponame>krattai/AEBL #pragma once /* * Copyright (C) 2005-2013 Team XBMC * http://xbmc.org * * 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 2, or (at your op...
okonomi/homebrew-cask
Casks/slack.rb
class Slack < Cask url 'https://rink.hockeyapp.net/api/2/apps/89dc0a9e3d01fb65e383b13c9ce0d3ac?format=zip' homepage 'http://slack.com' version 'latest' sha256 :no_check link 'Slack.app' end
jmaff/rover-ruckus
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/opmodes/auto/AutoOpMode.java
package org.firstinspires.ftc.teamcode.opmodes.auto; import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode; public abstract class AutoOpMode extends LinearOpMode { public static final long POLL_INTERVAL = 5; // ms public static final double LATERAL_BIAS = 1.25; // in protected abstract void setup(...
ndtung01061999/catiny
src/main/java/com/regitiny/catiny/service/impl/FileInfoServiceImpl.java
<filename>src/main/java/com/regitiny/catiny/service/impl/FileInfoServiceImpl.java package com.regitiny.catiny.service.impl; import static org.elasticsearch.index.query.QueryBuilders.*; import com.regitiny.catiny.GeneratedByJHipster; import com.regitiny.catiny.domain.FileInfo; import com.regitiny.catiny.repository.Fil...
herculeshssj/servidores-oportunidades
OpenXava/src/org/openxava/util/Classes.java
<gh_stars>1-10 package org.openxava.util; import java.lang.annotation.*; import java.lang.reflect.*; import java.util.*; /** * Utility class to work with classes. <p> * * @author: <NAME> */ public class Classes { /** * If the class contains the exact method without argumetns. <p> */ public static boole...
Yeolar/flattype
flattype/bucket/Bucket.cpp
<filename>flattype/bucket/Bucket.cpp<gh_stars>0 /* * Copyright 2018 Yeolar * * 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...
julianpeeters/avro-scala-macro-annotations
tests/src/test/scala/AvroRecordTests/AvroRecordDefaultValueTest.scala
<gh_stars>10-100 package test import org.specs2.mutable.Specification import com.julianpeeters.avro.annotations._ import java.io.File import org.apache.avro.generic.GenericData.Record import org.apache.avro.generic._ import org.apache.avro.specific._ import org.apache.avro.Schema import org.apache.avro.Schema.{Type ...
imdairies/imd-farm-solutions
src/test/java/com/imd/performance/FirstLactationPeakMilestoneEvaluatorTest.java
<filename>src/test/java/com/imd/performance/FirstLactationPeakMilestoneEvaluatorTest.java package com.imd.performance; import static org.junit.jupiter.api.Assertions.*; import org.joda.time.DateTime; import org.joda.time.LocalDate; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.AfterEach; import ...
livejack/server
lib/favicons.js
<reponame>livejack/server const got = require('got'); module.exports = async (req, res, next) => { if (!req.accepts('image/*')) { res.sendStatus(400); return; } try { const url = Buffer.from(req.params.base64url, 'base64').toString(); const gs = got(url, { headers: { accept: req.get('accept') }, ...
oss-mirror/isc-kea
src/lib/http/tests/tls_client_unittests.cc
// Copyright (C) 2017-2021 Internet Systems Consortium, Inc. ("ISC") // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. #include <config.h> #include <asiolink/asio_w...
PaulSprayCQUNI/tutorialsP
corejava11/v1ch12/blockingQueue/BlockingQueueTest.java
<filename>corejava11/v1ch12/blockingQueue/BlockingQueueTest.java package blockingQueue; import java.io.*; import java.nio.charset.*; import java.nio.file.*; import java.util.*; import java.util.concurrent.*; import java.util.stream.*; /** * @version 1.03 2018-03-17 * @author <NAME> */ public class BlockingQueueTes...
johnnyrubin/admission-post-licence
Commun/src/AdmissionPostLicence/candidatureHelper.java
<gh_stars>0 package AdmissionPostLicence; /** * Helper class for : candidature * * @author OpenORB Compiler */ public class candidatureHelper { private static final boolean HAS_OPENORB; static { boolean hasOpenORB = false; try { Thread.currentThread().getContextClassLoader()...
ReZeroS/LeetCode
589.N-ary Tree Preorder Traversal/test.cpp
<filename>589.N-ary Tree Preorder Traversal/test.cpp /* // Definition for a Node. class Node { public: int val; vector<Node*> children; Node() {} Node(int _val, vector<Node*> _children) { val = _val; children = _children; } }; */ static auto __ = [] () { ios::sync_with_stdio(f...
fractalPlatform/Fractal.js
examples/playground/imageSet.js
import R from 'ramda' import h from 'snabbdom/h' import F from '../../lib' const fetchTask = F.tasks.fetch.types.fetch // TODO: hacer que este modulo sea una matriz de 4x4 imagenes, evaluar si agregar un metodo de ayuda para esta tarea al core export default F.def({ // state stuff init: ({key}) => ({ key, ...
lyphui/Just-Code
src/0050.powx-n/powx-n.py
class Solution: def myPow(self, x: float, n: int) -> float: p, r = abs(n), 1 while p: if p & 1: r *= x x *= x p >>= 1 return r if n >= 0 else 1/r
2bite/ARK-SDK
SDK/ARKSurvivalEvolved_EngramEntry_HideBoots_parameters.hpp
<reponame>2bite/ARK-SDK<filename>SDK/ARKSurvivalEvolved_EngramEntry_HideBoots_parameters.hpp #pragma once // ARKSurvivalEvolved (329.9) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_EngramEntry_HideBoots_classes.hpp" namespace sdk { //----------------------------------------------...
yasserglez/pytiger2c
packages/pytiger2c/ast/oroperatornode.py
# -*- coding: utf-8 -*- """ Clase C{OrOperatorNode} del árbol de sintáxis abstracta. """ from pytiger2c.ast.binarylogicaloperatornode import BinaryLogicalOperatorNode from pytiger2c.types.integertype import IntegerType class OrOperatorNode(BinaryLogicalOperatorNode): """ Clase C{OrOperatorNode} del árbol de...
thiagogarbazza/project-manager
src/api-test/domain/iteration/iteration-validate-spec.js
'use strict'; const IterationValidate = require('../../../api/domain/iteration/iteration-validate'); const DATA_2010_01_01 = new Date('2010/01/01'); const DATA_2013_06_03 = new Date('2013/06/03'); const DATA_2013_06_07 = new Date('2013/06/07'); describe('api domain iteration validate', () => { const APP = {}; le...
MrSlovo/IT-Coding-Exercises
Gr 10/TextBook Activity/pg45Activity4/src/Main.java
public class Main { public static void main(String[] args) { String s1 = "polo"; String s2 = "call"; System.out.print(s2.charAt(0)); System.out.print(s1.charAt(3)); System.out.print(s1.charAt(1)); System.out.print(s2.charAt(2)); System.out.println("!"); } ...
HernandezM22/DatlasHackMTY
real-data/node_modules/@deck.gl/json/dist/esm/syntactic-sugar.js
<filename>real-data/node_modules/@deck.gl/json/dist/esm/syntactic-sugar.js var FUNCTION_IDENTIFIER = '@@='; var CONSTANT_IDENTIFIER = '@@#'; var TYPE_KEY = '@@type'; export { FUNCTION_IDENTIFIER, CONSTANT_IDENTIFIER, TYPE_KEY }; //# sourceMappingURL=syntactic-sugar.js.map
hscspring/TheAlgorithms-Python
LeetCode/8-String-to-Integer (atoi)/String-to-Integer.py
<filename>LeetCode/8-String-to-Integer (atoi)/String-to-Integer.py class Solution: def remove_frontspace(self, s): i = 0 while i < len(s) and s[i] == " ": i = i + 1 return s[i:] def s2num(self, s): news = self.remove_frontspace(s) if news == "": re...
JUD210/Study-Note
__Training__/Python - HackerRank/4. Sets/Set .add().py
<reponame>JUD210/Study-Note # https://www.hackerrank.com/challenges/py-set-add/problem n = int(input()) # 7 # len(set) s = set() for _ in range(n): s.add(input()) # UK # China # USA # France # New Zealand # UK # France print(len(s)) # 5
phodal/twu-biblioteca-phodal
src/com/twu/biblioteca/artistic/book/Book.java
<filename>src/com/twu/biblioteca/artistic/book/Book.java package com.twu.biblioteca.artistic.book; import com.twu.biblioteca.artistic.Artistic; /** * Created by fdhuang on 9/9/14. */ public class Book extends Artistic { private final String type; private String author; public Book(String name, String ...
oluigipo/untitled
src/main.c
// Includes #include "headers/all.h" struct GameGlobalState game = { 0 }; internal void parse_args(struct GameArgs* restrict args, uint argc, const char* restrict* restrict argv) { // Default values args->mem = megabytes(8); args->width = 0; args->height = 0; args->fullscreen = -1; args->novsync = 0; args->loc...
81CuongVn/hikaki
hikari/traits.py
# -*- coding: utf-8 -*- # cython: language_level=3 # Copyright (c) 2020 Nekokatt # Copyright (c) 2021-present davfsa # # 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, inc...
Grimgrents2/WarsmashModEngine
core/src/com/etheller/warsmash/viewer5/handlers/mdx/Layer.java
<gh_stars>10-100 package com.etheller.warsmash.viewer5.handlers.mdx; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.glutils.ShaderProgram; import com.hiveworkshop.rms.parsers.mdlx.AnimationMap; import com.hiveworkshop.rms.parsers.mdlx.MdlxLayer; /** * An MDX layer. */ public class Layer ext...
jdiaz/snorkel
snorkel/components/query_details/query_details.js
<gh_stars>0 "use strict"; module.exports = { tagName: "div", className: "", client: function(options) { var created_str = new Date(options.created).toISOString(); var helpers = bootloader.require("app/client/views/helpers"); var that = this; var view = options.query.parsed.baseview || options.qu...
bq/corbel-js2
src/build/with-polyfills.js
(function(root, factory) { 'use strict'; /* jshint unused: false */ if (typeof define === 'function' && define.amd) { define(['es6-promise'], function(promise) { promise.polyfill(); return factory(root); }); } else if (typeof module !== 'undefined' && module.exports) { var Promise = req...
ishiura-compiler/CF3
testsuite/EXP_5/test1739.c
<reponame>ishiura-compiler/CF3 /* 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" volatile int8_t x4 = 0; uint32_t x7 = 1122487749U; int16_t x9 = INT16_MIN; int3...
MrAhmedSayedAli/TinyORM
include/orm/concerns/logsqueries.hpp
#pragma once #ifndef ORM_CONCERNS_LOGSQUERIES_HPP #define ORM_CONCERNS_LOGSQUERIES_HPP #include "orm/macros/systemheader.hpp" TINY_SYSTEM_HEADER #include <QtSql/QSqlQuery> #include <memory> #include <optional> #include "orm/macros/export.hpp" #include "orm/types/log.hpp" TINYORM_BEGIN_COMMON_NAMESPACE namespace O...
ckclark/leetcode
go/valid-mountain-array.go
<gh_stars>0 package leetcode func validMountainArray(A []int) bool { n := len(A) left, right := 0, n-1 for i := 0; i < n-1 && A[i+1] > A[i]; i++ { left = i + 1 } for i := n - 1; i > 0 && A[i] < A[i-1]; i-- { right = i - 1 } return left != 0 && right != n-1 && left == right }
ScalablyTyped/SlinkyTyped
j/jsforce/src/main/scala/typingsSlinky/jsforce/queryMod.scala
<reponame>ScalablyTyped/SlinkyTyped package typingsSlinky.jsforce import typingsSlinky.jsforce.jsforceStrings.ASC import typingsSlinky.jsforce.jsforceStrings.DESC import typingsSlinky.jsforce.recordResultMod.RecordResult import typingsSlinky.node.NodeJS.WritableStream import typingsSlinky.node.anon.End import typingsS...
AaronFriel/pulumi-aws-native
sdk/go/aws/elasticache/user.go
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** package elasticache import ( "context" "reflect" "github.com/pkg/errors" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Resource Type definition for AWS::E...
YuriyPobezhymov/tsunami-security-scanner-plugins
google/detectors/rce/java_jmx/src/test/java/com/google/tsunami/plugins/detectors/rce/java/JavaJmxRceDetectorTest.java
/* * Copyright 2020 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 wr...
vipuserr/vipuserr-Geological-hazard
geo3d/include/CGAL/Arr_tags.h
<gh_stars>100-1000 // Copyright (c) 2007,2009,2010,2011 Tel-Aviv University (Israel). // All rights reserved. // // This file is part of CGAL (www.cgal.org). // 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...
mohd-faizy/DataScience-With-Python
11_python-data-science-toolbox-(part-2)/1-using-iterators-in-pythonland/01_iterators-vs-iterables.py
''' 01_Iterators vs Iterables Let's do a quick recall of what you've learned about iterables and iterators. Recall from the video that an iterable is an object that can return an iterator, while an iterator is an object that keeps state and produces the next value when you call next() on it. In this exercise, you wil...
idGain/ewp-node
src/main/java/pt/ulisboa/ewp/node/api/host/forward/ewp/controller/institutions/ForwardEwpApiInstitutionsGeneralController.java
package pt.ulisboa.ewp.node.api.host.forward.ewp.controller.institutions; import io.swagger.v3.oas.annotations.Operation; import java.util.Collection; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.security.access.annotation.Secured; import org.spr...
mpatrickaires/faculdade-esup
EstruturaDeDados/stack/Exercicio08.java
<reponame>mpatrickaires/faculdade-esup package stack; import java.util.Scanner; public class Exercicio08 { /* * 08 - Dado uma pilha estática que armazene números, escreva uma função que forneça o * maior, o menor e a média aritmética dos elementos da pilha. Faça uso apenas das funções * da pilha. Após...
flipcoder/qor
Qor/PlayerInterface3D.cpp
<reponame>flipcoder/qor #include <boost/scope_exit.hpp> #include "PlayerInterface3D.h" #include "Sprite.h" #include <glm/gtx/vector_angle.hpp> using namespace std; using namespace glm; PlayerInterface3D :: PlayerInterface3D( const shared_ptr<Controller>& input, const shared_ptr<Node>& look_node, const shar...
enzoqtvf/homer-view-react
src/containers/Logs/sagas/index.js
<filename>src/containers/Logs/sagas/index.js import { all, fork } from "redux-saga/effects"; import getLogsSaga from "./LogsSagas"; export default function* documentSaga() { yield all([fork(getLogsSaga)]); }
Ajapaik/ajapaik-android-app
app/src/main/java/ee/ajapaik/android/fragment/util/AlertFragment.java
package ee.ajapaik.android.fragment.util; import android.app.AlertDialog; import android.app.Dialog; import android.content.DialogInterface; import android.content.DialogInterface.OnKeyListener; import android.os.Bundle; import android.os.Parcelable; import android.view.KeyEvent; import androidx.fragment.app.DialogFr...
patricklx/carbon-components-ember
addon/components/charts/-components/axis/component.js
<filename>addon/components/charts/-components/axis/component.js import Component from '@glimmer/component'; /** @documenter yuidoc */ /** The ChartAxis ```handlebars ``` @class ChartAxis @public **/ class ChartAxis extends Component { args = { /** * The Axis Title * @argument title * @type ...
CraftAcademy/gigafood
features/step_definitions/active_admin_steps.rb
<reponame>CraftAcademy/gigafood def ensure_user_created(email) user = AdminUser.where(email: email).first_or_create(password: 'password', password_confirmation: 'password') unless user.persisted? raise "Could not create user #{email}: #{user.errors.full_messages}" end user end When /^I fill in the passwor...
sharpzeb/bootcamp
01-Class-Content/07-Project-1/03-Algorithms/03-acronym-builder/Unsolved/acronym-builder.js
// Write code to create a function that accepts a string and returns an acronym for the given string var acronymBuilder = function(str) {};
egetman/jes
src/main/java/store/jesframework/snapshot/TimeBasedSnapshotStrategy.java
<reponame>egetman/jes package store.jesframework.snapshot; import java.time.Duration; import java.time.LocalDateTime; import java.util.Collection; import java.util.Collections; import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; import java.util.UUID; import javax.annotation.Nonnull; import...
yumiaoxia/spring-boot-demos
modules-test/src/main/java/com/itsherman/modulestest/web/dto/PersonWithRawDO.java
<reponame>yumiaoxia/spring-boot-demos<gh_stars>0 package com.itsherman.modulestest.web.dto; import com.itsherman.dto.assembler.annotations.DtoModel; import com.itsherman.modulestest.domain.Person; @DtoModel(from = Person.class) public class PersonWithRawDO extends PersonDO { private BookDO book; public Book...
hellhound/dentexchange
dentexchange/apps/membership/tests/test_year_choices.py
<filename>dentexchange/apps/membership/tests/test_year_choices.py<gh_stars>1-10 # -*- coding:utf-8 -*- import unittest import mock import datetime from ..utils import YearChoices class YearChoicesTestCase(unittest.TestCase): def test_iter_should_return_50_years_since_current_year(self): # setup c...
zhiming-shen/Xen-Blanket-NG
xen/xen-4.2.2/tools/python/xen/xm/setenforce.py
#============================================================================ # This library is free software; you can redistribute it and/or # modify it under the terms of version 2.1 of the GNU Lesser General Public # License as published by the Free Software Foundation. # # This library is distributed in the hope th...
masud-technope/ACER-Replication-Package-ASE2017
corpus/class/ecf/349.java
<gh_stars>10-100 /**************************************************************************** * Copyright (c) 2004 Composent, Inc. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribu...
zakibinary/deriv-app
packages/components/stories/multi-step/stories/basic.js
<filename>packages/components/stories/multi-step/stories/basic.js import React from 'react'; import { boolean } from '@storybook/addon-knobs'; import Button from 'Components/button'; import MultiStep from 'Components/multi-step'; import Wrapper from '../../shared/wrapper'; const steps = [{ component: 'Step 1' }, { com...
Vufuzi/music-fns
src/constants/Interval/Short.js
// https://en.wikipedia.org/wiki/Interval_(music)#Interval_number_and_quality export const R = 0; export const S = 1; export const T = 2; export const TT = 6; export const O = 12; export default { R, S, T, TT, O };
gstearmit/data-structure-algorithm
src/test/java/ir/sk/adt/datastructure/array/SortedArrayTest.java
<reponame>gstearmit/data-structure-algorithm package ir.sk.adt.datastructure.array; import org.junit.After; import org.junit.Before; import org.junit.Test; /** * @author <a href="<EMAIL>"><NAME></a> on 12/7/2017. */ public class SortedArrayTest { SortedArray array; @Before public void setUp() throws E...
ankurshukla1993/IOT-test
coeey/com/google/android/gms/dynamic/zza.java
package com.google.android.gms.dynamic; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.FrameLayout; imp...
shinkai-tester/python_beginner
Lesson4/matr.py
for i in range(1, 10): for j in range(1, 10): print(i * j, end=' ') print(end='\n')
amendoa/garden
src/js/components/validation.js
<filename>src/js/components/validation.js import $ from 'jquery' import emitter from '../utils/emitter' import rules from './validation/defaults' const NAME = 'validation' const DEFAULTS = { events: 'blur', selector: '[data-required]' } class Validation { constructor (element, options) { this.$element = $...
sousuke0422/Emojicord
shared/src/main/java/net/teamfruit/emojicord/emoji/EmojiFontRenderer.java
package net.teamfruit.emojicord.emoji; #if MC_14_LATER import com.mojang.blaze3d.vertex.IVertexBuilder; import net.minecraft.client.renderer.RenderType; #endif #if MC_12_LATER import net.minecraft.client.gui.fonts.IGlyph; import net.minecraft.client.gui.fonts.TexturedGlyph; #endif #if MC_10_LATER import net.minecraft....
holla-world/CRBoxInputView
Example/Pods/BearSkill/Pod/Layout/UIView+BearSet.h
<filename>Example/Pods/BearSkill/Pod/Layout/UIView+BearSet.h // // UIView+BearSet.h // // Created by bear on 15/11/25. // Copyright (c) 2015年 Bear. All rights reserved. // #import <UIKit/UIKit.h> typedef NS_ENUM(NSUInteger, kAXIS) { kAXIS_Y, kAXIS_X, kAXIS_X_Y, }; typedef NS_ENUM(NSUInteger, kLAYOUT_A...
dealflowteam/Idfy
idfy_rest_client/models/transaction.py
# -*- coding: utf-8 -*- """ idfy_rest_client.models.transaction This file was automatically generated for Idfy by APIMATIC v2.0 ( https://apimatic.io ) """ from idfy_rest_client.api_helper import APIHelper class Transaction(object): """Implementation of the 'Transaction' model. TODO: t...
suggestio/suggestio
src1/server/www/app/models/mext/tw/TwitterService.scala
package models.mext.tw import io.suggest.ext.svc.MExtServices import models.mext.{IAdvExtService, IExtService} import util.adv.ext.OAuth1ServiceActorFactory import util.ext.tw.TwitterHelper import scala.reflect.ClassTag /** * Suggest.io * User: <NAME> <<EMAIL>> * Created: 10.04.15 19:14 * Description: Абстрактна...
laszlomakk/BonjourKeyGossiping
app/src/main/java/uk/ac/cam/cl/lm649/bonjourtesting/messaging/MsgServerManager.java
/** Copyright (C) 2016 <NAME> All code under the BonjourTesting project is licensed under the Apache 2.0 License */ package uk.ac.cam.cl.lm649.bonjourtesting.messaging; import java.io.IOException; import java.util.concurrent.ConcurrentSkipListMap; import uk.ac.cam.cl.lm649.bonjourtesting.util.FLogger; import uk.a...
fugroup/mongocore
test/json_test.rb
test 'JSON' model = Model.new parent = Parent.new model.parent = parent is model.save json = JSON.parse(model.to_json) is json['id'], :a? => String is json['parent_id'], :a? => String is json['duration'], :a? => Integer o = BSON::ObjectId.new is o.to_json, "\"#{o.to_s}\"" t = {:id => o} is t.to_json, "{\"id\":\...
Cwc-Test/CpcdosOS2.1
build/djgpp/include/sys/nearptr.h
/* Copyright (C) 2012 <NAME>, see COPYING.DJ for details */ /* Copyright (C) 2003 <NAME>, see COPYING.DJ for details */ /* Copyright (C) 1995 <NAME>, see COPYING.DJ for details */ #ifndef __dj_include_sys_nearptr_h_ #define __dj_include_sys_nearptr_h_ #ifdef __cplusplus extern "C" { #endif #ifndef __dj_ENFORCE_ANSI_F...