repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
cederberg/rapidcontext
src/plugin/system/files/js/RapidContext.Util.js
/* * RapidContext <https://www.rapidcontext.com/> * Copyright (c) 2007-2019 <NAME>. All rights reserved. * * This program is free software: you can redistribute it and/or * modify it under the terms of the BSD license. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANT...
abdullahemad12/Cranberry-RayTracer
src/datastructures/OctaTree/BoundingBox.java
<reponame>abdullahemad12/Cranberry-RayTracer package datastructures.OctaTree; import model.graphics.object.Box; import model.graphics.object.Shape; import java.util.List; class BoundingBox extends Box { private BoundingBox[] boundingBoxes; private List<Shape> shapes; // NonNull for leaf Boxes only /** ...
tangzhankun/Narwhal
src/main/java/org/apache/hadoop/yarn/applications/narwhal/service/ContainerLauncher.java
package org.apache.hadoop.yarn.applications.narwhal.service; import org.apache.commons.collections.map.HashedMap; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.hadoop.fs.FileStatus; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import...
intellineers/django-bridger
bridger/notifications/viewsets/viewsets.py
<filename>bridger/notifications/viewsets/viewsets.py from django.utils import timezone from rest_framework import filters from rest_framework.decorators import action from rest_framework.response import Response from rest_framework.reverse import reverse from bridger import buttons as bt from bridger import display as...
TomasHofman/galleon
core/src/main/java/org/jboss/galleon/util/formatparser/FormatErrors.java
<filename>core/src/main/java/org/jboss/galleon/util/formatparser/FormatErrors.java<gh_stars>0 /* * Copyright 2016-2018 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file excep...
isabella232/egle
server/public/js/directives/AskMobilityDirective.js
<reponame>isabella232/egle /* * The copyright in this software is being made available under MIT License * MIT License, included below. This software may be subject to other third * party and contributor rights, including patent rights, and no such rights * are granted under this license. * * Copyright (c) 2014...
firstake/local-barbershop
client/src/index.js
<gh_stars>0 import 'bootstrap/dist/css/bootstrap.min.css'; import React from 'react'; import ReactDOM from 'react-dom'; import {BrowserRouter} from 'react-router-dom'; import {Provider} from 'react-redux'; import {ToastContainer, toast} from 'react-toastify'; import App from './App'; import configureStore from './sto...
nikita-uvarov/catboost
library/neh/multiclient_ut.cpp
#include "multiclient.h" #include "rpc.h" #include "utils.h" #include <library/unittest/registar.h> #include <util/generic/list.h> #include <util/stream/str.h> #include <util/thread/pool.h> #include <util/system/mutex.h> using namespace NNeh; Y_UNIT_TEST_SUITE(TNehMultiClient) { class TResponseDelayer: public I...
stasinek/BHAPI
src/kits/kernel/private/arch/ppc/arch_cpu.h
/* * Copyright 2003-2004, <NAME>, <EMAIL>. * Distributed under the terms of the MIT License. */ #ifndef _KERNEL_ARCH_PPC_CPU_H #define _KERNEL_ARCH_PPC_CPU_H #include <arch/ppc/arch_thread_types.h> #include <kernel.h> #define CPU_MAX_CACHE_LEVEL 8 #define CACHE_LINE_SIZE 128 // 128 Byte lines on PPC970 struc...
Summys/Retrospect
react-native/webpack.haul.storybook.js
module.exports = () => ({ entry: `./storybook/index.js`, // any other haul config here. });
mojojoseph/m2m-supervisor
lib/m2m-settings.js
module.exports = Object.freeze({ EventCodes: Object.freeze({ heartbeat: 0, // MO startup: 1, // MO config: 2, // MO/MT status: 3, // MO/MT restart: 4, // MT -- should result in "startup" r...
jarrodmky/ShaderWriter
source/CompilerSpirV/SpirvStmtAdapter.hpp
/* See LICENSE file in root folder */ #ifndef ___SDW_SpirvStmtAdapter_H___ #define ___SDW_SpirvStmtAdapter_H___ #pragma once #include "SpirvHelpers.hpp" #include <ShaderAST/Visitors/CloneStmt.hpp> #include <unordered_set> namespace spirv { struct AdaptationData { AdaptationData( PreprocContext & pcontext , M...
openid-certification/-conformance-suite
src/main/java/net/openid/conformance/logging/TestInstanceEventLog.java
package net.openid.conformance.logging; import java.security.SecureRandom; import java.util.HashMap; import java.util.Map; import java.util.Random; import com.google.common.base.Strings; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import net.openid.conformance.testmodule.DataUtils; /** *...
ezgikaysi/koding
go/src/github.com/canthefason/go-watcher/watch.go
// Package watcher watches all file changes via fsnotify package and sends // update events to builder package watcher import ( "errors" "fmt" "log" "os" "path/filepath" "strings" "time" fsnotify "gopkg.in/fsnotify.v1" ) // Watcher watches the file change events from fsnotify and // sends update messages. It...
kations/contist-ui
src/lib/components/Input.js
<reponame>kations/contist-ui import styled from "styled-components"; import propsToStyle from "../utils/propsToStyle"; let paddingVertical = "12px"; export const Input = styled.input` width: 100%; font-size: 1rem; background: transparent; background-image: none; appearance: none; border-radius: 0px; ve...
chentianming11/study
concurrent/src/main/java/com/chen/study/concurrent/concurrent2/balking/BalkingTest.java
package com.chen.study.concurrent.concurrent2.balking; /** * @author 陈添明 * @date 2018/9/23 */ public class BalkingTest { public static void main(String[] args) { BalkingData balkingData = new BalkingData("test.txt", "---------begin----------"); new CustomerThread(balkingData).start(); n...
zeusdeux/node
tools/eslint/node_modules/shelljs/src/common.js
<reponame>zeusdeux/node var os = require('os'); var fs = require('fs'); var _ls = require('./ls'); // Module globals var config = { silent: false, fatal: false }; exports.config = config; var state = { error: null, currentCmd: 'shell.js', tempDir: null }; exports.state = state; var platform = os.type().mat...
throne/throne-cli
src/parsers/rdap_ip_parser.py
<filename>src/parsers/rdap_ip_parser.py # LICENSED UNDER BSD-3-CLAUSE-CLEAR LICENSE # SEE PROVIDED LICENSE FILE IN ROOT DIRECTORY # Import Third Party Modules import sys import logging # Import Throne Modules from src.exceptions import ThroneParsingError # Set log variable for verbose output log = logging.getLogger(_...
xionluhnis/knitsketching
src/ui/actions/seam-create.js
// <NAME> <<EMAIL>> "use strict"; // modules const SketchAction = require('./action.js'); const CreateSubCurve = require('./subcurve-create.js'); const { SEAM_ON } = require('../../sketch/seam.js'); class CreateSeamCurve extends CreateSubCurve { constructor(parentSketch = null){ super(parentSketch); } setSe...
kejgon/working-with-java
StringsExercise2.java
<reponame>kejgon/working-with-java import java.util.*; public class StringsExercise2 { public static void main(String[] args) { Scanner input = new Scanner(System.in);// creating an object from class Scanner System.out.println("Enter any sentence"); String text = input.nextLine();// assigni...
manasys/grouper
grouper-misc/grouper-ui-dojo/dojo/dojox/widget/MonthlyCalendar.js
<reponame>manasys/grouper //>>built define("dojox/widget/MonthlyCalendar",["dojo/_base/declare","./_CalendarBase","./_CalendarMonth"],function(_1,_2,_3){ return _1("dojox.widget.MonthlyCalendar",[_2,_3],{_makeDate:function(_4){ var _5=new Date(); _5.setMonth(_4); return _5; }}); });
aniskchaou/GYM-FRONTEND-ADMIN
src/modules/groupeModule/ViewGroupe/ViewGroupe.js
<filename>src/modules/groupeModule/ViewGroupe/ViewGroupe.js import React from 'react'; import PropTypes from 'prop-types'; import './ViewGroupe.css'; const ViewGroupe = () => ( <div className="ViewGroupe"> ViewGroupe Component </div> ); ViewGroupe.propTypes = {}; ViewGroupe.defaultProps = {}; export default...
LarsHagemann/OrbitEngine
inc/implementation/engine/Allocator.hpp
<filename>inc/implementation/engine/Allocator.hpp #pragma once #include <vector> #include <memory> #include <set> #include <mutex> #include "implementation/engine/AllocatorPage.hpp" namespace orbit { class Allocator { protected: using MemoryHeapPool = std::vector<std::shared_ptr<AllocatorPage>>; // @member: t...
alonmor1/searchblock2
node_modules/@shopify/polaris-icons/dist/icons/SecureMajor.svg.js
<filename>node_modules/@shopify/polaris-icons/dist/icons/SecureMajor.svg.js 'use strict'; var React = require('react'); var _ref = /*#__PURE__*/ React.createElement("path", { fillRule: "evenodd", d: "M9.128.233c-2.37 1.383-5.37 2.33-7.635 2.646-.821.115-1.495.79-1.493 1.62l.001.497c-.03 6.043.477 11.332 9.462 14....
aligoren/pyalgo
hanoi_tower_algorithm.py
<gh_stars>10-100 def hanoi_tower_algorithm(n, x, y, z): """ Source: http://en.wikipedia.org/wiki/Tower_of_Hanoi Fransız matematikçi, <NAME> tarafından önerilen bir kule problemidir. A,B ve C gibi dik konumda yerleştirilmiş üç çubuk ve n adet disk verilmektedir. Başlangıç durumunda diskler, üstteki her diskin çapı ...
hansonreal/mini-admin
mini-admin-gateway/src/main/java/com/github/mini/gateway/config/WebSecurityConfig.java
package com.github.mini.gateway.config; import com.github.mini.common.properties.RsaKeyProperties; import com.github.mini.gateway.security.authentication.MiniAuthenticationEntryPoint; import com.github.mini.gateway.security.ext.SecurityExtUtil; import com.github.mini.gateway.security.filter.JwtAuthenticationFilter; im...
youyouqiu/hybrid-development
clbs/src/main/java/com/sx/platform/contorller/sxReportManagement/ShiftDataReportController.java
<filename>clbs/src/main/java/com/sx/platform/contorller/sxReportManagement/ShiftDataReportController.java package com.sx.platform.contorller.sxReportManagement; import com.sx.platform.service.sxReportManagement.ShiftDataReportService; import com.zw.platform.commons.Auth; import com.zw.platform.util.common.JsonResultBe...
canghai908/zabbix
src/zabbix_agent/perfstat.c
/* ** Zabbix ** Copyright (C) 2001-2015 Zabbix SIA ** ** 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 of the License, or ** (at your option) any later version. ** ** This pro...
Luzifer/twitch-bot
internal/actors/respond/actor.go
<filename>internal/actors/respond/actor.go package respond import ( "fmt" "strings" "github.com/go-irc/irc" "github.com/pkg/errors" log "github.com/sirupsen/logrus" "github.com/Luzifer/twitch-bot/plugins" ) const actorName = "respond" var ( formatMessage plugins.MsgFormatter ptrBoolFalse = func(v bool) *b...
martiancrow/x12_engine
src/x12_engine_lib/src/x12_even_drivers.h
<filename>src/x12_engine_lib/src/x12_even_drivers.h /* * *Copyright (C) 刘晓龙 *Copyright (C) 昆明黑海科技有限公司 * * */ /* *x12 engine 事件设备列表 * * *作者:Crow *时间:2016-11-13 *最后修改时间:2016-11-13 */ #ifndef _X12_EVEN_DRIVERS_H_INCLUDE_ #define _X12_EVEN_DRIVERS_H_INCLUDE_ #include "x12_pthread.h" ...
l2silver/imp_pat
src/FollowingPanel/constants.js
<reponame>l2silver/imp_pat // @flow export const followingPanelId = 'followingPanelId';
yanzhe-chen/LeetCode
include/BinaryTreePaths.hpp
<reponame>yanzhe-chen/LeetCode #ifndef BINARY_TREE_PATHS_HPP_ #define BINARY_TREE_PATHS_HPP_ #include <vector> #include <string> #include "TreeNode.hpp" using namespace std; class BinaryTreePaths { public: vector<string> binaryTreePaths(TreeNode *root); private: void dfs(TreeNode *root, string path, vector...
ekaitz-zarraga/jehanne
sys/src/lib/sec/port/curve25519_dh.c
<filename>sys/src/lib/sec/port/curve25519_dh.c<gh_stars>100-1000 #include "os.h" #include <mp.h> #include <libsec.h> static uint8_t nine[32] = {9}; void curve25519_dh_new(uint8_t x[32], uint8_t y[32]) { uint8_t b; /* new public/private key pair */ genrandom(x, 32); b = x[31]; x[0] &= ~7; /* clear bit 0,1,2 */...
ZDW6060/JZOffer
src/easy/JZ5/Solution.java
package easy.JZ5; import java.util.Stack; public class Solution { Stack<Integer> stack1 = new Stack<Integer>(); Stack<Integer> stack2 = new Stack<Integer>(); public void push(int node) { stack1.push(node); } public int pop() { if(stack2.size()==0){ while(stack1.size()...
gavinband/bingwa
genfile/include/genfile/utility.hpp
// Copyright <NAME> 2008 - 2012. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef GENFILE_UTILITY_HPP #define GENFILE_UTILITY_HPP #include <vector> #include <algorithm> #include <it...
okertanov/Developer-Tools-for-UPnP-Technologies
Samples/EmbeddedSamples/MicroDMR/Resources/NewMicroAvServer/TypeLibs/CWMPControls.h
// CWMPControls.h : Declaration of ActiveX Control wrapper class(es) created by Microsoft Visual C++ #pragma once ///////////////////////////////////////////////////////////////////////////// // CWMPControls class CWMPControls : public COleDispatchDriver { public: CWMPControls() {} // Calls COleDispatch...
exKAZUu-Research/SmartMotivator
server/app/models/prediction_model.rb
<filename>server/app/models/prediction_model.rb # == Schema Information # # Table name: prediction_models # # id :integer not null, primary key # dump_data :binary not null # trained_at :datetime # require 'open3' class PredictionModel < ApplicationRecord RECOMMENDATION_DIRECTORY = "#...
js-lib-com/js-lib
test/js/tests/dom/template/MapOperatorUnitTests.js
<gh_stars>0 $package("js.tests.template"); js.tests.template.MapOperatorUnitTests = { testSupportedPrimitiveTypes : function () { var html = "" + // "<dl data-map='.'>" + // " <dt data-text='.'></dt>" + // " <dd data-text='.'></dd>" + // "</dl>"; var m...
alteholz/gomfa
ut1tai_test.go
<gh_stars>0 package gomfa import ( "testing" ) func BenchmarkUt1tai(b *testing.B) { var a1, a2 float64 for i := 0; i < 10000000; i++ { _ = Ut1tai(2453750.5, 0.892104561, -32.6659, &a1, &a2) } } func TestUt1tai(t *testing.T) { var a1, a2 float64 var j int j = Ut1tai(2453750.5, 0.892104561, -32.6659, &a1, &...
tsaurabh74/peregrine-cms
platform/base/core/src/test/java/com/peregrine/sitemap/impl/EtcMapUrlExternalizerTest.java
<gh_stars>10-100 package com.peregrine.sitemap.impl; import com.peregrine.SlingResourcesTest; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.runners.MockitoJUnitRunner; import static org.junit.Assert.assertEquals; @RunWith(MockitoJUnitRunner.class) public final class EtcMapUrlEx...
confine-sandbox/jsisolate-confine-runtime
index.js
<gh_stars>1-10 const { CjsIsolate, EsmIsolate } = require('./lib/isolate.js') const { AbstractConfineRuntime} = require('abstract-confine-runtime') const path = require('path') module.exports = class JsIsolateConfineRuntime extends AbstractConfineRuntime { constructor (opts) { super(opts) this.isolate = unde...
TheRakeshPurohit/CodingSpectator
plug-ins/indigo/org.eclipse.jdt.core/model/org/eclipse/jdt/core/ISourceManipulation.java
<gh_stars>1-10 /******************************************************************************* * Copyright (c) 2000, 2009 IBM Corporation 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 d...
rlucioda/freejob
src/test/java/io/freejob/domain/EventoTest.java
package io.freejob.domain; import org.junit.jupiter.api.Test; import static org.assertj.core.api.Assertions.assertThat; import io.freejob.web.rest.TestUtil; public class EventoTest { @Test public void equalsVerifier() throws Exception { TestUtil.equalsVerifier(Evento.class); Evento evento1 = ...
SquaredLabs/nucore-open
app/helpers/timeline_helper.rb
# frozen_string_literal: true module TimelineHelper def reservation_classes(reservation, product = nil) classes = ["unit"] if reservation.product == product classes << "tip" unless reservation.blackout? else classes << "other-product" end classes << "blackout" if reservation.blackou...
djthorpe/postgresql-kit
old/PostgresClientKit/FLXPostgresArray.h
#import <Foundation/Foundation.h> // helper function for constructing arrays @interface FLXPostgresArray : NSObject { FLXPostgresType type; NSUInteger dimensions; NSUInteger* size; NSUInteger* lowerBound; NSUInteger numberOfTuples; NSMutableArray* tuples; } @property (retain) NSMutableArray* tuples; @property...
ayraz/TrainingApp
app/src/main/java/cz/nudz/www/trainingapp/dialogs/ErrorDialogFragment.java
<gh_stars>0 package cz.nudz.www.trainingapp.dialogs; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v7.app.AlertDialog; import cz.nudz.www.trainingapp.R; import cz.nudz.www.trainingapp.TrainingApp; /** * Created by artem on 21-...
Tsinghua-OpenICV/OpenICV
Branch/Deprecated/ros_code/rospand/src/pandar-ros-vstyle-gps/pandar_pointcloud/src/lib/calibration.cc
/** * \file calibration.cc * \brief * * \author <NAME> (<EMAIL>) * \author <NAME> * Copyright (C) 2012, Austin Robot Technology, * The University of Texas at Austin * Copyright (c) 2017 Hesai Photonics Technology, <NAME> * * License: Modified BSD License * * $ Id: 02/14/20...
viewdy/phantomjs
src/qt/qtwebkit/Source/WebCore/inspector/InspectorLayerTreeAgent.h
<gh_stars>1-10 /* * Copyright (C) 2012 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this ...
arithmetic1728/google-api-java-client-services
clients/google-api-services-accesscontextmanager/v1/1.31.0/com/google/api/services/accesscontextmanager/v1/model/EgressPolicy.java
/* * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under t...
PiotrZdziarski/React-FsLightbox-Basic
src/constants/css-constants.js
export const ANIMATION_TIME = 250;
umarfarooq360/HTMLUnit
src/main/java/com/gargoylesoftware/htmlunit/HttpWebConnection.java
/* * Copyright (c) 2002-2014 Gargoyle Software 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 ...
taddhopkins/experian-java
MavenWorkspace/bis-services-lib/bis-businessservices-lib/src/main/java/com/experian/bis/api/lib/businessservices/bean/response/premierprofiles/UCCFilingsDetail.java
package com.experian.bis.api.lib.businessservices.bean.response.premierprofiles; import com.experian.bis.api.lib.businessservices.bean.response.CodeAndDefinitionResult; public class UCCFilingsDetail { private String dateFiled; private String legalType; private String legalAction; private String documentNumber; ...
victoraranha19/Learning-Java
lista7/Atividade3/Computador.java
package lista7.atividade3; public class Computador extends Eletrodomestico { public Computador() {super();} @Override public void agir() { System.out.println("computando..."); } }
SpaceLeft/Rabbit
commands/Music/skip.js
const functions = require("../../utilities/music-function") const config = require("../../config.json") const Discord = require("discord.js"); module.exports = { name: "skip", category: "Music", aliases: ["s"], usage: "skip", description: "Skips current song", run: async (client, message, args)...
LittleNed/toontown-stride
toontown/safezone/DGSafeZoneLoader.py
<gh_stars>1-10 from toontown.safezone import DGPlayground from toontown.safezone import SafeZoneLoader class DGSafeZoneLoader(SafeZoneLoader.SafeZoneLoader): def __init__(self, hood, parentFSM, doneEvent): SafeZoneLoader.SafeZoneLoader.__init__(self, hood, parentFSM, doneEvent) self.playground...
avramtraian/CherriesX
CherriesX/src/CherriesX/Platform/OpenGL/OpenGLTexture.h
#pragma once #include "CherriesX/Renderer/Texture.h" namespace Cherries { class OpenGLTexture2D : public Texture2D { public: OpenGLTexture2D(const String& textureFilePath); OpenGLTexture2D(uint32_t width, uint32_t height, const void* data); OpenGLTexture2D(const TextureSpecification& spec); virtual ~OpenG...
brahm16/testh
src/layouts/Admin/events/Allevents.js
import Axios from "axios"; import React, { useEffect, useState } from "react"; import { useHistory } from "react-router"; import { toast } from "react-toastify"; import DataTable from 'react-data-table-component'; import DataTableExtensions from 'react-data-table-component-extensions'; import 'react-data-table-componen...
arpetti/LEDITA
test/server/util/HashHelperSpec.js
var expect = require('chai').expect , HashHelper = require('../../../server/util/HashHelper'); describe('Hash Helper', function() { var password = '<PASSWORD>'; var wrongPassword = 'passworD'; var longPassword = '<PASSWORD>'; it('Hashes a password', function(done) { HashHelper.generateHash(...
yr0/discursus
spec/models/book_spec.rb
<filename>spec/models/book_spec.rb # frozen_string_literal: true describe Book do it_behaves_like 'Sluggable' describe '.all_categories' do it 'returns all categories of books' do books = create_list(:book, 2, :with_categories) expect(Book.all_categories.pluck(:name)).to match_array(books.flat_map...
claudep/Geotrek
geotrek/maintenance/views.py
import logging from django.utils.translation import gettext_lazy as _ from mapentity.views import (MapEntityLayer, MapEntityList, MapEntityJsonList, MapEntityFormat, MapEntityViewSet, MapEntityDetail, MapEntityDocument, MapEntityCreate, MapEntityUpdate, MapEntityDelete) from geotrek.altim...
Yancyyyyyy/Catnest-Project-for-Student-Accommodation-Committee
catnest/src/main/java/com/stray/cat/dao/SentenceMapper.java
package com.stray.cat.dao; import com.stray.cat.pojo.Sentence; import com.stray.cat.vo.CommentVo; import org.apache.ibatis.annotations.Delete; import org.apache.ibatis.annotations.Insert; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Select; import org.springframework.stereotype.Rep...
hickerson/bbn
fable/fable_sources/libtbx/command_line/epydoc_run.py
<filename>fable/fable_sources/libtbx/command_line/epydoc_run.py from __future__ import division import epydoc import epydoc.docwriter import epydoc.docwriter.xlink import epydoc.cli help_text = """Synopsis libtbx.epydoc [options] Description Generate the epydoc documentation specified by the given configuration fil...
rpalcolea/genie
genie-agent/src/integTest/java/com/netflix/genie/agent/rpc/GRpcAutoConfigurationIntegrationTest.java
<reponame>rpalcolea/genie /* * * Copyright 2019 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 * *...
wbingli/blox
data-service/src/main/java/com/amazonaws/blox/dataservice/api/ListClustersApi.java
<reponame>wbingli/blox /* * Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://aws.amazon.com/apache2.0/...
FeikoJoosten/GameEngineFramework
Engine/Camera/Frustum.cpp
<reponame>FeikoJoosten/GameEngineFramework #include "Engine/Camera/Frustum.hpp" #include "Engine/Camera/Camera.hpp" namespace Engine { Frustum::Frustum(Camera& camera, glm::vec3 right, glm::vec3 up) { float fov = camera.GetFoV(); float aspectRatio = camera.GetAspectRatio(); glm::vec3 cameraPosition = camera.Ge...
1-MillionParanoidTterabytes/Blender-2.79b-blackened
source/blender/blenlib/intern/math_interp.c
/* * ***** BEGIN GPL LICENSE BLOCK ***** * * 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 * of the License, or (at your option) any later version. * * This program is d...
akochurov/mxcache
mxcache-tests/src/test/java/com/maxifier/mxcache/test/PerformanceFTest.java
<reponame>akochurov/mxcache /* * Copyright (c) 2008-2014 Maxifier Ltd. All Rights Reserved. */ package com.maxifier.mxcache.test; import com.maxifier.mxcache.CacheFactory; import com.maxifier.mxcache.Cached; import com.maxifier.mxcache.DependencyTracking; import com.maxifier.mxcache.clean.CacheCleaner; impo...
Domiii/self-asssessment-app
src/views/components/submissions/SubmissionEntry.js
import React, { PureComponent, PropTypes } from 'react'; import Moment from 'react-moment'; import { ListGroup, ListGroupItem, Well } from 'react-bootstrap'; import { Link } from 'react-router'; import { FAIcon } from 'src/views/components/util'; import classNames from 'classnames'; import { hrefConceptView } from '...
joshsuson/joshsuson-frontend
src/components/AllJobs.js
<gh_stars>0 import React from "react" import Heading from "./Heading" import Img from "gatsby-image" import { Link } from "gatsby" export default function AllJobs({ data, heading, type }) { return ( <div className="px-4 lg:px-14 pt-20 mb-20"> <Heading text={heading} align="text-center mb-20" /> <div>...
kliegeois/ginkgo
accessor/range.hpp
<filename>accessor/range.hpp /*******************************<GINKGO LICENSE>****************************** Copyright (c) 2017-2022, the Ginkgo authors All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1....
mcardy-ux/hotel
public/js/parameters/planCuentas/index.js
function show(event){ var ID =event.id; let confirmacion=confirm("¿Esta seguro de eliminar? No puede reversar esta accion."); if(confirmacion){ $.ajax({ url: $("#_url").val() + '/planCuentas/' + ID, headers: {'X-CSRF-TOKEN': $('#_token').val()}, type: 'DELETE', ...
derberg/website-asyncapi
components/navigation/LearningPanel.js
<reponame>derberg/website-asyncapi<filename>components/navigation/LearningPanel.js import FlyoutMenu from './FlyoutMenu' import learningItems from './learningItems' export default function LearningPanel () { return ( <FlyoutMenu items={learningItems} /> ) }
JakubKubista/-tsunami-escape
node_modules/server/src/modern/errors.js
<reponame>JakubKubista/-tsunami-escape const error = require('../../error').defaults({ url: ({ code }) => `https://serverjs.io/documentation/errors/#${ code.toLowerCase().replace(/[^\w]+/g, '-') }`, status: 500 }); error['/server/modern/missingmiddleware'] = ` modern() expects a middleware to be passed bu...
hugorebelo/gitlabhq
spec/frontend/helpers/dom_shims/scroll_by.js
window.scrollX = 0; window.scrollY = 0; window.scrollBy = (x, y) => { window.scrollX += x; window.scrollY += y; };
Neusoft-Technology-Solutions/aws-sdk-cpp
aws-cpp-sdk-eventbridge/source/model/ListEventSourcesResult.cpp
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/eventbridge/model/ListEventSourcesResult.h> #include <aws/core/utils/json/JsonSerializer.h> #include <aws/core/AmazonWebServiceResult.h> #include <aws/core/utils/StringUtils.h> #include ...
zeesh49/tutorials
libraries/src/main/java/com/baeldung/commons/io/FileMonitor.java
package com.baeldung.commons.io; import org.apache.commons.io.FileUtils; import org.apache.commons.io.monitor.FileAlterationListener; import org.apache.commons.io.monitor.FileAlterationListenerAdaptor; import org.apache.commons.io.monitor.FileAlterationMonitor; import org.apache.commons.io.monitor.FileAlterationObserv...
uniter/phpcore
src/Function/FunctionSpecFactory.js
/* * PHPCore - PHP environment runtime components * Copyright (c) <NAME> (asmblah) * https://github.com/uniter/phpcore/ * * Released under the MIT license * https://github.com/uniter/phpcore/raw/master/MIT-LICENSE.txt */ 'use strict'; var _ = require('microdash'); /** * Creates FunctionSpec-related objects ...
slkim2/mastertheboss
quarkus/panache-rest-demo/src/main/java/com/mastertheboss/Ticket.java
package com.mastertheboss; import javax.persistence.Column; import javax.persistence.Entity; import io.quarkus.hibernate.orm.panache.PanacheEntity; @Entity public class Ticket extends PanacheEntity { @Column(length = 20, unique = true) public String name; @Column(length = 3, unique = true) public S...
TheShinyBunny/HandiClient
src/main/java/com/handicraft/client/rewards/ParticleReward.java
/* * Copyright (c) 2020. Yaniv - TheShinyBunny */ package com.handicraft.client.rewards; import com.handicraft.client.client.screen.HandiPassScreen; import com.handicraft.client.collectibles.ParticleTrail; import com.mojang.blaze3d.systems.RenderSystem; import net.minecraft.client.MinecraftClient; import net.minecr...
nhl/link-rest
agrest-engine/src/main/java/io/agrest/meta/LazyEntity.java
<filename>agrest-engine/src/main/java/io/agrest/meta/LazyEntity.java<gh_stars>10-100 package io.agrest.meta; import io.agrest.access.CreateAuthorizer; import io.agrest.access.DeleteAuthorizer; import io.agrest.access.ReadFilter; import io.agrest.access.UpdateAuthorizer; import io.agrest.resolver.RootDataResolver; im...
ORTECScientificBenchmarks/ortec-scientific-benchmarks-loadbuilding
src/ortec/scientific/benchmarks/loadbuilding/instance/read/JSONtoThreeDinstance.py
<filename>src/ortec/scientific/benchmarks/loadbuilding/instance/read/JSONtoThreeDinstance.py from .BaseToThreeDinstance import BaseToThreeDinstance from ...common.utils import bool_cast import json class JSONtoThreeDinstance(BaseToThreeDinstance): @staticmethod def safeFindRoot(filename="", text=""): ...
gamekonglee/zongshuo
app/src/main/java/bc/zongshuo/com/ui/view/PullUpToLoadMore.java
<gh_stars>0 package bc.zongshuo.com.ui.view; import android.content.Context; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.VelocityTracker; import android.view.View; import android.view.ViewConfiguration; import android.view.ViewGroup; import android.widget.Scroller; /** * Cr...
almartin82/bayeslite
tests/test_macro.py
<reponame>almartin82/bayeslite # -*- coding: utf-8 -*- # Copyright (c) 2010-2016, MIT Probabilistic Computing 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:/...
HostaPlantain/Floricraft2
src/main/java/com/hosta/Floricraft2/mod/Baubles/ModuleBaubles.java
<gh_stars>1-10 package com.hosta.Floricraft2.mod.Baubles; import com.hosta.Floricraft2.mod.Baubles.item.CharmSachet; import com.hosta.Floricraft2.module.IModule; import com.hosta.Floricraft2.module.IModuleRecipe; import com.hosta.Floricraft2.module.ModuleCrops; import com.hosta.Floricraft2.module.ModuleFragrances; im...
timoles/codeql
javascript/ql/test/library-tests/RegExp/CharacterRange/tst.js
<reponame>timoles/codeql<filename>javascript/ql/test/library-tests/RegExp/CharacterRange/tst.js var reg1 = /[w-z]/; // normal range w-z, matches: wxyz var reg2 = /[\w]/; // escape class, same as \w. var reg3 = /[\w-z]/; // escape class \w and "-" and "z", same as [a-zA-Z0-9\-z] var reg4 = /[\w-\w]/; // escape class \w ...
dmitryvinn/fatal
fatal/type/impl/cat.h
/* * Copyright (c) 2016, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #ifndef FATAL_...
Ronsor/jangle-server
user.go
package main import ( "fmt" "strings" "math/rand" "crypto/md5" "path" "time" jwt "jangled/sjwt" "jangled/util" "github.com/bwmarrin/snowflake" "github.com/globalsign/mgo/bson" "github.com/valyala/fasthttp" ) // User flags const ( USER_FLAG_NONE = 0 USER_FLAG_STAFF = 1 << 0 USER_FLAG_PAR...
Bloodknight/NeuTorsion
code/wxWidgets/include/wx/msw/ole/dropsrc.h
/////////////////////////////////////////////////////////////////////////////// // Name: ole/dropsrc.h // Purpose: declaration of the wxDropSource class // Author: <NAME> // Modified by: // Created: 06.03.98 // RCS-ID: $Id: dropsrc.h,v 1.21 2004/08/16 12:45:40 ABX Exp $ // Copyright: (c) 1998...
peerigon/nodeclass
lib/bundlers/index.js
"use strict"; // run code in ES5 strict mode exports.webpack = require("./webpack.js");
hugolribeiro/hackerrank_exercises
problem_solving/warmup/solve_me_first/aut_tests.py
<filename>problem_solving/warmup/solve_me_first/aut_tests.py from main import solveMeFirst # Test 1 a1 = 2 b1 = 3 result1 = solveMeFirst(a1, b1) answer1 = 5 if result1 == answer1: print(f'Test number 1 \nExpected Output: {answer1}\nThe output: {result1} \n\033[0;32;1mTest OK\033[m') else: print(f'Test number ...
coreywagehoft/kuma
pkg/plugins/resources/k8s/native/api/v1alpha1/mesh_insight_types.go
package v1alpha1 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // MeshInsightSpec defines the observed state of Mesh type MeshInsightSpec = map[string]interface{} // MeshInsight is the Schema for the Mesg Insights API type MeshInsight struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:...
egovernment/eregistrations
model/business-process-new/costs.js
// BusinessProcess costs resolution 'use strict'; var memoize = require('memoizee/plain') , definePercentage = require('dbjs-ext/number/percentage') , defineCurrency = require('dbjs-ext/number/currency') , defineUInteger = require('dbjs-ext/number/integer/u-integer') , defineM...
ssteo/webrecorder
frontend/src/components/controls/SidebarListViewerUI/renderers.js
<gh_stars>1000+ import React from 'react'; import { untitledEntry } from 'config'; import { buildDate } from 'helpers/utils'; import { Collection } from 'components/icons'; export function PageIndex({ rowIndex }) { return <div className="row-index">{rowIndex + 1}</div>; } export function BookmarkRenderer({ cell...
mgpavlov/SoftUni
Java/Java Fundamentals/02.Java OOP Basics - Jun 2018/01.02.Exercise Defining Classes/src/p08PokemonTrainer2/Main.java
<gh_stars>1-10 package p08PokemonTrainer2; import p08PokemonTrainer2.Trainer; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.LinkedHashMap; import java.util.Map; public class Main { private static final String END_OF_LINES = "Tournament"; privat...
screwjack/nemesis
wxWidgets-3.1.0/tests/testprec.h
#ifndef WX_TESTPREC_INCLUDED #define WX_TESTPREC_INCLUDED 1 #include "wx/wxprec.h" #include "wx/stopwatch.h" #include "wx/evtloop.h" #include "wx/cppunit.h" // Custom test macro that is only defined when wxUIActionSimulator is available // this allows the tests that do not rely on it to run on platforms that don't //...
amc8391/mage
Mage.Server.Plugins/Mage.Tournament.BoosterDraft/src/mage/tournament/cubes/VintageCubeApril2020.java
package mage.tournament.cubes; import mage.game.draft.DraftCube; public class VintageCubeApril2020 extends DraftCube { public VintageCubeApril2020() { super("MTGO Vintage Cube April 2020"); cubeCards.add(new CardIdentity("Kytheon, Hero of Akros", "")); cubeCards.add(new CardIdentity("Mot...
johnrobertdelinila/harmony_capstone
app/src/main/java/com/capstone/harmony/adapters/PostPhotosAdapter.java
package com.capstone.harmony.adapters; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.animation.AnimatorSet; import android.animation.ObjectAnimator; import android.annotation.SuppressLint; import android.app.Activity; import android.content.Context; import...
varunswarup0/vehica
src/views/Pages/SignUp/src/screens/Signup.js
<reponame>varunswarup0/vehica import React, { useState, useEffect } from "react"; import Container from "../components/Container"; import PasswordConfirm from "../components/PasswordConfirm"; import EmailPhoneInput from "../components/EmailPhoneInput"; import PrimaryButton from "../components/PrimaryButton"; import Soc...
ShyamNandanKumar/coding-ninja2
3_stl/14_unique_chars.cpp
<filename>3_stl/14_unique_chars.cpp // Given a string, you need to remove all the duplicates. That means, the output string should contain each character only once. The respective order of characters should remain same. #include<iostream> #include<map> using namespace std; char* uniqueChar(char *str){ map<char,int> ...
ErnoW/react-nanodegree-readable
src/utils/api.js
import { schema, normalize } from 'normalizr' const API_ROOT = 'http://localhost:3001' const headers = { Authorization: 'RANDOM_TOKEN' } // Define schemes by using normalizr. see: https://github.com/paularmstrong/normalizr const postSchema = new schema.Entity( 'posts', {}, { idAttribute: 'id', }, ) const...