repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
stinsonga/geo-prime-workspace | work/exampleOAuY.js | <filename>work/exampleOAuY.js
function my_function376(){
//37984557895029916748001204519028kdmUDJrxJrzUHNoNPzzlTMCmLGuvbyDR
}
function my_function033(){
//79334158616521852867777178335522ETKncXlUcLeDQeBIVfupJnFOrrepNuhg
}
function my_function293(){
//17517450847965549003072087682663WcRJhmoechQqeCbUiraAKHunJhiccqCy
}... |
wangchong6808/dremio-oss | plugins/hive/src/test/java/com/dremio/exec/store/hive/exec/TestHiveRecordReaderIterator.java | <reponame>wangchong6808/dremio-oss
/*
* Copyright (C) 2017-2019 Dremio 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
*... |
mk-prg-net/PlaygroundJS | HTML5/Scripts/JavaScriptLernen/Newton/Newton.Tests.js | <reponame>mk-prg-net/PlaygroundJS
//<unit_header>
//----------------------------------------------------------------
//
// <NAME>: IT Beratung/Softwareentwicklung
// Stuttgart, den 28.6.2015
//
// Projekt.......: HTML5
// Name..........: Newtoon.Test.js
// Aufgabe/Fkt...: Test der Newton- Bibliothek
// ... |
DimitrisJim/leetcode_solutions | Javascript/Algorithms/976.js | let largestPerimeter = (A) => {
const lim = A.length - 2;
A.sort((x, y) => y - x);
for(let i = 0; i < lim; i++){
let [a, b, c] = [A[i], A[i+1], A[i+2]];
if (a + b > c && b + c > a && c + a > b) {
return a + b + c;
}
}
return 0;
};
|
sturmianseq/demisto-sdk | demisto_sdk/commands/common/hook_validations/conf_json.py | import json
from demisto_sdk.commands.common.constants import CONF_PATH, FileType
from demisto_sdk.commands.common.errors import Errors
from demisto_sdk.commands.common.hook_validations.base_validator import \
BaseValidator
from demisto_sdk.commands.common.tools import _get_file_id
class ConfJsonValidator(BaseVa... |
ihmcrobotics/ihmc-open-robotics-software | ihmc-quadruped/src/footstep-planning-test/java/us/ihmc/quadrupedFootstepPlanning/pawPlanning/graphSearch/pawSnapping/PawNodeSnapperTest.java | package us.ihmc.quadrupedFootstepPlanning.pawPlanning.graphSearch.pawSnapping;
import gnu.trove.map.hash.TIntObjectHashMap;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import us.ihmc.euclid.tools.EuclidCoreRandomTools;
import us.ihmc.euclid.transform.RigidBodyTransform;
import us.ihmc.euc... |
lintonv/aws-sdk-cpp | aws-cpp-sdk-connect/source/model/UpdateUserSecurityProfilesRequest.cpp | <filename>aws-cpp-sdk-connect/source/model/UpdateUserSecurityProfilesRequest.cpp<gh_stars>1-10
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/connect/model/UpdateUserSecurityProfilesRequest.h>
#include <aws/core/utils/json/JsonSerial... |
eagleeye1105/VForce | src/vision/matcher/Matcher.cpp | <filename>src/vision/matcher/Matcher.cpp
//
// Created by yongqi on 17-12-11.
//
#include "Matcher.hpp"
#include <pcl/search/impl/kdtree.hpp>
#include <pcl/io/pcd_io.h>
#include <glog/logging.h>
using namespace std;
namespace VForce {
double Matcher::CalculateMatchError(const PointTCloudPtr &model, const PointTClou... |
mtneug/mp4ff | hevc/hevc_test.go | <gh_stars>1-10
package hevc
import (
"testing"
"github.com/go-test/deep"
)
func TestGetNaluTypes(t *testing.T) {
testCases := []struct {
name string
input []byte
wanted []NaluType
}{
{
"AUD",
[]byte{0, 0, 0, 2, 70, 0},
[]NaluType{NALU_AUD},
},
{
"AUD, VPS, SPS, PPS, and IDR ",
[]byt... |
rfizzle/chef-center | api/app/contracts/empty_contract.rb | <filename>api/app/contracts/empty_contract.rb<gh_stars>0
# frozen_string_literal: true
# Empty contract
class EmptyContract < Dry::Validation::Contract
params do
end
end
|
smiile8888/tabli | archive/src/js/components/MessageCard.js | import * as React from 'react'
import * as styles from './cssStyles'
import { cx, css } from 'emotion'
import FlatButton from './FlatButton'
const messageCardBaseStyle = css({
padding: 0
})
const messageCardStyle = cx(styles.tabWindow, styles.tabWindowFocused, messageCardBaseStyle)
const cardActionsStyle = css({
... |
densogiaichned/serenity | Kernel/Storage/NVMe/NVMeDefinitions.h | <filename>Kernel/Storage/NVMe/NVMeDefinitions.h<gh_stars>1-10
/*
* Copyright (c) 2021, <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Endian.h>
#include <AK/Types.h>
struct ControllerRegister {
u64 cap;
u32 vs;
u32 intms;
u32 intmc;
u32 cc;
u32 rsv... |
lukas-conka/mobile-app | Resources/iphone/database/ncm.js | function getTableNcm() {
return "tb_ncm";
}
function dbLoad() {
var db = Ti.Database.open(Ti.App.Properties.getString(DATABASE_FILE));
return db;
}
function createNcm() {
db = dbLoad();
db.execute("CREATE TABLE IF NOT EXISTS " + getTableNcm() + "(\n id INTEGER PRIMARY KEY, ncm_id INTEGER, ncm_num... |
lemenendez/gotuto | github.com/lemenendez/gotuto/tuto/algo-02-maximum-value.go | <reponame>lemenendez/gotuto<filename>github.com/lemenendez/gotuto/tuto/algo-02-maximum-value.go<gh_stars>0
/*
From: Graphic Go Algorithms
Credits: <NAME>
Name: Maximum Value
Compare and swap elements in the array until the lastnumber in the array is the maximum
*/
package main
import "fmt"
func print(a[] int, coun... |
bianapis/sd-prospect-campaign-execution-v2 | src/main/java/org/bian/dto/CRProspectCampaignProcedureRetrieveInputModelProspectCampaignProcedureInstanceReportRecord.java | <reponame>bianapis/sd-prospect-campaign-execution-v2<gh_stars>0
package org.bian.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.Valid;
/**... |
yahoo/ygloo-ymagine | jni/include/ymagine/ymagine.h | /**
* Copyright 2013 Yahoo! Inc.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may
* obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, sof... |
NNSISA/BackIsa | src/main/java/com/contoller/DoctorController.java | <gh_stars>0
package com.contoller;
import com.dto.PatientRatedClinicDTO;
import com.dto.PatientRatedDoctorDTO;
import com.model.*;
import com.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.sprin... |
liuyangspace/java-test | src/javase/extension/system/process/inside/ProcessImpl.java | <gh_stars>0
package javase.extension.system.process.inside;
/**
* @see java.lang.ProcessImpl
*/
final class ProcessImpl {
}
|
LeoRya/py-orbit | src/utils/integration/GaussLegendreIntegrator.cc | <filename>src/utils/integration/GaussLegendreIntegrator.cc
//////////////////////////////// -*- C++ -*- //////////////////////////////
//
// FILE NAME
// GaussLegendreIntegrator.cc
//
// AUTHOR
// <NAME>
//
// CREATED
// 01/23/2013
//
// DESCRIPTION
// The integrator for the Gauss-Legendre schema.
//
/////... |
alejandroballestae/gmedchain-frontend | app/components/ProgressBar/index.js | import React, { Component, Fragment } from 'react';
import "./style.scss"
class ProgressBar extends Component {
constructor(props) {
super(props);
}
render() {
const parent = this.props;
let values = parent.readings && parent.readings.length && parent.readings.map(function(it... |
MuhammadAdeelUsman/kafka-connect | graphql/ws-client/src/main/java/io/debezium/examples/graphql/wsclient/GraphQLResponseReceiver.java | /*
* Copyright Debezium Authors.
*
* Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package io.debezium.examples.graphql.wsclient;
@FunctionalInterface
public interface GraphQLResponseReceiver {
void messageReceived(GraphQLQueryResponse s);
}
|
sevki/bazel | src/test/java/com/google/devtools/build/lib/bazel/repository/StripPrefixedPathTest.java | <filename>src/test/java/com/google/devtools/build/lib/bazel/repository/StripPrefixedPathTest.java<gh_stars>10-100
// Copyright 2014 The Bazel 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... |
bugaoshuni/WeChatSportTweak | WeChatHeads/OfflineGetMsgResponse.h | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "NSObject.h"
@class NSString;
@interface OfflineGetMsgResponse : NSObject
{
int _pollTime;
NSString *_ackKey;
NSString *_appMsg;
}
@property(nonatomic) int pollTime... |
davidsandilands/control-repo-2 | site-modules/enterprise_tasks/tasks/renew.rb | #!/opt/puppetlabs/puppet/bin/ruby
# frozen_string_literal: true
require_relative '../../ruby_task_helper/files/task_helper.rb'
require 'puppet'
require 'fileutils'
require 'yaml'
require 'open3'
# Class for regenerating agent certs
class Regen
# Error class
class Error < RuntimeError
def initialize(kind, msg,... |
sskimdev/Jwt-Spring-Security-JPA | src/main/java/com/bithumbhomework/member/config/WebSecurityConfig.java | <reponame>sskimdev/Jwt-Spring-Security-JPA<filename>src/main/java/com/bithumbhomework/member/config/WebSecurityConfig.java
package com.bithumbhomework.member.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.ann... |
Happy0/lila | modules/db/src/main/Env.scala | <reponame>Happy0/lila
package lila.db
import com.typesafe.config.Config
import play.modules.reactivemongo.ReactiveMongoPlugin
import reactivemongo.api.DB
import Types._
final class Env(config: Config) {
lazy val db = {
import play.api.Play.current
ReactiveMongoPlugin.db
}
def apply(name: String): Coll... |
ilopezgp/human_impacts | anthro/tessellation.py | <filename>anthro/tessellation.py<gh_stars>1-10
import itertools
import numpy
from scipy.spatial import ConvexHull
from matplotlib.collections import LineCollection
from matplotlib import pyplot as plot
import shapely.geometry
# --- Misc. geometry code -----------------------------------------------------
'''
Pick N... |
djxf/CampusAssi | app/src/main/java/cn/nicolite/huthelper/view/activity/ExamActivity.java | <reponame>djxf/CampusAssi
package cn.nicolite.huthelper.view.activity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.OrientationHelper;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import and... |
ngjaying/ojg | asm/delall_test.go | // Copyright (c) 2021, <NAME>, All rights reserved.
package asm_test
import (
"testing"
"github.com/ngjaying/ojg/asm"
"github.com/ngjaying/ojg/jp"
"github.com/ngjaying/ojg/sen"
"github.com/ngjaying/ojg/tt"
)
func TestDelall(t *testing.T) {
root := testPlan(t,
`[
[{one:1 two:2 three:3}{one:4 two:5... |
goubertbrent/oca-backend | src/rogerthat/migrations/put_all_models_by_kind.py | # -*- coding: utf-8 -*-
# Copyright 2020 Green Valley Belgium NV
#
# 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 appl... |
mespper/go-babylonjs | babylon/zzz_EdgesRenderer.go | // Code generated by docs2go. DO NOT EDIT.
package babylon
import (
"syscall/js"
)
// EdgesRenderer represents a babylon.js EdgesRenderer.
// This class is used to generate edges of the mesh that could then easily be rendered in a scene.
type EdgesRenderer struct {
p js.Value
ctx js.Value
}
// JSObject returns... |
BartoszJarocki/android-boilerpipe | src/main/java/mf/org/apache/xerces/xni/parser/XMLDTDContentModelSource.java | <reponame>BartoszJarocki/android-boilerpipe
/*
* 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 Licen... |
ipcraiurosario/dataverse-5.3-estadisticas | src/main/java/edu/harvard/iq/dataverse/SendFeedbackDialog.java | <filename>src/main/java/edu/harvard/iq/dataverse/SendFeedbackDialog.java
package edu.harvard.iq.dataverse;
import edu.harvard.iq.dataverse.branding.BrandingUtil;
import edu.harvard.iq.dataverse.feedback.Feedback;
import edu.harvard.iq.dataverse.feedback.FeedbackUtil;
import edu.harvard.iq.dataverse.settings.SettingsSe... |
sapkra/rabbitmq-operator | rabbitmq-operator/src/main/java/com/indeed/operators/rabbitmq/OperatorException.java | <filename>rabbitmq-operator/src/main/java/com/indeed/operators/rabbitmq/OperatorException.java<gh_stars>10-100
package com.indeed.operators.rabbitmq;
public class OperatorException extends RuntimeException {
public OperatorException(final String description, final Throwable cause) {
super(description, caus... |
afeng11/tomato-arm | release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/leds/leds-regulator.c | /*
* leds-regulator.c - LED class driver for regulator driven LEDs.
*
* Copyright (C) 2009 <NAME> <<EMAIL>>
*
* Inspired by leds-wm8350 driver.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free So... |
sjyk/deeplens | depth_prediction/predictor.py | <reponame>sjyk/deeplens
import argparse
import os
import sys
import numpy as np
import tensorflow as tf
from matplotlib import pyplot as plt
from PIL import Image
from urllib.request import urlretrieve
import depth_prediction.models as models
from main import utils
import glob
import logging
logger = utils.get_logger(... |
rzeh4n/psp-validator | sharedModule/src/main/java/nkp/pspValidator/shared/engine/validationFunctions/VfCheckInfoFileItemlistReferencesAllFiles.java | <gh_stars>1-10
package nkp.pspValidator.shared.engine.validationFunctions;
import nkp.pspValidator.shared.engine.*;
import nkp.pspValidator.shared.engine.exceptions.ContractException;
import nkp.pspValidator.shared.engine.exceptions.InvalidPathException;
import nkp.pspValidator.shared.engine.exceptions.InvalidXPathEx... |
ishlandbukkit/CubicChunks | src/main/java/io/github/opencubicchunks/cubicchunks/mixin/core/client/server/MixinIntegratedServer.java | <reponame>ishlandbukkit/CubicChunks
package io.github.opencubicchunks.cubicchunks.mixin.core.client.server;
import java.util.function.BooleanSupplier;
import io.github.opencubicchunks.cubicchunks.CubicChunks;
import io.github.opencubicchunks.cubicchunks.chunk.IVerticalView;
import net.minecraft.client.Minecraft;
impo... |
westernmarslab/tanager-feeder | tanager_feeder/dialogs/change_ip_dialog.py | <reponame>westernmarslab/tanager-feeder<filename>tanager_feeder/dialogs/change_ip_dialog.py
from tkinter import Frame, Label, Entry, LEFT
from tanager_feeder.dialogs.dialog import Dialog
from tanager_feeder.utils import CompyTypes, ConnectionManager
class ChangeIPDialog(Dialog):
def __init__(
self, conne... |
ufoscout/jpattern | core/src/test/java/com/jpattern/service/log/reader/MessageReaderTest.java | package com.jpattern.service.log.reader;
import com.jpattern.core.BaseApplicationTest;
import com.jpattern.service.log.reader.IQueueMessages;
import com.jpattern.service.log.reader.MessageReader;
import com.jpattern.service.log.reader.QueueMessages;
/**
*
* @author <NAME>'
*
* 09/apr/2010
*/
publ... |
lizzzcai/leetcode-go | solutions/0329_Longest_Increasing_Path_in_a_Matrix/0329_Longest_Increasing_Path_in_a_Matrix_test.go | <gh_stars>0
package leetcode
import (
"fmt"
"testing"
)
func TestLongestIncreasingPath(t *testing.T) {
var tests = []struct {
matrix [][]int
want int
}{
{[][]int{[]int{9, 9, 4}, []int{6, 6, 8}, []int{2, 1, 1}}, 4},
{[][]int{[]int{3, 4, 5}, []int{3, 2, 6}, []int{2, 2, 1}}, 4},
}
for _, tt := range tes... |
syncrou/catalog-ui | src/helpers/share/share-helper.js | import { getAxiosInstance, getPortfolioApi } from '../shared/user-login';
import { CATALOG_API_BASE } from '../../utilities/constants';
const axiosInstance = getAxiosInstance();
const userApi = getPortfolioApi();
export async function getShareInfo(portfolioId) {
return await axiosInstance.get(`${CATALOG_API_BASE}/p... |
stavanmehta/leetcode | python/562.longest-line-of-consecutive-one-in-matrix.py | <gh_stars>0
class Solution:
def longestLine(self, M: List[List[int]]) -> int:
|
AnyBitIO/anybit-Android | app/src/main/java/com/bitcoin/common/Json.java | <reponame>AnyBitIO/anybit-Android<gh_stars>10-100
package com.bitcoin.common;
import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectWriter;
import org.slf4j.Logger;
import org.slf4j.Lo... |
nickgros/SynapseWebClient | src/main/java/org/sagebionetworks/web/client/presenter/MapPresenter.java | package org.sagebionetworks.web.client.presenter;
import org.sagebionetworks.web.client.view.MapView;
import org.sagebionetworks.web.client.widget.googlemap.GoogleMap;
import org.sagebionetworks.web.client.widget.team.TeamBadge;
import com.google.gwt.activity.shared.AbstractActivity;
import com.google.gwt.event.shared... |
aldopain/DevExtreme | testing/tests/DevExpress.viz.vectorMap/mapLayer_new.tests.js | const $ = require('jquery');
const vizMocks = require('../../helpers/vizMocks.js');
const loadingIndicatorModule = require('viz/core/loading_indicator');
const titleModule = require('viz/core/title');
const projectionEnginesModule = require('viz/vector_map/projection');
const controlBarModule = require('viz/vector_map/... |
RyPC/FTCUltimateGoal | TeamCode/src/main/java/org/firstinspires/ftc/teamcode/timeAutons/RebAubtob.java | package org.firstinspires.ftc.teamcode.timeAutons;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import org.firstinspires.ftc.teamcode.Constants;
import org.firstinspires.ftc.teamcode.Ro... |
NReilingh/flux | stdlib/contrib/tomhollingworth/events/flux_gen.go | <filename>stdlib/contrib/tomhollingworth/events/flux_gen.go
// DO NOT EDIT: This file is autogenerated via the builtin command.
package events
import (
ast "github.com/influxdata/flux/ast"
runtime "github.com/influxdata/flux/runtime"
)
func init() {
runtime.RegisterPackage(pkgAST)
}
var pkgAST = &ast.Package{
B... |
ik-wmua/wmua-finance | app/org/intracer/finance/slick/Projects.scala | package org.intracer.finance.slick
import org.intracer.finance.Project
import slick.driver.H2Driver.api._
class Projects(tag: Tag) extends Table[Project](tag, "project") {
def id = column[Int]("id", O.PrimaryKey, O.AutoInc)
def name = column[String]("name")
def nameIndex = index("project_name", name, unique =... |
MarcusTw/tp | src/test/java/atas/storage/StorageManagerTest.java | <filename>src/test/java/atas/storage/StorageManagerTest.java
package atas.storage;
import static atas.testutil.TypicalMemos.SAMPLE_MEMO_ONE;
import static atas.testutil.TypicalStudents.getTypicalStudentList;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.ass... |
airbug/bugcore | libraries/bugcore/js/test/flow/FlowsTests.js | /*
* Copyright (c) 2016 airbug Inc. http://airbug.com
*
* bugcore may be freely distributed under the MIT license.
*/
//-------------------------------------------------------------------------------
// Annotations
//-------------------------------------------------------------------------------
//@TestFile
//@... |
anterostecnologia/anterosrestdocmavenplugin | src/main/java/br/com/anteros/restdoc/maven/plugin/doclet/writer/swagger/model/Operation.java | /*******************************************************************************
* Copyright 2017 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org... |
realDragon11/Trawel-Text | Dragon's Trawel/src/trawel/QuestR.java | <gh_stars>1-10
package trawel;
import java.io.Serializable;
public abstract class QuestR implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
public abstract String getName();
public abstract boolean go();
public Quest overQuest;
public Town locationT;
p... |
vishnudevk/MiBandDecompiled | Original Files/source/src/com/sina/weibo/sdk/constant/WBConstants.java | <reponame>vishnudevk/MiBandDecompiled
// Decompiled by Jad v1.5.8e. Copyright 2001 <NAME>.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.sina.weibo.sdk.constant;
public class WBConstants
{
public static final String ACTION_WEIBO_REGIST... |
cycere/quid | src/Common/ConsoleTools.h | // Copyright (c) 2011-2016 The Cryptonote developers
// Copyright (c) 2017-2021 The Cycere developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once
#include <cstdint>
namespace Common { namespace Console {
... |
samuelsilvadev/react-projects | instagram-copy/client/src/components/App.js | <gh_stars>1-10
import React from 'react';
import { ApolloProvider } from 'react-apollo';
import ApolloClient from 'apollo-boost';
import { Main } from './App.style';
import Header from './header';
import Posts from './posts';
const client = new ApolloClient({
uri: `${process.env.SERVER_URI}graphql`,
});
const App ... |
make-sans/developool | client/src/constants/Skills.js | export const SKILLS = [
'C#',
'JavaScript',
'React.js',
'Node.js',
'Kotlin',
'HTML/CSS',
'Android',
'Java',
'iOS',
'Objective C',
'Swift',
'React Native',
'Flutter',
'Ionic',
'Cordova',
'Ruby',
'PHP',
'Python',
'Django',
'Flask',
'MySQL',
'SQL',
'Postgres',
'SQLite',
'M... |
TimSnedden138/CodeDesignAndStructure | FactoryPattern/IFactory.h | #pragma once
#include "IBox.h"
#include <iostream>
class IFactory
{
public:
//Make sure that all derived classes HAVE a create method
virtual IBox* Create(std::string type) = 0;
}; |
Aurorasic/Swiftglobal | blockchain-app/src/main/java/com/higgsblock/global/chain/app/task/InventoryTask.java | <reponame>Aurorasic/Swiftglobal
package com.higgsblock.global.chain.app.task;
import com.higgsblock.global.chain.app.blockchain.BlockIndex;
import com.higgsblock.global.chain.app.blockchain.IBlockChainService;
import com.higgsblock.global.chain.app.blockchain.listener.MessageCenter;
import com.higgsblock.global.chain.... |
FAD95/NEXT.JS-Course | node_modules/@iconify/icons-mdi/src/nix.js | <filename>node_modules/@iconify/icons-mdi/src/nix.js
let data = {
"body": "<path d=\"M9.9 8.7L5 17.2l-1.1-1.9L5.2 13H2.6L2 12l.6-1h3.7l1.3-2.3h2.3m.3 6.8h9.7l-1.1 1.9h-2.6l1.3 2.3l-.6 1h-1.1L14 17.4h-2.7l-1.1-1.9m5.7-3.7L11 3.3h2.2l1.3 2.3l1.3-2.3h1.1l.6 1l-1.9 3.2L17 9.8l-1.1 2m-2.1-3.3H4l1.1-1.9h2.6L6.4 4.3l.6-1h1.1... |
commercetools/commercetools-payment-integration-java | payone-adapter/src/test/java/io/sphere/sdk/carts/CartTestImpl.java | package io.sphere.sdk.carts;
import com.neovisionaries.i18n.CountryCode;
import io.sphere.sdk.cartdiscounts.CartDiscount;
import io.sphere.sdk.customergroups.CustomerGroup;
import io.sphere.sdk.discountcodes.DiscountCodeInfo;
import io.sphere.sdk.models.Address;
import io.sphere.sdk.models.KeyReference;
import io.sphe... |
BIJOY-SUST/ACM---ICPC | Competitive Programing Problem Solutions/Graph Theory/Rope in the labi/Rope in the Labyrinth.cpp | <reponame>BIJOY-SUST/ACM---ICPC
///Problem = Timus Online Judge/1145. Rope in the Labyrinth/ট্রি ডায়ামিটার
#include<bits/stdc++.h>
using namespace std;
int fx[]={1,-1,0,0};
int fy[]={0,0,1,-1};
int mr,mc,mx=0;
char w[1000][1000];///The Input array...............
int d[1000][1000];///d == Distance................... |
Bahmni-Covid19/health-information-user | src/test/java/in/org/projecteka/hiu/dataflow/HealthInfoControllerTest.java | package in.org.projecteka.hiu.dataflow;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.databind.node.JsonNodeFactory;
import com.nimbusds.jose.jwk.JWKSet;
import in.... |
lofunz/mieme | Reloaded/trunk/src/mame/drivers/playmark.c | <gh_stars>10-100
/***************************************************************************
Big Twins
World Beach Volley
Excelsior
Hot Mind
Hard Times
driver by <NAME> and <NAME>
The games run on different, but similar, hardware. The sprite system is the
same (almost - the tile size is different).
Ev... |
likebot0/core.h | include/core/meta/is_struct.h | #ifndef _core_meta_is_struct
#define _core_meta_is_struct core_::core_meta_is_struct
template<typename A>
struct core_meta_is_struct_;
template<typename A>
inline constexpr auto core_meta_is_struct = core_meta_is_struct_<A>::value;
#include <core/False.type.h>
#include <core/Nullptr.type.h>
#include <core/Remove_all... |
wuzhongtuniu/adhoc-all | adhoc-solr/src/main/java/org/apache/lucene/store/LinkMMapDirectory.java | package org.apache.lucene.store;
import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.lang.reflect.Method;
import java.nio.BufferUnderflowException;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
import java.nio.channels.FileChannel.MapMode;
import java.secur... |
ElderDeveloper/UnrealExtendedFramework | Source/UnrealExtendedFramework/AI/BTService/Distance/EFBTServiceDistanceBetweenActors.cpp | <reponame>ElderDeveloper/UnrealExtendedFramework
// Fill out your copyright notice in the Description page of Project Settings.
#include "EFBTServiceDistanceBetweenActors.h"
#include "AIController.h"
#include "BehaviorTree/BlackboardComponent.h"
// Sets default values
UEFBTServiceDistanceBetweenActors::UEFBTServi... |
tharakamd/integration-studio | components/bps-tools/plugins/org.eclipse.bpel.model/src/org/eclipse/bpel/model/impl/ToImpl.java | /**
* <copyright>
* Copyright (c) 2005 IBM Corporation and others.
* 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 available at
* http://www.eclipse.org/legal/epl-v10.html
*
*... |
SeanCode/CQUPT-JWZX-Jsoup | app/src/main/java/me/xyp/app/network/service/JwzxService.java | <reponame>SeanCode/CQUPT-JWZX-Jsoup
package me.xyp.app.network.service;
import me.xyp.app.config.Const;
import okhttp3.ResponseBody;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import retrofit2.http.Url;
import r... |
EulerFormula/Java8InAction | src/main/java/algorithm/stack/LinkStack.java | <filename>src/main/java/algorithm/stack/LinkStack.java
package algorithm.stack;
/**
* 链栈
*/
public class LinkStack {
private StackNode top;
public void display(String msg) {
System.out.println("=====" + msg + "=====");
StackNode p = top;
while (p != null) {
System.ou... |
LaceyHyde/dsw-site | db/migrate/20130116164738_create_cmsimple_pages.cmsimple.rb | # This migration comes from cmsimple (originally 20120201221410)
class CreateCmsimplePages < ActiveRecord::Migration[4.2]
def change
create_table :cmsimple_pages do |t|
t.string :path, :null => false
t.string :template
t.text :content
end
add_index :cmsimple_pages, :path
end
end
|
fredyw/leetcode | src/main/java/leetcode/Problem225.java | package leetcode;
import java.util.LinkedList;
import java.util.Queue;
/**
* https://leetcode.com/problems/implement-stack-using-queues/
*/
public class Problem225 {
static class MyStack {
private Queue<Integer> list1 = new LinkedList<>();
private Queue<Integer> list2 = new LinkedList<>();
... |
HgeX/Hazelnut | core/src/main/java/hazelnut/core/protocol/Heartbeat.java | <reponame>HgeX/Hazelnut
package hazelnut.core.protocol;
import hazelnut.core.Message;
import org.jetbrains.annotations.NotNull;
public class Heartbeat implements Message<Heartbeat> {
@Override
public @NotNull Class<Heartbeat> type() {
return Heartbeat.class;
}
}
|
MarginC/kame | netbsd/sys/dev/i2c/at24cxx.c | /* $NetBSD: at24cxx.c,v 1.2 2004/03/11 15:11:53 christos Exp $ */
/*
* Copyright (c) 2003 Wasabi Systems, Inc.
* All rights reserved.
*
* Written by <NAME> and <NAME> for Wasabi Systems, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the f... |
aic-sri-international/aic-util | src/main/java/com/sri/ai/util/graph2d/api/variables/Value.java | <filename>src/main/java/com/sri/ai/util/graph2d/api/variables/Value.java
package com.sri.ai.util.graph2d.api.variables;
/**
* The value of a variable; can represent any Java object but typically this will be numbers and strings.
*/
public interface Value {
static Value value(Object value) {
DefaultValue... |
bgalloway1/enroll | spec/models/rule_set/coverage_household/individual_market_verification_spec.rb | require "rails_helper"
if ExchangeTestingConfigurationHelper.individual_market_is_enabled?
describe RuleSet::CoverageHousehold::IndividualMarketVerification do
subject { RuleSet::CoverageHousehold::IndividualMarketVerification.new(coverage_household) }
let(:coverage_household) { instance_double(CoverageHousehold, ... |
jattenberg/parallax | src/main/java/com/dsi/parallax/ml/util/HashFunctionType.java | /*******************************************************************************
* Copyright 2012 <NAME>. Not for re-use or redistribution.
******************************************************************************/
package com.dsi.parallax.ml.util;
import java.security.MessageDigest;
public enum HashFunctionT... |
j-h-m/Media-Journaling-Tool | plugins/DLIBFaceSelection/__init__.py | import cv2
import dlib
# path to pretrained model utilized in face detection
# assumes the model file is in the same directory as this code, please specify full path in case this condition is invalid on user's local machine
import numpy
PREDICTOR_PATH = "pretrained_model.dat"
# pre-defined parameters used by the dli... |
AxeyGabriel/dummy_load | spl/src/stm8s_flash_ProgramOptionByte.c |
/**
********************************************************************************
* @file stm8s_flash_ProgramOptionByte.c
* @author MCD Application Team
* @version V2.2.0
* @date 30-September-2014
* @brief This file contains all the functions for the UART1 peripheral.
***********************... |
DarkHighness/HeCBench | bmf-hip/src/helper/rngpu.hpp | <filename>bmf-hip/src/helper/rngpu.hpp
#ifndef RNGPU_HPP
#define RNGPU_HPP
#include <stdint.h>
#if defined(__HIPCC__)
#define INLINE_QUALIFIERS __host__ __device__ inline
#else
#include <math.h>
#define INLINE_QUALIFIERS
#endif
/////////////////////////////////////////////////////////////////////////////... |
mebigfatguy/clytemnestra | src/com/mebigfatguy/clytemnestra/controllers/ColumnFamiliesController.java | <filename>src/com/mebigfatguy/clytemnestra/controllers/ColumnFamiliesController.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 licen... |
wad/zerbat | js/app/places.js | <reponame>wad/zerbat
define([
'app/constants',
'app/gameContext',
'app/map',
'app/world',
'app/gear'], function (c, gx, Map, World, Gear) {
var Places = {};
Places.PlaceDetailDescriptionOnly = function (description) {
return {
placeDetailDescription: description
... |
Grosskopf/openoffice | main/sc/source/core/tool/formulaparserpool.cxx | /**************************************************************
*
* 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 y... |
wardensky/wardensky-demo | java/mq_request_reply/src/main/java/com/wardensky/demo/mqkill/GlobalConfig.java | <gh_stars>0
package com.wardensky.demo.mqkill;
public class GlobalConfig {
public static String MQ_URL = "failover://tcp://192.168.163.50:61616?jms.prefetchPolicy.queuePrefetch=1";
public volatile static boolean IS_ALIVE = true;
}
|
nazarov-pro/training | db/db-tunning/src/main/java/org/shahin/nazarov/db/tunning/util/Constants.java | package org.shahin.nazarov.db.tunning.util;
public class Constants {
public static final String MYBATIS_CONFIG_FILE = "mybatis-postgres-config.xml";
public static final String MYBATIS_CONFIG_MYSQL_FILE = "mybatis-mysql-config.xml";
}
|
devlato/spark-skeleton | src/main/java/com/moneytapp/restapi/infrastructure/base/Model.java | /**
* Created by d.tokarev on 02/12/15.
*/
package com.moneytapp.restapi.infrastructure.base;
public abstract class Model {
public Model() {
}
}
|
cspath1/AndcultureCode.Cli | _modules/dotnet-build.js | // -----------------------------------------------------------------------------------------
// #region Imports
// -----------------------------------------------------------------------------------------
const child_process = require("child_process");
const dotnetClean = require("./dotnet-clean");
const dotnetPath ... |
dimitrov-dimitar/competitive-programming | CodeForces/easy problems/122_a_lucky_division.py | <filename>CodeForces/easy problems/122_a_lucky_division.py
# https://codeforces.com/problemset/problem/122/A
n = int(input())
def lucky_numbers(num):
num = str(num)
counter = 0
for ch in num:
if ch == '4' or ch == '7':
counter += 1
if len(num) == counter:
return 'YES'
k ... |
Boxin-ChinaGD/BXERP | 20190902_v1_1/src/nbr/src/test/java/com/bx/erp/test/commodity/CommoditySITTest.java | package com.bx.erp.test.commodity;
import static org.testng.Assert.assertTrue;
import java.util.List;
import java.util.Map;
import org.springframework.test.context.web.WebAppConfiguration;
import org.testng.Assert;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng... |
m312z/Mercs | src/mission/powers/PowerEater.java | package mission.powers;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import mission.Board;
import mission.SupportFactory;
import mission.gameobject.AllyMech;
import mission.gameobject.Component;
import mission.gameobject.Mech;
import mission.gameobject.Player;
import missi... |
hjqcl316602/app-trade-admin | package/es/imager/transformer.js | <reponame>hjqcl316602/app-trade-admin
/**
* @name 图片格式转换
* @param { src } [ string ]
* @param { type } ["base64", "blob"]
* @return [ promise ]
*/
let transformer = function(src, type = "base64") {
if (typeof src !== "string") throw new Error("The first argument must be string.");
if (["base64", "blob"].findI... |
redhawkIT/typescript-eslint | packages/shared-fixtures/fixtures/javascript/forIn/for-in-with-bare-assigment.src.js | for (x = 0 in arr);
|
ArpNetworking/artemis | app/com/groupon/deployment/host/Rpm.java | /**
* Copyright 2016 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... |
zhouchengtang/ZCKitFramework | ZCKit/ZCKit/ZCCategory/UIKit/UIViewController/UIViewController+ZCSystemBackButtonHandler.h | <filename>ZCKit/ZCKit/ZCCategory/UIKit/UIViewController/UIViewController+ZCSystemBackButtonHandler.h
//
// UIViewController+ZCSystemBackButtonHandler.h
// ZCKit
//
// Created by zhoucheng on 2016/10/19.
// Copyright © 2016年 zhoucheng. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol ZCBackButtonHandlerPr... |
coppelia517/orlov | tests/seir/ui/browndust/initial.py | <filename>tests/seir/ui/browndust/initial.py
""" BrownDust Initial Class """
import logging
# pylint: disable=E0401
from seir.element import elements
from seir.element import Component
logger = logging.getLogger(__name__)
TEST_PATH = {
'eclipse': 'initial/eclipse',
'skip': 'initial/skip',
'close': 'initi... |
wanglei2659297/das | das-client/src/test/java/com/ppdai/das/client/DistributedTransactionTableTest.java | package com.ppdai.das.client;
import static com.ppdai.das.client.SqlBuilder.selectAllFrom;
import static com.ppdai.das.core.enums.DatabaseCategory.MySql;
import static com.ppdai.das.core.enums.DatabaseCategory.SqlServer;
import static org.junit.Assert.fail;
import java.sql.SQLException;
import java.util.Array... |
velmyshanovnyi/rockbrama | !arh/landing/65_landings_templates/27/js/custom.js | $(function() {
$.clicks = 318;
$.converse = 16;
$.offright = 0;
$( "#slider" ).slider({
value: $.clicks,
min: 0,
max: 5000,
step: 10,
slide: function( event, ui ) {
$( "#slider a" ).text( ui.value );
$.clicks = ui.value;
$('#how_much_client... |
dipta007/Competitive-Programming | OTHERS/ICPC/ICPC 2014/mock/B.c | #include<stdio.h>
int main()
{
int n,i,j,a[100],swap;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
for(i=0;i<n;i++)
{
for(j=0;j<n-i-1;j++)
{
if(a[j]>a[j+1])
{
swap=a[j+1];
a[j+1]=a[j];
a... |
untgames/funner | components/system/sources/platform/windows/application/win_platform_configuration.cpp | #include "../shared.h"
#ifndef LOCALE_SNAME
#define LOCALE_SNAME 0x0000005c // locale name (ie: en-us)
#endif
namespace
{
const char* CONFIG_PATH = "/anonymous/platform_config.xml";
/*
Компонент сохранения параметров платформы в файле
*/
class PlatformConfigurationComponent
{
public:
/... |
ChaojieDZhao/jb-brother | jb-basic/src/main/java/basic/io/nio/utils/ByteBufferUtils.java |
/*
* Copyright (c)
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, soft... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.