identifier stringlengths 42 383 | collection stringclasses 1
value | open_type stringclasses 1
value | license stringlengths 0 1.81k | date float64 1.99k 2.02k ⌀ | title stringlengths 0 100 | creator stringlengths 1 39 | language stringclasses 157
values | language_type stringclasses 2
values | word_count int64 1 20k | token_count int64 4 1.32M | text stringlengths 5 1.53M | __index_level_0__ int64 0 57.5k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/BuildingBridge/biznet/blob/master/bitrix/modules/crm/lang/en/lib/integration/documentgenerator/value/address.php | Github Open Source | Open Source | Unlicense | 2,020 | biznet | BuildingBridge | PHP | Code | 5 | 27 | <?
$MESS['CRM_DOCGEN_VALUE_ADDRESS_TITLE'] = "Address";
?> | 20,148 |
https://github.com/portintegration/Data-Pixels/blob/master/resources/build/js/support/constants.js | Github Open Source | Open Source | MIT | 2,021 | Data-Pixels | portintegration | JavaScript | Code | 827 | 3,561 | /**
* @description The <strong>sharedConstants.js</strong> module contains a collection of categoric constant member objects.
* @module
*
*/
export {
Electron,
Event,
FileSource,
Keys,
Label,
Orientation,
Role,
Type
};
/**
* @description Properties of type <strong>{string}</stron... | 24,862 |
https://github.com/ekowabaka/fnx/blob/master/modules/system/permissions/SystemPermissionsModel.php | Github Open Source | Open Source | MIT | 2,017 | fnx | ekowabaka | PHP | Code | 30 | 95 | <?php
class SystemPermissionsModel extends ORMSQLDatabaseModel
{
public $database = ".permissions";
public $showInMenu = "false";
public $references = array(
"role_id" => array(
"reference" => ".roles.role_id",
"referenceValue" => "role_name"
)
);
} | 4,830 |
https://github.com/ianleocadio/playerstoplay-bot/blob/master/config/config.js | Github Open Source | Open Source | Apache-2.0 | null | playerstoplay-bot | ianleocadio | JavaScript | Code | 400 | 1,439 | const Discord = require("discord.js");
let BOT_CONFIG = require("./bot_config.js");
const Utils = require("../util/utils.js");
const CommandMap = require("../commands/CommandMap");
/******************************************************
* *
* *
* Command's functions *
* ... | 25,116 |
https://github.com/sirotin/at-a-glance-of-a-key/blob/master/java-offload-large-ddb-items-to-s3/src/test/java/org/sirotin/example/offloader/GZipCompressionTest.java | Github Open Source | Open Source | MIT | null | at-a-glance-of-a-key | sirotin | Java | Code | 182 | 649 | package org.sirotin.example.offloader;
import org.apache.commons.lang3.RandomStringUtils;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class GZipCompressionTest {
@Test
publ... | 22,640 |
https://github.com/danrasband/jpo-ode/blob/master/jpo-ode-svcs/src/main/java/us/dot/its/jpo/ode/heartbeat/RsuSnmp.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | jpo-ode | danrasband | Java | Code | 289 | 854 | /*******************************************************************************
* Copyright 2018 572682
*
* 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/... | 48,766 |
https://github.com/mu94-csl/wfmash/blob/master/src/common/wflign/deps/WFAv2/WFA/wavefront/wavefront_reduction.c | Github Open Source | Open Source | MIT | 2,022 | wfmash | mu94-csl | C | Code | 1,183 | 4,290 | /*
* The MIT License
*
* Wavefront Alignments Algorithms
* Copyright (c) 2017 by Santiago Marco-Sola <santiagomsola@gmail.com>
*
* This file is part of Wavefront Alignments Algorithms.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this softwa... | 42,364 |
https://github.com/UlisesCm/portafolio_personal/blob/master/src/components/AboutMe/AboutMe.scss | Github Open Source | Open Source | 0BSD | 2,021 | portafolio_personal | UlisesCm | SCSS | Code | 51 | 182 | .about-me {
box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.2);
padding: 40px 50px;
text-align: center;
margin-bottom: 50px;
p {
text-align: justify;
}
button {
text-transform: upper... | 13,654 |
https://github.com/NewSpring/expressionengine-styles/blob/master/core-styles/objects/_shapes.scss | Github Open Source | Open Source | Apache-2.0 | 2,017 | expressionengine-styles | NewSpring | SCSS | Code | 5 | 16 | .round {
@include radius(50%);
}
| 29,344 |
https://github.com/OpenChemistry/mongochemclient/blob/master/src/components/download-selector/index.js | Github Open Source | Open Source | BSD-3-Clause | 2,021 | mongochemclient | OpenChemistry | JavaScript | Code | 129 | 434 | import React, { useState } from 'react';
import { withStyles, Fab } from '@material-ui/core';
import { ToggleButtonGroup, ToggleButton } from '@material-ui/lab';
import DownloadIcon from '@material-ui/icons/CloudDownload';
import { isNil } from 'lodash-es';
const styles = theme => ({
root: {
display: 'flex',
... | 29,905 |
https://github.com/v3921358/MapleStory-v113-Server-Eimulator/blob/master/Libs/scripts/npc/2094001.js | Github Open Source | Open Source | MIT | 2,021 | MapleStory-v113-Server-Eimulator | v3921358 | JavaScript | Code | 358 | 1,145 | var status = -1;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.removeAll(4001117);
cm.removeAll(4001120);
cm.removeAll(4001121);
cm.removeAll(4001122);
cm.sendSimple("#b#L0#我要離開#l\r\n... | 3,518 |
https://github.com/rzel/logiccodebuilder/blob/master/lcb/src/org/lcb/graphs/qsee/GraphQsee.java | Github Open Source | Open Source | BSD-3-Clause, Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,008 | logiccodebuilder | rzel | Java | Code | 153 | 557 | package org.lcb.graphs.qsee;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;
import org.lcb.graphs.api.IGraphData;
import org.lcb.templates.api.NodeTemplate;
import org.lcb.xml.XMLElement;
import org.lcb.xml.XMLUtils;
public class GraphQsee implements IGraphData<XMLElement, XMLElement>
{
... | 50,140 |
https://github.com/leviwp48/Cherper/blob/master/app/src/main/java/com/codepath/apps/restclienttemplate/TimelineActivity.java | Github Open Source | Open Source | MIT | null | Cherper | leviwp48 | Java | Code | 794 | 2,867 | package com.codepath.apps.restclienttemplate;
//import android.support.design.widget.BottomNavigationView;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.os.AsyncTask;
import android.support.v4.widget.SwipeRefreshLayout;
import android.s... | 45,513 |
https://github.com/AndreyShpilevoy/DemProject/blob/master/DEM_MVC/Controllers/AccountController.cs | Github Open Source | Open Source | MIT | 2,021 | DemProject | AndreyShpilevoy | C# | Code | 1,524 | 4,803 | using System;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;
using DEM_MVC.Models;
using DEM_MVC.Models.AccountViewModels;
using DEM_MVC_Infrastructure.Models;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin.Security;
using reCAPTCHA... | 43,904 |
https://github.com/Yueyehua/nlp/blob/master/spec/nlp/parser/languagerecognitionparser_spec.cr | Github Open Source | Open Source | MIT | 2,019 | nlp | Yueyehua | Crystal | Code | 76 | 249 | require "../../spec_helper"
describe NLP::Parser::LanguageRecognitionParser do
it "should find regex." do
str = "This is a sentence that match regex."
b = NLP::Parser::LanguageRecognitionParser.find_regex(str, /regex/)
b.should be_true
end
it "shouldn't find regex." do
str = "This is a sentence w... | 31,226 |
https://github.com/lbryio/lbry-desktop/blob/master/ui/page/passwordReset/view.jsx | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,023 | lbry-desktop | lbryio | JavaScript | Code | 28 | 73 | // @flow
import React from 'react';
import UserPasswordReset from 'component/userPasswordReset';
import Page from 'component/page';
export default function PasswordResetPage() {
return (
<Page authPage>
<UserPasswordReset />
</Page>
);
}
| 50,445 |
https://github.com/Jonas-Schild/postcardsender/blob/master/postcardsender-postcardapi-call/src/main/java/ch/schildj/postcardsender/apicall/model/apiResponseDto/DefaultResponse.java | Github Open Source | Open Source | MIT | 2,020 | postcardsender | Jonas-Schild | Java | Code | 104 | 293 | package ch.schildj.postcardsender.apicall.model.apiResponseDto;
import java.util.ArrayList;
/**
* Transferobject to receive the response from the Postcard API of Post CH
* Default response -Element
*/
public class DefaultResponse {
private String cardKey;
private String successMessage;
private ArrayLis... | 47,491 |
https://github.com/rsinghcharan/TimehseetPOC/blob/master/ZeroChaos.TimesheetPOC/ZeroChaos.TimesheetPOC/View/Engagement/SpendSummaryPage.xaml.cs | Github Open Source | Open Source | MIT | null | TimehseetPOC | rsinghcharan | C# | Code | 25 | 95 | using System;
using System.Collections.Generic;
using Xamarin.Forms;
using ZeroChaos.TimesheetPOC.ViewModel;
namespace ZeroChaos.TimesheetPOC
{
public partial class SpendSummaryPage : ContentPage
{
public SpendSummaryPage()
{
InitializeComponent();
}
}
}
| 7,412 |
https://github.com/avcora/blockio-java/blob/master/src/main/java/io/block/api/model/TransactionInput.java | Github Open Source | Open Source | MIT | 2,021 | blockio-java | avcora | Java | Code | 52 | 223 | package io.block.api.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.math.BigDecimal;
import java.util.List;
public class TransactionInput
{
@SerializedName("input_no")
@Expose
public Integer inputNo;
@SerializedName("value")
@Expos... | 47,485 |
https://github.com/egiltane/tsd-file-api/blob/master/doc/postgresql-backend-implementation-notes.sql | Github Open Source | Open Source | BSD-3-Clause | null | tsd-file-api | egiltane | SQL | Code | 522 | 1,154 |
-- postgres backend notes
-- all tables handled by the SQL, generated by PostgresQueryGenerator
-- have the following definition
create table if not exists mytable (data jsonb unique not null);
-- let's add some test data
insert into mytable values (
'{
"x": 0,
"y": 1,
"z": null,
... | 38,160 |
https://github.com/Netstyle/Workflow/blob/master/src/Workflow.package/WfWorkflowDefinitionTest.class/instance/testSimpleSequence.st | Github Open Source | Open Source | MIT | 2,018 | Workflow | Netstyle | null | Spoken | 82 | 177 | tests
testSimpleSequence
| ss task2 task1 |
ss := WfWorkflowLibrary default simpleSequence "executeInNewFrame".
self assert: ss allSteps size equals: 3.
task1 := (ss stepNamed: 'Task 1').
task2 := (ss stepNamed: 'Task 2').
self assert: task2 class equals: WfNamedStep.
self assert: task1 class equals: WfName... | 13,978 |
https://github.com/ntwari-egide/chroma-react/blob/master/stories/components/Divider/Divider.stories.tsx | Github Open Source | Open Source | MIT | 2,021 | chroma-react | ntwari-egide | TypeScript | Code | 314 | 1,222 | import { storiesOf } from '@storybook/react';
import * as React from 'react';
import { Box } from '../../../src/components/Box';
import { Divider } from '../../../src/components/Divider';
import { IconButton } from '../../../src/components/IconButton';
import md from './default.md';
import { Container } from '../../sto... | 25,215 |
https://github.com/YuLaiZ/dong-manager/blob/master/src/main/java/com/yulaiz/dong/web/service/impl/BookUpdateTimeServiceImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | dong-manager | YuLaiZ | Java | Code | 132 | 669 | package com.yulaiz.dong.web.service.impl;
import com.yulaiz.dong.web.common.exception.ExeResultException;
import com.yulaiz.dong.web.common.utils.StringUtil;
import com.yulaiz.dong.web.dao.BookUpdateTimeMapper;
import com.yulaiz.dong.web.model.entity.BookUpdateTimeInfo;
import com.yulaiz.dong.web.model.entity.UserInfo... | 30,124 |
https://github.com/samad-nkarimi/android-kotlin-chat-app/blob/master/uikit-kotlin/src/main/java/com/cometchat/pro/uikit/CometChatGroupList.kt | Github Open Source | Open Source | MIT | 2,021 | android-kotlin-chat-app | samad-nkarimi | Kotlin | Code | 474 | 1,246 | package com.cometchat.pro.uikit
import android.content.Context
import android.util.AttributeSet
import android.view.View
import androidx.databinding.BindingMethod
import androidx.databinding.BindingMethods
import androidx.recyclerview.widget.RecyclerView
import com.cometchat.pro.models.Group
import com.cometchat.pro.u... | 38,956 |
https://github.com/cloudmesh/dev/blob/master/ubuntu-20.04/061-graphics.sh | Github Open Source | Open Source | Apache-2.0 | 2,022 | dev | cloudmesh | Shell | Code | 27 | 78 | #! /bin/sh
banner vlc
sudo snap install vlc
banner flameshot
sudo snap install flameshot
# sudo add-apt-repository ppa:marten-baert/simplescreenrecorder
# sudo apt-get update
# sudo apt-get install simplescreenrecorder
| 25,185 |
https://github.com/oiuv/mud/blob/master/d/quanzhen/npc/yuanwai.c | Github Open Source | Open Source | MIT | 2,023 | mud | oiuv | C | Code | 37 | 249 | inherit NPC;
void create()
{
set_name("侯员外", ({ "hou yuanwai", "hou", "yuanwai" }));
set("long", "侯员外据说是这长安镇上的首富,谁也\n"
"不知道他到底有多少家财。他大约五十\n"
"出头,长的富富态态。\n");
set("gender", "男性");
set("age", 52);
set("combat_exp", 12000);
set_skill(... | 30,034 |
https://github.com/rewardStyle/sqlc/blob/master/internal/debug/dump.go | Github Open Source | Open Source | MIT | null | sqlc | rewardStyle | Go | Code | 12 | 51 | package debug
import (
"github.com/davecgh/go-spew/spew"
)
func Dump(n interface{}) {
spew.Dump(n)
}
| 44,478 |
https://github.com/contentfree/orion/blob/master/src/orion/view/renderer/tokenize.cr | Github Open Source | Open Source | MIT | 2,022 | orion | contentfree | Crystal | Code | 7 | 58 | file = File.expand_path(ARGV[0])
print "#{file.sub(/^#{Dir.current}\/src\/views\//, "").gsub(/[^A-Za-z0-9_]/, "_")}"
| 18,526 |
https://github.com/npenin/njs/blob/master/test/js/fs_readFileSync.js | Github Open Source | Open Source | BSD-2-Clause | 2,020 | njs | npenin | JavaScript | Code | 91 | 249 | var fs = require('fs');
var argv = process.argv.slice(2);
var fname = argv[0];
var options = (() => {
var encoding = argv[1];
var flags = argv[2];
if (encoding && flags) {
return {encoding, flags};
} else if (encoding) {
return encoding;
}
return undefined;
})();
function t... | 39,593 |
https://github.com/WikiWatershed/gwlf-e/blob/master/test/unittests/test_NAWMSP_2.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | gwlf-e | WikiWatershed | Python | Code | 30 | 137 | from unittest import skip
import numpy as np
from .VariableUnitTest import VariableUnitTest
from gwlfe.BMPs.AgAnimal import NAWMSP_2
class TestNAWMSP_2(VariableUnitTest):
@skip('Not Ready Yet.')
def test_NAWMSP_2(self):
z = self.z
np.testing.assert_array_almost_equal(
NAWMSP_2.NA... | 33,301 |
https://github.com/oicawa/tames/blob/master/start.sh | Github Open Source | Open Source | MIT | 2,018 | tames | oicawa | Shell | Code | 4 | 17 | TAMES_CONFIG_PATH=$1 lein ring server-headless
| 13,301 |
https://github.com/muchang/z3test/blob/master/regressions/smt2/fp-to_ubv-1.smt2 | Github Open Source | Open Source | MIT | 2,021 | z3test | muchang | null | Spoken | 43 | 121 |
; Copyright (c) 2015 Microsoft Corporation
(set-info :status unsat)
(set-info :source "Handcrafted by C.M. Wintersteiger")
(declare-fun X () (_ BitVec 8))
(assert (= X ((_ fp.to_ubv 8) RTZ (fp #b0 #b00000 #b0000000000)))) ; +0.0
(assert (not (= X #x00)))
(check-sat)
(check-sat-using smt)
(exit)
| 49,502 |
https://github.com/TarsCloud/TarsCpp/blob/master/examples/scripts/run-http.sh | Github Open Source | Open Source | BSD-3-Clause | 2,023 | TarsCpp | TarsCloud | Shell | Code | 48 | 251 | #!/bin/bash
echo "run-http.sh"
EXE_PATH=$1
SRC_PATH=$2/..
echo ${EXE_PATH} ${SRC_PATH}
killall -9 HttpServer
sleep 1
echo "start server: ${EXE_PATH}/HttpServer --config=${SRC_PATH}/examples/HttpDemo/HttpServer/config.conf &"
${EXE_PATH}/HttpServer --config=${SRC_PATH}/examples/HttpDemo/HttpServer/config.conf &
s... | 43,649 |
https://github.com/Mylab6/BasicUnityProceduralTileGen/blob/master/Assets/Samples/NavMesh Components/0.1.0-preview.2/Build And Connect NavMesh Surfaces/Scripts/FreeCam.cs | Github Open Source | Open Source | MIT | 2,019 | BasicUnityProceduralTileGen | Mylab6 | C# | Code | 188 | 559 | using UnityEngine;
/// <summary>
/// Manipulating the camera with standard inputs
/// </summary>
public class FreeCam : MonoBehaviour
{
public enum RotationAxes { MouseXAndY = 0, MouseX = 1, MouseY = 2 }
public RotationAxes axes = RotationAxes.MouseXAndY;
public float sensitivityX = 15F;
public float s... | 19,211 |
https://github.com/asyncdeveloper/laravel-app/blob/master/app/Product.php | Github Open Source | Open Source | MIT | 2,019 | laravel-app | asyncdeveloper | PHP | Code | 31 | 79 | <?php
/**
* Created by PhpStorm.
* User: Oluwaseyi
* Date: 12/03/2019
* Time: 1:08 PM
*/
namespace App;
class Product
{
protected $fillable = [
'name', 'quantity', 'price',
];
}
| 35,027 |
https://github.com/stan-dev/math/blob/master/test/unit/math/mix/fun/ldexp_test.cpp | Github Open Source | Open Source | BSD-3-Clause, GPL-2.0-only, Apache-2.0 | 2,023 | math | stan-dev | C++ | Code | 70 | 371 | #include <test/unit/math/test_ad.hpp>
TEST(mathMixScalFun, ldexp) {
auto f = [](const auto& x1) { return stan::math::ldexp(x1, 5); };
stan::test::expect_ad(f, 3.1);
stan::test::expect_ad(f, 0.0);
stan::test::expect_ad(f, -1.5);
stan::test::expect_ad(f, stan::math::INFTY);
stan::test::expect_ad(f, stan::ma... | 10,405 |
https://github.com/korsbo/Latexify.jl/blob/master/test/plugins/SymEngine_test.jl | Github Open Source | Open Source | MIT | 2,023 | Latexify.jl | korsbo | Julia | Code | 22 | 50 | using SymEngine
@vars x y
symExpr = x + x + x*y*y
@test latexraw(symExpr) == "2 \\cdot x + x \\cdot y^{2}"
| 25,960 |
https://github.com/GsDevKit/GsDevKit_ansible/blob/master/roles/gemstone/templates/topazSeasideLoadScript.st | Github Open Source | Open Source | MIT | 2,017 | GsDevKit_ansible | GsDevKit | null | Spoken | 77 | 303 | "copied from monty's work here: https://github.com/MagLev/maglev-topaz-scripts"
set gemstone seaside user DataCurator password swordfish
login
run
|autoCommit autoMigrate|
(GsFile openWriteOnServer: '/opt/scripts/seasideLoaded') nextPutAll: '1'; close.
autoCommit:= MCPlatformSupport autoCommit.
autoMigrate:= MCPlatform... | 51,477 |
https://github.com/keito940/core/blob/master/src/Omnius.Core.UnitTestToolkit/AssertEx.cs | Github Open Source | Open Source | MIT | null | core | keito940 | C# | Code | 172 | 604 | using System;
using System.Text.Encodings.Web;
using System.Text.Json;
using System.Text.Json.Serialization;
using DiffPlex.DiffBuilder;
using DiffPlex.DiffBuilder.Model;
namespace Omnius.Core.UnitTestToolkit
{
public class BytesReadOnlyMemoryConverter : JsonConverter<ReadOnlyMemory<byte>>
{
public sta... | 34,434 |
https://github.com/johanloones/dsmp-pre-work/blob/master/Basic-Student-Management-System/code.py | Github Open Source | Open Source | MIT | null | dsmp-pre-work | johanloones | Python | Code | 195 | 566 | # --------------
# Code starts here
# Create the lists
class_1 = ['Geoffrey Hinton','Andrew Ng','Sebastian Raschka','Yoshua Bengio' ]
class_2 = ['Hilary Mason','Carla Gentry','Corinna Cortes']
# Concatenate both the strings
new_class = (class_1 + class_2)
print (new_class)
# Append the list
new_class.append('Peter... | 2,300 |
https://github.com/Erik3a8/HarryPlotter/blob/master/LinuxHarryPlotter/src/StaticColorDomain.cc | Github Open Source | Open Source | MIT | null | HarryPlotter | Erik3a8 | C++ | Code | 1,200 | 3,907 | #include <iostream>
#include <chrono>
#include "StaticColorDomain.h"
#include "Julia.h"
unsigned int StaticColorDomain::fileNumberBMP{0};
unsigned int StaticColorDomain::fileNumberMPG{0};
double StaticColorDomain::gamma{0.85};
StaticColorDomain::StaticColorDomain (const int x, const int y, const double res, const dou... | 13,188 |
https://github.com/plandes/util/blob/master/src/python/zensols/config/iniconfig.py | Github Open Source | Open Source | MIT | null | util | plandes | Python | Code | 1,152 | 3,497 | """Implementation classes that are used as application configuration containers
parsed from files.
"""
__author__ = 'Paul Landes'
from typing import Set, Dict, List, Union
from abc import ABCMeta, abstractmethod
import logging
import os
from io import TextIOBase, StringIO
from pathlib import Path
from copy import dee... | 50,907 |
https://github.com/lucabarbieri/archivio_mio/blob/master/erMaijettaro/Esercizi/random_pattern/random_pattern.pde | Github Open Source | Open Source | MIT | null | archivio_mio | lucabarbieri | null | Spoken | 95 | 277 | void setup() {
fullScreen();
background(0);
frameRate(200);
}
int n = 0;
void draw() {
int random = int(random(50));
if (n<width) {
for (int i = 0; i< height+100; i+=10) {
int rand = int(random(2));
if (rand == 0) {
fill(0);
rect(n, i, n+random, i+random);
} else {
... | 46,840 |
https://github.com/duluca/lemon-mart-server/blob/master/server/src/models/phone.ts | Github Open Source | Open Source | MIT | 2,023 | lemon-mart-server | duluca | TypeScript | Code | 108 | 283 | import { ISerializable, SerializationStrategy, Serialize } from 'document-ts'
import { PhoneType } from './enums'
export interface IPhone {
type: PhoneType
digits: string
}
/**
* @openapi
* components:
* schemas:
* Phone:
* type: object
* properties:
* type:
* $ref: "#/... | 53,261 |
https://github.com/ricardoo14/mascotapet1/blob/master/resources/views/tablon/index.blade.php | Github Open Source | Open Source | MIT | 2,021 | mascotapet1 | ricardoo14 | PHP | Code | 22 | 136 | @extends('layouts.plantilla')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-6">
<h2 style="text-shadow:1px 1px 1px #ffff" class="text-black">Mascotas adoptables</h2>
</div>
<div class="col-md-6"></div>
</div>... | 32,778 |
https://github.com/DanielZSY/SwiftyMessagesKit/blob/master/SwiftyMessageKit/Classes/View/Video/ZVideoBlurEffectView.swift | Github Open Source | Open Source | MIT | null | SwiftyMessagesKit | DanielZSY | Swift | Code | 177 | 717 |
import UIKit
import SwiftBasicKit
class ZVideoBlurEffectView: UIView {
private lazy var z_imageicon: UIImageView = {
let item = UIImageView.init(frame: CGRect.init(self.width/2 - 33/2, self.height/2 - 24/2, 33, 24))
item.image = Asset.iconSeeW.image.withRenderingMode(.alwaysTemplate)
item... | 27,442 |
https://github.com/SingleSheep/Oobio-wxapp/blob/master/config/api/config.php | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | 2,018 | Oobio-wxapp | SingleSheep | PHP | Code | 67 | 311 | <?php
/**
* Created by 小羊.
* Author: 勇敢的小笨羊
* 微博: http://weibo.com/xuzuxing
* Date: 2017/11/24
* Time: 21:51
*/
return [
// 应用调试模式
'app_debug' => true,
// 默认输出类型
'default_return_type' => 'json',
// +----------------------------------------------------------------------
// ... | 43,555 |
https://github.com/top1select/KinesisCDC/blob/master/cdckinesis/src/main/java/com/sms/cdc/kinesis/utils/RedshiftUtil.java | Github Open Source | Open Source | Apache-2.0 | null | KinesisCDC | top1select | Java | Code | 158 | 701 | package com.sms.cdc.kinesis.utils;
import com.alibaba.druid.sql.SQLUtils;
import com.alibaba.druid.sql.ast.expr.SQLIdentifierExpr;
import com.alibaba.druid.sql.ast.expr.SQLIntegerExpr;
import com.alibaba.druid.sql.ast.expr.SQLPropertyExpr;
import com.alibaba.druid.sql.ast.statement.*;
import com.alibaba.druid.util.Jdb... | 9,528 |
https://github.com/starpeace-project/starpeace-original/blob/master/IB/IBKernel/Mission Engine/MissionEngine.pas | Github Open Source | Open Source | MIT | 2,021 | starpeace-original | starpeace-project | Pascal | Code | 3,414 | 11,105 | unit MissionEngine;
interface
uses
classes, Collection, IBSystem, Persistent, BackupInterfaces, XMLFile;
type
TMissionParameters =
packed record
PsiFactor : single;
AccRisk : single;
Luck : single;
LastExperience : integer;
LastCharge ... | 45,693 |
https://github.com/relunctance/dubbo-go/blob/master/cluster/cluster_impl/failfast_cluster.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | dubbo-go | relunctance | Go | Code | 155 | 345 | /*
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 not use this fi... | 39,422 |
https://github.com/dragonxu/lighthub/blob/master/docs/html/search/defines_6.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | lighthub | dragonxu | JavaScript | Code | 7 | 188 | var searchData=
[
['flag_5fmask_1299',['FLAG_MASK',['../item_cmd_8h.html#a890221cb651a3f30f6d1bca0d9b0e13d',1,'itemCmd.h']]],
['fm_5foverheat_5fcelsius_1300',['FM_OVERHEAT_CELSIUS',['../options_8h.html#a9532a64e88b10a5317afd57397f99d3c',1,'options.h']]],
['fmpar_1301',['fmPar',['../options_8h.html#ab3adab6384decd... | 33,125 |
https://github.com/We-can-do-nothing/homework/blob/master/src/main/java/com/three/service/impl/employeeService.java | Github Open Source | Open Source | MIT | 2,020 | homework | We-can-do-nothing | Java | Code | 209 | 679 | package com.three.service.impl;
import com.three.bean.Job;
import com.three.bean.department;
import com.three.bean.employee;
import com.three.mapper.employee.employeeMapperInterface;
import com.three.service.employeeServiceInterface;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframe... | 6,632 |
https://github.com/i-balaji-mani/reporting-server-postman/blob/master/index.js | Github Open Source | Open Source | MIT | 2,021 | reporting-server-postman | i-balaji-mani | JavaScript | Code | 203 | 702 | const express = require("express"),
app = express(),
fs = require("fs"),
fse = require("fs-extra"),
shell = require("shelljs"),
path = require("path"),
successFolderPath = "./Reports/Success/",
errorFolderPath = "./Reports/Error/",
defaultFileExtension = "csv",
NEW_LINE = "\r\n";
shell.mkdir("-p", ... | 50,588 |
https://github.com/mattrayner/ocean-dynamo/blob/master/spec/dynamo/callbacks_spec.rb | Github Open Source | Open Source | Apache-2.0 | 2,017 | ocean-dynamo | mattrayner | Ruby | Code | 213 | 684 | require 'spec_helper'
describe Voom do
before :each do
@i = Voom.new
end
it "should have :id as its key" do
expect(Voom.table_hash_key).to eq :id
end
it "should do instantiation callbacks in the correct order" do
@i.valid?
expect(@i.logged).to eq [
"after_initialize",
"befor... | 11,661 |
https://github.com/lidulibai/coc-java-vimspector/blob/master/src/utility.ts | Github Open Source | Open Source | MIT | 2,022 | coc-java-vimspector | lidulibai | TypeScript | Code | 151 | 460 | import { Extension, ExtensionApi, extensions, Thenable, Uri, window } from 'coc.nvim';
import { IMainClassOption, resolveMainClass } from './languageServerPlugin';
import * as path from 'path';
const JAVA_EXTENSION_ID = 'redhat.java';
const DEBUGGER_EXTENSION_ID = 'coc-java-vimspector';
export function getJavaExtensi... | 7,236 |
https://github.com/B1naryStudio/Azimuth/blob/master/Azimuth/Services/Interfaces/IPlaylistLikesService.cs | Github Open Source | Open Source | MIT | 2,014 | Azimuth | B1naryStudio | C# | Code | 36 | 167 | using System.Collections.Generic;
using System.Threading.Tasks;
using Azimuth.DataAccess.Entities;
namespace Azimuth.Services.Concrete
{
public interface IPlaylistLikesService
{
Task<List<User>> GetLikersByPlaylistId(int id);
void AddCurrentUserAsLiker(int playlistId);
void AddCurrentU... | 19,988 |
https://github.com/mdboop/francis/blob/master/src/containers/AnalyzeExperiment/MeasureNumeric/OptionList/BarChart.js | Github Open Source | Open Source | BSD-2-Clause | null | francis | mdboop | JavaScript | Code | 69 | 255 | //reqs...measureValue
var React = require('react');
var _ = require('underscore');
var utils = require('../../../../utils/componentUtils');
var BarChart = require('../../../../../../lib/react-d3').BarChart;
var Chart = React.createClass({
genChartData : function() {
return [{
name: this.props.m... | 33,732 |
https://github.com/prashao/aws-controllers-k8s/blob/master/pkg/runtime/reconciler.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | aws-controllers-k8s | prashao | Go | Code | 1,692 | 4,695 | // Copyright 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" file ... | 21,672 |
https://github.com/hoythan/DFOXA-WordPressAPI/blob/master/libs/account/sign/out.php | Github Open Source | Open Source | MIT | 2,021 | DFOXA-WordPressAPI | hoythan | PHP | Code | 30 | 121 | <?php
namespace account\sign;
use account\token\verify as Verify;
class out extends sign
{
public function run()
{
//权限验证
$user_id = Verify::getSignUserID();
$user = get_user_by('id', $user_id);
wp_logout();
do_action('dfoxa_account_signout', $user);
dfoxaGat... | 27,961 |
https://github.com/cityzz/pelican_site/blob/master/pelicanconf.py | Github Open Source | Open Source | BSD-2-Clause | null | pelican_site | cityzz | Python | Code | 88 | 250 | #!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = 'Zz'
SITENAME = 'Test_pelican'
SITEURL = ''
PATH = 'content'
TIMEZONE = 'Europe/London'
DEFAULT_LANG = 'en'
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSL... | 45,627 |
https://github.com/sanjaypojo/genversion/blob/master/lib/genversion.js | Github Open Source | Open Source | MIT | 2,020 | genversion | sanjaypojo | JavaScript | Code | 520 | 1,154 |
var makeAbsolute = require('./makeAbsolute')
var path = require('path')
var firstline = require('firstline')
var findPackage = require('find-package')
var fs = require('fs')
var mkdirp = require('mkdirp')
var SIGNATURE = '// generated by genversion'
exports.check = function (targetPath, callback) {
// Check if a v... | 37,886 |
https://github.com/pensacola1989/Simple.Data.Mysql/blob/master/Src/Simple.Data.Mysql/MysqlConnectorHelper.cs | Github Open Source | Open Source | MIT | 2,014 | Simple.Data.Mysql | pensacola1989 | C# | Code | 113 | 417 | using System;
using System.Data;
using System.Data.Common;
using System.IO;
using System.Reflection;
namespace Simple.Data.Mysql
{
public static class MysqlConnectorHelper
{
private static DbProviderFactory _dbFactory;
private static DbProviderFactory DbFactory
{
get
... | 29,398 |
https://github.com/MultifokalHirn/superstructure/blob/master/tests/test_superstructure.py | Github Open Source | Open Source | MIT | 2,021 | superstructure | MultifokalHirn | Python | Code | 44 | 193 | import sys
import unittest
import better_exceptions
from superstructure.infrastructure.cli.commands import main
class TestSuperstructure(unittest.TestCase):
def test_cli(self):
main(
name="TestSuperstructure", verbose=True, path="tests/fixtures/pickled_data"
)
# main()
def ... | 1,611 |
https://github.com/AndreaCattaneo/atk/blob/master/themes/bootstrap/templates/panetabs.tpl | Github Open Source | Open Source | DOC | null | atk | AndreaCattaneo | null | Spoken | 67 | 347 | <div id="{$paneName}" class="tabContainer tabbedPane">
<table border="0" cellpadding="0" cellspacing="0" align="left" valign="top">
<tr>
<td width="100%" align="left">
<br/>
<nav border="0" cellpadding="0" cellspacing="0" class="tabsTabs tabContainer navbar navbar... | 48,168 |
https://github.com/IThomas/GraphiQL-Vapor/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,020 | GraphiQL-Vapor | IThomas | Ignore List | Code | 16 | 228 |
.build/checkouts/async-http-client/
.build/checkouts/async-kit/
.build/checkouts/console-kit/
.build/checkouts/routing-kit/
.build/checkouts/swift-backtrace/
.build/checkouts/swift-crypto/
.build/checkouts/swift-log/
.build/checkouts/swift-metrics/
.build/checkouts/swift-nio-extras/
.build/checkouts/swift-nio-http2/
.... | 12,776 |
https://github.com/pavetw17/sdmteam5/blob/master/server/handleRender.js | Github Open Source | Open Source | MIT | null | sdmteam5 | pavetw17 | JavaScript | Code | 106 | 311 | import React from 'react'
import {createStore} from 'redux';
import { Provider } from "react-redux"
import {renderToString} from 'react-dom/server'
import {StaticRouter} from 'react-router-dom';
import reducers from "../src/reducers/index"
import routes from "../src/routes.js"
export function handleRender(req, res, ... | 33,800 |
https://github.com/chesnaught7/tcgone-engine-contrib/blob/master/src/tcgwars/logic/impl/gen7/CrimsonInvasion.groovy | Github Open Source | Open Source | Apache-2.0 | null | tcgone-engine-contrib | chesnaught7 | Groovy | Code | 8,887 | 27,481 | package tcgwars.logic.impl.gen7;
import tcgwars.logic.impl.gen2.Aquapolis
import static tcgwars.logic.card.HP.*;
import static tcgwars.logic.card.Type.*;
import static tcgwars.logic.card.CardType.*;
import static tcgwars.logic.groovy.TcgBuilders.*;
import static tcgwars.logic.groovy.TcgStatics.*
import static tcgwars... | 668 |
https://github.com/ryu-sw/alembic/blob/master/lib/Alembic/AbcGeom/XformOp.cpp | Github Open Source | Open Source | MIT | 2,022 | alembic | ryu-sw | C++ | Code | 1,500 | 4,284 | //-*****************************************************************************
//
// Copyright (c) 2009-2012,
// Sony Pictures Imageworks, Inc. and
// Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with... | 21,268 |
https://github.com/ryan-holcombe/fmgen/blob/master/testdata/array.go | Github Open Source | Open Source | Unlicense | null | fmgen | ryan-holcombe | Go | Code | 21 | 49 | package testdata
// Array struct to help test arrays
type Array struct {
String []string
StringPtr []*string
StringOptionalPtr []*string `fmgen:"optional"`
}
| 5,253 |
https://github.com/kbravh/scriptly-redux/blob/master/gatsby-config.js | Github Open Source | Open Source | MIT | null | scriptly-redux | kbravh | JavaScript | Code | 172 | 668 | module.exports = {
siteMetadata: {
title: `Scriptly`,
description: `Make your patriarchal blessing look like it was taken right out of the pages of the scriptures.`,
author: `@kbravh`,
siteUrl: `https://scripture.page`
},
plugins: [
`gatsby-plugin-react-helmet`,
... | 40,647 |
https://github.com/xiasc01/kickflip-android-sdk/blob/master/sdk/src/main/java/io/kickflip/sdk/av/AVRecorder.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | kickflip-android-sdk | xiasc01 | Java | Code | 327 | 1,017 | package io.kickflip.sdk.av;
import java.io.IOException;
import io.kickflip.sdk.view.GLCameraView;
/**
* Records an Audio / Video stream to disk.
*
* Example usage:
* <ul>
* <li>AVRecorder recorder = new AVRecorder(mSessionConfig);</li>
* <li>recorder.setPreviewDisplay(mPreviewDisplay);</li>
* <li>... | 39,559 |
https://github.com/y12studio/dltdojo/blob/master/dockerfiles/colu/colutest.js | Github Open Source | Open Source | Apache-2.0 | 2,017 | dltdojo | y12studio | JavaScript | Code | 68 | 257 | var Colu = require('colu')
var settings = {
"network": "testnet",
"privateSeed": "fe32c74f50fc965eb9320de9d668ca94c317742a038d28d373eae3831ce3b4ce"
}
var colu = new Colu(settings)
function issueAsset(){
colu.on('connect', function() {
var asset = {
"amount": "10000"
}
co... | 41,597 |
https://github.com/hernanmd/pharo/blob/master/src/Collections-Unordered.package/HashTableSizes.class/instance/candidateIsGoodPrime.st | Github Open Source | Open Source | MIT | 2,019 | pharo | hernanmd | null | Spoken | 93 | 188 | private
candidateIsGoodPrime
"Answer true if candidate will make a good hash table size.
Some integers are rejected:
* Non-primes
* Primes which are close to dividing 1664525, the hashMultiply constant
* Primes which divide 256**k +- a, for small k and a
See Andres Valloud's hashing book, and Knuth TAOCP volume 3... | 46,033 |
https://github.com/sagerun/slim-bundle/blob/master/app/PayBundle/Controllers/AlipayF2FController.php | Github Open Source | Open Source | MIT | 2,017 | slim-bundle | sagerun | PHP | Code | 175 | 1,582 | <?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2017/3/9
* Time: 13:05
*/
namespace App\PayBundle\Controllers;
use \Psr\Http\Message\ServerRequestInterface as Request;
use \Psr\Http\Message\ResponseInterface as Response;
use \Omnipay\Omnipay;
class AlipayF2FController extends Controller{
p... | 49,850 |
https://github.com/tomkoufakis/datalgo/blob/master/src/ds/stack/ll_stack.ts | Github Open Source | Open Source | 0BSD | null | datalgo | tomkoufakis | TypeScript | Code | 93 | 258 | import { ArrayList } from "../arraylist";
import { Stack } from "./stack";
class LLStack<T> implements Stack<T> {
private list: ArrayList<T>;
constructor() {
this.list = new ArrayList<T>();
}
push(item: T): void {
this.list.insert(item, 0);
}
pop(): T | null {
if (thi... | 34,065 |
https://github.com/mac8005zh/magic-media/blob/master/src/Services/Abstractions/IThumbnailBlobStore.cs | Github Open Source | Open Source | MIT | 2,020 | magic-media | mac8005zh | C# | Code | 99 | 287 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace MagicMedia
{
public interface IThumbnailBlobStore
{
public Task StoreAsync(
ThumbnailData data,
CancellationToken cancellationTok... | 16,359 |
https://github.com/opennetsys/c3-go/blob/master/common/netutil/netutil_test.go | Github Open Source | Open Source | Apache-2.0 | 2,018 | c3-go | opennetsys | Go | Code | 82 | 249 | package netutil
import (
"net"
"strconv"
"testing"
)
func TestGetFreePort(t *testing.T) {
t.Parallel()
port, err := GetFreePort()
if err != nil {
t.Error(err)
}
if port == 0 {
t.Error("port == 0")
}
// Try to listen on the port
l, err := net.Listen("tcp", "localhost"+":"+strconv.Itoa(port))
if err !=... | 23,210 |
https://github.com/15207108156/Naruto-Uzumaki/blob/master/Uzumzki-project/2018/ball/src/main/java/com/xiaoyi/ssm/model/VenueDayLog.java | Github Open Source | Open Source | MIT | null | Naruto-Uzumaki | 15207108156 | Java | Code | 236 | 732 | package com.xiaoyi.ssm.model;
import java.io.Serializable;
import java.util.Date;
/**
* 实体
*/
public class VenueDayLog implements Serializable {
/** ID */
private String id;
/** 创建时间 */
private Date createTime;
/** 统计表ID */
private String venueDayId;
/** 记录人 */
private String staf... | 45,931 |
https://github.com/K-Wu/libcxx.doc/blob/master/include/cstring.hxx | Github Open Source | Open Source | Apache-2.0 | null | libcxx.doc | K-Wu | C++ | Code | 329 | 969 | // -*- C++ -*-
//===--------------------------- cstring ----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===------------... | 49,890 |
https://github.com/JetBrains/intellij-community/blob/master/java/debugger/impl/src/com/intellij/debugger/engine/CollectionBreakpointUtils.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | intellij-community | JetBrains | Java | Code | 1,046 | 3,831 | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.debugger.engine;
import com.intellij.debugger.engine.evaluation.EvaluateException;
import com.intellij.debugger.engine.evaluation.EvaluationContext;
import com.intellij.debugger... | 29,868 |
https://github.com/CBforeva/sdsw-riak-bash/blob/master/day3.sh | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,012 | sdsw-riak-bash | CBforeva | Shell | Code | 789 | 2,142 | ### Resolving Conflicts ###
# Vector Clocks
# A vector clock is a token that distributed systems like Riak use to keep the order of conflicting key-value updates intact.
# You may think “just timestamp the values and let the last value win,” but in a server cluster this only works if all server clocks are perfectly s... | 19,942 |
https://github.com/sarbeshwar1999/Valued-box-Landing-Page/blob/master/pages/categorious/Categories.js | Github Open Source | Open Source | Apache-2.0 | null | Valued-box-Landing-Page | sarbeshwar1999 | JavaScript | Code | 181 | 453 | import React from 'react'
import './Categories.css'
const Categories = () => {
return (
<div className="categorie-section">
<div className="categorie-container">
<div className="categories-heading">
... | 20,405 |
https://github.com/Liangtian5829/efw3.X/blob/master/release with sample/web application/efw/efw.client.messages.js | Github Open Source | Open Source | Apache-2.0 | 2,016 | efw3.X | Liangtian5829 | JavaScript | Code | 46 | 238 | /**
* The class to keep messages in client.
*
* @author Chang Kejun
*/
var EfwClientMessages = function() {
};
EfwClientMessages.prototype = {
OtherErrorException : "予想外エラーが発生しました。",
CanNotContinueMessage : "継続処理はできません。",
ParamsFormatErrorException : "イベントのパラメーター定義は正しくありません。",
ShowValuesErrorException : "描画用のデ... | 16,820 |
https://github.com/disc0ninja/riose/blob/master/renderer.js | Github Open Source | Open Source | CC0-1.0 | null | riose | disc0ninja | JavaScript | Code | 306 | 621 | // This file is required by the index.html file and will
// be executed in the renderer process for that window.
// All of the Node.js APIs are available in this process.
const rioseBtnElem = document.getElementById('riose-btn')
const choiceElem = document.getElementById('choice')
const chooseBtn = document.getElementB... | 22,009 |
https://github.com/gitter-badger/MoneyManager/blob/master/Src/MoneyManager.Core/ViewModels/TransactionListViewModel.cs | Github Open Source | Open Source | MS-PL | 2,015 | MoneyManager | gitter-badger | C# | Code | 145 | 482 | using System.Collections.Generic;
using System.Linq;
using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Command;
using GalaSoft.MvvmLight.Views;
using MoneyManager.Core.Manager;
using MoneyManager.Foundation.Model;
using MoneyManager.Foundation.OperationContracts;
using PropertyChanged;
namespace MoneyManager.Core.Vi... | 35,839 |
https://github.com/lucavgobbi/typescript-react-visualstudio/blob/master/SinglePageAppAndWebApi/SinglePageAppAndWebApi/Scripts/src/components/alert.tsx | Github Open Source | Open Source | Apache-2.0 | 2,018 | typescript-react-visualstudio | lucavgobbi | TypeScript | Code | 43 | 124 | import * as React from "react";
export interface IAlertProp {
text: string
}
export class DangerAlert extends React.Component<IAlertProp, {}> {
render() {
return <div className="alert alert-danger">{this.props.text}</div>;
}
}
export class SuccessAlert extends React.Component<IAlertProp, {}> {
... | 27,469 |
https://github.com/MSarandev/Battleships/blob/master/SarandevBattleships/Program.cs | Github Open Source | Open Source | MIT | null | Battleships | MSarandev | C# | Code | 230 | 558 | // Created by Maxim Sarandev
// Jan 2018
// Custom Software for BEDE Gaming. All rights reserved
using System;
namespace SarandevBattleships
{
internal class Program
{
public static void Main(string[] args)
{
// Main application method
GameBoard gb1 = new GameBoard(); ... | 25,974 |
https://github.com/ntl/gfm_live_preview/blob/master/lib/gfm_live_preview/cli.rb | Github Open Source | Open Source | MIT | 2,014 | gfm_live_preview | ntl | Ruby | Code | 69 | 229 | require 'optparse'
module GfmLivePreview
class CLI
DEFAULTS = {
port: 31337,
}
attr :argv
def initialize(argv)
@argv = argv
end
def self.parse(argv)
new(argv).parse
end
def parse
options = DEFAULTS.dup
OptionParser.new do |opts|
opts.banner =... | 26,349 |
https://github.com/cran/batchr/blob/master/tests/testthat/test-completed.R | Github Open Source | Open Source | MIT | 2,021 | batchr | cran | R | Code | 32 | 160 | test_that("batch_completed", {
path <- withr::local_tempdir()
write.csv(data.frame(x = 1), file.path(path, "file1.csv"))
expect_identical(
batch_config(function(x) TRUE,
path = path,
regexp = "^file\\d[.]csv$"
),
"file1.csv"
)
expect_false(batch_completed(path))
expect_identical(ba... | 46,677 |
https://github.com/linkrjr/Dashboarder/blob/master/Example/Dashboarder/NextViewController.swift | Github Open Source | Open Source | MIT | null | Dashboarder | linkrjr | Swift | Code | 38 | 110 | //
// NextViewController.swift
// Dashboarder_Example
//
// Created by Ronaldo Gomes on 18/10/17.
// Copyright © 2017 CocoaPods. All rights reserved.
//
import UIKit
class NextViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
self.view.background... | 12,004 |
https://github.com/torresmath/orange-talents-02-template-proposta/blob/master/financialproposal/src/test/resources/data.sql | Github Open Source | Open Source | Apache-2.0 | null | orange-talents-02-template-proposta | torresmath | SQL | Code | 17 | 59 | INSERT INTO proposal(name, document, salary, email, street, number, zip_code)
VALUES ('nome-teste', '42549789873', 1000, 'email@teste.com', 'Rua', '999', '01234567'); | 18,894 |
https://github.com/Steffkn/ElementsWeb/blob/master/Elements.Web/Common/CustomValidator.cs | Github Open Source | Open Source | MIT | null | ElementsWeb | Steffkn | C# | Code | 121 | 340 | using Microsoft.AspNetCore.Http;
namespace Elements.Web.Common
{
public static class CustomValidator
{
//public static bool ValidateObject(object obj)
//{
// if (obj != null)
// {
// return true;
// }
// return false;
//}
... | 46,953 |
https://github.com/jschmidtnj/ewaab/blob/master/web/src/components/markdown/Editor.tsx | Github Open Source | Open Source | MIT | 2,021 | ewaab | jschmidtnj | TypeScript | Code | 201 | 711 | import SimpleMDE from 'react-simplemde-editor';
import { FunctionComponent, useState } from 'react';
import Markdown from './Markdown';
import type { Editor as SimpleMDEEditor } from 'codemirror';
import type { KeyboardEvent } from 'react';
interface EditorArgs {
onChange: (newVal: string) => void;
value: string;
... | 11,194 |
https://github.com/neosiae/hackernews/blob/master/frontend/src/screens/News/index.tsx | Github Open Source | Open Source | MIT | null | hackernews | neosiae | TypeScript | Code | 139 | 444 | import React, { useState, useEffect } from 'react'
import { useParams } from 'react-router-dom'
import fetch from 'unfetch'
import useJwtExpiration from '../../hooks/useJwtExpiration'
import Post from '../../components/Post'
import * as S from './styles'
interface Post {
id: number
title: string
url: string
po... | 9,518 |
https://github.com/OneBusAway/onebusaway-application-modules/blob/master/onebusaway-admin-webapp/src/main/java/org/onebusaway/admin/json/JodaDateTimeAdapter.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | onebusaway-application-modules | OneBusAway | Java | Code | 171 | 500 | /**
* Copyright (C) 2015 Cambridge Systematics, 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 app... | 821 |
https://github.com/Allcatraz/Nullptr_ProjetSynthese/blob/master/ProjectSettings/EditorBuildSettings.asset | Github Open Source | Open Source | MIT | 2,017 | Nullptr_ProjetSynthese | Allcatraz | Unity3D Asset | Code | 56 | 323 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1045 &1
EditorBuildSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Scenes:
- enabled: 1
path: Assets/Scenes/Main.unity
guid: 2eadd10b7197d3744b82952bac7d0007
- enabled: 1
path: Assets/Scenes/Game.unity
guid: 40d6bf8743983b24a9a4affd13cf2662... | 20,079 |
https://github.com/SocialGouv/code-du-travail-frontend/blob/master/packages/code-du-travail-frontend/src/outils/types.ts | Github Open Source | Open Source | Apache-2.0 | null | code-du-travail-frontend | SocialGouv | TypeScript | Code | 30 | 86 | export type Tool = {
icon: string;
title: string;
displayTitle: string;
slug: string;
questions: string[];
description: string;
action: string;
date: string;
enable: boolean;
id: string;
metaTitle: string;
metaDescription: string;
};
| 17,770 |
https://github.com/rsgits/javascript-arithmetic-lab-js-intro-000/blob/master/index.js | Github Open Source | Open Source | LicenseRef-scancode-public-domain, LicenseRef-scancode-unknown-license-reference | 2,016 | javascript-arithmetic-lab-js-intro-000 | rsgits | JavaScript | Code | 92 | 201 | function add(a, b) {
var result = a + b
return result
}
function subtract(a,b) {
var result = a - b
return result
}
function multiply(a,b) {
var result = a * b
return result
}
function divide(a,b) {
var result = a / b
return result
}
function inc(n) {
var result = n
result++
return result
}
f... | 20,146 |
https://github.com/codesoftware/NSIGEMCO/blob/master/src/main/java/co/com/codesoftware/server/productos/RespuestaEntity.java | Github Open Source | Open Source | Apache-2.0 | null | NSIGEMCO | codesoftware | Java | Code | 283 | 878 |
package co.com.codesoftware.server.productos;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Clase Java para respuestaEntity complex type.
*
* <p>El siguiente fragmento de esquema especifica el contenido que se... | 37,137 |
https://github.com/ismaelrumzan/avansai-app-vercel-fix/blob/master/src/components/inputs/search/SearchInput.tsx | Github Open Source | Open Source | MIT | 2,021 | avansai-app-vercel-fix | ismaelrumzan | TSX | Code | 355 | 1,233 | import { ReactElement, useRef } from 'react'
import { Box, Input, List, ListItem, Stack } from '@chakra-ui/react'
import { useCombobox, UseComboboxState } from 'downshift'
import usePlacesAutocomplete, { Suggestion, getLatLng, getGeocode } from 'use-places-autocomplete'
interface SearchInputProps {
onSelectAddress:... | 29,324 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.