repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
Goofy-Penguin/Mainframe
ui/include/mainframe/ui/elms/scrollpanelback.h
<reponame>Goofy-Penguin/Mainframe #pragma once #include <mainframe/ui/element.h> #include <mainframe/ui/elms/scrollbar.h> #include <mainframe/ui/elms/panel.h> namespace mainframe { namespace ui { class ScrollPanelBack : public Element { math::Vector2i offset; public: virtual void draw(render::Stencil& ste...
xLineMapper/solr
lucene/core/src/java/org/apache/lucene/codecs/blocktree/BitSetPostingsEnum.java
<gh_stars>1-10 package org.apache.lucene.codecs.blocktree; /* * 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 ...
Andres6936/TinyRogue
Source/States/State.hpp
<filename>Source/States/State.hpp<gh_stars>1-10 #pragma once #include "../Game/GameObject.hpp" #include <SFML/Window/Keyboard.hpp> #include <SFML/System/Time.hpp> #include <memory> class StateStack; class Console; class State : public GameObject { public: using Ptr = std::unique_ptr<State>; public: virtual ~Sta...
scala-steward/udash-core
rpc/.jvm/src/main/scala/io/udash/rpc/DefaultClientRPC.scala
package io.udash.rpc import com.avsystem.commons.rpc.AsReal import com.avsystem.commons.serialization.json.JsonStringOutput import io.udash.rpc.internals.{BroadcastManager, UsesClientRPC} import scala.concurrent.ExecutionContext /** * Target for server to client call. Possible values:<br/> * * [[io.udash.rpc.All...
Bishwa05/Algorithms
src/dp/BombEnemy.java
package dp; /** * Leetcode 361 * https://leetcode.com/problems/bomb-enemy/ * * * * 0, E, 0, 0 * E, 0, W, E * 0, E, 0, 0 * * E -> Enemy * 0 -> empty cell, bomb can be placed * W -> wall, bomb ca not pass through wall. * */ public class BombEnemy { private static final char WALL='W'; private ...
ScalablyTyped/SlinkyTyped
s/sentry__utils/src/main/scala/typingsSlinky/sentryUtils/pathMod.scala
package typingsSlinky.sentryUtils import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} object pathMod { @JSImport("@sentry/utils/dist/path", "basename") @js.native def base...
ryborg/mcwss
protocol/command/particle.go
<filename>protocol/command/particle.go package command import ( "fmt" "github.com/ryborg/mcwss/mctype" ) // ParticleRequest produces the command required to spawn a particle using a particle name and position. func ParticleRequest(particle string, position mctype.Position) string { return fmt.Sprintf("particle %v ...
shixingfeng/three_js_with_coffeescript
webserver/static/js/demo_10_232.js
// Generated by CoffeeScript 2.3.1 (function() { var camera, canvas, ctx, date, fillWithPerlin, init, mesh, onResize, pn, renderer, scene; console.log("demo_10.232 Canvas texture bumpmap"); camera = null; scene = null; renderer = null; mesh = null; fillWithPerlin = function(perlin, ctx) { var ba...
tseen/Federated-HDFS
tseenliu/FedHDFS-hadoop-src/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/api/records/timeline/TestTimelineRecords.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...
pgcrism/gobo
work/bootstrap/gec10.c
<reponame>pgcrism/gobo #include "gec.h" #ifdef __cplusplus extern "C" { #endif /* ET_BRACED_TYPE_LIST.set_left_brace */ void T935f11(T0* C, T0* a1) { ((T935*)(C))->a1 = a1; } /* ET_BRACED_TYPE_LIST.make_with_capacity */ T0* T935c9(T6 a1) { T0* C; T0* t1; C = GE_new935(EIF_TRUE); t1 = (T935f5(C)); ((T935*)(C))-...
aspan/cloudhopper-commons
ch-sxmp/src/main/java/com/cloudhopper/sxmp/TextEncoding.java
package com.cloudhopper.sxmp; /* * #%L * ch-sxmp * %% * Copyright (C) 2012 - 2013 Cloudhopper by Twitter * %% * 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.apa...
siweilxy/openjdkstudy
src/hotspot/share/gc/g1/g1CollectorState.hpp
<reponame>siweilxy/openjdkstudy /* * Copyright (c) 2015, 2019, 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 on...
s603273854/openxds
common-utils/src/main/java/org/openhealthtools/common/utils/ConnectionUtil.java
<reponame>s603273854/openxds<gh_stars>10-100 /** * Copyright (c) 2009-2010 Misys Open Source Solutions (MOSS) and others * * 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 * * ...
ismail4040/DeepLeanirngJazz
music21/musedata/__init__.py
# -*- coding: utf-8 -*- #------------------------------------------------------------------------------- # Name: musedata/__init__.py # Purpose: parses Walter Hewlett's MuseData format # # Authors: <NAME> # <NAME> # # Copyright: Copyright © 2010, 2014 <NAME> and the music21 Project # ...
mousedogpig/solr5.5.4
lucene/expressions/src/java/org/apache/lucene/expressions/ScoreValueSource.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 ...
tomasbjerre/yet-another-kotlin-vs-java-comparison
src/main/java/classesiiiandiiiobjects/properties/p03variiiandiiival/UsingValAndInit.java
package classesiiiandiiiobjects.properties.p03variiiandiiival; import kotlin.jvm.internal.DefaultConstructorMarker; import kotlin.jvm.internal.Intrinsics; import org.jetbrains.annotations.NotNull; public final class UsingValAndInit { @NotNull private final String name; @NotNull public final String getName() { ...
OscarRodriguezPrieto/ProgQuery
ProgQuery/src/database/querys/services/TypeServicesWiggle.java
package database.querys.services; import database.querys.cypherWrapper.Cardinalidad; import database.querys.cypherWrapper.EdgeImpl; import database.querys.cypherWrapper.MatchElement; import database.querys.cypherWrapper.NodeVar; import database.querys.cypherWrapper.RelationshipImpl; import database.relations.RelationT...
MEDGRUPOGIT/med-components
dist/collection/components/@medgrupo/team/questoes/med-enunciado-discursiva/med-enunciado-discursiva.js
import { Component, Host, h, Prop, Event } from '@stencil/core'; export class MedEnunciadoDiscursiva { imageRequest(imagem) { this.medGalleryRequest.emit(imagem); } render() { let imagens; if (this.imagens) { this.imagens = typeof this.imagens === 'string' ? JSON.parse(this.imagens) : this.image...
bulkin042/android_device_wileyfox_porridge
EngineerMode/src/com/mediatek/engineermode/nfc/NfcNativeCallClass.java
<reponame>bulkin042/android_device_wileyfox_porridge<gh_stars>1-10 /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.mediatek.engineermode.nfc; import com.mediatek.engineermode.Elog; /** * * @author mtk80905 */ public class NfcNativeCallClass { publ...
elenaborisova/Python-Advanced
04. Tuples and Sets - Exercise/02_sets_of_elements.py
def get_set_elements(n): elements = set() for _ in range(n): element = input() elements.add(element) return elements def find_intersection_elements(first_set, second_set): return first_set.intersection(second_set) def print_result(intersection_elements): print('\n'.join(intersec...
CodingGarden/patreon-pledges-api
src/lib/validPronounChoices.js
module.exports = new Set([ 'she', 'he', 'ze', 'they', 'co', 'none', 'xe', 'hy', 'it', 'one', 'em', '\'em', 'yo', ]);
aps337/unum-sdk
src/gdb/gdb-8.3/gdb/testsuite/gdb.cp/local-static.cc
#include "local-static.c"
lemmi25/sila2lib
sila_library/sila2lib/fdl_parser/metadata.py
<reponame>lemmi25/sila2lib<gh_stars>0 """ __________________________________________________________________________________________________ :project: SiLA2_python :details: Metadata element in a SiLA Feature Definition. :file: metadata.py :authors: <NAME> :date: (creation) 20190820 :date: (last modific...
TheRakeshPurohit/metro
packages/metro-cache/src/stores/HttpStore.js
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @flow */ 'use strict'; import type {Agent as HttpAgent} from 'http'; import type {Agent as HttpsAgent} from 'http...
rstreefland/ShortcutMessenger
src/main/java/uk/co/streefland/rhys/finalyearproject/message/Receiver.java
package uk.co.streefland.rhys.finalyearproject.message; import java.io.IOException; /** * Interface that every Receiver should implement to ensure consistency */ public interface Receiver { /** * Handle incoming message * * @param communicationId Used for replies * @param incoming Th...
imranq2/SparkAutoMapper.FHIR
spark_auto_mapper_fhir/value_sets/intervention_codes.py
<reponame>imranq2/SparkAutoMapper.FHIR<filename>spark_auto_mapper_fhir/value_sets/intervention_codes.py from __future__ import annotations from spark_auto_mapper_fhir.fhir_types.uri import FhirUri from spark_auto_mapper_fhir.value_sets.generic_type import GenericTypeCode from spark_auto_mapper.type_definitions.define...
olegvakulenko/BoofCV
main/boofcv-ip/src/main/java/boofcv/alg/color/impl/ImplColorRgb.java
/* * Copyright (c) 2011-2019, <NAME>. All Rights Reserved. * * This file is part of BoofCV (http://boofcv.org). * * 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.apach...
diogocapela/isep-lapr4
georef/src/main/java/georef/strategies/sg05/SG05Google.java
<filename>georef/src/main/java/georef/strategies/sg05/SG05Google.java package georef.strategies.sg05; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.maps.DirectionsApi; import com.google.maps.GeoApiContext; import com.google.maps.errors.ApiException; import com.google.maps.model.Dir...
EmilyOng/scratch-source
src/components/stage-selector/stage-selector.js
<reponame>EmilyOng/scratch-source<filename>src/components/stage-selector/stage-selector.js 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source...
lhardt/PythonCourse
aula23.py
<reponame>lhardt/PythonCourse try: a = int(input('Digite um número\n>>>\t')) except Exception as e: print(f'Opa. {e.__class__}') # Outros Excepts. else: print(f'a = {a}') finally: print('Deseja continuar?')
estigma88/coders-tower-code
inversion-of-control-putting-all-together/src/main/java/com/coderstower/blog/inversion_of_control_putting_all_together/main/MongoDBRepository.java
<filename>inversion-of-control-putting-all-together/src/main/java/com/coderstower/blog/inversion_of_control_putting_all_together/main/MongoDBRepository.java<gh_stars>1-10 package com.coderstower.blog.inversion_of_control_putting_all_together.main; import com.coderstower.blog.inversion_of_control_putting_all_together.a...
nla/pandas4
common/src/pandas/browser/BrowserPool.java
<filename>common/src/pandas/browser/BrowserPool.java package pandas.browser; import org.apache.commons.pool2.BasePooledObjectFactory; import org.apache.commons.pool2.PooledObject; import org.apache.commons.pool2.impl.DefaultEvictionPolicy; import org.apache.commons.pool2.impl.DefaultPooledObject; import org.apache.com...
frankmk3/deptVideo
front-end-react/src/util/SearchUtils.js
export function getFiltersAsQuery(filters) { var query = ''; if (filters !== undefined) { query = Object.keys(filters) .filter(key => filters[key]) .filter(key => filters[key].length > 0) .map(key => filters[key].map(item => key + ':' + item + '*').join(" OR ")) ...
Nebukam/mkfont
app/js/data/ids-ext.js
<filename>app/js/data/ids-ext.js 'use strict'; const nkm = require(`@nkmjs/core`); const ui = nkm.ui; const inputs = nkm.uilib.inputs; const ENUMS = require(`./enums`); const UNICODE = require(`../unicode`); /** * @description TODO * @class * @hideconstructor * @memberof ui.core */ class IDS_EXT { construct...
openvcx/openvcx
openvsx/include/capture/capture_appsp.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, or (at your option) any later version. * ...
wahello/openshift-installer
terraform/aws/vendor/github.com/hashicorp/terraform-provider-aws/internal/service/securityhub/insight.go
<filename>terraform/aws/vendor/github.com/hashicorp/terraform-provider-aws/internal/service/securityhub/insight.go package securityhub import ( "context" "fmt" "log" "strconv" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/securityhub" "github.com/hashicorp/aws-sdk-go-base/tfawserr" "githu...
lucaswerner90/remora
microservices/client/src/redux/actions/types.js
export const UPDATE_USER_INFO = 'UPDATE_USER_INFO'; export const UPDATE_USER_PREFERENCES = 'UPDATE_USER_PREFERENCES'; export const UPDATE_USER_FAVORITE_COINS = 'UPDATE_USER_FAVORITE_COINS'; export const UPDATE_USER_NOTIFICATIONS = 'UPDATE_USER_NOTIFICATIONS'; export const UPDATE_USER_SELECTED_COIN = 'UPDATE_USER_SELEC...
JustinDFuller/monorepo
packages/Javascript-Snippets/arrays.js
<filename>packages/Javascript-Snippets/arrays.js<gh_stars>0 var array = ['item1','item2']; array.forEach( function(value, position, originalArray){ // loop over each element in the array console.log(value + position + originalArray); }); // logged -> item1, 0, ['item1','item2'] // logged -> item2, 1, ['item1','it...
Hyperpilotio/node-agent
pkg/collector/docker/config/config.go
<gh_stars>1-10 package config // DockerVersion is a version of running docker server var DockerVersion = []int{0, 0}
toeb/sine
src/application.qt.objectview/PropertyGroupTreeItem.cpp
<filename>src/application.qt.objectview/PropertyGroupTreeItem.cpp #include "PropertyGroupTreeItem.h" using namespace nspace; using namespace std; std::string PropertyGroupTreeItem::getDisplayName(){ return getGroupName(); } std::string PropertyGroupTreeItem::getDisplayValue(){ return ""; } std::string ...
Hacky-DH/pytorch
torch/csrc/distributed/rpc/torchscript_functions.h
<gh_stars>1000+ #pragma once #include <ATen/core/ivalue.h> #include <torch/csrc/autograd/profiler.h> #include <torch/csrc/distributed/autograd/utils.h> #include <torch/csrc/distributed/rpc/rref_context.h> #include <torch/csrc/distributed/rpc/script_remote_call.h> namespace torch { namespace distributed { namespace rp...
creativeprogramming/chromium
chrome/browser/history/page_usage_data.cc
// Copyright (c) 2006-2008 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. #include <algorithm> #include "chrome/browser/history/page_usage_data.h" //static bool PageUsageData::Predicate(const PageUsageData* lhs, ...
kevinintel/neural-compressor
neural_compressor/adaptor/ox_utils/onnxrt_mid.py
#!/usr/bin/env python # coding: utf-8 # # Copyright (c) 2021 Intel Corporation # # 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 req...
Darkhunter9/python
How Much Gold.py
<gh_stars>0 from fractions import Fraction import numpy as np METALS = ('gold', 'tin', 'iron', 'copper') def checkio(alloys): """ Find proportion of gold """ p = np.zeros((len(alloys.keys())+1,4)) r = np.zeros(len(alloys.keys())+1) n = 0 for i in alloys.keys(): metals = i.spl...
aliostad/deep-learning-lang-detection
data/test/js/470e853a365eaade71ce869ee578ba0a5fc5ccb7notebookService.js
<reponame>aliostad/deep-learning-lang-detection define( [ "module/ngModule", "types/enums", "service/crudService", "service/jsonWebService" ], function (ngModule, enums, CrudService) { ngModule.service("notebookService", [ "jsonWebService"...
JoseZancanaro/CienciaDaComputacao
Data-structure/B-tree/main.cpp
<reponame>JoseZancanaro/CienciaDaComputacao<filename>Data-structure/B-tree/main.cpp #include <iostream> #include "arvoreB.hpp" int main() { return 0; }
JVacca12/FIRST
portafolio/serializers.py
# Django REST Framework from rest_framework import serializers # Model from portafolio.models import Portafolio class PortafolioModelSerializer(serializers.ModelSerializer): """Portafolio Model Serializer""" class Meta: """Meta class.""" model = Portafolio fields = ( 'pk',...
rcboufleur/SORA
sora/occultation/fitting.py
import astropy.units as u import numpy as np from astropy.time import Time from sora.config.decorators import deprecated_alias __all__ = ['fit_ellipse'] @deprecated_alias(pos_angle='position_angle', dpos_angle='dposition_angle', log='verbose') # remove this line for v1.0 def fit_ellipse(*args, equatorial_radius, d...
davidzchen/tajo
tajo-core/src/main/java/org/apache/tajo/engine/planner/physical/VectorizedSorter.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...
Ryugoron/point-groups
src/main/java/pointGroups/util/Transformer.java
package pointGroups.util; import java.util.concurrent.Future; /** * An instance holds everything polymake needs for computation. * * @author Nadja, Simon */ public interface Transformer<E> extends Future<E> { /** * Generates a script. * * @return A script as String. */ public String toScript(...
dwintergruen/django-publications
publications/migrations/0007_auto_20200604_1648.py
<filename>publications/migrations/0007_auto_20200604_1648.py # Generated by Django 3.0.5 on 2020-06-04 16:48 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('publications', '0006_auto_20200604_1529'), ] operation...
delftdata/s-query
hazelcast-jet/extensions/hadoop/src/test/java/com/hazelcast/jet/hadoop/file/RawBytesFileFormatTest.java
<reponame>delftdata/s-query /* * Copyright 2020 Hazelcast Inc. * * Licensed under the Hazelcast Community License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://hazelcast.com/hazelcast-community-license * * Unless require...
coca-cola33/CloudFilm
app/src/main/java/me/jessyan/mvparms/demo/di/component/BookComponent.java
<reponame>coca-cola33/CloudFilm<filename>app/src/main/java/me/jessyan/mvparms/demo/di/component/BookComponent.java package me.jessyan.mvparms.demo.di.component; import com.jess.arms.di.scope.ActivityScope; import dagger.Component; import com.jess.arms.di.component.AppComponent; import me.jessyan.mvparms.demo.di.mod...
bbcyyb/missouri
src/model/role.py
<filename>src/model/role.py # -*- coding: utf-8 -*- from permission import Permission from app import db class Role(db.Model): __tablename__ = 'roles' id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String, nullable=True, unique=True) default = db.Column(db.Boolean, default=False) ...
trabajooscarnavidad/trabajo
src/main/webapp/backup/MandarMail.java
<gh_stars>0 /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package servicios; import config.Configuration; import java.util.Properties; import java.util.logging.Level; i...
paullewallencom/android-978-1-7864-6464-4
_src/Section 2/code-section_2_2/app/src/main/java/com/packt/madev/database/BigDecimalConverter.java
<reponame>paullewallencom/android-978-1-7864-6464-4<filename>_src/Section 2/code-section_2_2/app/src/main/java/com/packt/madev/database/BigDecimalConverter.java package com.packt.madev.database; import java.math.BigDecimal; import io.objectbox.converter.PropertyConverter; public class BigDecimalConverter implements ...
Null-LLC/Echo
Inferno/Source/Drivers/PIT/PIT.hpp
<gh_stars>1-10 #pragma once namespace PIT { extern double TimeSinceBoot; const unsigned long long BaseFrequency = 1193182; void Sleepd(double seconds); void Sleep(unsigned int seconds); void SetDivisor(unsigned short NewDivisor); unsigned long long GetFrequency(); void SetFrequency(unsigned long long New...
JimmyDdotEXE/jpl
src/value/Bool.cpp
#include "value/Bool.h" Bool::Bool(){ literal = false; value = false; } Bool::Bool(bool v){ literal = true; value = v; } Bool::Bool(std::string s) : Cond("bool", s){ literal = false; value = false; } bool Bool::isLiteral(){ return literal; } bool Bool::getValue(){ return value; }
JonErikDSuero/design-system
css/src/scss/utilities/_colors.story.js
<filename>css/src/scss/utilities/_colors.story.js /* global document */ import { storiesOf } from "@storybook/html"; storiesOf("Utilities|Color", module) .add( "Text", () => ` <p class="nds-text--black">.nds-text--black</p> <p class="nds-text--black-blue">.nds-text--black-blue</p> <p class="nds-t...
GatsbyNewton/design-pattern
src/main/java/edu/wzm/action/strategy/template/Strategy.java
<filename>src/main/java/edu/wzm/action/strategy/template/Strategy.java package edu.wzm.action.strategy.template; public interface Strategy { void algorithmStrategy(); }
Sorunome/matrix-media-repo
src/github.com/turt2live/matrix-media-repo/controllers/upload_controller/upload_controller.go
package upload_controller import ( "context" "io" "os" "strconv" "github.com/pkg/errors" "github.com/ryanuber/go-glob" "github.com/sirupsen/logrus" "github.com/turt2live/matrix-media-repo/common" "github.com/turt2live/matrix-media-repo/common/config" "github.com/turt2live/matrix-media-repo/storage" "github...
zenkovich/o2
Editor/Sources/o2Editor/Core/UI/SpoilerWithHead.h
#pragma once #include "o2/Scene/UI/Widgets/Spoiler.h" using namespace o2; namespace o2 { class Button; class Image; } namespace Editor { // ----------------------------------------------- // Editor properties spoiler with head and caption // ----------------------------------------------- class SpoilerWithHea...
dkzhang/Robot2019
chassisDriverForRobot/robotSinglePointMove/server/server_test.go
package server import ( robotSinglePointMove "Robot2019/chassisDriverForRobot/robotSinglePointMove/grpc" "testing" ) func TestGenerateMoveCommand(t *testing.T) { spi := &robotSinglePointMove.SinglePointInfo{ InfoMask: 16, Marker: "R1x1", LocationX: 1.1, LocationY: ...
fredyw/leetcode
src/main/java/leetcode/Problem4.java
package leetcode; import java.util.ArrayList; import java.util.List; /** * https://leetcode.com/problems/median-of-two-sorted-arrays/ */ public class Problem4 { public double findMedianSortedArrays(int[] nums1, int[] nums2) { int i = 0; int j = 0; int size = nums1.length + nums2.length; ...
airtoxin/Semantic-UI-React
test/specs/lib/keyboardKey-test.js
import _ from 'lodash' import { keyboardKey } from 'src/lib' const _wrongReturn = (method, arg, ret) => `keyboardKey.${method}(${arg}) should return key name "${ret}"\n` const wrongCode = (...args) => _wrongReturn('getCode', ...args) const wrongName = (...args) => _wrongReturn('getName', ...args) const missingPai...
rclsilver/manager
packages/manager/modules/web-paas/src/components/terminate/controller.js
import get from 'lodash/get'; export default class WebPaasTerminateCtrl { /* @ngInject */ constructor($translate, WebPaas) { this.$translate = $translate; this.WebPaas = WebPaas; } $onInit() { this.isDeleting = false; } terminate() { this.isDeleting = true; return this.WebPaas.termina...
turbanoff/jmc
core/org.openjdk.jmc.flightrecorder/src/main/java/org/openjdk/jmc/flightrecorder/internal/util/DataInputToolkit.java
/* * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * The contents of this file are subject to the terms of either the Universal Permissive License * v 1.0 as shown at http://oss.oracle.com/licenses/upl * * or the follo...
stravant/bfbbdecomp
dwarf/SB/Core/p2/iEnv.cpp
typedef struct RpMaterial; typedef struct xAnimTransition; typedef struct xEnt; typedef struct RpAtomic; typedef struct xAnimTransitionList; typedef struct RxHeap; typedef struct RwLLLink; typedef struct analog_data; typedef struct RwMatrixTag; typedef struct RpMaterialList; typedef struct xScene; typedef struct RwBBox...
lhzheng880828/VOIPCall
libmedia/src/main/java/org/jitsi/impl/neomedia/format/AudioMediaFormatImpl.java
/* * Jitsi, the OpenSource Java VoIP and Instant Messaging client. * * Distributable under LGPL license. * See terms of license at gnu.org. */ package org.jitsi.impl.neomedia.format; import java.util.*; import javax.media.*; import javax.media.format.*; import org.jitsi.service.neomedia.*; import org.jitsi.serv...
cerww/cpp_discord_cuteness
include/voice_state.h
<gh_stars>1-10 #pragma once #include <nlohmann/json.hpp> #include "snowflake.h" #include "guild_member.h" #include "../common/common/optional_from_json.h" struct voice_state { snowflake channel_id() const noexcept { return m_channel_id; } snowflake user_id() const noexcept { return m_user_id; } std::string_view s...
dogfootman/cb-webtool
src/model/tumblebug/mcis/AutoAction.go
package mcis type AutoAction struct { ActionType string `json:"actionType"` PlacementAlgo string `json:"placementAlgo"` PostCommand McisCmdReq `json:"postCommand"` Vm TbVmInfo `json:"vm"` }
LaudateCorpus1/llvm-project
clang/test/Analysis/plist-html-macros.c
<reponame>LaudateCorpus1/llvm-project // RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s // (basic correctness check) // RUN: rm -rf %t.dir // RUN: mkdir -p %t.dir // // RUN: %clang_analyze_cc1 -o %t.dir/index.plist %s \ // RUN: -analyzer-checker=core -analyzer-output=plist-html // // RUN: ls %t.dir | grep...
ZoeyCluff/franzbot
config/915959680080171018/faqs/permissions.js
<reponame>ZoeyCluff/franzbot exports.answer = async client => ({ "title": `Can't find character config data? We need permissions!`, "description": 'In Security and privacy in System preferences, grant XIV on Mac, \n' + 'permissions to your documents folder. This is what happens when you press \n' + "no on the d...
muteria/mart
lib/operatorsClasses/PointerArithBinop_Base/PointerArithBinop_Base.h
<gh_stars>10-100 #ifndef __MART_GENMU_operatorClasses__PointerArithBinop_Base__ #define __MART_GENMU_operatorClasses__PointerArithBinop_Base__ /** * -==== PointerArithBinop_Base.h * * MART Multi-Language LLVM Mutation Framework * * This file is distributed under the University of Illinois Open Sour...
albertofinardi/FINFO_1
10_05/1.c
<reponame>albertofinardi/FINFO_1 /* Scrivere un programma in C che chiede all'utente una sequenza di 10 numeri interi. Il programma controlla che non vi siano duplicati all'interno della sequenza data e visualizza l'esito del test (1 se non ci sono duplicati, 0 altrimenti). */ #include <stdio.h> #define DIM 10 int ma...
csf-dev/agiil
Agiil.Web.Client/src/models/tickets/TicketComment.js
<reponame>csf-dev/agiil //@flow export default class TicketComment { #id : number; get id() { return this.#id; } author : ?string; createdTimestamp : ?string; commentMarkup : ?string; canEdit : bool; canDelete : bool; get editUrl() { return `Comment/Edit/${this.id}`; } construct...
AndersenLab/CAENDR
src/modules/site/base/views/auth/auth.py
import os from logzero import logger from datetime import datetime, timezone from flask import (abort, redirect, url_for, render_template, session, request, make_response, flash, ...
raychorn/svn_Flash_Builder_4
@VyperLogixProjects/@workspace_fb46/as3gullinburstilibs/raw/wxChecksums-1.2.0/src/dlgMultiCheckConf.cpp
/* * wxChecksums * Copyright (C) 2003-2004 <NAME> * * 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 pr...
vibhor1994/3D-Cube-Wireframe
output/Data.Distributive/index.js
<gh_stars>0 // Generated by purs version 0.11.6 "use strict"; var Control_Category = require("../Control.Category"); var Control_Semigroupoid = require("../Control.Semigroupoid"); var Data_Function = require("../Data.Function"); var Data_Functor = require("../Data.Functor"); var Data_Identity = require("../Data.Identit...
qubka/signals
signal-slot-benchmarks/benchmark/cpp/benchmark_evl.cpp
<gh_stars>100-1000 #include "../hpp/benchmark_evl.hpp" NOINLINE(void Evl::initialize()) { // NOOP } NOINLINE(void Evl::validate_assert(std::size_t N)) { return Benchmark<Signal, Evl>::validation_assert(N); } NOINLINE(double Evl::construction(std::size_t N, std::size_t limit)) { return Benchmark<Signal,...
ucd-library/ucdlib-theme
test-app/pages/page-ucd-theme-slim-select.tpl.js
<filename>test-app/pages/page-ucd-theme-slim-select.tpl.js import { html, css } from 'lit'; export function styles() { const elementStyles = css` :host { display: block; } `; return [elementStyles]; } export function render() { return html` ${this.pageTitle("Slim Select")} ${this.importPane...
ey6es/witgap
src/cpp/server/script/Lexer.cpp
// // $Id$ #include "script/Lexer.h" Lexer::Lexer (const QString& expr, const QString& source) : _expr(expr), _source(source), _idx(0), _line(0), _lineIdx(0) { } /** * Checks whether the specified character is a delimiter. */ static bool isDelimiter (QChar ch) { return ch.isSpace() || ch ==...
m910q/Vale
Valestrom/Scout/src/net/verdagon/vale/scout/templex.scala
package net.verdagon.vale.scout import net.verdagon.vale.{CodeLocationS, PackageCoordinate, RangeS, vassert, vcheck, vcurious, vimpl, vpass, vwat} trait INameS trait IImpreciseNameS sealed trait IVarNameS extends INameS trait IFunctionDeclarationNameS extends INameS { def packageCoordinate: PackageCoordinate def ...
pjfanning/poi-ooxml-lite-build
src/main/java/org/openxmlformats/schemas/drawingml/x2006/chart/CTPageSetup.java
<reponame>pjfanning/poi-ooxml-lite-build<filename>src/main/java/org/openxmlformats/schemas/drawingml/x2006/chart/CTPageSetup.java<gh_stars>0 /* * XML Type: CT_PageSetup * Namespace: http://schemas.openxmlformats.org/drawingml/2006/chart * Java type: org.openxmlformats.schemas.drawingml.x2006.chart.CTPageSetup * *...
apwiede/nodemcu
docs/compMsg/search/typedefs_4.js
var searchData= [ ['encryptmsg_5ft',['encryptMsg_t',['../compMsgUtil_8h.html#a05ceee9376a25e5ed9731fa511576f39',1,'compMsgUtil.h']]] ];
NMDSdevopsServiceAdm/SopraSteria-SFC
server/models/services.js
<reponame>NMDSdevopsServiceAdm/SopraSteria-SFC /* jshint indent: 2 */ module.exports = function (sequelize, DataTypes) { const Services = sequelize.define( 'services', { id: { type: DataTypes.INTEGER, allowNull: false, primaryKey: true, autoIncrement: true, }, ...
daileyet/svm
code/src/main/java/com/openthinks/svm/web/controller/ProductlineController.java
<filename>code/src/main/java/com/openthinks/svm/web/controller/ProductlineController.java package com.openthinks.svm.web.controller; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.ste...
zkzong/java
javabasic/test-java/src/main/java/com/zkzong/test/ReadWrite.java
<reponame>zkzong/java<gh_stars>0 package com.zkzong.test; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileInputStream; import java.io.FileWriter; import java.io.IOException; import java.io.InputStreamReader; /** * Created by Zong on 2016/12/4. */ public class Re...
PlussivePulse/Prototype1.6.1_Build1_PrivateBETA
PlusaiCC_161B1_PG/src/ccc/interaction/global/webserviceScript/interact/searchHSRoster.java
package ccc.interaction.global.webserviceScript.interact; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.ui.ExpectedConditions; import org.ope...
civrot/ranger-clubhouse-web
app/serializers/setting.js
<reponame>civrot/ranger-clubhouse-web import ApplicationSerializer from 'clubhouse/serializers/application'; export default class SettingSerializer extends ApplicationSerializer { primaryKey = 'name'; }
remko/nanoc
lib/nanoc/base/views/item_rep_collection_view.rb
<filename>lib/nanoc/base/views/item_rep_collection_view.rb module Nanoc class ItemRepCollectionView < ::Nanoc::View include Enumerable class NoSuchItemRepError < ::Nanoc::Error def initialize(rep_name) super("No rep named #{rep_name.inspect} was found.") end end # @api private ...
zhuxlproject/arm-trusted-fireware
include/drivers/emmc.h
<filename>include/drivers/emmc.h /* * Copyright (c) 2016, ARM Limited and Contributors. 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...
appztreme/JugendsommerOr
public/src/Lendings/lending.svc.js
<gh_stars>0 var app = angular.module('js'); app.service('LendingSvc', function($http) { this.delete = function(lendId) { return $http.delete('/api/lendings/' + lendId); }; this.find = function() { return $http.get('/api/lendings/'); }; this.findByUser = function(userId) { return $http.get('/api/lendings/u...
CiscoDevNet/APIC-EM-Generic-Scripts-
apis/nb/clients/policy_analysis_client/models/NetworkElementInfo.py
<reponame>CiscoDevNet/APIC-EM-Generic-Scripts-<filename>apis/nb/clients/policy_analysis_client/models/NetworkElementInfo.py #!/usr/bin/env python #pylint: skip-file # This source code is licensed under the Apache license found in the # LICENSE file in the root directory of this project. class NetworkElementInfo(objec...
Corpus-2021/nakedobjects-4.0.0
plugins/sql-persistor/src/main/java/org/nakedobjects/plugins/sql/objectstore/SqlOidGenerator.java
<reponame>Corpus-2021/nakedobjects-4.0.0 package org.nakedobjects.plugins.sql.objectstore; import org.nakedobjects.metamodel.adapter.oid.Oid; import org.nakedobjects.metamodel.commons.debug.DebugString; import org.nakedobjects.metamodel.commons.ensure.Assert; import org.nakedobjects.runtime.persistence.oidgenerator.Oi...
InsightsDev-dev/tajo
tajo-catalog/tajo-catalog-common/src/main/java/org/apache/tajo/DataTypeUtil.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...
zhangkn/iOS14Header
System/Library/PrivateFrameworks/HomeKitDaemon.framework/HMDSiriSyncEvent.h
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:51:55 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/HomeKitDaemon.framework/HomeKitDaemon * classdump-dyld is licensed under GPLv3, Copyright © 2013-201...
chrismattmann/solrcene
solr/src/java/org/apache/solr/handler/component/QueryComponent.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...
som-snytt/zinc
internal/zinc-persist/src/main/scala/sbt/internal/inc/text/InputWrapperStream.scala
/* * Zinc - The incremental compiler for Scala. * Copyright Lightbend, Inc. and <NAME> * * Licensed under Apache License 2.0 * (http://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ package sbt.internal.in...
nochkin/growl
Plugins/Displays/Animation & Transitions/Window Transitions/GrowlFadingWindowTransition.h
// // GrowlFadingWindowTransition.h // Growl // // Created by <NAME> on 27/07/05. // Copyright 2005-2006 The Growl Project. All rights reserved. // #import <GrowlPlugins/GrowlWindowtransition.h> @interface GrowlFadingWindowTransition : GrowlWindowTransition { } @end