repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
lechium/tvOS135Headers
System/Library/PrivateFrameworks/UIKitCore.framework/UIKBKeyView.h
/* * This header is generated by classdump-dyld 1.0 * on Sunday, June 7, 2020 at 11:45:32 AM Mountain Standard Time * Operating System: Version 13.4.5 (Build 17L562) * Image Source: /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>....
bicepjai/mypuzzles
others/sorts/mergesort.java
<filename>others/sorts/mergesort.java import java.util.Arrays; public class mergesort { public static int[] merge (int[] a1, int[] a2){ int i=0, k=0, j=0; int[] b = new int[a1.length + a2.length]; while (i<a1.length && j<a2.length) { System.out.println("i="+i+" j="+j); if (a1[i] < a2[j]) b[k++] = a...
AutonomicPerfectionist/myrobotlab
src/org/myrobotlab/document/workflow/WorkflowWorker.java
package org.myrobotlab.document.workflow; import java.util.ArrayList; import java.util.List; import java.util.concurrent.LinkedBlockingQueue; import org.myrobotlab.document.Document; import org.myrobotlab.document.ProcessingStatus; import org.myrobotlab.document.transformer.AbstractStage; import org.myrobotl...
HHAIE/firebase-test
install_app/install-tools.js
<filename>install_app/install-tools.js<gh_stars>10-100 /* install-tools.js * Copyright (c) 2019-2021 by <NAME>, https://github.com/david-asher * * Helper functions for other install scripts. */ 'use strict'; const fs = require('fs') const os = require('os') const path = require('path') const { env } = require('pr...
Swampbots/FreightFrenzy
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/robot/subsystems/CapGrip.java
package org.firstinspires.ftc.teamcode.robot.subsystems; import com.disnodeteam.dogecommander.Subsystem; import com.qualcomm.robotcore.hardware.HardwareMap; import com.qualcomm.robotcore.hardware.Servo; @Deprecated public class CapGrip implements Subsystem { private HardwareMap hardwareMap; private Servo gri...
zweimach/wiyata.c
src/open_kattis/fizzbuzz.h
#ifndef WIYATA_OPEN_KATTIS_FIZZBUZZ_H #define WIYATA_OPEN_KATTIS_FIZZBUZZ_H char const* fizzbuzz(int x, int y, int n); #endif /* WIYATA_OPEN_KATTIS_FIZZBUZZ_H */
alicegraziosi/semaphore
node_modules/angularjs-color-picker/test/e2e/button-reset.protractor.js
<reponame>alicegraziosi/semaphore<filename>node_modules/angularjs-color-picker/test/e2e/button-reset.protractor.js var Page = require('../page-object.js'); describe('Options: ', () => { describe('Button Reset: ', () => { beforeAll(() => { Page.openPage(); Page.waitTillPageLoaded(); ...
DanielGMesquita/StudyPath
PythonFIAP/5_2_SistemaOperacional/UsuarioData.py
import getpass from datetime import datetime print('Usuário: ', getpass.getuser()) print('Data completa: ', datetime.now()) print('Dia: ', datetime.now().day) print('Mês: ', datetime.now().month) print('Ano: ', datetime.now().year) # hour, minute and second
skullbaselab/aa-afterdark
google-maps-demo-master/config/routes.rb
<filename>google-maps-demo-master/config/routes.rb<gh_stars>1-10 Rails.application.routes.draw do root to: 'static_pages#root' namespace :api do resources :listings, only: [:create, :destroy, :index] get 'listings/search/', to: 'listings#search' end end
986510453/SpringLimiter
src/main/java/site/higgs/limiter/interceptor/LimitContextsValueWrapper.java
<gh_stars>1-10 package site.higgs.limiter.interceptor; public class LimitContextsValueWrapper { private boolean value; private Object limiterFailResolveResult; public LimitContextsValueWrapper(boolean value, Object limiterFailResolveResult) { this.value = value; this.limiterFailResolveR...
truemrwalker/mads-app
prediction/models.py
from django.contrib.auth import get_user_model from django.contrib.auth.models import Group from django.db import models from django.db.models.signals import post_delete from django.dispatch import receiver from django.urls import reverse from private_storage.fields import PrivateFileField from jsonfield import JSONFi...
jljacoblo/jalgorithmCPP
src/STLDuddle/Sort.h
<filename>src/STLDuddle/Sort.h // // Created by <NAME> on Jan 08, 2019. // // STL Sort implemented as Quick-Sort. #pragma once #include <vector> #include <algorithm> namespace STLDuddle { /// default sort ( default comparator with increment ) void sortDefaultIncrement () { int arr[] = {32,71,12,45,26,80,5...
iomash/jbatch
src/cmd/parseJSON/parseJSON.js
define(['jquery'], function($) { 'use strict'; return function(args, ctx) { try { ctx.write($.parseJSON(args[1])); } catch (ex) { ctx.write(ex); return ctx.fail; } return ctx.done; }; });
lemnisk8/framework7
packages/vue/components/chip.js
import Utils from '../utils/utils'; import Mixins from '../utils/mixins'; import __vueComponentDispatchEvent from '../runtime-helpers/vue-component-dispatch-event.js'; import __vueComponentProps from '../runtime-helpers/vue-component-props.js'; export default { name: 'f7-chip', props: Object.assign({ id: [Strin...
TheSledgeHammer/2.11BSD
contrib/gnu/gcc/dist/gcc/config/rs6000/darwin64-biarch.h
/* Target definitions for PowerPC64 running Darwin (Mac OS X) for a 64b host supporting a 32b multilib. Copyright (C) 2006-2020 Free Software Foundation, Inc. Contributed by Apple Computer Inc. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms o...
jafc-stripe/sorbet
namer/configatron/configatron.cc
#include "yaml-cpp/yaml.h" // has to go first as it violates our poisions #include "absl/strings/match.h" #include "common/FileOps.h" #include "configatron.h" #include <cctype> #include <sys/types.h> #include <utility> using namespace std; namespace sorbet::namer { namespace { enum class StringKind { String, Integer...
unisonteam/ignite-3
modules/storage-page-memory/src/main/java/org/apache/ignite/internal/storage/pagememory/mv/RowVersionFreeList.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 ...
ninoseki/uzen
tests/apis/test_screenshots.py
import asyncio import pytest from fastapi.testclient import TestClient from tests.helper import first_snapshot_id_sync @pytest.mark.usefixtures("snapshots_setup") def test_screenshots(client: TestClient, event_loop: asyncio.AbstractEventLoop): snapshot_id = first_snapshot_id_sync(event_loop) response = cli...
leonardt/magma
magma/display.py
<filename>magma/display.py from magma.circuit import peek_definition_context_stack from magma.t import Type class _Time: pass def time(): return _Time() class _Event: def __init__(self, value): if not isinstance(value, Type): raise TypeError("Expected magma value for event") ...
TomMD/pinot
thirdeye/thirdeye-pinot/src/main/java/com/linkedin/thirdeye/rootcause/impl/ServiceEntity.java
package com.linkedin.thirdeye.rootcause.impl; import com.linkedin.thirdeye.rootcause.Entity; import com.linkedin.thirdeye.rootcause.util.EntityUtils; import com.linkedin.thirdeye.rootcause.util.ParsedUrn; import java.util.ArrayList; import java.util.Collections; import java.util.List; /** * ServiceEntity represents...
forever-Liudawang/LDSystem
LDream/util/confirm.js
export default function confirm(resp,success,error,showToast){ if(resp && resp.data && resp.data.success){ success && success(resp.data.data) }else{ if(resp.data.message){ error?error():uni.showToast({ title:resp.data.message, icon:"error" }) } } }
Robbbert/messui
src/devices/cpu/hpc/hpcdasm.cpp
// license:BSD-3-Clause // copyright-holders:AJR /*************************************************************************** National Semiconductor HPC disassembler Note that though all 16-bit fields in instructions have the MSB first, the HPC's memory organization is in fact little-endian (including ...
matthiasblaesing/COMTypelibraries
vbide5/src/main/java/eu/doppel_helix/jna/tlb/vbide5/VBComponent.java
package eu.doppel_helix.jna.tlb.vbide5; import com.sun.jna.platform.win32.COM.COMException; import com.sun.jna.platform.win32.COM.util.IComEventCallbackCookie; import com.sun.jna.platform.win32.COM.util.IComEventCallbackListener; import com.sun.jna.platform.win32.COM.util.IConnectionPoint; import com.sun.jna.platform...
Webaholicson/automall
spec/controllers/attributes_controller_spec.rb
<filename>spec/controllers/attributes_controller_spec.rb require 'rails_helper' RSpec.describe AttributesController, type: :controller do end
eiroca/freej2me
src/jme-api/src/main/java/javax/microedition/io/Datagram.java
/** * This file is part of FreeJ2ME. * * FreeJ2ME 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 3 of the * License, or (at your option) any later version. * * FreeJ2ME is distributed in t...
acgist/muses
boot-parent/boot-test/src/test/java/com/acgist/nosql/neo4j/PersonRelationship.java
<reponame>acgist/muses package com.acgist.nosql.neo4j; import org.springframework.data.neo4j.core.schema.RelationshipProperties; import com.acgist.model.neo4j.BootRelationship; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Setter; @Getter @Setter @EqualsAndHashCode(callSuper = true) @Relation...
josephwinston/hana
test/sandbox/repeat.cpp
<reponame>josephwinston/hana<filename>test/sandbox/repeat.cpp /* @copyright <NAME> 2015 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ #include <boost/hana/assert.hpp> #include <boost/hana/bool.hpp> #include <boost/hana/core...
arsenm/rocPRIM
test/rocprim/test_hc_tuple.cpp
<filename>test/rocprim/test_hc_tuple.cpp // MIT License // // Copyright (c) 2017 Advanced Micro Devices, Inc. All rights reserved. // // 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 withou...
dwilt/the-resistance
react-redux-generator/reducer/selectors.js
<reponame>dwilt/the-resistance<gh_stars>1-10 const { createFile, getImportStatement, capitalizeFirstChar, getFileNames, getExportAllString, } = require(`../helpers.js`); const { reducerName, initialStateObject, selectorsFolderPath, simpleReducer } = require(`./vars`); const selecto...
neuralm/Neuralm-Java-Client
src/main/java/net/neuralm/client/messages/requests/DisableTrainingRoomRequest.java
package net.neuralm.client.messages.requests; public class DisableTrainingRoomRequest extends Request { public final int trainingRoomId; public final int userId; public DisableTrainingRoomRequest(int trainingRoomId, int userId) { this.trainingRoomId = trainingRoomId; this.userId = userId;...
Beiden/Intkr_SAAS_BEIDEN
com/intkr/saas/module/screen/admin/item/dialog/ItemPropertySelect.java
<filename>com/intkr/saas/module/screen/admin/item/dialog/ItemPropertySelect.java<gh_stars>0 package com.intkr.saas.module.screen.admin.item.dialog; import com.intkr.saas.module.screen.admin.item.ItemPropertyMgr; /** * * @author Beiden * @date 2016-6-18 下午10:17:54 * @version 1.0 */ public class ItemPropertySelec...
AppSecAI-TEST/lightfish
multilight/lightfish-st/src/test/java/org/lightfish/business/MessageEndpoint.java
/* * */ package org.lightfish.business; import java.util.concurrent.CountDownLatch; import javax.websocket.Endpoint; import javax.websocket.EndpointConfig; import javax.websocket.MessageHandler; import javax.websocket.Session; /** * * @author adam-bien.com */ public class MessageEndpoint extends Endpoint { ...
colin-zhou/mrfs
linux/access/acc.c
#include <stdio.h> #include <unistd.h> int main() { if(access("./file.test", F_OK) != -1) { printf("relative find success\n"); } else { printf("relative path can't find\n"); } if(access("/home/colin/Git/reserve/linux_api/access/file.test", F_OK) != -1) { printf("ablsolute file exist"); } else { printf("a...
EtashGuha/Etude
public/WebViewer/lib/ui/src/components/AnnotationPopup/AnnotationPopup.js
<gh_stars>0 import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import ActionButton from 'components/ActionButton'; import AnnotationStylePopup from 'components/AnnotationStylePopup'; import core from 'core'; import { getAnnotationPopupPositionBasedOn } from 'helpers/...
PageNotFoundx/tractor
oldversion/src/main/java/org/raniaia/minipika/framework/sql/xml/parser/MapperLabelParser.java
<reponame>PageNotFoundx/tractor package org.jiakesiws.minipika.framework.sql.xml.parser; /* ************************************************************************ * * Copyright (C) 2020 2B键盘 All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file exce...
steve-at/graphium
model/src/main/java/at/srfg/graphium/model/IWayGraphMetadataFactory.java
/** * Copyright © 2017 Salzburg Research Forschungsgesellschaft (<EMAIL>) * * 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 * * Unles...
EvgenyKungurov/body_builder
examples/app/models/client_restriction.rb
class ClientRestriction < ActiveRecord::Base def self.max_internet_clients_per_day(internet_day) internet_clients = 0 Turn.select { |turn| turn.day == internet_day }.each do |turn| turn.clients.each do |client| internet_clients += 1 if client.symbol_name_turn.include? 'И' end end ...
shakuzen/helidon
examples/webserver/demo-translator-frontend/src/test/java/io/helidon/webserver/examples/translator/TranslatorTest.java
<gh_stars>1-10 /* * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/L...
Lamasusb000/CoinHuntWorld-QuestionComplete
src/components/ContactInfo.js
<reponame>Lamasusb000/CoinHuntWorld-QuestionComplete import React from "react" import ContactInfoJSON from "../../site/settings/SiteContactInfo.json" class ContactInfo extends React.Component{ render(){ return ( <div className="Left-Column"> <h2>Contact Information</h2> ...
cdcchain/cdc-core
include/consensus/api_extern.hpp
// Copyright (c) 2017-2018 The CDC developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once #include <client/Client.hpp> namespace cdcchain{ namespace client{ extern Client* g_client; extern bool g_...
alexhenrie/owltools
OWLTools-NCBI/src/main/java/owltools/ncbi/NCBIOWL.java
package owltools.ncbi; import java.io.File; import java.util.HashMap; import java.util.HashSet; import java.util.Set; import org.apache.log4j.Logger; import org.obolibrary.obo2owl.Obo2OWLConstants.Obo2OWLVocabulary; import org.obolibrary.obo2owl.Obo2Owl; import org.obolibrary.oboformat.parser.OBOFormatConstants.OboFo...
isifeddi/42-red-tetris
client/src/Components/Stage.test.js
<filename>client/src/Components/Stage.test.js<gh_stars>0 import renderer from "react-test-renderer"; import Stage from "./Stage"; import { Createstage } from "../gameHelper"; let stage = Createstage(12, 20) test("Stage render test GameOver ", () => { const tree = renderer.create(<Stage gameOver={true} stage={stage...
abouteiller/ucx
test/examples/active_message.c
<gh_stars>0 /** * Copyright (C) UT-Battelle, LLC. 2015. ALL RIGHTS RESERVED. * See file LICENSE for terms. */ #include <ucs/type/status.h> #include <ucs/async/async.h> #include <uct/api/uct.h> #include <mpi.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #define CHKERR_JUMP(cond, msg, label) \ do ...
Fita1488/recon
packages/recon-engine/src/parse/__tests__/__fixtures__/basic-components/src.js
<filename>packages/recon-engine/src/parse/__tests__/__fixtures__/basic-components/src.js /* eslint-disable */ import React from 'react'; export function FunctionalComponent() { return <div>Hello world!</div>; } export const ArrowFunctionalComponent = () => <div />; export default class ClassComponent { render() ...
bluememon/Anxiety-Monitor
app/controllers/categoList.js
var args = arguments[0] || {}; var idPaciente = arguments[0].idPatient; var dataArrayCatego = []; var buttonToggle = false; getTodoList(idPaciente); $.activityIndicator.show(); loadData(); function loadData(){ var sendit = Ti.Network.createHTTPClient({ onerror: function(e){ Ti.API.debug(e.e...
ExpediaDotCom/haystack-pipes
commons/src/main/java/com/expedia/www/haystack/pipes/commons/serialization/SpanProtobufSerializer.java
<reponame>ExpediaDotCom/haystack-pipes<gh_stars>1-10 /* * Copyright 2018 Expedia, 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...
bufan1228/jdonframework
src/main/java/com/jdon/util/UtilDateTime.java
<reponame>bufan1228/jdonframework /* * $Id: UtilDateTime.java,v 1.2 2005/01/31 05:27:55 jdon Exp $ * * Copyright (c) 2001, 2002 The Open For Business Project - www.ofbiz.org * * Permission is hereby granted, free of charge, to any person obtaining event * copy of this software and associated documentatio...
star-finder/jpf-star
expected-output/random_after_reset_index/sll/Input_withNextDown1.java
package random.sll; import common.Utilities; import org.junit.Test; import gov.nasa.jpf.util.test.TestJPF; public class Input_withNextDown1 extends TestJPF { @Test public void test_withNextDown1() throws Exception { Input obj = new Input(); Node root = new Node(); Node next_66 = null; int elem_65 = -22; ...
mxc-foundation/lora-app-server
internal/devprovision/devprovision.go
package devprovision import ( "bytes" "context" "encoding/binary" "encoding/hex" "sync" "time" "github.com/jacobsa/crypto/cmac" "github.com/pkg/errors" "github.com/sirupsen/logrus" "github.com/brocaar/chirpstack-api/go/v3/as" gwV3 "github.com/brocaar/chirpstack-api/go/v3/gw" "github.com/brocaar/lorawan" ...
NBANDROIDTEAM/NBANDROID-V2
nbandroid.gradle.spi/src/main/java/nbandroid/gradle/spi/GradleJvmConfiguration.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 ...
badfic/phil-bot-java
src/main/java/com/badfic/philbot/listeners/phil/swampy/TimeoutCommand.java
<reponame>badfic/phil-bot-java<gh_stars>1-10 package com.badfic.philbot.listeners.phil.swampy; import static net.dv8tion.jda.api.Permission.MESSAGE_ATTACH_FILES; import static net.dv8tion.jda.api.Permission.MESSAGE_EMBED_LINKS; import static net.dv8tion.jda.api.Permission.MESSAGE_WRITE; import com.badfic.philbot.conf...
mtunganati/oneops
oneops-admin/lib/chef/knife/model_sync.rb
require 'chef/knife/base_sync' require 'chef/cookbook_loader' class Chef class Knife class ModelSync < Chef::Knife::CookbookMetadata include ::BaseSync banner "Loads class and relation metadata into OneOps\nUsage: \n circuit model [OPTIONS] [COOKBOOKS...]" option :all, :short ...
legioner9/Node_Way_source_2
Store/myNpm/st_doc1/js_DOCS/Function/Docs/Bind/3-callback-named_bind_to_contract.js
'use strict'; const fs = require ( 'fs' ); const path = require ( 'path' ); const print = ( fileName, day, err, data ) => { console.log ( { day } ); console.log ( { fileName } ); console.log ( { lines: data.split ( '\n' ).length } ); }; const fileName = path.join ( __dirname, '1-callback.js' ); const day...
Neusoft-Technology-Solutions/aws-sdk-cpp
aws-cpp-sdk-config/include/aws/config/model/EvaluationResultQualifier.h
<filename>aws-cpp-sdk-config/include/aws/config/model/EvaluationResultQualifier.h /** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/config/ConfigService_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <...
mowangdk/huskar
huskar_api/models/manifest.py
<gh_stars>10-100 from __future__ import absolute_import from huskar_sdk_v2.utils import combine from huskar_sdk_v2.consts import BASE_PATH from huskar_api.models import huskar_client from huskar_api.models.znode import ZnodeList __all__ = ['application_manifest'] class ApplicationManifest(object): """The mani...
mramshaw/alexa-skills-kit-java
src/com/amazon/speech/speechlet/interfaces/core/directive/HintDirective.java
/* Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at http://aws.amazon.com/apache2.0/ or in the "license" ...
DangHT/workflow
scheduler/src/main/java/me/danght/workflow/scheduler/element/Node.java
package me.danght.workflow.scheduler.element; import io.quarkus.redis.client.RedisClient; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.experimental.Accessors; import me.danght.workflow.common.api.schduler.ProcessInstanceService; import me.danght.workflow.scheduler.dao.TaskInstanceRepository; impo...
lxb1226/leetcode_cpp
src/question88.cpp
<filename>src/question88.cpp #include <iostream> #include <vector> #include <algorithm> using namespace std; class Solution { public: void merge(vector<int>& nums1, int m, vector<int>& nums2, int n) { int i = m - 1, j = n - 1; int len = m + n; while(i >= 0 && j >= 0){ if(nums1[...
richardqiu/pyjanitor
janitor/xarray/functions.py
<reponame>richardqiu/pyjanitor<gh_stars>1-10 """ Functions to augment XArray DataArrays and Datasets with additional functionality. """ from typing import Union import numpy as np import xarray as xr from pandas_flavor import ( register_xarray_dataarray_method, register_xarray_dataset_method, ) @register_x...
leftjs/qs-manager
src/reducers/index.js
<filename>src/reducers/index.js<gh_stars>0 /* Combine all available reducers to a single root reducer. * * CAUTION: When using the generators, this file is modified in some places. * This is done via AST traversal - Some of your formatting may be lost * in the process - no functionality should be ...
aakoshh/metronome
metronome/checkpointing/models/src/io/iohk/metronome/checkpointing/models/Block.scala
package io.iohk.metronome.checkpointing.models import io.iohk.metronome.checkpointing.models.Transaction.ProposerBlock import scodec.bits.ByteVector /** Represents what the HotStuff paper called "nodes" as the "tree", * with the transactions in the body being the "commands". * * The block contents are specific ...
AndrewTimokhin/fizteh-java-2014
src/ru/fizteh/fivt/students/IvanShafran/shell/commands/Command.java
<reponame>AndrewTimokhin/fizteh-java-2014<filename>src/ru/fizteh/fivt/students/IvanShafran/shell/commands/Command.java<gh_stars>1-10 package ru.fizteh.fivt.students.IvanShafran.shell.commands; import java.io.File; import java.nio.file.Paths; import java.util.ArrayList; public abstract class Command { public abstr...
domenic/test262
external/contributions/Google/sputniktests/tests/Conformance/11_Expressions/11.13_Assignment_Operators/11.13.2_Compound_Assignment/S11.13.2_A3.2_T7.js
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S11.13.2_A3.2_T7; * @section: 11.13.2; * @assertion: Operator x @= y returns x @ y; * @description: Checking Expression and Variable statements for x >>= y; */ //CHECK#1...
comake/yip-yip
src/components/searchbar/search_input.js
import React from 'react'; import { YIPYIP_INPUT_ID } from '../../constants.js'; const SearchInput = (props) => { const { searchText, updateSearchText, inputRef, onBlur } = props; const onSearchTextChange = React.useCallback(event => updateSearchText(event.target.value), [updateSearchText]) return ( <div i...
Starcounter/rap
frameheader.go
// Copyright 2018 <NAME>. All rights reserved. // Use of this source code is governed by the MIT license, see the LICENSE file. // A frame header consists of four bytes. First byte is the flow-control bit // and high seven bits of the size data. Second byte is low eight bits of the // size data. Third byte is high eig...
matkosoric/OCP
src/main/java/edu/matkosoric/execution/output/prrt/PRRT.java
<reponame>matkosoric/OCP package edu.matkosoric.execution.output.prrt; /* * Code examples for Oracle Certified Professional (OCP) Exam * Java 11 SE, 2021. * Created by © <NAME>. */ // #TAG1 public class PRRT { // what has to be added to line 1 in order to output PRRT // continue a; public static vo...
msleprosy/cloud-pipeline
e2e/cli/buckets/mv/test_mv_with_folders.py
<reponame>msleprosy/cloud-pipeline # Copyright 2017-2019 EPAM Systems, Inc. (https://www.epam.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/LICEN...
xmgz/commafeed
src/main/java/com/commafeed/backend/model/FeedEntry.java
package com.commafeed.backend.model; import java.util.Date; import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.JoinColumn; import javax.persistence.JoinTable; import javax...
tranleduy2000/JSPIIJ
src/com/js/interpreter/pascaltypes/CustomType.java
<filename>src/com/js/interpreter/pascaltypes/CustomType.java package com.js.interpreter.pascaltypes; import com.js.interpreter.ast.VariableDeclaration; import com.js.interpreter.ast.expressioncontext.ExpressionContext; import com.js.interpreter.ast.returnsvalue.RValue; import com.js.interpreter.ast.returnsvalue.clonin...
npocmaka/Windows-Server-2003
inetsrv/msmq/src/admin/mqsnap/infodlg.h
<reponame>npocmaka/Windows-Server-2003 // InfoDlg.h : header file // ///////////////////////////////////////////////////////////////////////////// // CInfoDlgDialog dialog class CInfoDlgDialog : public CMqDialog { // Construction public: static CInfoDlgDialog *CreateObject(LPCTSTR szInfoText, CWnd* pPar...
DaManDOH/Simd
src/Simd/SimdSse2Reduce.cpp
/* * Simd Library (http://ermig1979.github.io/Simd). * * Copyright (c) 2011-2018 <NAME>, * 2018-2018 <NAME>. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without re...
SouvikChan/-Leetcode_Souvik
961-n-repeated-element-in-size-2n-array/961-n-repeated-element-in-size-2n-array.cpp
class Solution { public: int repeatedNTimes(vector<int>& nums) { int occ=nums.size()/2; unordered_map<int, int> tp; int ans; for(auto it:nums) tp[it]++; for(auto it:tp) if(it.second==occ) ans=it.first; return ans; } };
bmeares/Meerschaum
meerschaum/config/_read_config.py
<reponame>bmeares/Meerschaum #! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 """ Import the config yaml file """ from __future__ import annotations from meerschaum.utils.typing import Optional, Dict, Any, List, Tuple, Union def read_config( directory : Optional[Dict[str, Any]] = None, ...
precontext/TaobaoUnion
app/src/main/java/com/program/taobaounion/view/IOnSellPageCallback.java
<reponame>precontext/TaobaoUnion<filename>app/src/main/java/com/program/taobaounion/view/IOnSellPageCallback.java package com.program.taobaounion.view; import com.program.taobaounion.base.IBaseCallback; import com.program.taobaounion.model.domain.OnSellContent; public interface IOnSellPageCallback extends IBaseCallba...
riverar/microsoft-ui-xaml
test/TestAppCX/MainPage.xaml.cpp
<reponame>riverar/microsoft-ui-xaml<filename>test/TestAppCX/MainPage.xaml.cpp // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. // // MainPage.xaml.cpp // Implementation of the MainPage class. // #include "...
eenurkka/incubator-nuttx
arch/arm/src/lpc31xx/lpc31_resetclks.c
<reponame>eenurkka/incubator-nuttx /**************************************************************************** * arch/arm/src/lpc31xx/lpc31_resetclks.c * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for ad...
ohmdrj/vax
src/main/java/cz/req/ax/ui/LayoutFiller.java
<reponame>ohmdrj/vax<gh_stars>0 package cz.req.ax.ui; import com.vaadin.ui.Layout; /** * @author <a href="mailto:<EMAIL>"><NAME></a> * Date: 26.2.2016 */ public interface LayoutFiller { void fillLayout(Layout layout); }
shwilliam/r10-app
js/components/Title.styles.js
import {StyleSheet} from 'react-native' import THEME from '../theme' const styles = StyleSheet.create({ title: { fontFamily: THEME.FONT.FAMILY.REGULAR, fontSize: THEME.FONT.SIZE.TITLE, marginTop: THEME.SPACING.VERTICAL / 2, marginBottom: THEME.SPACING.VERTICAL, }, }) export default styles
Pondorasti/Competitive-Programming
Advent of Code/2021/7/2.py
<filename>Advent of Code/2021/7/2.py import math with open('input.txt') as f: lines = f.readlines() crabs = [] for interval in lines[0].split(","): crabs.append(int(interval)) minVal = min(crabs) maxVal = max(crabs) + 1 crabFreq = [0 for _ in range(maxVal)] for crab in crabs: crabFreq[crab] += 1 parti...
landonreed/GeoGit
src/core/src/main/java/org/geogit/storage/text/TextValueSerializer.java
<reponame>landonreed/GeoGit /* Copyright (c) 2013 OpenPlans. All rights reserved. * This code is licensed under the BSD New License, available at the root * application directory. */ package org.geogit.storage.text; import java.math.BigDecimal; import java.math.BigInteger; import java.util.HashMap; import java.util...
perfectrecall/aws-sdk-cpp
aws-cpp-sdk-comprehendmedical/source/model/InferSNOMEDCTRequest.cpp
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/comprehendmedical/model/InferSNOMEDCTRequest.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::ComprehendMedical::Model; using namespace Aws::U...
kawasin73/tcpip-stack
test/raw_tap_test.c
<filename>test/raw_tap_test.c #include <signal.h> #include <stdio.h> #include "raw/tap.h" volatile sig_atomic_t terminate; static void on_signal(int s) { terminate = 1; } static void rx_handler(uint8_t *frame, size_t len, void *arg) { fprintf(stderr, "receive %zu octets\n", len); } int main(int argc, char const *...
nitrictech/apis
jvm/src/main/java/io/nitric/proto/resource/v1/TopicResourceOrBuilder.java
<filename>jvm/src/main/java/io/nitric/proto/resource/v1/TopicResourceOrBuilder.java // Generated by the protocol buffer compiler. DO NOT EDIT! // source: proto/resource/v1/resource.proto package io.nitric.proto.resource.v1; public interface TopicResourceOrBuilder extends // @@protoc_insertion_point(interface_ext...
aklomp/sse-intrinsics-tests
tests/exhaustive_16bit.c
#include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <emmintrin.h> #include "../lib/mm_cmple_epu16.h" #include "../lib/mm_cmpgt_epu16.h" #include "../lib/mm_cmplt_epu16.h" #include "../lib/mm_cmpge_epu16.h" #include "../lib/mm_blendv_si128.h" #include "../lib/mm_min_epu16.h" #include "../lib/mm_max_epu...
bence21/Projector
Projector-server/src/main/java/com/bence/projector/server/backend/service/SongCollectionService.java
<reponame>bence21/Projector<filename>Projector-server/src/main/java/com/bence/projector/server/backend/service/SongCollectionService.java package com.bence.projector.server.backend.service; import com.bence.projector.server.backend.model.Language; import com.bence.projector.server.backend.model.Song; import com.bence....
mattinsler/com.lowereast.guiceymongo
src/examples/CollectionConfigurationExample.java
/** * Copyright (C) 2010 Lowereast Software * * 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 ap...
rpiaggio/ocs
bundle/jsky.app.ot/src/main/scala/jsky/app/ot/gemini/editor/targetComponent/details2/ForwardingTelescopePosWatcher.scala
package jsky.app.ot.gemini.editor.targetComponent.details2 import edu.gemini.pot.sp.ISPNode import edu.gemini.shared.util.immutable.{None => GNone, Option => GOption} import edu.gemini.spModel.obs.context.ObsContext import edu.gemini.spModel.target.{SPSkyObject, TelescopePosWatcher, WatchablePos} import jsky.app.ot.ge...
SnehlataKumari/lems
dist/services/liveClass.service.js
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
BearerPipelineTest/fae
spec/services/netlify_api_spec.rb
require 'rails_helper' describe Fae::NetlifyApi, type: :model do describe '#get_deploys' do it 'should return deploys' do expect(Fae::NetlifyApi.new().get_deploys).not_to be_nil end end end
AlgoLab/BEETL
src/frontends/BeetlSearch.cpp
/** ** Copyright (c) 2011 Illumina, Inc. ** ** ** This software is covered by the "Illumina Non-Commercial Use Software ** and Source Code License Agreement" and any user of this software or ** source file is bound by the terms therein (see accompanying file ** Illumina_Non-Commercial_Use_Software_and_Source_Cod...
hjuinj/RDKit_mETKDG
modified_rdkit/Code/GraphMol/MolTransforms/MolTransforms.cpp
<filename>modified_rdkit/Code/GraphMol/MolTransforms/MolTransforms.cpp // // Copyright (C) 2003-2016 <NAME> and Rational Discovery LLC // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found...
tetrafolium/luci-go
common/retry/defaults.go
// Copyright 2015 The LUCI Authors. // // 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...
jbruggem/jingles-impro
src/workspace/track.cpp
<filename>src/workspace/track.cpp #include "track.h" //xxx do we want the copy constructor to use a new fileRef or just copy the other object's pointer? Track::Track(const Track& track): QObject(track.parent()), fileInfo(track.fileInfo), loopEnabled(track.loopEnabled), startTime(track.startTime), e...
pdpdds/sdldualsystem
sdl1/VisualBoyAdvance/src/win32/GBMemoryViewerDlg.cpp
// VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator. // Copyright (C) 1999-2003 Forgotten // Copyright (C) 2004 Forgotten and the VBA development team // 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 F...
atmelino/JATexperimental
src/jat/coreNOSA/cm/FiniteBurn.java
/* JAT: Java Astrodynamics Toolkit * * Copyright (c) 2003 National Aeronautics and Space Administration. All rights reserved. * * This file is part of JAT. JAT is free software; you can * redistribute it and/or modify it under the terms of the * NASA Open Source Agreement * * * This program is distributed ...
tangjwtj/jparsec
jparsec/src/main/java/org/jparsec/ParseContext.java
/***************************************************************************** * Copyright (C) jparsec.org * * ------------------------------------------------------------------------- * * Licensed under the Apache License, Version 2.0 (the "License"); * * yo...
inodeman/kie-tools
packages/stunner-editors/kie-wb-common-stunner/kie-wb-common-stunner-core/kie-wb-common-stunner-api/kie-wb-common-stunner-client-api/src/main/java/org/kie/workbench/common/stunner/core/client/canvas/controls/keyboard/shortcut/KeyboardShortcut.java
/* * Copyright 2018 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
PavelZX/rekit-studio
src/features/plugin-default/core/file.js
const { vio, refactor } = rekit.core; function add(filePath) { if (vio.fileExists(filePath)) throw new Error('File already exists: ' + filePath); vio.save(filePath, ''); } function move(source, target) { if (vio.fileExists(target)) throw new Error('File already exists: ' + target); if (!vio.fileExists(source)...
joeistyping/runelite
runescape-client/src/main/java/class233.java
import net.runelite.mapping.ObfuscatedGetter; import net.runelite.mapping.ObfuscatedName; import net.runelite.mapping.ObfuscatedSignature; @ObfuscatedName("hx") public class class233 extends Node { @ObfuscatedName("o") @ObfuscatedGetter( intValue = 1927342867 ) int field2762; @ObfuscatedName("k") ...
offlinehacker/NCD
client/DPReceive.c
/** * @file DPReceive.c * @author <NAME> <<EMAIL>> * * @section LICENSE * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright * notice, this li...