repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
MicroHealthLLC/MH_ShowPreper
src/components/styler/borderEditor/index.js
import React from 'react' import 'spectrum-colorpicker' import 'spectrum-colorpicker/spectrum.css' import DropdownList from 'react-widgets/lib/DropdownList' import './index.less' export default class extends React.Component { componentDidMount() { super.componentDidMount && super.componentDidMount() $('#sp-bo...
raphaelmue/financer
backend/org.financer.util/src/main/java/module-info.java
<reponame>raphaelmue/financer module org.financer.util { exports org.financer.util.collections; exports org.financer.util.validation; exports org.financer.util.mapping; exports org.financer.util.security; requires commons.beanutils; requires java.validation; requires modelmapper; }
devshop2019/mixlyTest
arduino/portable/sketchbook/libraries/RF24/utility/ATXMegaD3/gpio_helper.c
<filename>arduino/portable/sketchbook/libraries/RF24/utility/ATXMegaD3/gpio_helper.c /* * gpio_helper.c * * Created: 22/1/2016 15:28:48 * Author: akatran */ #include "gpio_helper.h" /** * Get the port corresponding in portnum. Default is PORTC. */ PORT_t* GPIO_getPort(int pinnum, uint8_t* pin_bm) //PORT_t * GPI...
xaque208/znet
modules/telemetry/telemetry.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.17.3 // source: modules/telemetry/telemetry.proto package telemetry import ( proto "github.com/golang/protobuf/proto" inventory "github.com/xaque208/znet/modules/inventory" protoreflect "google.golang.org/p...
HAPwebsite/Brackets-Extensions
brackets-beautify/nls/root/strings.js
define({ BEAUTIFY: 'Beautify', BEAUTIFY_ON_SAVE: 'Beautify on Save', BEAUTIFY_ON_SAVE_DESC: 'true to Beautify file on Save', PREF_BEAUTIFIERS_NAME: 'External Beautifiers', PREF_BEAUTIFIERS_DESC: 'External Beautifiers, see https://github.com/brackets-beautify/brackets-beautify#external-formatte...
FUNKVESSEL/ps_cpp_recipes
recipes/thirdparty/psapi/pica_sp/SPStrngs.h
<filename>recipes/thirdparty/psapi/pica_sp/SPStrngs.h /***********************************************************************/ /* */ /* SPStrngs.h */ /* ...
ChanTerelLy/partnerweb3
call_center/migrations/0004_auto_20191221_0324.py
# Generated by Django 2.2.1 on 2019-12-21 00:24 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('call_center', '0003_subscribers_called'), ] operations = [ migrations.AddField( model_name='subscribers', name='call...
King0987654/windows2000
private/windows/shell/snapins/devmgr/snapin/machine.cpp
<reponame>King0987654/windows2000 /*++ Copyright (C) 1997-1999 Microsoft Corporation Module Name: machine.cpp Abstract: This module implements CDevInfoList, CMachine and CMachineList Author: <NAME> (williamh) created Revision History: --*/ #include "devmgr.h" extern "C"...
YangHao666666/hawq
src/test/feature/Ranger/test_ranger.cpp
<reponame>YangHao666666/hawq /* * 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...
FabianVolkers/portfolio
homepage/portfolio/migrations/0003_project_spotlight.py
<gh_stars>0 # Generated by Django 3.0.7 on 2020-06-30 16:45 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('portfolio', '0002_auto_20200630_1631'), ] operations = [ migrations.AddField( model_name='project', name...
NCAR/sage-gateway-archive
src/main/java/sgf/gateway/service/security/impl/spring/GroupMembershipEventImpl.java
<reponame>NCAR/sage-gateway-archive<filename>src/main/java/sgf/gateway/service/security/impl/spring/GroupMembershipEventImpl.java package sgf.gateway.service.security.impl.spring; import org.springframework.context.ApplicationEvent; import sgf.gateway.model.security.Group; import sgf.gateway.model.security.User; impor...
sacloud/libsacloud-v2
sacloud/accessor/size_mb_test.go
<filename>sacloud/accessor/size_mb_test.go package accessor import ( "testing" "github.com/stretchr/testify/require" ) type dummySizeMBAccessor struct { size int } func (d *dummySizeMBAccessor) GetSizeMB() int { return d.size } func (d *dummySizeMBAccessor) SetSizeMB(size int) { d.size = size } func TestSize...
danlangford/LegendsBrowser
src/main/java/legends/model/events/CompetitionEvent.java
package legends.model.events; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; import legends.model.Entity; import legends.model.HistoricalFigure; import legends.model.Occasion; import legends.model.Schedule; import legends.model.World; import legends.model.events.basic.HfRelated...
aliyun/aliyun-tablestore-java-sdk
src/test/java/com/alicloud/openservices/tablestore/timeline/functionTest/TestTimelineService.java
<filename>src/test/java/com/alicloud/openservices/tablestore/timeline/functionTest/TestTimelineService.java<gh_stars>10-100 package com.alicloud.openservices.tablestore.timeline.functionTest; import com.alicloud.openservices.tablestore.model.ColumnValue; import com.alicloud.openservices.tablestore.model.search.SearchQ...
lgessler/cts
coptic/annis/admin.py
from django.contrib import admin from annis.models import AnnisServer admin.site.register(AnnisServer)
likewindy/FISS
src/components/model/style/Xf.js
import CellAlignment from './CellAlignment.js'; import CellProtection from './CellProtection.js'; import ExtensionList from './ExtensionList.js'; export default class Xf { constructor() { /* <xsd:complexType name="CT_Xf"> <xsd:sequence> <xsd:element name="alignment" type="CT_CellAlignmen...
pierce-m/p4c
frontends/p4/moveDeclarations.cpp
<reponame>pierce-m/p4c /* Copyright 2013-present Barefoot Networks, 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 applicabl...
kkcookies99/UAST
Dataset/Leetcode/valid/26/402.java
<reponame>kkcookies99/UAST class Solution { public int XXX(int[] nums) { if(nums==null || nums.length==0){return 0;} if(nums.length==1){return 1;} else{ int slowindex=1; for(int fastindex=1; fastindex<nums.length; fastindex++) { int fastindex_copy=fa...
heiseish/Competitive-Programming
kattis_done/abandonedanimal.cpp
// #include <bits/stdc++.h> #include <iostream> #include <vector> #include <unordered_map> #include <set> using namespace std; int inf = 1 << 30; int main() { int n, k; cin >> n >> k; // Set up data structures unordered_map<string, set<int> > m; vector<int> items; // Read in the first half o...
Stratio/cassandra
tools/stress/src/org/apache/cassandra/stress/generatedata/DistributionSeqBatch.java
<reponame>Stratio/cassandra package org.apache.cassandra.stress.generatedata; public class DistributionSeqBatch extends DataGenHex { final Distribution delegate; final int batchSize; final long maxKey; private int batchIndex; private long batchKey; // object must be published safely if passe...
Xemrion/Exam-work
OilSpillage/PNet/include/IncludeMe.h
<gh_stars>1-10 #pragma once #include "Network.h" #include "Server.h" #include "Client.h"
Asymmetrik/nifi-nar-bundles
nifi-asymmetrik-standard-services/nifi-asymmetrik-mongo-service-bundle/nifi-asymmetrik-mongo-service/src/test/java/com/asymmetrik/nifi/services/mongo/StandardMongoClientServiceIT.java
<gh_stars>10-100 package com.asymmetrik.nifi.services.mongo; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.UUID; import com.mongodb.MongoClient; import com.mongodb.ServerAddress; import org.apache.nifi.reporting.InitializationException; import org.apache.nifi.util.TestRunner...
cflinchbaugh/Memorinity
src/components/buttons/Button.js
import React from 'react'; import styled from 'styled-components'; const StyleWrapper = styled.div` .button { color: ${props => props.theme.primaryColor}; background: transparent; transition: all 0.35s; display: inline-block; border: solid 1px orange; border-radius:...
UV-CDAT/ParaView
Qt/Core/pqPluginManager.cxx
<gh_stars>0 /*========================================================================= Program: ParaView Module: $RCSfile$ Copyright (c) 2005,2006 Sandia Corporation, Kitware Inc. All rights reserved. ParaView is a free software; you can redistribute it and/or modify it under the terms of the P...
ecralx/rotten-potatoes-api
project/server/models/genre.py
# project/server/models/genre.py class Genre(): def __init__(self, tmdb_id, name): self._tmdb_id = tmdb_id self._name = name @staticmethod def from_dict(genre_dict): """ Create a genre instance from a dict (generally taken from tmdb) """ return Genre( ...
MODriscoll/AIForGames
NavMeshTester/Source/Behaviours/Decorator/Inverter.cpp
<filename>NavMeshTester/Source/Behaviours/Decorator/Inverter.cpp #include "Behaviours\Decorator\Inverter.h" namespace Behaviour { Inverter::Inverter(const behaviour_ptr& a_Child) : IDecorator("Inverter", a_Child) { } Inverter::Inverter(const behaviour_ptr& a_Child, const std::string& a_Tag) : IDecorator(a_Ta...
xakep666/konfig
loader/kletcd/etcdloader.go
<filename>loader/kletcd/etcdloader.go package kletcd import ( "bytes" "context" "time" "github.com/coreos/etcd/mvcc/mvccpb" "github.com/lalamove/konfig" "github.com/lalamove/konfig/parser" "github.com/lalamove/konfig/watcher/kwpoll" "github.com/lalamove/nui/ncontext" "github.com/lalamove/nui/nstrings" "go.e...
osborne37686/jsonmarshaller
srctest/com/twolattes/json/OuterClass.java
package com.twolattes.json; public class OuterClass { @Entity public static class InnerClass { @Value String field; } }
Antonio-Sitoe/Mini-projectos
Snake-Game-main/js/script.js
window.onload = function () { var stage = document.getElementById('stage'); let letra = document.querySelector('#jogango') var ctx = stage.getContext('2d') const rect = stage.getBoundingClientRect(); let arrowBotons = document.querySelectorAll('.arrow span') document.addEventListener('keydown', keyPu...
cypherdotXd/o3de
Gems/WhiteBox/Code/Tests/WhiteBoxTestRailsAutomation.cpp
<filename>Gems/WhiteBox/Code/Tests/WhiteBoxTestRailsAutomation.cpp /* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include "WhiteBoxTestFixtures....
vertigo-io/vertigo-bot-factory
vertigo-bot-designer/src/main/javagen/io/vertigo/chatbot/designer/domain/analytics/SentenseDetail.java
package io.vertigo.chatbot.designer.domain.analytics; import io.vertigo.core.lang.Generated; import io.vertigo.datamodel.structure.model.DtObject; import io.vertigo.datamodel.structure.stereotype.Field; import io.vertigo.datamodel.structure.util.DtObjectUtil; /** * This class is automatically generated. * DO NOT ED...
anitajjx/matrixone
pkg/vm/engine/aoe/storage/memtable/v1/base/types.go
// Copyright 2021 Matrix Origin // // 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 ...
manisharmagarg/qymatix
api/qymatix/users.py
import numpy as np import pandas as pd from api.infrastructure.mysql import connection import logging logger = logging.getLogger(__name__) def getCustomersPerUser(dbname='username', cur='', username='all', user_id=0, raw=False, local=False): ''' ''' dbname = dbname.replace('results_', 'data_') i...
Splyse/nos-client
src/renderer/shared/components/SidePanel/index.js
import React from 'react'; import { string } from 'prop-types'; import styles from './SidePanel.scss'; const SidePanel = ({ step, title, text }) => ( <div className={styles.sidePanel}> <div className={styles.step}>Step {step} / 3</div> <div className={styles.title}>{title}</div> <span role="img" aria-la...
MRoc/MSynth
source/msynthlib/framework/thread/MSyncThread.h
<filename>source/msynthlib/framework/thread/MSyncThread.h<gh_stars>1-10 #ifndef __MSyncThread #define __MSyncThread #include "MThread.h" #include "IRunnable.h" /** * a thread that can be synchronized with a win32 event */ class MSyncThread : public MThread { protected: /** * the handle to the w...
parndt/cli
spec/unit/hanami/cli/commands/monolith/generate/slice_spec.rb
# frozen_string_literal: true require "hanami/cli/commands/monolith/generate/slice" require "hanami" require "ostruct" require "securerandom" RSpec.describe Hanami::CLI::Commands::Monolith::Generate::Slice do subject { described_class.new(fs: fs, inflector: inflector, generator: generator) } let(:fs) { Dry::File...
airking05/go-docker-api-client
client/exec/exec_inspect_responses.go
// Code generated by go-swagger; DO NOT EDIT. package exec // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" strfmt "github.com/go-openapi/strfmt" models "github.com/airking0...
skarnet/nsss
src/include/nsss/nsss-all.h
/* ISC license. */ #ifndef NSSS_ALL_H #define NSSS_ALL_H #include <nsss/pwd-all.h> #include <nsss/grp-all.h> #include <nsss/shadow-all.h> #endif
ctishen/LuatOS
luat/rtt/luat_msh_rtt.c
<filename>luat/rtt/luat_msh_rtt.c #include "luat_base.h" #include "luat_malloc.h" #include "luat_msgbus.h" #include "luat_timer.h" #include "luat_gpio.h" #define LUAT_LOG_TAG "luat.msh" #include "luat_log.h" #include "luat_dbg.h" #include "rtthread.h" #include <rtdevice.h> #ifdef FINSH_USING_MSH extern lua_State ...
tiagobarretomc/transmetaisWeb
src/br/com/transmetais/controller/UserSession.java
<filename>src/br/com/transmetais/controller/UserSession.java package br.com.transmetais.controller; import java.io.Serializable; import br.com.caelum.vraptor.ioc.Component; import br.com.caelum.vraptor.ioc.SessionScoped; import br.com.transmetais.bean.Usuario; @Component @SessionScoped public class UserSession imple...
pimmu1s/Origami
src/graph/clean/vertices_isolated.js
<gh_stars>100-1000 /** * Rabbit Ear (c) <NAME> */ export const get_edge_isolated_vertices = ({ vertices_coords, edges_vertices }) => { let count = vertices_coords.length; const seen = Array(count).fill(false); edges_vertices.forEach((ev) => { ev.filter(v => !seen[v]).forEach((v) => { seen[v] = true; ...
philcali/rss
rss-api/src/main/java/me/philcali/rss/api/exception/ArticleInstanceStorageException.java
package me.philcali.rss.api.exception; public class ArticleInstanceStorageException extends RuntimeException { private static final long serialVersionUID = 1829781894209798729L; public ArticleInstanceStorageException(final Throwable ex) { super(ex); } }
CMU-TRP/podd-api
accounts/management/commands/create_authority_invite_for_ph.py
<filename>accounts/management/commands/create_authority_invite_for_ph.py<gh_stars>1-10 # -*- encoding: utf-8 -*- from django.conf import settings from django.core.management.base import BaseCommand, CommandError from accounts.models import Authority, AuthorityInvite from common.constants import USER_STATUS_PUBLIC_HEAL...
mareknovotny/kie-wb-common
kie-wb-common-stunner/kie-wb-common-stunner-client/kie-wb-common-stunner-widgets/src/test/java/org/kie/workbench/common/stunner/client/widgets/presenters/AbstractCanvasHandlerViewerTest.java
<filename>kie-wb-common-stunner/kie-wb-common-stunner-client/kie-wb-common-stunner-widgets/src/test/java/org/kie/workbench/common/stunner/client/widgets/presenters/AbstractCanvasHandlerViewerTest.java /* * Copyright 2017 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "Li...
bencmitchell/teaching-vacancies
spec/models/equal_opportunities_report_spec.rb
require "rails_helper" RSpec.describe EqualOpportunitiesReport do it { is_expected.to belong_to(:vacancy) } describe "#trigger_event" do it "triggers an event of the correct type" do expect { described_class.new.trigger_event }.to have_triggered_event(:equal_opportunities_report_published).with_data({ t...
jaylinhong/jdk14-learn
src/jdk14-source/jdk.jdi/com/sun/tools/jdi/PacketStream.java
/* * Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.tools.jdi; import java.io.ByteArrayOutputStream; import java.util.ArrayList; import ja...
bwplotka/keanu
keanu-project/src/test/java/io/improbable/keanu/algorithms/mcmc/HamiltonianTest.java
package io.improbable.keanu.algorithms.mcmc; import io.improbable.keanu.DeterministicRule; import io.improbable.keanu.algorithms.NetworkSamples; import io.improbable.keanu.network.BayesianNetwork; import io.improbable.keanu.tensor.dbl.DoubleTensor; import io.improbable.keanu.testcategory.Slow; import io.improbable.kea...
amvnetworks/amv-trafficsoft-datahub
xfcd-consumer-sqlite/src/main/java/org/amv/trafficsoft/xfcd/consumer/sqlite/TrafficsoftXfcdXfcdSqliteDaoImpl.java
<reponame>amvnetworks/amv-trafficsoft-datahub package org.amv.trafficsoft.xfcd.consumer.sqlite; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.Maps; import org.amv.trafficsoft.xfcd.consumer.jdbc.TrafficsoftXfcdXfcdEntity; import org.amv.t...
heypano/weirdcharacters
src/api/cats.js
import service from "../util/service"; export function getCats() { return service.get("cats"); } export function getCats2() { return service.get("cats2"); } export function getCats3() { return service.get("cats3"); } export default { getCats: getCats, getCats2: getCats2, getCats3: getCats3 };
icarito/steal-tools
lib/bundle/minify_source.js
var minifiers = { css: require("../build_types/minify_css"), js: require("../build_types/minify_js").async }; module.exports = function(bundle, options) { var opts = options || {}; var minify = minifiers[bundle.buildType]; // Minification is optional, but on by default var shouldMinify = (opts.minify !== false)...
minhaj3/onsite-seo
Gruntfile.js
<filename>Gruntfile.js module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), copy: { seoData: { files: [ { expand: true, src: ['seo-data.json'], dest: 'app', filter: 'isFile' } ] }, dist: { ...
joycgj/camelmq
cmq-remoting/src/main/java/camel/tc/cmq/protocol/consumer/MetaInfoRequestPayloadHolder.java
<gh_stars>0 package camel.tc.cmq.protocol.consumer; import io.netty.buffer.ByteBuf; import camel.tc.cmq.protocol.PayloadHolder; import camel.tc.cmq.utils.PayloadHolderUtils; // done public class MetaInfoRequestPayloadHolder implements PayloadHolder { private final MetaInfoRequest request; public MetaInfoReq...
schrepfler/bullet-ui
app/utils/codemirror-adapter.js
/* * Copyright 2020, Yahoo Inc. * Licensed under the terms of the Apache License, Version 2.0. * See the LICENSE file associated with the project for terms. */ import CodeMirror from 'codemirror'; import 'codemirror/mode/sql/sql'; import 'codemirror/addon/edit/matchbrackets'; import 'codemirror/addon/edit/closeb...
pnavaro/ElasticFDA.jl
deps/src/gropt/incl/dlaeda.h
#ifdef __cplusplus extern "C" { #endif #include "f2c.h" int dlaeda_(integer *n, integer *tlvls, integer *curlvl, integer *curpbm, integer *prmptr, integer *perm, integer *givptr, integer *givcol, doublereal *givnum, doublereal *q, integer *qptr, doublereal *z__, doublereal *ztemp, integer *info); #ifdef __cplusp...
tuhongwei/python-exercise
function/decorator.py
<reponame>tuhongwei/python-exercise import functools def log(*text): def decorator(func): @functools.wraps(func) def wrapper(*args,**kw): print('begin call') print('%s %s():' % (text,func.__name__)) return_value = func(*args,**kw) print('end call') return return_value return wrapper return decora...
akiellor/selenium
java/client/src/org/openqa/selenium/internal/seleniumemulation/ElementFinder.java
/* Copyright 2007-2009 WebDriver committers Copyright 2007-2009 Google 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 appli...
wlhcode/lscct
src/U/U06311.cpp
<filename>src/U/U06311.cpp #include<bits/stdc++.h> using namespace std; int main(){ int n,sigma=0; cin>>n; for(int i=1;i*i<=n;i++){ if(n%i==0){ sigma+=i; if(n/i!=i) sigma+=n/i; } } cout<<sigma<<endl; }
timwillett4/FunctionalPlus
include/fplus/result.hpp
// Copyright 2015, <NAME> and the FunctionalPlus contributors. // https://github.com/Dobiasd/FunctionalPlus // 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) #pragma once #include <fplus/function_traits.hpp> #in...
LuisBallena/SGSTT_DUPLICATE
src/main/java/com/sgstt/dao/impl/ModuloImpl.java
<filename>src/main/java/com/sgstt/dao/impl/ModuloImpl.java package com.sgstt.dao.impl; import com.sgstt.dao.ModuloDao; import com.sgstt.entidad.Modulo; import com.sgstt.hibernate.HibernateConexion; import com.sgstt.hibernate.HibernateImpl; import java.io.Serializable; /** * * @author SGSTT */ public class ModuloIm...
Shsl4/CProjects
VEngine/VEngine/Source/renderer.c
#include <VEngine/Headers/renderer.h> #include <VEngine/Headers/vector.h> #include <VEngine/Headers/VEngine.h> #include <VEngine/Headers/window.h> SDL_Color White = {255, 255, 255}; int Renderer_getWidth(Renderer *renderer) { return renderer->m_width; } int Renderer_getHeight(Renderer *renderer) { return re...
PdrPaes/C
funcaoRecursivaVetor.c
<gh_stars>1-10 #include <stdio.h> #include <stdlib.h> int soma(int vet[]){ if (vet[]== vet [11]){ return 0; }else{ return vet[2] +soma(vet[2] - vet[2-1]} } int main() { int vetor[10]; int i; srand(time(NULL)); printf("10 posicoes do vetor:\n"); for(i=1;i<=10;i++){ ...
ifestudy/ife-task
task33/icepro/js/main.js
//所有内容通过square访问 var canvas = $('#canvas'); var square = new square(".command-editor",canvas[0].getContext('2d'),10); square.rander.start(); // var exec = square.robot.isInCommandList( "tun lef" ); // square.robot.invoke( exec ); // console.log(exec); var timer; $("#run").on('click',function(){ var arr = square.robot...
Qt-Widgets/orion-qt
core/OriResult.h
#ifndef ORI_RESULT_H #define ORI_RESULT_H #include <QString> namespace Ori { template <typename TResult> class Result { public: TResult result() const { return _result; } const QString& error() const { return _error; } bool ok() const { return _error.isEmpty(); } static Result fail(const QString& er...
karaulyanovsap/scimono
scimono-server/src/main/java/com/sap/scimono/entity/bulk/ResponseOperation.java
package com.sap.scimono.entity.bulk; import java.net.MalformedURLException; import java.net.URISyntaxException; import java.net.URL; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterx...
myvyang/intellij-community
RegExpSupport/src/org/intellij/lang/regexp/psi/RegExpElementVisitor.java
<gh_stars>0 /* * Copyright 2006 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
search-cloud/learning-stack
learning-algorithm/src/main/java/io/vincent/learning/stack/algorithm/sort/Printer.java
package io.vincent.learning.stack.algorithm.sort; import java.util.List; /** * Created by Vincent on 12/6/18. * * @author Vincent * @since 1.0, 12/6/18 */ public class Printer { private static final char space = ' '; private static final char underLine = '_'; private static final char verticalLine = '|'; pr...
josephwinston/j2objc
jre_emul/android/libcore/luni/src/test/java/libcore/java/lang/reflect/MethodTest.java
/* * Copyright (C) 2009 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
ColFusion/PentahoKettle
CarteService/default/src/main/java/jnacontrib/jna/WINNT.java
<filename>CarteService/default/src/main/java/jnacontrib/jna/WINNT.java<gh_stars>0 /* * WINNT.java * * Created on 8. August 2007, 13:41 * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ package jnacontrib.jna; /** * * @author TB */ public i...
Knowledge-Precipitation-Tribe/Distributed-fileserver
service/account/main.go
<reponame>Knowledge-Precipitation-Tribe/Distributed-fileserver package main import ( "Distributed-fileserver/service/account/customLog" "go.uber.org/zap" "time" "github.com/micro/go-micro" _ "github.com/micro/go-plugins/registry/consul" _ "github.com/micro/go-plugins/registry/kubernetes" // k8s "github.com/mi...
zealoussnow/chromium
chrome/android/features/tab_ui/java/src/org/chromium/chrome/browser/tasks/pseudotab/PseudoTab.java
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.tasks.pseudotab; import android.content.Context; import android.os.SystemClock; import android.text.TextUtils; impor...
keller-mark/vitessce
src/layers/heatmap-constants.js
import GL from '@luma.gl/constants'; export const TILE_SIZE = 2048; export const MIN_ROW_AGG = 1; export const MAX_ROW_AGG = 16; export const COLOR_BAR_SIZE = 20; export const AXIS_LABEL_TEXT_SIZE = 9; export const AXIS_TITLE_TEXT_SIZE = 15; export const AXIS_MIN_SIZE = 10; export const AXIS_MAX_SIZE = 90; export con...
timblechmann/nt2
modules/extern/cephes/src/cephes_ldouble/monotl.c
<filename>modules/extern/cephes/src/cephes_ldouble/monotl.c /* monotl.c Floating point function test vectors. Arguments and function values are synthesized for NPTS points in the vicinity of each given tabulated test point. The points are chosen to be near and on either side of the likely function algori...
icclab/monasca-common
java/monasca-common-model/src/test/java/monasca/common/model/ServicesTest.java
<reponame>icclab/monasca-common<filename>java/monasca-common-model/src/test/java/monasca/common/model/ServicesTest.java package monasca.common.model; import static org.testng.Assert.assertTrue; import org.testng.annotations.Test; @Test public class ServicesTest { public void shouldValidateObjectStoreMetricName() {...
rkolyan/Algorithm-s-Analyses
aa_6/io.h
#ifndef IO_H #define IO_H #include <stdio.h> #include "parameters.h" #include "way.h" error_t print_way(way_t *way); error_t input_matrix_from_file(double ***matrix, int *count, FILE *file); error_t input_parameters(parameters_t *parameters); error_t input_integer(int *number, const char *name, char is_positive); err...
RudiBoshoff/test-first-teaching
learn_ruby/screen_scrape/bbc_files/bbccom_capable.js
/* bbc.com core javascript version: $Id: bbccom_test.js,v 1.3 2008/05/19 15:22:28 daffel01 Exp $ */ BBC.adverts.isCapable(); // comment this out to make all ads go away
fhornain/patternfly-react-seed_1
node_modules/@patternfly/react-icons/dist/esm/icons/smoking-icon.d.js
<filename>node_modules/@patternfly/react-icons/dist/esm/icons/smoking-icon.d.js //# sourceMappingURL=smoking-icon.d.js.map
dotnetweekly/dnw-api
data/tags.js
<reponame>dotnetweekly/dnw-api const tags = [ '.net', '.net-core', '.net-standard', 'akka.net', 'android', 'angular', 'asp.net', 'asp.net-core', 'asp.net-mvc', 'azure', 'azure-application-insights', 'babel', 'bing-maps', 'blazor', 'blockchain', 'build-2017', 'c#', 'caching', 'confe...
caibinglong1987/ucserver
src/main/java/com/roamtech/uc/util/RxBus.java
package com.roamtech.uc.util; import rx.Observable; import rx.subjects.PublishSubject; import rx.subjects.Subject; import java.lang.reflect.Type; import java.util.*; /** * Created by admin03 on 2016/8/17. */ public class RxBus { private static RxBus instance; private Map<Class<?>,Vector<Subject>> subjectMa...
walki/codewar-solutions
javascript/7kyu/alphabetical-addition.js
<gh_stars>0 function addLetters(...letters) { return letters.length === 0 ? 'z' : valueToLetter( letters.reduce( (acc, curr) => letterToValue( curr ) + acc, 0) ); } function letterToValue(letter) { return letter.charCodeAt(0) - 'a'.charCodeAt(0) + 1; } function valueToLetter( value ) { ret...
fengjixuchui/napoca
napoca/introspection/glue_layer/intromsrhook.c
<filename>napoca/introspection/glue_layer/intromsrhook.c /* * Copyright (c) 2020 Bitdefender * SPDX-License-Identifier: Apache-2.0 */ /// @addtogroup introcallhv ///@{ /** @file intromsrhook.c * @brief INTROMSRHOOK - NAPOCA hypervisor glue layer, MSR hook support * */ #include "napoca.h" #include "introstatus.h" ...
WarlockD/quake-stm32
quake_framebuffer/quake_framebuffer/d_modech.cpp
<reponame>WarlockD/quake-stm32<gh_stars>1-10 /* Copyright (C) 1996-1997 Id Software, Inc. 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 late...
gcodebackups/cortex-vfx
include/IECore/PlaneImplicitSurfaceFunction.h
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2007-2011, Image Engine Design 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: // // ...
kkcookies99/UAST
Dataset/Leetcode/train/101/334.js
<filename>Dataset/Leetcode/train/101/334.js var XXX = function(root) { if (!root) return false if (root && !root.left && !root.right) return true let root1 = root.left, root2 = root.right if (!root1 || !root2) return false let temp1 = [root1], temp2 = [root2] while (temp1.length && temp2.length) { let ...
lechium/tvOS10Headers
System/Library/Frameworks/MediaPlayer.framework/MPModelStorePlaybackItemsResponse.h
/* * This header is generated by classdump-dyld 1.0 * on Wednesday, March 22, 2017 at 9:05:33 AM Mountain Standard Time * Operating System: Version 10.1 (Build 14U593) * Image Source: /System/Library/Frameworks/MediaPlayer.framework/MediaPlayer * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>. ...
nodule/pkgcloud
nodes/createServer/node.js
output = [client, 'createServer']
johnsonm325/compliance-frontend
src/PresentationalComponents/TabSwitcher/TabSwitcher.js
import React from 'react'; import { useLocation, useHistory } from 'react-router-dom'; import propTypes from 'prop-types'; import { Tabs } from '@patternfly/react-core'; import { useAnchor } from 'Utilities/Router'; // Plain tab component without any styling export const ContentTab = ({ children }) => children; const...
calmsacibis995/minix
usr.bin/infocmp/infocmp.c
<gh_stars>0 /* $NetBSD: infocmp.c,v 1.8 2013/10/01 09:01:49 roy Exp $ */ /* * Copyright (c) 2009, 2010 The NetBSD Foundation, Inc. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME>. * * Redistribution and use in source and binary forms, with or without * modification, are p...
pythonpeixun/algo-1
trees/splay/splay.c
#include "splay.h" struct SplayTreeNode { ET Element; Splay Left; Splay Right; }; Splay makeEmpty(Splay T) { if (T != NULL) { makeEmpty(T->Left); makeEmpty(T->Right); free(T); } numRotations = 0; return NULL; } static Position zigLeft(Splay T) { Position tmp = T->Left->Right; Position...
Ortheore/BizHawk
waterbox/ares64/ares/ares/n64/controller/gamepad/mbc/mbc.hpp
<filename>waterbox/ares64/ares/ares/n64/controller/gamepad/mbc/mbc.hpp struct Mbc { explicit Mbc(Memory::Readable& rom_, Memory::Writable& ram_) : rom(rom_), ram(ram_) {} virtual auto reset() -> void {}; virtual auto read(u16 address) -> u8 { return 0xFF; }; virtual auto write(u16 address, u8 data) -> voi...
rusticpenguin/opensphere
src/os/histo/result.js
goog.provide('os.histo.Result'); /** * @typedef {{ * key: (string|number), * value: !os.histo.Bin.<T> * }} */ os.histo.Result;
emil-wcislo/sbql4j8
sbql4j8/src/test/openjdk/tools/javap/4870651/Test.java
/* * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Softwa...
JakobBruenker/ghc
rts/ProfHeapInternal.h
<reponame>JakobBruenker/ghc<filename>rts/ProfHeapInternal.h /* ----------------------------------------------------------------------------- * * (c) The GHC Team, 2019 * * Internal definitions for subordinate heap profilers to consume * * ---------------------------------------------------------------------------...
bruceyee07/leetcode-medium
48. Rotate Image/other.java
<gh_stars>0 /** * https://leetcode.com/problems/rotate-image/ * https://leetcode.com/problems/rotate-image/discuss/18879/AC-Java-in-place-solution-with-explanation-Easy-to-understand. */ class Solution { public void rotate(int[][] matrix) { int n = matrix.length; for (int i = 0; i < n; i++) { for (in...
iSergio/ol4gwt
ol4gwt-main/src/main/java/org/openlayers/ol/source/Source.java
<reponame>iSergio/ol4gwt<gh_stars>1-10 /* * Copyright 2017 iserge. * * 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 requi...
gauravssnl/Data-Structures-and-Algorithms
java/stacks/ArrayStack.java
package stacks; import java.util.Arrays; public class ArrayStack<E> implements Stack<E> { public static final int CAPACITY = 1000; // default array capacity private E[] data; // generic array used for storage private int t = -1; // index of the top element in the stack // construct stack with default...
OrionDevelopment/Multi-Platform-Template
Platforms/Forge/src/main/java/mod/modid/forge/platform/entity/ForgeEntityInformationManager.java
<filename>Platforms/Forge/src/main/java/mod/modid/forge/platform/entity/ForgeEntityInformationManager.java package mod.modid.forge.platform.entity; import mod.modid.platforms.core.entity.IEntityInformationManager; import net.minecraft.world.entity.ai.attributes.AttributeInstance; import net.minecraft.world.entity.play...
mtsar/mtsar
src/main/java/mtsar/views/DashboardView.java
<gh_stars>10-100 /* * Copyright 2015 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
supervueman/vn-cms
server/core/modules/profile/controller/changePassword.js
const Model = require('../../user/model'); const bcrypt = require('bcrypt'); module.exports = async (req, res) => { // Находим профиль const profile = await Model.findByPk(req.id); if (!profile) { logger('error', 'profile', 404, 'changePassword.js'); sendRes({ res, status: 404 }); } // Сверяем пар...
phatblat/macOSPrivateFrameworks
PrivateFrameworks/CoreChineseEngine/CIMInputController.h
<gh_stars>10-100 // // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "IMKCandidateBasedInputController.h" #import "CIMMenuControllerDataSource.h" @class CIMBaseEngine, IMKKeyboardInputController, NSString; @interface CIMInputCon...
FrKaram/alfresco-android-app
platform/foundation/src/main/java/org/alfresco/mobile/android/api/model/config/impl/ActionHelper.java
<gh_stars>10-100 /******************************************************************************* * Copyright (C) 005-014 Alfresco Software Limited. * * This file is part of the Alfresco Mobile SDK. * * Licensed under the Apache License, Version .0 (the "License"); * you may not use this file except in complian...