repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
rvedam/es-operating-system | os/net/src/streamOutput.cpp | /*
* Copyright 2008 Google Inc.
* Copyright 2006, 2007 Nintendo Co., Ltd.
*
* 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
*
* Unle... |
StOriJimmy/chordatlas | src/org/twak/footprints/Footprints.java | package org.twak.footprints;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.geom.Line2D;
import java.awt.image.BufferedImage;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.Inpu... |
AlhonGelios/AO | org/apache/xmlbeans/impl/jam/JSourcePosition.java | package org.apache.xmlbeans.impl.jam;
import java.net.URI;
public interface JSourcePosition {
int getColumn();
int getLine();
URI getSourceURI();
}
|
direkshan-digital/ofbiz-framework | framework/minilang/src/main/java/org/apache/ofbiz/minilang/method/entityops/EntityData.java | <filename>framework/minilang/src/main/java/org/apache/ofbiz/minilang/method/entityops/EntityData.java
/*******************************************************************************
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distribu... |
weex/federation | federation/hostmeta/generators.py | import json
import os
import warnings
from base64 import b64encode
from string import Template
from typing import Dict
from jsonschema import validate
from jsonschema.exceptions import ValidationError
from xrd import XRD, Link, Element
def generate_host_meta(template=None, *args, **kwargs):
"""Generate a host-me... |
phalodi/spark-semantic | src/main/java/com.ibm.research.quetzal.core/src/com/ibm/research/rdf/store/sparql11/planner/GraphRestrictionPattern.java | <gh_stars>0
/******************************************************************************
* Copyright (c) 2015 IBM Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is a... |
masud-technope/ACER-Replication-Package-ASE2017 | corpus/class/eclipse.jdt.core/5402.java | package PackageReference;
public class F {
p3.p2.p.X foo() {
return null;
}
}
|
devefx/validator-web | validator-web/src/main/java/org/devefx/validator/script/handler/JavaScriptHandler.java | /*
* Copyright 2016-2017, <NAME> (<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
*
* Unless required by applicable law ... |
aroundble/onap | catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/GroupTypeBusinessLogic.java | <reponame>aroundble/onap
package org.openecomp.sdc.be.components.impl;
import org.openecomp.sdc.be.components.impl.exceptions.ComponentException;
import org.openecomp.sdc.be.components.validation.UserValidations;
import org.openecomp.sdc.be.config.ConfigurationManager;
import org.openecomp.sdc.be.dao.jsongraph.TitanDa... |
sguazt/dcsxx-commons | inc/dcs/meta/bool.hpp | /**
* \file dcs/meta/bool.hpp
*
* \brief Boolean integral constant wrapper.
*
* \author <NAME> (<EMAIL>)
*
* <hr/>
*
* Copyright 2009 <NAME> (<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 co... |
java-catering/Back-End | web/src/main/java/app/config/Bootstrap.java | <filename>web/src/main/java/app/config/Bootstrap.java
package app.config;
import app.models.*;
import app.services.ProductService;
import app.services.PurchaseService;
import app.services.Purchase_ProductService;
import app.services.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org... |
chlorm-forks/gyp | test/relative/foo/b/b.gyp | {
'targets': [
{
'target_name': 'b',
'type': 'static_library',
'sources': ['b.cc'],
},
],
}
|
Tarnak-public/BoofAndroidDemo | app/src/main/java/org/boofcv/android/recognition/FiducialCalibrationActivity.java | <filename>app/src/main/java/org/boofcv/android/recognition/FiducialCalibrationActivity.java
package org.boofcv.android.recognition;
import android.os.Bundle;
import android.widget.SeekBar;
import android.widget.ToggleButton;
import boofcv.abst.fiducial.FiducialDetector;
import boofcv.abst.fiducial.calib.CalibrationPa... |
parkjh80/studio | function/python/brightics/function/recommendation/test/als_test.py | <reponame>parkjh80/studio<filename>function/python/brightics/function/recommendation/test/als_test.py
"""
Copyright 2019 Samsung SDS
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
... |
dsw9742/angularjs-datalayer-ensighten-demo | src/main/java/com/douglaswhitehead/controller/data/OrderDataController.java | <reponame>dsw9742/angularjs-datalayer-ensighten-demo<gh_stars>0
package com.douglaswhitehead.controller.data;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.mobile.device.Device;
import com.douglaswhitehead.model.OrderFor... |
sim9108/SDKS | LibOpenAL/demo/lec1/lec1.cpp | // lec1.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <cstdlib>
#include <cstdio>
#include <iostream>
#include <cmath>
#include <AL/al.h>
#include <AL/alc.h>
#include <Al/alext.h>
#include <AL/alut.h>
static void
playFile(const char *fileName){
ALenum error;
/* Creat... |
mfwarren/FreeCoding | 2015/04/fc_2015_04_15.py | <reponame>mfwarren/FreeCoding<filename>2015/04/fc_2015_04_15.py<gh_stars>0
#!/usr/bin/env python3
# imports go here
import time
import sys
import random
#
# Free Coding session for 2015-04-15
# Written by <NAME>
#
MESSAGE = "too busy coding tonight to write much"
def type_message(message):
for c in message:
... |
shenlanAZ/SOAImpl | src/main/java/com/darkblue/rpcimpl/protocol/ResultWrap.java | <gh_stars>1-10
package com.darkblue.rpcimpl.protocol;
import java.io.Serializable;
import java.util.Map;
/**
* 远程结果回传协议Wrap
*/
public class ResultWrap implements Serializable{
private Result result;
private Map<Object,Object> attchment;
public ResultWrap() {
}
public ResultWrap(Result result) ... |
Rathe001/Rathe001.github.io-neurokore | src/core/ui/actions.js | <filename>src/core/ui/actions.js<gh_stars>1-10
const actions = {
SET_SCALE: 'UI_SET_SCALE',
setScale: (data) => ({
type: actions.SET_SCALE,
payload: data,
}),
};
export default actions;
|
kevinguo1989/dingo | dingo-exec/src/main/java/io/dingodb/exec/channel/SendEndpoint.java | /*
* Copyright 2021 DataCanvas
*
* 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 i... |
haikusw/jaqalpaq | jaqalpaq/parser/extract_let.py | # Copyright 2020 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
# Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Government retains
# certain rights in this software.
"""Extract the constant mappings used by let statements."""
from .tree import TreeRewriteVisitor
from jaqalpaq import... |
Zitara/BRLCAD | src/proc-db/naca/splprocs.c | <reponame>Zitara/BRLCAD<filename>src/proc-db/naca/splprocs.c
/* S P L P R O C S . C
* BRL-CAD
*
* Copyright (c) 2014-2016 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* Redistribution and use in source and binary forms, with or without
* modification, are... |
amlodzianowski/python-terrascript | terrascript/dme/__init__.py | <reponame>amlodzianowski/python-terrascript
# terrascript/dme/__init__.py
import terrascript
class dme(terrascript.Provider):
pass
|
hpi-dhc/alps | frontend/src/actions/app.js | import {
APP_SET_TITLE
} from '../constants/ActionTypes'
export const setAppTitle = (title) => ({
type: APP_SET_TITLE,
title
})
|
Batterii/appengine-mapreduce | java/src/main/java/com/google/appengine/tools/mapreduce/MapJob.java | <reponame>Batterii/appengine-mapreduce
// Copyright 2014 Google Inc. All Rights Reserved.
package com.google.appengine.tools.mapreduce;
import com.google.appengine.tools.mapreduce.impl.BaseContext;
import com.google.appengine.tools.mapreduce.impl.CountersImpl;
import com.google.appengine.tools.mapreduce.impl.MapOnlyS... |
bren-kam/wav-react | src/services/UserService.js | import config from '../config/ApiConfig';
import { getAsync, postAsync } from '../helpers/RequestHelper';
import authStorage from "../storage/AuthStorage";
const UserService = {
loadUser
};
function loadUser(userId) {
return getAsync({
url: `${config.apiHost}/api/v1/getUser`,
headers: getHeade... |
izeki/Autoware | ros/src/computing/planning/decision/libs/libstate/include/state_flags.hpp | #ifndef __STATE_FLAGS_HPP__
#define __STATE_FLAGS_HPP__
namespace state_machine
{
enum StateFlags
{
NULL_STATE = 1ULL << 0,
START_STATE = 1ULL << 1,
INITIAL_STATE = 1ULL << 2,
INITIAL_LOCATEVEHICLE_STATE = 1ULL << 3,
DRIVE_STATE = 1ULL << 4,
MISSION_COMPLETE_STATE = 1ULL << 5,
EMERGENCY_STATE = 1ULL << 6... |
JustinACoder/H22-GR3-UnrealAI | Plugins/UnrealEnginePython/Binaries/Win64/Lib/site-packages/tensorflow/contrib/distribute/python/prefetching_ops_v2.py | <reponame>JustinACoder/H22-GR3-UnrealAI<gh_stars>1-10
# Copyright 2017 The TensorFlow Authors. 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.ap... |
twilightgod/twilight-poj-solution | 3044/5317826_AC_16MS_216K.cpp | <reponame>twilightgod/twilight-poj-solution<filename>3044/5317826_AC_16MS_216K.cpp
/*******************************************************************************
* Online Judge : POJ
* Problem Title : City Skyline
* Problem URL : http://acm.pku.edu.cn/JudgeOnline/problem?id=3044
* ID ... |
ehdoq/java101 | AtmSwitchCase.java | <reponame>ehdoq/java101
import java.util.Scanner;
public class AtmSwitchCase
{
public static void main(String[] args)
{
String kullanici_adi, sifre;
Scanner giris = new Scanner(System.in);
int kalan_hak = 3;
int hesaptaki_para = 1500;
int islem;
while(ka... |
LiShanwenGit/Qdriver | src/arch/arm/mach-stm32f10x/drivers/stm32f10x-gpio.c | <filename>src/arch/arm/mach-stm32f10x/drivers/stm32f10x-gpio.c
#include "gpio-core.h"
#include "stm32f10x.h"
// #define GPIOA_BASE (APB2PERIPH_BASE + 0x0800)
// #define GPIOB_BASE (APB2PERIPH_BASE + 0x0C00)
// #define GPIOC_BASE (APB2PERIPH_BASE + 0x1000)
// #define GPIOD_BASE ... |
Testtaccount/TamaAndroid | Tama_app/src/main/java/com/tama/chat/ui/adapters/search/FindARetailersAdapter.java | package com.tama.chat.ui.adapters.search;
import android.support.v7.widget.CardView;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Filter;
import android.widget.Filterable;
impor... |
attenuation/srs | trunk/3rdparty/srs-bench/vendor/github.com/pion/turn/v2/internal/server/errors.go | <filename>trunk/3rdparty/srs-bench/vendor/github.com/pion/turn/v2/internal/server/errors.go
package server
import "errors"
var (
errFailedToGenerateNonce = errors.New("failed to generate nonce")
errFailedToSendError = errors.New("failed to send error message")
errDuplicatedNon... |
viewdy/phantomjs | src/qt/qtwebkit/Source/WebCore/html/HTMLFormControlElement.h | /*
* Copyright (C) 1999 <NAME> (<EMAIL>)
* (C) 1999 <NAME> (<EMAIL>)
* (C) 2000 <NAME> <EMAIL>)
* Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lib... |
Mindhome/field_service | mindhome_alpha/erpnext/hr/doctype/attendance/attendance.py | <gh_stars>1-10
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from frappe.utils import getdate, nowdate
from frappe import _
from frappe.model.document import Document
from frappe.util... |
ingjrs01/adventofcode | 2021/day16/generator.py | <reponame>ingjrs01/adventofcode
from packet import Packet
class Generator():
def createPacket(self,t):
packet = Packet()
return packet |
karthik-git-user/SAP-Stage | core-customize/hybris/bin/modules/integration-apis/odata2services/src/de/hybris/platform/odata2services/odata/monitoring/InboundMonitoringException.java | /*
* [y] hybris Platform
*
* Copyright (c) 2018 SAP SE or an SAP affiliate company.
* All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the ... |
tanujadasari/Awesome_Python_Scripts | ImageProcessingScripts/Map Coloring/map_coloring.py | <gh_stars>1-10
# MAP COLORING
# imported necessary library
import tkinter
from tkinter import *
import tkinter as tk
import tkinter.messagebox as mbox
from tkinter import ttk
from tkinter import filedialog
from PIL import ImageTk, Image
import cv2
import os
import numpy as np
from cv2 import *
import random
# Main ... |
cuplv/thresher | apps/pldi13/OpenSudoku/src/cz/romario/opensudoku/gui/importing/ExtrasImportTask.java | package cz.romario.opensudoku.gui.importing;
import cz.romario.opensudoku.db.SudokuInvalidFormatException;
/**
* Handles import of puzzles via intent's extras.
*
* @author romario
*
*/
public class ExtrasImportTask extends AbstractImportTask {
private String mFolderName;
private String mGames;
private boole... |
ataraxy-zhi/leetcode_questions_with_java | src/com/solution/onequestionperday/may2021/poweroffour342/PowerOfFour.java | <reponame>ataraxy-zhi/leetcode_questions_with_java
package com.solution.onequestionperday.may2021.poweroffour342;
/**
* @ClassName PowerOfFour
* @Description 342. Power of Four
* Given an integer n, return true if it is a power of four. Otherwise, return false.
* <p>
* An integer n is a power of four, if there ex... |
addstone/unrealengine3 | Development/Src/Engine/Src/AFileLog.cpp | /*=============================================================================
AFileLog.cpp: Unreal Tournament 2003 mod author logging
Copyright 1997-2002 Epic Games, Inc. All Rights Reserved.
Revision history:
* Created by <NAME>
=============================================================================*/
#... |
GavinRay97/teiid | connectors/jdbc/translator-jdbc/src/test/java/org/teiid/translator/jdbc/exasol/TestExasolTranslator.java | <filename>connectors/jdbc/translator-jdbc/src/test/java/org/teiid/translator/jdbc/exasol/TestExasolTranslator.java
/*
* Copyright Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags and
* the COPYRIGHT.txt file distributed with this work.
*
* Licensed under the Apache Lice... |
TotallyNotChase/c-iterplus | include/itplus_enumerate.h | /**
* @file
* @brief Macros for implementing the `enumerate` abstraction using the `IterEnumr` struct.
*
* https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.enumerate
* An IterEnumr struct is a struct that stores an iterable, and its iteration index. Its `next` function implementation
* that returns a... |
halv00rsen/Scorez4.0 | client/pages/admin/templates/new_scoring_type/new_scoring_type.js |
Template.new_scoring_type_admin.events({
"submit form": function(event, template) {
event.preventDefault();
var data = {
name: event.target.scoring_name.value,
description: event.target.description.value,
min_point: Number(event.target.min_value.value),
max_point: Number(event.target.max_value.value)... |
crypticspawn/BashSupport | test/com/ansorgit/plugins/bash/lang/psi/impl/word/BashWordImplTest.java | <filename>test/com/ansorgit/plugins/bash/lang/psi/impl/word/BashWordImplTest.java
package com.ansorgit.plugins.bash.lang.psi.impl.word;
import com.ansorgit.plugins.bash.LightBashCodeInsightFixtureTestCase;
import com.ansorgit.plugins.bash.file.BashFileType;
import com.ansorgit.plugins.bash.lang.psi.api.BashCharSequenc... |
maxmarkus/console | service-catalog-ui/src/components/ServiceClassList/styled.js | <filename>service-catalog-ui/src/components/ServiceClassList/styled.js<gh_stars>0
import styled from 'styled-components';
import { media } from '@kyma-project/react-components';
export const ServiceClassListWrapper = styled.div`
box-sizing: border-box;
width: 100%;
align-items: flex-start;
padding: 0;
displa... |
victorsoares96/checklist-frontend | src/app/pages/Checklists/Available/index.js | import React, { useEffect, useState } from 'react';
import {
Box,
CssBaseline,
Breadcrumbs,
Typography,
} from '@material-ui/core';
import useChecklist from '../../../utils/useChecklist';
import useAuth from '../../../utils/useAuth';
import ChecklistsList from '../../../shared/components/ChecklistsList';
i... |
dilawar/pypet | pypet/tests/unittests/brian2tests/module_test.py | __author__ = 'robert'
import sys
import unittest
try:
import brian2
import pypet.brian2
from pypet.brian2 import *
except ImportError as exc:
#print('Import Error: %s' % str(exc))
brian2 = None
from pypet.tests.testutils.ioutils import get_root_logger, parse_args, run_suite
import inspect
@un... |
kodeah/p3Server | src/main/java/utils/scripts/ScriptBuilder.java | <filename>src/main/java/utils/scripts/ScriptBuilder.java<gh_stars>0
package utils.scripts;
import java.util.LinkedList;
public class ScriptBuilder {
private final LinkedList< String[] > lines = new LinkedList<>();
public ScriptBuilder appendLine( String... commandAndParameters ) {
lines.addLast( com... |
KentAlojado/codescholar-beta | src/pages/tutorial-javascript/lesson-9.js | import React from 'react'
import "font-awesome/css/font-awesome.min.css";
import Layout from '../../components/layout';
import HTMLImgA from "../../images/jscript-9-1.jpg";
import "font-awesome/css/font-awesome.min.css";
const TutorialJScriptPage9 = () => (
<Layout>
<div className="wrapping tutorial">
<div className="t... |
jsing3r/simplib | lib/facter/cpuinfo.rb | <reponame>jsing3r/simplib
# Returns the contents of /proc/cpuinfo as a hash
# The numeric entries in this should be changed to their proper data types in
# the future
Facter.add('cpuinfo') do
confine { Gem::Version.new(Facter.version) >= Gem::Version.new('2') }
confine { File.exist?('/proc/cpuinfo') }
setcode d... |
Claiyre/todo-app-with-nej | webapp/js/nej/src/util/ajax/loader/loader.js | /*
* ------------------------------------------
* 资源加载器实现文件
* @version 1.0
* @author genify(<EMAIL>)
* ------------------------------------------
*/
var f = function(){
// variable declaration
var _ = NEJ.P,
_f = NEJ.F,
_g = _('nej.g'),
_v = _('nej.v'),
_u = _('nej.u'),... |
BessPtck/MINDS-i-Drone | src/input/APM/MPU6000.h | #include "input/InertialManager.h"
#include "input/Sensor.h"
#include "input/SPIcontroller.h"
#include "input/AxisTranslator.h"
#include "util/byteConv.h"
#include "util/LTATune.h"
#include <SPI.h>
#include "MPUregs.h"
//MPU6000 Accelerometer and Gyroscope on SPI
namespace{
//this holds raw mpu data (accl x,y,z; te... |
Wzzzx/chromium-crosswalk | blimp/common/compositor/blimp_task_graph_runner.h | // Copyright 2015 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.
#ifndef BLIMP_COMMON_COMPOSITOR_BLIMP_TASK_GRAPH_RUNNER_H_
#define BLIMP_COMMON_COMPOSITOR_BLIMP_TASK_GRAPH_RUNNER_H_
#include "base/macros.h"
#include "... |
gajubadge11/hackerrank-3 | python/quicksort2.py | def print_arr(arr):
print(" ".join(map(str, arr)))
def quicksort(arr, pivot_i=0):
if len(arr) <= 1:
return arr
pivot = arr[pivot_i]
left, right = divide(arr, pivot)
sorted_arr = quicksort(left) + [pivot] + quicksort(right)
print_arr(sorted_arr)
return sorted_arr
def divide(arr, p... |
flexiooss/codingmatters-value-objects | cdm-value-objects-generation/src/test/java/org/codingmatters/value/objects/generation/ToStringTest.java | package org.codingmatters.value.objects.generation;
import org.codingmatters.tests.compile.CompiledCode;
import org.codingmatters.tests.compile.FileHelper;
import org.codingmatters.tests.compile.helpers.ClassLoaderHelper;
import org.codingmatters.tests.compile.helpers.helpers.ClassHelper;
import org.codingmatters.test... |
sezero/windows-sdk-headers | Include/10.0.19041.0/cppwinrt/winrt/impl/Windows.AI.MachineLearning.1.h | <filename>Include/10.0.19041.0/cppwinrt/winrt/impl/Windows.AI.MachineLearning.1.h<gh_stars>1-10
// C++/WinRT v2.0.190620.2
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef WINRT_Windows_AI_MachineLearning_1_H
#define WINRT_Windows_AI_MachineLearning_1_H
#include ... |
1050669722/LeetCode-Answers | Python/problem0728.py | <reponame>1050669722/LeetCode-Answers
# -*- coding: utf-8 -*-
"""
Created on Mon Jul 15 09:22:52 2019
@author: ASUS
"""
class Solution:
def selfDividingNumbers(self, left: int, right: int) -> list:
ans = []
for k in range(left, right+1):
if self.isSelfDividingNumber(k) == 1:
... |
bionlplab/radtext | src/radtext/cmd/neg.py | """
Usage:
neg [options] -i FILE -o FILE
Options:
--regex_patterns FILE [default: resources/patterns/regex_patterns.yml]
--ngrex_patterns FILE [default: resources/patterns/ngrex_patterns.yml]
--overwrite
--sort_anns
-o FILE
-i FILE
"""
import bioc
from radtext.co... |
wxclaude/jjzdpt | src/main/java/io/renren/modules/df/service/impl/DfZhzhServiceImpl.java | <reponame>wxclaude/jjzdpt<filename>src/main/java/io/renren/modules/df/service/impl/DfZhzhServiceImpl.java
package io.renren.modules.df.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.modules.df.dao.DfSjfnDao;
import io.renren.modules.df.dao.DfZhzhDao;
import io.renren... |
marstau/shinsango | src/util/sound/gme/Kss_Emu.cpp | <filename>src/util/sound/gme/Kss_Emu.cpp
// Game_Music_Emu 0.5.5. http://www.slack.net/~ant/
#include "Kss_Emu.h"
#include "blargg_endian.h"
#include <string.h>
/* Copyright (C) 2006 <NAME>. This module is free software; you
can redistribute it and/or modify it under the terms of the GNU Lesser
General Public Licens... |
Ujjawalgupta42/Hacktoberfest2021-DSA | 04. Arrays/Merge Sorted Array.cpp | /*
You are given two integer arrays nums1 and nums2, sorted in non-decreasing order, and two integers m and n, representing the number of elements in nums1 and nums2 respectively.
Merge nums1 and nums2 into a single array sorted in non-decreasing order.
The final sorted array should not be returned by the functi... |
shilad/wikibrain | wikibrain-parser/src/main/java/org/wikibrain/parser/wiki/InterLanguageLinkVisitor.java | <reponame>shilad/wikibrain<filename>wikibrain-parser/src/main/java/org/wikibrain/parser/wiki/InterLanguageLinkVisitor.java
package org.wikibrain.parser.wiki;
import org.wikibrain.core.WikiBrainException;
import org.wikibrain.core.dao.*;
import org.wikibrain.core.lang.Language;
import org.wikibrain.core.lang.LanguageIn... |
saeedya/docker-ansible | venv/lib/python3.8/site-packages/ansible_test/_internal/provider/source/__init__.py | """Common code for source providers."""
from __future__ import annotations
import abc
import typing as t
from .. import (
PathProvider,
)
class SourceProvider(PathProvider):
"""Base class for source providers."""
@abc.abstractmethod
def get_paths(self, path): # type: (str) -> t.List[str]
""... |
Surya-98/Snapcuit | NGSpice/ngspice-30/src/xspice/evt/evtnode_copy.c | /*============================================================================
FILE EVTnode_copy.c
MEMBER OF process XSPICE
Copyright 1991
Georgia Tech Research Corporation
Atlanta, Georgia 30332
All Rights Reserved
PROJECT A-8503
AUTHORS
9/12/91 <NAME>
MODIFICATIONS
<date> <person name> <nature of m... |
jihoonson/tajo-2 | tajo-storage/tajo-storage-hbase/src/main/java/org/apache/tajo/storage/hbase/HBaseScanner.java | <reponame>jihoonson/tajo-2
/**
* 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 ... |
cgoettert/sistema-base | kopp-framework/src/main/java/br/com/kopp/framework/controller/KoppController.java | <gh_stars>0
package br.com.kopp.framework.controller;
import br.com.kopp.framework.datatables.ResponseData;
import br.com.kopp.framework.exception.KoppException;
import br.com.kopp.framework.message.FeedBuilder;
import br.com.kopp.framework.message.KoppFeedBuilder;
import br.com.kopp.framework.message.MessageBundle;
i... |
codethereforam/rent-X | rentx-common/src/main/java/priv/thinkam/rentx/common/exception/BusinessException.java | <reponame>codethereforam/rent-X
package priv.thinkam.rentx.common.exception;
/**
* 必须要处理的业务异常
*
* @author thinkam
* @date 2019/01/01
*/
public abstract class BusinessException extends RuntimeException {
public BusinessException(String message) {
super(message);
}
public BusinessException(String message, Thr... |
Sonu589/Hacktoberfest2021-1 | Python/Tasks/factorial.py | <filename>Python/Tasks/factorial.py
def factorial(n):
print factorial(-6)
|
youngbai/leetcode | src/main/java/edu/neu/leetcode/day20_Bit_Manipulation/LC260_Single_Number_III.java | <gh_stars>0
package edu.neu.leetcode.day20_Bit_Manipulation;
public class LC260_Single_Number_III {
/*
Thinking:
- Bit Manipulation
- find the last 1 digit of ans1^ans2
- use the last 1 digit to separate the numbers into two groups
- ans1,ans2 will not in the same group
- for other num... |
iasmaro/GitLabAnalyzer | frontend/src/Components/MergeRequestTab/MergeRequestTab.js | <filename>frontend/src/Components/MergeRequestTab/MergeRequestTab.js
import React, { useEffect, useState } from 'react';
import Button from 'react-bootstrap/Button';
import updateMRScore from 'Utils/updateMRScore';
import updateMrCommitScore from 'Utils/updateMrCommitScore';
import MergeRequestList from 'Components/M... |
lealceldeiro/org.wcdevs.blog.core | rest/src/test/java/org/wcdevs/blog/core/rest/auth/JwtKeycloakConverterTest.java | <filename>rest/src/test/java/org/wcdevs/blog/core/rest/auth/JwtKeycloakConverterTest.java
package org.wcdevs.blog.core.rest.auth;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import static org.wcdevs.blog.core.rest.TestsUti... |
yuwenhuisama/Iris-Language | IrisLangLibrary/src/IrisComponents/IrisStatements/IrisInterfaceFunctionStatement.cpp | #include "IrisComponents/IrisStatements/IrisInterfaceFunctionStatement.h"
#include "IrisUnil/IrisIdentifier.h"
#include "IrisCompiler.h"
#include "IrisInstructorMaker.h"
#include "IrisFatalErrorHandler.h"
#include "IrisValidator/IrisStatementValidateVisitor.h"
#include <list>
using namespace std;
bool IrisInterfaceFun... |
rocketraman/ritzy | src/core/RichText.js | <gh_stars>100-1000
import _ from 'lodash'
import invariant from 'react/lib/invariant'
import Spec from 'swarm/lib/Spec'
import Syncable from 'swarm/lib/Syncable'
import { pushSet, setIntersection } from './utils'
class Char {
constructor(id, char, deletedIds, attributes) {
this.id = id
this.char = char
t... |
MrEric125/louis-coub | demoProject/demo/src/main/java/louis/coub/netty/nio/channel/ChannelAccept.java | <reponame>MrEric125/louis-coub<filename>demoProject/demo/src/main/java/louis/coub/netty/nio/channel/ChannelAccept.java<gh_stars>0
package louis.coub.netty.nio.channel;
import java.nio.ByteBuffer;
import java.nio.channels.ServerSocketChannel;
import java.nio.channels.SocketChannel;
import java.net.InetSocketAddress;
/... |
ifwe/digsby | digsby/src/gui/uberwidgets/formattedinput2/fromattedinputevents.py | <filename>digsby/src/gui/uberwidgets/formattedinput2/fromattedinputevents.py
#@PydevCodeAnalysisIgnore
import wx
import wx.lib.newevent
newevt = wx.lib.newevent.NewCommandEvent
TextFormatChangedEvent, EVT_TEXT_FORMAT_CHANGED = newevt() |
richardcpeterson/hyper63 | packages/adapter-couchdb/index.js | globalThis.fetch = require('@vercel/fetch-retry')(require('node-fetch'))
const createAdapter = require('./adapter')
const { asyncFetch, createHeaders, handleResponse } = require('./async-fetch')
/**
* @param {object} config
* @returns {object}
*/
module.exports = function CouchDataAdapter (config) {
/**
* @p... |
drmorr0/backuppy | itests/manifest_guarantees_test.py | import argparse
import os
import sqlite3
import sys
import pytest
from backuppy.cli.backup import main as backup
from backuppy.util import sha_to_path
from itests.conftest import _TestFileData
from itests.conftest import BACKUP_DIR
from itests.conftest import DATA_DIRS
from itests.conftest import get_latest_manifest
... |
mib1185/core | homeassistant/components/juicenet/number.py | <gh_stars>1000+
"""Support for controlling juicenet/juicepoint/juicebox based EVSE numbers."""
from __future__ import annotations
from dataclasses import dataclass
from pyjuicenet import Api, Charger
from homeassistant.components.number import NumberEntity, NumberEntityDescription
from homeassistant.components.numbe... |
Tonypz/core-ui | src/form/validators/emailValidator.js | <gh_stars>0
export default config => {
const options = _.extend(
{
type: 'email',
message: Localizer.get('CORE.FORM.VALIDATION.EMAIL')
},
config
);
return function email(value) {
options.value = value;
const err = {
type: options.... |
cheminfo/pdb-explorer | site/visualizer/modules/types/science/chemistry/jsme/lib/jsme/deferredjs/F76C633D69E95E4CB8276B2C4E34C4EA/3.cache.js | <reponame>cheminfo/pdb-explorer
$wnd.jsme.runAsyncCallback3('r(577,574,Bh);_.$c=function(){this.a.ac&&XK(this.a.ac);this.a.ac=new bL(1,this.a)};x(OG)(3);\n//@ sourceURL=3.js\n')
|
crazyskateface/lumberyard | dev/Code/Framework/AzToolsFramework/AzToolsFramework/UI/Logging/LogControl.h | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... |
phatblat/macOSPrivateFrameworks | PrivateFrameworks/CoreHandwriting/CHMergedStrokeGroupingResults.h | <reponame>phatblat/macOSPrivateFrameworks
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import <CoreHandwriting/CHStrokeGroupingResult.h>
@class NSDictionary;
@interface CHMergedStrokeGroupingResults : CHStrokeGroupingResult
{
... |
AppGyver/kontena | server/app/mutations/stacks/deploy.rb | module Stacks
class Deploy < Mutations::Command
include Workers
required do
model :current_user, class: User
model :stack, class: Stack
end
def validate
self.stack.grid_services.each do |service|
outcome = GridServices::Deploy.validate(grid_service: service)
unless ... |
ant-nihil/routen-qgroundcontrol | libs/qmlglsink/gst-plugins-good/tests/check/elements/udpsrc.c | <reponame>ant-nihil/routen-qgroundcontrol<filename>libs/qmlglsink/gst-plugins-good/tests/check/elements/udpsrc.c
/* GStreamer UDP source unit tests
* Copyright (C) 2011 <NAME> <tim centricular net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library Gener... |
GhostMachineSoftware/SPFx_GetListItems | node_modules/office-ui-fabric-react/lib/components/TextField/TextField.doc.js | <filename>node_modules/office-ui-fabric-react/lib/components/TextField/TextField.doc.js
import * as React from 'react';
import { TextFieldBasicExample } from './examples/TextField.Basic.Example';
import { TextFieldBorderlessExample } from './examples/TextField.Borderless.Example';
import { TextFieldCustomRenderExample ... |
hdm/deepmac-tracker | data/js/48/6d/bb/00/00/00.24.js | <filename>data/js/48/6d/bb/00/00/00.24.js
macDetailCallback("486dbb000000/24",[{"d":"2016-05-21","t":"add","a":"Organize san Manisa Turket TR 45030 ","c":"TR","o":"Vestel Elektronik San ve Tic. A.Ş."}]);
|
HoEmpire/slambook2 | 3rdparty/meshlab-master/src/plugins_unsupported/io_epoch/epoch_io.cpp | <gh_stars>1-10
/****************************************************************************
* MeshLab o o *
* An extendible mesh processor o o *
* _ ... |
Trinsdar/StevesCarts | src/main/java/vswe/stevescarts/containers/ContainerManager.java | <reponame>Trinsdar/StevesCarts
package vswe.stevescarts.containers;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
import vswe.stevescarts.blocks.tileentities.TileEntityBase;
import vswe.stevescarts.blocks.tileentities.TileEntityManager;
public abstract class ContainerManager extends ... |
fredblain/docQE-corp | systems/2015/english-russian/newstest2015.online-A.0.en-ru/289-argumenti.ru.newstest2015.online-A.0.en-ru.ru | <reponame>fredblain/docQE-corp<gh_stars>0
<NAME> попал в аварию, пытаясь спрятаться от папарацци
<NAME> попал в аварию на мотоцикле, пытаясь спасти себя от папарацци.
Это произошло в Лос-Анджелесе на углу бульвара Сансет.
Британский футболист получил от легко с просто сотрясение мозга и растяжение правой рукой.
Бекхэм... |
fabricio7p/Ikebana-App-Frontend | src/components/pages/Account/components/Password/Password.js | <reponame>fabricio7p/Ikebana-App-Frontend
import React, { useState, useEffect } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { useHistory } from 'react-router-dom';
import api from 'services/api'
import { useForm } from 'react-hook-form';
import Modal from '../../../../aux/Modal';
impor... |
Nickinthebox/polyfill-library | polyfills/localStorage/tests.js | <gh_stars>0
/* eslint-env mocha, browser */
/* global proclaim */
beforeEach(function () {
localStorage.clear();
localStorage.setItem('hi', 'there');
});
describe('getItem', function () {
it('should get an item', function () {
proclaim.equal(localStorage.getItem('hi'), 'there');
});
});
describe('setItem', fun... |
cz-it/magnode | src/net/net.h | <reponame>cz-it/magnode<filename>src/net/net.h<gh_stars>1-10
/**
* Author :cz <EMAIL>
* Licence MIT
*/
#ifndef MAGNODE_NET_MN_NET_H_
#define MAGNODE_NET_MN_NET_H_
#include "magnode.h"
#include "os.h"
#if defined MN_APPLE || defined MN_ANDROID
#include <sys/select.h>
#include <sys/socket.h>
#include <sys/un.h>
#in... |
heftyy/play-framework-oauth | modules/oauth-ws/app/oauth/webservice/scopes/ScopesLoader.java | <filename>modules/oauth-ws/app/oauth/webservice/scopes/ScopesLoader.java
package oauth.webservice.scopes;
public interface ScopesLoader {
/**
* Loads the settings file with scopes and url patterns. Checks the project
* default directory.
*
* @param fileName String: Name of the file with extensi... |
muhammadmuhlas/g3nd | gui_label.go | <reponame>muhammadmuhlas/g3nd<gh_stars>0
package main
import (
"github.com/g3n/engine/graphic"
"github.com/g3n/engine/gui"
"github.com/g3n/engine/math32"
"strings"
)
func init() {
TestMap["gui.label"] = &GuiLabel{}
}
type GuiLabel struct{}
func (t *GuiLabel) Initialize(ctx *Context) {
axis := graphic.NewAxis... |
fourierjoe/ql-wt | micro-services/workflow/service-surety-workflow-apilist/src/main/java/yhao/micro/service/workflow/apilist/enums/flow/ItemExceptResult.java | <filename>micro-services/workflow/service-surety-workflow-apilist/src/main/java/yhao/micro/service/workflow/apilist/enums/flow/ItemExceptResult.java
package yhao.micro.service.workflow.apilist.enums.flow;
/**
* @Description:
* @Created by ql on 2019/1/17 11:00
* @Version: v1.0
*/
public enum ItemExceptResult {
R0... |
cragkhit/elasticsearch | references/bcb_chosen_clones/selected#2156248#11#58.java | <filename>references/bcb_chosen_clones/selected#2156248#11#58.java<gh_stars>10-100
public double[] fit(double[] x, double[] y, double[] sigmaX, double[] sigmaY, int order) {
final double parameters[] = new double[2 * order + 2];
final int numOfPoints = x.length;
final int nk = parameters.len... |
liftting/XmWeiBo | XmWei/app/src/main/java/wm/xmwei/core/lib/support/view/gif/GifIOException.java | <gh_stars>1-10
package wm.xmwei.core.lib.support.view.gif;
import java.io.IOException;
/**
* Exception encapsulating {@link GifError}s.
*
* @author koral--
*/
public class GifIOException extends IOException {
private static final long serialVersionUID = 13038402904505L;
/**
* Reason which caused an... |
zhuanghm/GoldenDance | app/src/main/java/com/goldendance/client/course/history/CourseHistoryListFragment.java | package com.goldendance.client.course.history;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerVi... |
AlexWayfer/sentry | tests/sentry/metrics/test_datadog.py | <reponame>AlexWayfer/sentry<filename>tests/sentry/metrics/test_datadog.py
from __future__ import absolute_import
from mock import patch
from datadog.util.hostname import get_hostname
from sentry.metrics.datadog import DatadogMetricsBackend
from sentry.testutils import TestCase
class DatadogMetricsBackendTest(TestC... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.