repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
gaizkadc/public-api
cmd/public-api-cli/commands/variables.go
/* * Copyright 2020 Nalej * * 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...
mkrmpotic/SignMeApp
src/eu/signme/app/api/response/LoginResponse.java
<filename>src/eu/signme/app/api/response/LoginResponse.java package eu.signme.app.api.response; public class LoginResponse { private String token; private String name; private int id; private int beers; public String getToken() { return this.token; } public void setToken(String token) { this.token = token...
jmswen/eden
eden/fs/utils/test/LazyInitializeTest.cpp
<gh_stars>0 /* * Copyright (c) 2018-present, 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....
markovandooren/jnome
src/org/aikodi/java/tool/Tool.java
package org.aikodi.java.tool; public abstract class Tool { public Tool(String name) { _name = name; } /** * Execute this tool with the given arguments. * * @param arguments The arguments for this tool. * The array cannot be null. */ public abstract void execute(String[] arguments);...
testuser-aj/temptest
gcloud-java-core/src/main/java/com/google/gcloud/AuthCredentials.java
/* * Copyright 2015 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
nicknameismos/coffeehub-server
modules/categoryshops/client/config/categoryshops.client.routes.js
(function () { 'use strict'; angular .module('categoryshops') .config(routeConfig); routeConfig.$inject = ['$stateProvider']; function routeConfig($stateProvider) { $stateProvider .state('categoryshops', { abstract: true, url: '/categoryshops', template: '<ui-view/>'...
haojunliu/OpenFPGA
vtr/toro/TAS_ArchitectureSpec/TAS_TimingDelay.cxx
//===========================================================================// // Purpose : Method definitions for the TAS_TimingDelay class. // // Public methods include: // - TAS_TimingDelay_c, ~TAS_TimingDelay_c // - operator= // - operator==, operator!= // - Print ...
Bortize/42Madrid
Ecole/cub3d/aborboll/libft/srcs/ft_get_next_line/get_next_line.c
<reponame>Bortize/42Madrid<filename>Ecole/cub3d/aborboll/libft/srcs/ft_get_next_line/get_next_line.c<gh_stars>10-100 /* ************************************************************************** */ /* */ /* ...
prasadkovai/elasticshell
src/main/java/org/elasticsearch/shell/client/builders/cluster/ClusterRerouteRequestBuilder.java
<gh_stars>10-100 /* * Licensed to <NAME> (the "Author") under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Elastic Search licenses this * file to you under the Apache License, Version 2.0 (the * "License...
arraycto/qshop_bbc
java后台代码/qshop-core/src/main/java/co/lq/modules/shop/rest/StoreCollectController.java
<filename>java后台代码/qshop-core/src/main/java/co/lq/modules/shop/rest/StoreCollectController.java package co.lq.modules.shop.rest; import co.lq.aop.log.Log; import co.lq.modules.shop.domain.StoreCollect; import co.lq.modules.shop.service.StoreCollectService; import co.lq.modules.shop.service.dto.StoreCollectQueryCriteri...
henrymliu/UBC-Thunderbots-Software
src/firmware/test/unit_tests/quadratic_test.c
<filename>src/firmware/test/unit_tests/quadratic_test.c<gh_stars>0 #include "main/util/quadratic.h" #include <math.h> #include "check.h" #include "test.h" // This is an M matrix that is used for multiple tests // It is primarily related to the Q matrix from the optimization // where Q = M.T * M static float M[3][4] ...
arturopala/agents-external-stubs
app/uk/gov/hmrc/agentsexternalstubs/controllers/SsoDomainController.scala
<reponame>arturopala/agents-external-stubs<filename>app/uk/gov/hmrc/agentsexternalstubs/controllers/SsoDomainController.scala /* * Copyright 2021 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obt...
cljohnso/terracotta-platform
lease/entity-common/src/test/java/org/terracotta/lease/LeaseReconnectDataTest.java
/* * Copyright Terracotta, 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 ...
isuhao/ravl2
RAVL2/MSVC/include/Ravl/PatternRec/ClassifierAverageNearestNeighbour.hh
#include "../.././PatternRec/Classify/ClassifierAverageNearestNeighbour.hh"
osidorkin85/nno
backend/n2o/n2o-test/src/test/java/net/n2oapp/framework/test/TestRedisConfiguration.java
package net.n2oapp.framework.test; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration; import org.springframework.boot.test.context.TestConfiguration; import org.springframework.context.annotation.Import; import redis.embedded.Redi...
ch1huizong/Scode
stdlib3-src/textwrap.py
<filename>stdlib3-src/textwrap.py """Text wrapping and filling. """ # Copyright (C) 1999-2001 <NAME>. # Copyright (C) 2002, 2003 Python Software Foundation. # Written by <NAME> <<EMAIL>> import re __all__ = ['TextWrapper', 'wrap', 'fill', 'dedent', 'indent', 'shorten'] # Hardcode the recognized whitespace character...
yuigoto/angularjs-boilerplate
src/js/dummy/DummyController.js
/** * Dummy/Dummy.Controller * ---------------------------------------------------------------------- * Descrição. * * @type {angular.Module.controller} * @author <NAME> <<EMAIL>> * @since 0.0.1 */ Dummy.controller("DummyController", DummyController); // DI DummyController.$inject = ["$scope", "$http", ...
sijo4123/SSHygieia
api-audit/src/main/java/com/capitalone/dashboard/response/DashboardReviewResponse.java
<reponame>sijo4123/SSHygieia<filename>api-audit/src/main/java/com/capitalone/dashboard/response/DashboardReviewResponse.java package com.capitalone.dashboard.response; import java.util.List; public class DashboardReviewResponse extends AuditReviewResponse { private String dashboardTitle; List<PeerReviewRespo...
all3g/pieces
misc/ig/ig/ig.py
#!/usr/bin/python # -*- coding: utf-8 -*- from optparse import OptionParser from optparse import OptionGroup from optparse import OptionError import sys from idns import idns from webspider_domain import baidu_domain_spider from webspider_domain import bing_domain_spider from webspider_domain import yahoo_domain_spide...
huahang/incubator-nuttx
boards/arm/stm32/nucleo-l152re/include/board.h
/**************************************************************************** * boards/arm/stm32/nucleo-l152re/include/board.h * include/arch/board/board.h * * Copyright (C) 2018 <NAME>. All rights reserved. * Author: <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * ...
lavishabhambri/Weekly-Algo-Newsletter
Number Theory/Codes/Bitwise/findUniqueAmongArrayOfTriplets.cpp
<filename>Number Theory/Codes/Bitwise/findUniqueAmongArrayOfTriplets.cpp #include <bits/stdc++.h> using namespace std; #define INT_SIZE 32 int getSingle(vector<int>arr, int n) { // Initialize result int result = 0; int x, sum; // Iterate through every bit for (int i = 0; i < INT_SIZE; i++) { ...
senRsl/AndroidRtmpPublisher
rtmpPublisher/app/src/main/java/com/spark/live/PreviewActivity.java
package com.spark.live; import android.app.Activity; import android.content.Intent; import android.content.res.Configuration; import android.os.Bundle; import android.view.SurfaceHolder; import android.view.SurfaceView; import android.view.View; import android.widget.Button; import android.widget.Toast; import com.spa...
laaners/progetto-labiagi_pick_e_delivery
catkin_ws/src/srrg2_core/srrg2_core/src/srrg_messages/messages/navsat_fix_message.h
<reponame>laaners/progetto-labiagi_pick_e_delivery #pragma once #include "base_sensor_message.h" #include <srrg_property/property_eigen.h> namespace srrg2_core { class NavsatFixMessage : public BaseSensorMessage { public: EIGEN_MAKE_ALIGNED_OPERATOR_NEW //! @brief confortable enums enum FixStatus : i...
IBMStreams/vscode-ide
src/webviews/cloudPakForDataAppService/resources/data-table/components/Table/Table.js
<filename>src/webviews/cloudPakForDataAppService/resources/data-table/components/Table/Table.js import { Add16, NotSent16, Save16, Send16, SendAlt16, TrashCan16 } from '@carbon/icons-react'; import { Button, DataTable, DataTableSkeleton, Dropdown, ListItem, Loading, Modal, Table, TableBatc...
emayer2/dataverse
src/main/java/edu/harvard/iq/dataverse/export/DDIExporter.java
<gh_stars>1-10 package edu.harvard.iq.dataverse.export; import com.google.auto.service.AutoService; import edu.harvard.iq.dataverse.DatasetVersion; import edu.harvard.iq.dataverse.export.ddi.DdiExportUtil; import edu.harvard.iq.dataverse.export.spi.Exporter; import edu.harvard.iq.dataverse.util.BundleUtil; import edu...
xiaobing007/dagli
math-vector/src/main/java/com/linkedin/dagli/math/vector/LazyClippedVector.java
<filename>math-vector/src/main/java/com/linkedin/dagli/math/vector/LazyClippedVector.java package com.linkedin.dagli.math.vector; /** * Lazily clips a vector's values; the clipping range must include 0 (to be consistent with the semantics of a vector-- * otherwise there would be an infinite number of non-zero elemen...
harigad/Car_Keys_UI
app/controllers/poll/poll_profile/poll_profile.js
<gh_stars>0 var login = require('Login'); var _colors = ["#990000"]; var args = arguments[0] || {}; var _data = args._data || {}; var poll_data = JSON.parse(_data.data); $.question.setText(poll_data.question); load(); $.header.openWindow($.poll_profile); function load(created){ var url = Alloy.Globals._...
SeanTBooker/edgefs
src/ccow/test/cmcache_test.c
<reponame>SeanTBooker/edgefs<gh_stars>10-100 /* * Copyright (c) 2015-2018 Nexenta Systems, inc. * * This file is part of EdgeFS Project * (see https://github.com/Nexenta/edgefs). * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distr...
alashworth/stan-monorepo
src/stan/language/generator/generate_program_reader_fun.hpp
<reponame>alashworth/stan-monorepo #ifndef STAN_LANG_GENERATOR_GENERATE_PROGRAM_READER_FUN_HPP #define STAN_LANG_GENERATOR_GENERATE_PROGRAM_READER_FUN_HPP #include "constants.hpp" #include <stan/util/io/program_reader.hpp> #include <ostream> #include <vector> namespace stan { namespace lang { /** * Generate a top-l...
AMS21/PreyRun
src/Prey/ai_mutate.h
<filename>src/Prey/ai_mutate.h #ifndef __PREY_AI_MUTATE_H__ #define __PREY_AI_MUTATE_H__ #ifndef ID_DEMO_BUILD //HUMANHEAD jsh PCF 5/26/06: code removed for demo build class hhMutate : public hhMonsterAI { public: CLASS_PROTOTYPE(hhMutate); protected: void Event_OnProjectileLaunch(hhProjectile *proj); void LinkScr...
sklinkert/at
internal/trader/trader.go
<filename>internal/trader/trader.go package trader import ( "context" "errors" "fmt" "github.com/shopspring/decimal" log "github.com/sirupsen/logrus" "github.com/sklinkert/at/internal/broker" "github.com/sklinkert/at/internal/strategy" "github.com/sklinkert/at/pkg/ohlc" "github.com/sklinkert/at/pkg/tick" "go...
lan-mao/ComputerWorld
Study_Old/TacoCloud/src/main/java/top/lan_mao/tacocloud/jdbc/IngredientRepository.java
<reponame>lan-mao/ComputerWorld<filename>Study_Old/TacoCloud/src/main/java/top/lan_mao/tacocloud/jdbc/IngredientRepository.java<gh_stars>1-10 package top.lan_mao.tacocloud.jdbc; import top.lan_mao.tacocloud.data.Ingredient; /** * Create Date 2021/04/20 18:33:04 <br> * * @author lan-mao.top <br> * @version 1.0 * ...
MikeAmy/django
tests/update_only_fields/models.py
<filename>tests/update_only_fields/models.py from django.db import models from django.utils.encoding import python_2_unicode_compatible GENDER_CHOICES = ( ('M', 'Male'), ('F', 'Female'), ) class Account(models.Model): num = models.IntegerField() @python_2_unicode_compatible class Person(models.Model):...
poanchen/azure-sdk-for-ruby
data/azure_cognitiveservices_textanalytics/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/entity_record.rb
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::CognitiveServices::TextAnalytics::V2_1 module Models # # Model object. # # class EntityRecord include MsRestAzure...
myoo/sabatora
spec/routing/communities/joinings_routing_spec.rb
<gh_stars>1-10 require "rails_helper" RSpec.describe Communities::JoiningsController, :type => :routing do describe "routing" do end end
ECLAIRWaveS/ForestClaw
src/solvers/fc2d_cudaclaw/fc2d_cudaclaw_fort.h
/* Copyright (c) 2012 <NAME>, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following d...
jeanleflambeur/silkopter
silkopter/libs/common/node/IGenerator.h
#pragma once #include "common/node/INode.h" namespace silk { namespace node { class IGenerator : public Node_Base<Type::GENERATOR> { public: }; } }
f4k-73/adventofcode21
scala/eeedean/src/main/scala/de/edean/aoc2021/day6/Day6.scala
<filename>scala/eeedean/src/main/scala/de/edean/aoc2021/day6/Day6.scala<gh_stars>1-10 package de.edean.aoc2021.day6 import scala.io.Source import scala.language.postfixOps import scala.collection.parallel.CollectionConverters._ object Day6 extends App { val INPUT_PATH = if (System.getProperty("os.name").startsWith(...
flipkart-incubator/spark-transformers
adapters-1.6/src/main/java/com/flipkart/fdp/ml/utils/Constants.java
package com.flipkart.fdp.ml.utils; import java.io.Serializable; public class Constants implements Serializable { public static final String SUPPORTED_SPARK_VERSION_PREFIX = "1.6"; public static final String LIBRARY_VERSION = "1.0"; }
project-zerus/cpp-netlib
message/src/network/message/message.ipp
// Copyright 2011 <NAME> (<EMAIL>). // Copyright 2011 Google, Inc. // 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 NETWORK_MESSAGE_IPP_20111020 #define NETWORK_MESSAGE_IPP_20111020 #include <iterator> #...
shgysk8zer0/std-js
polyfills/classes/CSS.js
export default class { static supports(prop, value) { var el = document.createElement('div'); el.style = prop + ':' + value; return (getComputedStyle(el)[prop] === value); } static escape(value) { var string = String(value), length = string.length, index = -1, codeUnit, result = '', firstCodeUnit = string....
EasySolutionsIO/DevExtreme
testing/tests/DevExpress.ui.widgets/loadPanel.tests.js
var $ = require("jquery"), hideTopOverlayCallback = require("mobile/hide_top_overlay").hideCallback, keyboardMock = require("../../helpers/keyboardMock.js"), fx = require("animation/fx"); require("common.css!"); require("ui/load_panel"); QUnit.testStart(function() { var markup = '<div id="quni...
vincenttran-msft/azure-sdk-for-python
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2015_04_01/models/__init__.py
<gh_stars>1-10 # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator....
nermeen100/domino-mvp
domino-apt/apt-client/src/test/resources/org/dominokit/domino/apt/client/SomeResponse.java
package org.dominokit.domino.apt.client; import org.dominokit.domino.api.shared.request.ResponseBean; public class SomeResponse implements ResponseBean { }
aj148/slogo
src/view/panes/InputPaneModule.java
<gh_stars>0 package view.panes; import javafx.event.EventHandler; import javafx.scene.control.Button; import javafx.scene.control.ScrollPane; import javafx.scene.control.TextField; import javafx.scene.input.KeyCode; import javafx.scene.input.KeyEvent; import javafx.scene.layout.BorderPane; import javafx.scene.layout.H...
tetrafolium/apps-android-wikipedia
app/src/main/java/org/wikipedia/random/RandomItemFragment.java
package org.wikipedia.random; import android.net.Uri; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.text.TextUtils; import android.view.LayoutInflater; import android.view.View; import android.view...
Acidburn0zzz/test262
test/built-ins/Atomics/compareExchange/non-views.js
<gh_stars>1-10 // Copyright (C) 2017 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- description: > Test Atomics.compareExchange on view values other than TypedArrays includes: [testAtomics.js] ---*/ testWithAtomicsNonViewValues(function(view) ...
comprakt/comprakt-fuzz-tests
output/9f5c5d2450434ab296e540be02f1252e.java
class c43UqVPUKGw { public static void VyOEN (String[] y) throws So4c9Rnj { boolean TL9xS9aGrY; while ( !50[ --( MZ3J0OM8h1v()[ false[ -!-!new v[ -tO.WXQa].cvW()]])[ true[ null[ ( ANqR8.OyFxe0d7c5w).Ln3vjOJmRsLta()]]]]) { if ( --!910.dpVqAC2g6HTa1()) while ( 768643871.E24k8NO835mb()) if...
lina128/ikelab-studio
tests/routes/Design/containers/Trash.spec.js
<filename>tests/routes/Design/containers/Trash.spec.js import React from 'react' import { shallow } from 'enzyme' import { Trash } from 'routes/Design/containers/Trash' describe('(Design/contianers) Trash', () => { let _wrapper beforeEach(() => { _wrapper = shallow(<Trash />) }) it('Should render as a di...
HugoFdezVega/reservasAulas-v3
src/main/java/org/iesalandalus/programacion/reservasaulas/mvc/controlador/IControlador.java
package org.iesalandalus.programacion.reservasaulas.mvc.controlador; import java.util.List; import javax.naming.OperationNotSupportedException; import org.iesalandalus.programacion.reservasaulas.mvc.modelo.dominio.Aula; import org.iesalandalus.programacion.reservasaulas.mvc.modelo.dominio.Permanencia; import...
Tanc009/jdcloud-sdk-nodejs
src/repo/domainservice/v2/domainservice.js
/* * Copyright 2018 JDCLOUD.COM * * 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...
AbelRapha/Python-Exercicios-CeV
Mundo 2/ex065 Maior ou Menor valor.py
<gh_stars>0 decisao = '' lista_numeros = [] while(decisao != "N"): num = input("Digite um numero ") decisao = input("Quer continuar? [S/N] ").strip().upper() lista_numeros.append(num) if decisao not in "N": continue else: break #convertendo lista de numeros para todos os elementos do tipo i...
AndreiKononov/ui-orders
src/settings/OrderTemplates/OrderTemplatesEditor/POLineVendorForm/POLineVendorForm.js
import React from 'react'; import PropTypes from 'prop-types'; import { Row, Col, } from '@folio/stripes/components'; import { FieldRefNumberType, FieldVendorRefNumber, FieldVendorInstructions, FieldVendorAccountNumber, } from '../../../../common/POLFields'; const POLineVendorForm = ({ accounts }) => { ...
Rishabh570/flipit
src/config/vars.js
'use-strict'; // import .env variables require('dotenv-safe').config(); const { env } = process; // this has ".env" keys & values const MULTER_UPLOAD_DEST = `${__dirname}/../../uploads`; module.exports = { env: env.NODE_ENV, BASE_URL: env.BASE_URL, port: env.PORT, JWT_SECRET: env.JWT_SECRET, JWT_EXPIRATION_MINUT...
comprakt/comprakt-fuzz-tests
output/d9613aeb6b154d23a05ec3bdf99e1e72.java
<filename>output/d9613aeb6b154d23a05ec3bdf99e1e72.java class iP9 { } class pucvtwOVgxM { public static void POTPd6yTw_nJdK (String[] rTqtEuf) { ; int[][] RpFaD = false.EoeeSB(); ; ; boolean[] _xcT3nMh_uDKT; --new yw7n().M7(); int[][][] NOVU18Evf = false.t...
mariapesm/myyna
public/default/js/plugins.js
// Avoid `console` errors in browsers that lack a console. (function() { var method; var noop = function() { }; var methods = [ 'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 'markTimeline'...
viyadb/viyadb
src/cluster/query/load_runner.cc
/* * Copyright (c) 2017-present ViyaDB Group * * 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 ...
Kirk-Wang/Hello-Go
__before/history/17.4/crawler/scheduler/simple.go
package scheduler import ( "github.com/Kirk-Wang/Hello-Gopher/history/17.4/crawler/engine" ) type SimpleScheduler struct { workerChan chan engine.Request } func (s *SimpleScheduler) WorkerReady(w chan engine.Request) {} func (s *SimpleScheduler) WorkerChan() chan engine.Request { return s.workerChan } func (s *...
cuiyuemin365/books
HowTomcatWorks/HowTomcatWorks/tomcat/4/4.1.12/jakarta-tomcat-connectors-4.1.12-src/jk/native2/include/jk_uriMap.h
/* ========================================================================= * * * * The Apache Software License, Version 1.1 * * * ...
HappyHippyHippo/gapp
migration/provider_test.go
package migration import ( "github.com/DATA-DOG/go-sqlmock" "github.com/golang/mock/gomock" "github.com/happyhippyhippo/gapp" "github.com/happyhippyhippo/gapp/config" "github.com/happyhippyhippo/gapp/rdb" "github.com/pkg/errors" "gorm.io/driver/mysql" "gorm.io/gorm" gormLogger "gorm.io/gorm/logger" "os" "te...
truthiswill/intellij-community
java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting8/IDEA78402.java
<filename>java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting8/IDEA78402.java import java.util.Collection; import java.util.List; class Reference<T> {} class Bug { private static <T> void foo(List<T> x, Reference<String> y) { System.out.println(x); } private static <T> void foo(Col...
S-Coyle/safe-web-hosting-manager-electron
app/actions/public_names.js
/** * Actions handling Public Names */ /* eslint-disable import/no-named-as-default-member, import/no-named-as-default */ import api from '../safenet_comm/api'; /* eslint-enable import/no-named-as-default-member, import/no-named-as-default */ import ACTION_TYPES from './action_types'; /** * check can access service...
jseward/solar
src/solar_platforms/d3d9/d3d9_mesh_vertex.h
<reponame>jseward/solar #pragma once #include "solar/utility/type_convert.h" namespace solar { class d3d9_mesh_vertex { public: float _px; float _py; float _pz; float _nx; float _ny; float _nz; float _u_0; float _v_0; float _tx; float _ty; float _tz; float _binormal_sign; uint8_t _bone_in...
Randy-Hodges/ZooCollect
scripts/characters/companions/companion_class.js
<reponame>Randy-Hodges/ZooCollect<gh_stars>1-10 var companionGroup; var piggyUnlocked = false; var froggyUnlocked = false; var slimeUnlocked = false; Companion = function(game, spritesheetStrID, x = gameWidth/2, y = gameHeight/2, followOn = false, isEquipped = false){ // instantiate Sprite object Phaser....
ORNL-QCI/armish-fireplace
module/brazil/proc_unit/lcc_and_fpga.cpp
#include "lcc_and_fpga.hpp" #include <boost/asio.hpp> #include <boost/bind.hpp> #include <boost/program_options.hpp> #include <boost/tokenizer.hpp> namespace module { namespace brazil { namespace proc_unit { lcc_and_fpga::lcc_and_fpga() : controller0(0), controller1(0), isReceiving(false) { } lcc_...
cesswairimu/WebsiteOne
features/support/capybara.rb
Capybara.register_driver :poltergeist do |app| Capybara::Poltergeist::Driver.new(app, js_errors: false, phantomjs: Phantomjs.path, phantomjs_options: ['--ssl-protocol=tlsv1.2', '--ignore-ssl-errors=yes']) end test_options = { phantomjs_opti...
sbellware/test-bench
test/automated/output/session/errors/file.rb
require_relative '../../../automated_init' context "Output" do context "Session" do context "Errors" do context "File" do path = Controls::TestFile.example error = Controls::Error.example output = Output::Session.new Output::PrintError.configure(output, writer: output.wri...
clementleger/pocl
include/pocl_file_util.h
<filename>include/pocl_file_util.h /* pocl_file_util.h: global declarations of portable file utility functions defined in lib/llvmopencl, due to using llvm::sys::fs & other llvm APIs Copyright (c) 2015 pocl developers Permission is hereby granted, free of charge, to any person obtaining a copy of this sof...
yadickson/flex-debs
core/src/main/java/flex/messaging/io/amf/ActionContext.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
renesas/rx-driver-package
source/r_comms_i2c_rx/r_comms_i2c_rx_vx.xx/r_comms_i2c_rx/inc/instances/rm_comms_i2c.h
<reponame>renesas/rx-driver-package<gh_stars>1-10 /*********************************************************************************************************************** * DISCLAIMER * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No * other uses are ...
DanielGuoVT/symsc
cloud9_root/src/cloud9/lib/Core/Threading.cpp
/* * Cloud9 Parallel Symbolic Execution Engine * * Copyright (c) 2011, Dependable Systems Laboratory, EPFL * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source...
chi-sea-lions-2015/house-rules-frontend2
node_modules/gulp-jest/node_modules/jest-cli/node_modules/node-haste/lib/ResourceMapSerializer.js
/** * Copyright 2013 Facebook, 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 ...
Ashwanigupta9125/code-DS-ALGO
Data Structures/Arrays/9. String Compression.cpp
#include<iostream> #include<cstring> #include<cstdlib> using namespace std; string compressIt(string s){ char a[1000]; int j=0; string s2; int len = s.length(); int i; for(i=0;i<len;){ char current = s[i]; int count=1; while(s[i]==s[++i]){ count++; } s2.push_back(current); char cnt = (char)(((int)'0')+count); s2.push...
Arthur-San/Desenvolvimento-de-sistemas-web-III
Aulas/Aula16ArrayList/src/aula16arraylist/ListaCompras.java
/* Criar um programa em Java que consiste em uma lista de compras: 1 - Adicionar itens na lista de compras; 2 - Consultar itens pelo seu índice; 3 - Alterar itens da Lista de compras; 4 - Exibir o tamanho da lista de compras; 5 - Remover itens da lista de compras; 6 - Classificar em ordem alfabética 7 - Limpar a lista...
Sphinx-Society/kaizen-web-client
src/client/utils/date.js
<reponame>Sphinx-Society/kaizen-web-client export const getStringFromDate = (date) => { if (date instanceof Date === false) { return null; } const yyyy = date.getFullYear(); let dd = date.getDate(); let mm = date.getMonth() + 1; if (dd < 10) { dd = `0${dd}`; } if (mm < 10) { mm = `0${mm}`; } retur...
marcus8448/Mekanism
Mekanism-Additions/src/main/java/mekanism/additions/client/render/entity/RenderObsidianTNTPrimed.java
package mekanism.additions.client.render.entity; import javax.annotation.Nonnull; import mekanism.additions.common.entity.EntityObsidianTNT; import mekanism.additions.common.registries.AdditionsBlocks; import net.minecraft.client.render.VertexConsumerProvider; import net.minecraft.client.render.entity.EntityRenderDisp...
LZ0211/eReader
node_modules/Wedge-eBooks/lib/htmlz/html.js
<reponame>LZ0211/eReader function encode(str){ str = String(str) || ""; return str.replace(/&/g,"&amp;") .replace(/</g,"&lt;") .replace(/>/g,"&gt;") .replace(/'/g,"&#39;") .replace(/"/g,"&quot;"); } function html(book){ var array = [ '<html>', ' <head>', ' <meta...
targetsm/dace
samples/simple/ddot.py
<reponame>targetsm/dace # Copyright 2019-2020 ETH Zurich and the DaCe authors. All rights reserved. from __future__ import print_function import argparse import dace import numpy as np N = dace.symbol("N") @dace.program def dot(A: dace.float32[N], B: dace.float32[N], out: dace.float64[1]): @dace.map def pro...
Ruil1n/themis
src/main/java/dangod/themis/model/po/common/Inform.java
package dangod.themis.model.po.common; import javax.persistence.*; import java.sql.Timestamp; import java.util.Calendar; @Entity @Table(name = "common_inform") public class Inform { @Id @GeneratedValue private Long id; @Column(length = 100) private String title; @Column(length = 6000) priv...
tobiasheine/BitcoinWatcher
wear/src/main/java/eu/tobiasheine/bitcoinwatcher/price_sync/Storage.java
<reponame>tobiasheine/BitcoinWatcher package eu.tobiasheine.bitcoinwatcher.price_sync; import android.content.Context; import android.content.SharedPreferences; import eu.tobiasheine.bitcoinwatcher.core.domain.BitcoinPrice; import eu.tobiasheine.bitcoinwatcher.core.domain.Currency; public class Storage { privat...
scm-manager/scm-review-plugin
src/main/java/com/cloudogu/scm/review/comment/api/MentionMapper.java
<reponame>scm-manager/scm-review-plugin<gh_stars>1-10 /* * MIT License * * Copyright (c) 2020-present Cloudogu GmbH and Contributors * * 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 w...
itssundeep/presto
presto-parquet/src/main/java/com/facebook/presto/parquet/writer/ColumnChunk.java
<filename>presto-parquet/src/main/java/com/facebook/presto/parquet/writer/ColumnChunk.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...
npmcomponent/josdejong-mathjs
test/function/utils/clone.test.js
var assert = require('assert'), error = require('../../../lib/error/index'), math = require('../../../index')(); describe('clone', function() { it('should clone a number', function() { var a = 1; var b = math.clone(a); a = 2; assert.strictEqual(b, 1); }); it('should throw an error on wr...
mr-bammby/42_WB_2022_Minishell
srcs/ft_utils_join.c
<reponame>mr-bammby/42_WB_2022_Minishell /* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_utils_join.c ...
MacHundt/e4_MP
src/impl/JungGraphTEST1.java
package impl; import java.awt.Color; import java.awt.Dimension; import java.awt.event.FocusEvent; import java.awt.event.FocusListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import javax.swing.JApplet; import javax.swing.SwingUtilities; import org.p...
akshaybahadur21/Emancipitaion-of-Apache-Spark
Basics/src/main/java/SparkSQL/_09_DataFrames.java
package SparkSQL; import org.apache.log4j.Level; import org.apache.log4j.Logger; import org.apache.spark.sql.Dataset; import org.apache.spark.sql.Row; import org.apache.spark.sql.SparkSession; import org.apache.spark.sql.types.DataTypes; import static org.apache.spark.sql.functions.*; import java.util.Scanner; publ...
teddywen/leetcode
leetcode_395.go
/* https://leetcode-cn.com/problems/longest-substring-with-at-least-k-repeating-characters/ */ package main import "fmt" func main() { var ( s = "aaabb" k = 3 //s = "ababbc" //k = 2 //s = "ababacb" //k = 3 ) fmt.Printf("%d", longestSubstring(s, k)) } // 分治 func longestSubstring(s string, k int) int { ...
ngageoint/mrgeo
mrgeo-dataprovider/mrgeo-dataprovider-mbvectortiles/src/main/java/org/mrgeo/data/vector/mbvectortiles/MbVectorTilesRecordReader.java
<reponame>ngageoint/mrgeo<filename>mrgeo-dataprovider/mrgeo-dataprovider-mbvectortiles/src/main/java/org/mrgeo/data/vector/mbvectortiles/MbVectorTilesRecordReader.java<gh_stars>100-1000 /* * Copyright 2009-2017. DigitalGlobe, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not u...
bio-hpc/metascreener
MetaScreener/external_sw/mgltools/MGLToolsPckgs/DejaVu/ShadowMap.py
# -*- coding: utf-8 -*- """ Created on Fri Aug 1 17:00:56 2014 @author: ludo """ #import the shader from opengltk.OpenGL.GL import * from opengltk.extent import _gllib,_glextlib from opengltk.extent._glextlib import * from opengltk.OpenGL.GLU import gluPerspective, gluPickMatrix, gluUnProject, gluErrorString, gluLook...
modist-io/modist-api
alembic/versions/79ee5a7a99a4_create_tag_table.py
"""Create tag table. Revision ID: 79ee5a7a99a4 Revises: <PASSWORD> Create Date: 2020-04-15 17:49:26.406297 """ import sqlalchemy as sa from sqlalchemy.dialects import postgresql from alembic import op # revision identifiers, used by Alembic. revision = "<KEY>" down_revision = "<PASSWORD>" branch_labels = None depen...
prometheas/CommunityAllyWebApp
website/ngApp/watch/manager/WatchSettingsCtrl.js
<filename>website/ngApp/watch/manager/WatchSettingsCtrl.js function WatchSettingsCtrl($http, $rootScope, $resource, SiteInfo) { var vm = this; // Test data vm.settings = {}; vm.defaultBGImage = $( document.documentElement ).css( "background-image" ); vm.showQaButton = $rootScope.userInfo.emailAdd...
renchao-lu/ogs5
FileIO/readNonBlankLineFromInputStream.cpp
/* * readNonBlankLineFromInputStream.cpp * * Created on: Apr 19, 2011 * Author: TF * \copyright * Copyright (c) 2018, OpenGeoSys Community (http://www.opengeosys.org) * Distributed under a Modified BSD License. * See accompanying file LICENSE.txt or * http://www.openg...
jeven2016/react-windy-ui
packages/docs/src/pages/tooltip/samples/Tooltip3.js
<filename>packages/docs/src/pages/tooltip/samples/Tooltip3.js import React, {useState} from 'react'; import {Button, Toggle, Tooltip} from 'react-windy-ui'; export default function Tooltip3() { const [active, setActive] = useState(true); const [locked, setLocked] = useState(true); return <> <div className="...
Team-SpoonClass/BE
src/main/java/com/likelion/spoonclass/domain/member/auth/AuthService.java
<filename>src/main/java/com/likelion/spoonclass/domain/member/auth/AuthService.java package com.likelion.spoonclass.domain.member.auth; import com.likelion.spoonclass.domain.member.Member; import com.likelion.spoonclass.domain.member.auth.token.TokenSet; import com.likelion.spoonclass.domain.member.dto.request.Request...
openvcx/openvcx
openvsx/include/server/srvfidx.h
<filename>openvsx/include/server/srvfidx.h /** <!-- * * Copyright (C) 2014 OpenVCX <EMAIL> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License,...
nlp-compromise/es-compromise
src/preTagger/plugin.js
<gh_stars>1-10 import tagger from './compute/index.js' import model from './model/index.js' import methods from './methods/index.js' export default { compute: { tagger }, model: { two: model }, methods, hooks: ['tagger'] }
belikesayantan/daily-problem-solving
LEETCODE/Medium/Longest Substring Without Repeating Characters/longestsubstring.py
def lengthOfLongestSubstring(s: str) -> int: left = length = 0 visited = dict() for pos, char in enumerate(s): if char in visited and visited[char] >= left: left = visited[char] + 1 else: length = max(length, pos - left + 1) visited[char] = pos retur...
muddessir/framework
machine/qemu/sources/u-boot/drivers/net/pic32_mdio.c
// SPDX-License-Identifier: GPL-2.0+ /* * pic32_mdio.c: PIC32 MDIO/MII driver, part of pic32_eth.c. * * Copyright 2015 Microchip Inc. * <NAME> <<EMAIL>> */ #include <common.h> #include <phy.h> #include <miiphy.h> #include <errno.h> #include <wait_bit.h> #include <asm/io.h> #include <linux/delay.h> #include "pic32_...
redoclag/plaidml
pmlc/conversion/affine_to_stripe/convert_affine_to_stripe.cc
// Copyright 2019 Intel Corporation #include "pmlc/conversion/affine_to_stripe/convert_affine_to_stripe.h" #include "pmlc/dialect/stripe/affine_poly.h" #include "pmlc/dialect/stripe/dialect.h" #include "pmlc/dialect/stripe/ops.h" #include "pmlc/dialect/stripe/util.h" #include "mlir/Dialect/AffineOps/AffineOps.h" #inc...
venosyd/opensyd_commons
src/main/java/com/venosyd/open/commons/util/JSONUtil.java
<reponame>venosyd/opensyd_commons package com.venosyd.open.commons.util; import com.google.gson.*; import com.google.gson.reflect.TypeToken; import java.lang.reflect.Type; import java.util.*; /** * @author <NAME> <<EMAIL>> * * Utilidades para tratar JSON */ public class JSONUtil { /** * objeto...