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/Kronuz/Xapiand/blob/master/src/xapian/api/postlist.h | Github Open Source | Open Source | MIT | 2,022 | Xapiand | Kronuz | C | Code | 1,103 | 2,152 | /** @file postlist.h
* @brief Abstract base class for postlists.
*/
/* Copyright (C) 2007,2008,2009,2011,2015,2017 Olly Betts
* Copyright (C) 2009 Lemur Consulting Ltd
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by... | 53,943 |
https://github.com/igr-santos/monorepo-github-actions/blob/master/packages/react-web/src/components/base/theme/foundations/fonts.ts | Github Open Source | Open Source | MIT | null | monorepo-github-actions | igr-santos | TypeScript | Code | 10 | 27 | export default {
heading: "Nunito Sans",
body: "Nunito Sans",
};
| 53,822 |
https://github.com/vkarlsen/customports/blob/master/sysutils/dtpstree/Makefile | Github Open Source | Open Source | BSD-3-Clause | null | customports | vkarlsen | Makefile | Code | 58 | 309 | # Created by: Douglas Thrift
# $FreeBSD: head/sysutils/dtpstree/Makefile 432284 2017-01-23 18:52:15Z sunpoet $
PORTNAME= dtpstree
PORTVERSION= 1.0.3
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://dl1.douglasthrift.net/${PORTNAME}/ \
http://dl2.douglasthrift.net/${PORTNAME}/
MAINTAINER= douglas@douglasthr... | 40,840 |
https://github.com/xingxingtx/key_project_manage/blob/master/src/main/java/com/aorise/utils/validation/DataValidation.java | Github Open Source | Open Source | MIT | null | key_project_manage | xingxingtx | Java | Code | 1,823 | 8,414 | package com.aorise.utils.validation;
import com.aorise.exceptions.DataValidationException;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* @Aut... | 10,634 |
https://github.com/joemccann/dillinger/blob/master/public/scss/vendor/bootstrap-sass-3.2.0/test/test_helper.rb | Github Open Source | Open Source | MIT | 2,023 | dillinger | joemccann | Ruby | Code | 72 | 342 | ENV['RAILS_ENV'] = ENV['RACK_ENV'] = 'test'
$:.unshift("#{File.dirname(__FILE__)}/..")
require File.expand_path('dummy_rails/config/environment', File.dirname(__FILE__))
require 'test-unit'
require 'sass'
require 'rails/test_help'
Dir[File.expand_path("./support/**/*.rb", File.dirname(__FILE__))].each { |f| requir... | 27,039 |
https://github.com/chaht01/Keynotes/blob/master/src/Note.js | Github Open Source | Open Source | MIT | 2,019 | Keynotes | chaht01 | JavaScript | Code | 992 | 3,208 | const _isFunction = require("lodash.isfunction");
const _cloneDeepWith = require("lodash.clonedeepwith");
const _clone = require("lodash.clone");
const _difference = require("lodash.difference");
const easing = require("./easing");
const binarySearch = require("./binarySearch");
class Note {
constructor(name, { obje... | 37,216 |
https://github.com/LZ9/AgileDevK/blob/master/app/src/main/java/com/lodz/android/agiledevkt/utils/file/FileManager.kt | Github Open Source | Open Source | Apache-2.0 | 2,022 | AgileDevK | LZ9 | Kotlin | Code | 314 | 1,245 | package com.lodz.android.agiledevkt.utils.file
import android.content.Context
import android.os.Build
import android.text.TextUtils
import com.lodz.android.agiledevkt.App
import com.lodz.android.corekt.anko.getStoragePath
import com.lodz.android.corekt.utils.FileUtils
import java.io.File
/**
* 文件管理
* Created by zho... | 51,395 |
https://github.com/monkieboy/XPlot/blob/master/XPlot.sln | Github Open Source | Open Source | Apache-2.0 | 2,015 | XPlot | monkieboy | null | Spoken | 304 | 2,618 | Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.31101.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".paket", ".paket", "{63297B98-5CED-492C-A5B7-A5B4F73CF142}"
ProjectSection(SolutionItems) = preProject
pak... | 9,028 |
https://github.com/sub77-bkp/android_device_samsung_golden/blob/master/prebuilt/Android.mk | Github Open Source | Open Source | Apache-2.0 | null | android_device_samsung_golden | sub77-bkp | Makefile | Code | 174 | 818 | LOCAL_PATH:= $(call my-dir)
ifeq ($(TARGET_USE_PREBUILT_KERNEL),true)
ifndef BOARD_CUSTOM_BOOTIMG_MK
include $(CLEAR_VARS)
# kernel modules
include $(CLEAR_VARS)
LOCAL_MODULE := bthid.ko
LOCAL_MODULE_TAGS := optional eng
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := system/lib/modules/bthid.ko
LOCAL_MODULE_... | 3,890 |
https://github.com/ipuxin/imister/blob/master/backend/views/article/index.php | Github Open Source | Open Source | BSD-3-Clause | null | imister | ipuxin | PHP | Code | 147 | 853 | <?php
use yii\widgets\Breadcrumbs;
use yii\helpers\Url;
use yii\widgets\LinkPager;
use \Yii;
use yii\helpers\Html;
use common\models\Category;
$this->registerJsFile('@web/js/index-list.js' , ['depends' => 'yii\web\JqueryAsset']);
?>
<?=Breadcrumbs::widget([
'homeLink' => ['label' => '首页'],
'links' => [
... | 40,429 |
https://github.com/iotaledger/wasp/blob/master/packages/wasmvm/wasmlib/src/wasmtypes/scint8.rs | Github Open Source | Open Source | Apache-2.0 | 2,023 | wasp | iotaledger | Rust | Code | 296 | 736 | // Copyright 2020 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0
use crate::*;
pub const SC_INT8_LENGTH: usize = 1;
// \\ // \\ // \\ // \\ // \\ // \\ // \\ // \\ // \\ // \\ // \\ // \\ // \\
pub fn int8_decode(dec: &mut WasmDecoder) -> i8 {
dec.byte() as i8
}
pub fn int8_encode(enc: &mut WasmEncoder, ... | 9,407 |
https://github.com/ging/fiware-idm/blob/master/themes/default/root/pages/_new_home.scss | Github Open Source | Open Source | MIT | 2,023 | fiware-idm | ging | SCSS | Code | 231 | 738 | // @media (min-width: 768px){
// #content_body{
// margin-left: 25%;
// }}
// #new_home_page {
// @import url('https://fonts.googleapis.com/css?family=Rubik&display=swap');
// @import url('https://fonts.googleapis.com/css?family=Lato&display=swap');
// width: 100%;
// hr{
// border: 2px solid #C4C4C4;
... | 45,376 |
https://github.com/nealedj/eq-survey-runner/blob/master/tests/functional/pages/surveys/census/household/visitor-name.page.js | Github Open Source | Open Source | MIT, LicenseRef-scancode-proprietary-license | 2,018 | eq-survey-runner | nealedj | JavaScript | Code | 50 | 162 | // >>> WARNING THIS PAGE WAS AUTO-GENERATED - DO NOT EDIT!!! <<<
const QuestionPage = require('../../question.page');
class VisitorNamePage extends QuestionPage {
constructor() {
super('visitor-name');
}
visitorFirstName() {
return '#visitor-first-name';
}
visitorFirstNameLabel() { return '#label-... | 5,308 |
https://github.com/mika-cn/maoxian-web-clipper/blob/master/src/js/lib/qwebchannel.js | Github Open Source | Open Source | MIT | 2,023 | maoxian-web-clipper | mika-cn | JavaScript | Code | 1,435 | 3,800 | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Copyright (C) 2016 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author Milian Wolff <milian.wolff@kdab.com>
** Contact: https://www.qt.io/licensing/
**
** This file is p... | 9,991 |
https://github.com/ps-raghotham-rao/health-package-api/blob/master/health package api/doctor appointment and prescription/main.py | Github Open Source | Open Source | MIT | 2,021 | health-package-api | ps-raghotham-rao | Python | Code | 501 | 1,966 | from fastapi import FastAPI, HTTPException, Form
from fastapi.middleware.cors import CORSMiddleware
from pydantic import BaseModel, EmailStr
from deta import Deta
from typing import Optional
import send_mail
import id_handler
from datetime import date
import re
deta = Deta()
db_appointment_form = deta.Base("appointme... | 30,148 |
https://github.com/jopor6148/cloudstore/blob/master/database/migrations/2017_10_06_041308_create_articulos_table.php | Github Open Source | Open Source | MIT | null | cloudstore | jopor6148 | PHP | Code | 60 | 281 | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateArticulosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('articulos', f... | 11,171 |
https://github.com/jonsondrem/java-discord-bot/blob/master/src/main/java/music/PlayerManager.java | Github Open Source | Open Source | MIT | 2,021 | java-discord-bot | jonsondrem | Java | Code | 319 | 1,218 | package music;
import com.sedmelluq.discord.lavaplayer.player.AudioLoadResultHandler;
import com.sedmelluq.discord.lavaplayer.player.AudioPlayerManager;
import com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager;
import com.sedmelluq.discord.lavaplayer.source.AudioSourceManagers;
import com.sedmelluq.dis... | 50,477 |
https://github.com/SharpNoiZy/commercetools-dotnet-core-sdk/blob/master/commercetools.Sdk/commercetools.Sdk.Domain/Products/UpdateActions/UnpublishUpdateAction.cs | Github Open Source | Open Source | Apache-2.0 | 2,019 | commercetools-dotnet-core-sdk | SharpNoiZy | C# | Code | 16 | 51 | namespace commercetools.Sdk.Domain.Products
{
public class UnpublishUpdateAction : UpdateAction<Product>
{
public string Action => "unpublish";
}
} | 5,906 |
https://github.com/acinader/parse-aws-firehose-logger-adapter/blob/master/spec/helpers/testHelpers.js | Github Open Source | Open Source | MIT | 2,017 | parse-aws-firehose-logger-adapter | acinader | JavaScript | Code | 9 | 37 | process.env.NODE_ENV = 'test';
// See parse-server/src/logger.js:36
process.env.TESTING = true;
| 17,986 |
https://github.com/kkcookies99/UAST/blob/master/Dataset/Leetcode/train/66/336.cpp | Github Open Source | Open Source | MIT | null | UAST | kkcookies99 | C++ | Code | 55 | 136 | class Solution {
public:
vector<int> XXX(vector<int>& digits) {
int carry = 1;
vector<int> res;
int i = digits.size() - 1;
while (i >= 0 || carry != 0) {
int sum = carry;
if (i >= 0) sum += digits[i];
res.push_back(sum % 10);
... | 45,750 |
https://github.com/MarginC/kame/blob/master/openbsd/sys/arch/hppa/dev/lasi.c | Github Open Source | Open Source | BSD-3-Clause | 2,022 | kame | MarginC | C | Code | 700 | 2,112 | /* $OpenBSD: lasi.c,v 1.2 1999/02/25 23:15:31 mickey Exp $ */
/*
* Copyright (c) 1998,1999 Michael Shalayeff
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of sourc... | 9,917 |
https://github.com/sentinel-commons/sentinel-commons/blob/master/src/components/contact-form/index.jsx | Github Open Source | Open Source | MIT | null | sentinel-commons | sentinel-commons | null | Spoken | 84 | 284 | import React, { Component } from "react"
import HubspotForm from "react-hubspot-form"
import { X } from "react-feather"
import "./contact-form.scss"
class ContactForm extends Component {
render() {
const { showForm, closeForm } = this.props
if (!showForm) return null
return (
<div className="moda... | 31,454 |
https://github.com/bee-hive/MedGP/blob/master/medgpc/evaluation/evals.py | Github Open Source | Open Source | BSD-3-Clause | 2,022 | MedGP | bee-hive | Python | Code | 187 | 909 | import os
import json
import numpy as np
from ..util.binaryIO import read_double_from_bin, write_double_to_bin, load_ts_data, read_one_test_data
def eval_medgpc_top(exp_config, test_mode):
# load configuration file
exp_param = json.load(open(exp_config, 'r'))
# evaluate testing results
raw_data_dir = exp_param[... | 43,826 |
https://github.com/msuesskraut/binoxxo-webapp-seed/blob/master/src/lib.rs | Github Open Source | Open Source | MIT | 2,020 | binoxxo-webapp-seed | msuesskraut | Rust | Code | 58 | 237 | mod control;
mod lang;
mod model;
mod view;
use crate::control::{update, Message, DIFFICULTY_STORAGE, HELPER_STORAGE, LANGUAGE_STORAGE};
use crate::model::Model;
use crate::view::view;
use seed::browser::web_storage::LocalStorage;
use seed::prelude::*;
fn init(_url: Url, _orders: &mut impl Orders<Message>) -> Model {... | 6,636 |
https://github.com/MisterHuh/beersAndCheers/blob/master/client/components/product-list.jsx | Github Open Source | Open Source | MIT | null | beersAndCheers | MisterHuh | null | Spoken | 270 | 1,062 | import React from 'react';
import { Jumbotron } from './jumbotron';
import { ProductListItem } from './product-list-item';
import { Modal } from 'reactstrap';
class ProductList extends React.Component {
constructor(props) {
super(props);
this.state = {
products: [],
welcomeModal: !localStorage.ag... | 10,353 |
https://github.com/Joel-Speitelsbach/Maulwurst/blob/master/frontend/Init.elm | Github Open Source | Open Source | MIT | null | Maulwurst | Joel-Speitelsbach | null | Spoken | 496 | 1,075 | module Init exposing (program)
import Date exposing (Date)
import Array exposing (Array)
import Html exposing (Html)
import Navigation
import Task
program :
{ init : Init model_ msg_
, update : Update model_ msg_
, view : model_ -> Html msg_
, subscriptions : model_ -> Sub msg_
, on... | 31,229 |
https://github.com/mGalarnyk/Python_Tutorials/blob/master/Python_Basics/Intro/.ipynb_checkpoints/PythonBasicsForLoops-checkpoint.ipynb | Github Open Source | Open Source | MIT | 2,022 | Python_Tutorials | mGalarnyk | Jupyter Notebook | Code | 1,752 | 4,703 | {
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"<h1 align=\"center\"> For Loops </h1>"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"For loops are a common way to iterate over the elements of an object (in this first example, a list)<br>\n",
"A... | 56,009 |
https://github.com/link-up-manoa/link-up-manoa/blob/master/app/imports/api/class/Classes.js | Github Open Source | Open Source | MIT | null | link-up-manoa | link-up-manoa | JavaScript | Code | 95 | 195 | import { Mongo } from 'meteor/mongo';
import SimpleSchema from 'simpl-schema';
import { Tracker } from 'meteor/tracker';
/** Define a Mongo collection to hold the data. */
const Classes = new Mongo.Collection('Classes');
/** Define a schema to specify the structure of each document in the collection. */
const ClassSc... | 29,322 |
https://github.com/MAIF/thoth/blob/master/.gitignore | Github Open Source | Open Source | Apache-2.0 | 2,023 | thoth | MAIF | Ignore List | Code | 14 | 41 | .idea
.gradle
target
.bsp/
.DS_Store
.bloop
.java-version
# Ignore Gradle build output directory
build
| 51,926 |
https://github.com/muryoh/sonar-gerrit-plugin/blob/master/src/main/java/fr/techad/sonar/GerritProjectBuilder.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | sonar-gerrit-plugin | muryoh | Java | Code | 91 | 374 | package fr.techad.sonar;
import org.sonar.api.batch.bootstrap.ProjectBuilder;
import org.sonar.api.utils.log.Logger;
import org.sonar.api.utils.log.Loggers;
import fr.techad.sonar.gerrit.GerritFacade;
import fr.techad.sonar.gerrit.ReviewInput;
public class GerritProjectBuilder extends ProjectBuilder {
private stati... | 14,731 |
https://github.com/wbkd/tsb-kulturb-karte-backup/blob/master/src/modules/App/index.js | Github Open Source | Open Source | MIT | 2,022 | tsb-kulturb-karte-backup | wbkd | JavaScript | Code | 131 | 405 | import React, { Component } from 'react';
import {
Router,
Route,
Redirect,
Switch
} from 'react-router-dom';
import { connect } from 'unistore/react';
import queryString from 'query-string';
import Actions, { loadEntryData } from '~/state/Actions';
import AppWrapper from './AppWrapper';
import history from '~... | 15,707 |
https://github.com/minxc/iEMPv7/blob/master/emp-platform/system/system-core/src/main/java/org/minxc/emp/system/core/model/WorkbenchLayout.java | Github Open Source | Open Source | Apache-2.0 | null | iEMPv7 | minxc | Java | Code | 270 | 902 | package org.minxc.emp.system.core.model;
import org.minxc.emp.base.core.model.BaseModelImpl;
import org.apache.commons.lang3.builder.ToStringBuilder;
/**
* @author jeff
*/
public class WorkbenchLayout extends BaseModelImpl {
public static final String DEFAULT_LAYOUT = "default_layout";
/**
* id_
... | 28,941 |
https://github.com/fission/fission/blob/master/test/tests/test_function_test/errhello.js | Github Open Source | Open Source | Apache-2.0 | 2,023 | fission | fission | JavaScript | Code | 27 | 56 | // This file has an error on purpose; async is replaced with aasync
module.exports = aasync function(context) {
return {
status: 200,
body: "Hello, Fission!\n"
};
} | 13,294 |
https://github.com/billkarsh/Alignment_Projects/blob/master/2_XMLCopyOids/XMLCopyOids.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,022 | Alignment_Projects | billkarsh | C++ | Code | 622 | 1,557 | //
// Scenario:
// Alignment has been run on input xml file 'src.xml' to make
// output file 'dst.xml' (usually the xml file created by lsq).
// We want the oids of the new file to be the same as they were
// on the same objects, but some tiles may have been kicked out,
// and lsq just assigns oids consecutively. There... | 15,293 |
https://github.com/ClaireWithGithub/Schwackathon/blob/master/SchwabingoDemoIOS/TipCalculator_2/ViewController.swift | Github Open Source | Open Source | Apache-2.0 | 2,019 | Schwackathon | ClaireWithGithub | Swift | Code | 75 | 241 | //
// ViewController.swift
// TipCalculator_2
//
// Created by 谢阳欣雨 on 1/10/19.
// Copyright © 2019 Yangxinyu Xie. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var UITextField: UITextField!
@IBOutlet weak var TipLabel: UILabel!
@IBOutlet weak var T... | 45,469 |
https://github.com/cundd/pos/blob/master/Classes/Filter/Comparison/CallableComparison.php | Github Open Source | Open Source | MIT | 2,016 | pos | cundd | PHP | Code | 57 | 165 | <?php
namespace Cundd\Stairtower\Filter\Comparison;
/**
* Filter Comparison that will invoke a user defined callback
*/
class CallableComparison implements ComparisonInterface
{
private $callback;
/**
* @param callable $callback
*/
public function __construct(callable $callback)
{
... | 52,147 |
https://github.com/hellofresh/janus-dashboard/blob/master/src/store/constants/userSession.constants.js | Github Open Source | Open Source | MIT | 2,020 | janus-dashboard | hellofresh | JavaScript | Code | 25 | 75 | export const CHECK_LOGGED_STATUS = 'CHECK_LOGGED_STATUS'
export const LOGIN_START = 'LOGIN_START'
export const LOGIN_SUCCESS = 'LOGIN_SUCCESS'
export const LOGIN_FAILURE = 'LOGIN_FAILURE'
export const LOGOUT = 'LOGOUT'
| 20,488 |
https://github.com/jetblack87/cs537/blob/master/mwa29_a2/shapes_part2.cpp | Github Open Source | Open Source | Apache-2.0 | null | cs537 | jetblack87 | C++ | Code | 379 | 1,179 | #include "Angel.h"
typedef vec3 color3;
const color3 WHITE(1.0, 1.0, 1.0);
const color3 BLACK(0.0, 0.0, 0.0);
const color3 RED (1.0, 0.0, 0.0);
const color3 GREEN(0.0, 1.0, 0.0);
const color3 BLUE (0.0, 0.0, 1.0);
const int TotalNumPoints = 6 + 8 + 10;
//-----------------------------------------------------------... | 6,924 |
https://github.com/vidn/maf_tf/blob/master/mafs.py | Github Open Source | Open Source | MIT | 2,018 | maf_tf | vidn | Python | Code | 1,091 | 3,160 | import numpy as np
import numpy.random as rng
import tensorflow as tf
import mades
dtype = tf.float32
class BatchNormalizationExt(tf.layers.BatchNormalization):
def eval_inv(self, sess, y):
"""
Evaluates the inverse batch norm transformation for output y.
:param y: output as numpy array
... | 10,911 |
https://github.com/CmST0us/iOSProject/blob/master/iOSProject-Swift/iOSProject/Classes/基础理论/Controller/BlockLoopTableViewController.swift | Github Open Source | Open Source | MIT | 2,018 | iOSProject | CmST0us | Swift | Code | 236 | 790 | //
// BlockLoopTableViewController.swift
// iOSProject
//
// Created by CmST0us on 2018/5/4.
// Copyright © 2018年 eric3u. All rights reserved.
//
import UIKit
class BlockLoopTableViewController: BaseStaticTableViewController {
// MARK: Public Member
// MARK: Private Member
var myBlockView: U... | 30,442 |
https://github.com/samwizzy/ezone/blob/master/app/containers/LMS/UsersMessages/components/CompaniesDialog.js | Github Open Source | Open Source | MIT | null | ezone | samwizzy | JavaScript | Code | 498 | 1,616 | /* eslint-disable no-nested-ternary */
import React, { memo, useEffect } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { compose } from 'redux';
import {
makeStyles,
Backdrop,
CircularProgress,
Dialog,
Slide... | 25,339 |
https://github.com/Syncinus/Hbm-s-Nuclear-Tech-GIT/blob/master/src/main/java/com/hbm/entity/projectile/EntityChopperMine.java | Github Open Source | Open Source | Unlicense | null | Hbm-s-Nuclear-Tech-GIT | Syncinus | Java | Code | 404 | 1,599 | package com.hbm.entity.projectile;
import java.util.List;
import com.hbm.lib.HBMSoundHandler;
import net.minecraft.block.material.Material;
import net.minecraft.entity.Entity;
import net.minecraft.entity.IProjectile;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.nbt.NBTTagCompound;
import net... | 35,705 |
https://github.com/hartez/fubumvc/blob/master/src/Serenity/ApplicationUnderTest.cs | Github Open Source | Open Source | Apache-2.0 | 2,011 | fubumvc | hartez | C# | Code | 174 | 597 | using System;
using System.Collections.Generic;
using System.Net;
using FubuCore;
using FubuMVC.Core;
using FubuMVC.Core.Bootstrapping;
using FubuMVC.Core.Urls;
using OpenQA.Selenium;
namespace Serenity
{
public class ApplicationUnderTest : IApplicationUnderTest
{
private readonly IApplicationSource _s... | 51,991 |
https://github.com/lofunz/mieme/blob/master/Reloaded/tags/MAME4droid.Reloaded.1.0.WIP/src/mame/video/vrender0.h | Github Open Source | Open Source | Unlicense | 2,021 | mieme | lofunz | C | Code | 13 | 50 | extern void vrender0_init(running_machine *machine);
extern int vrender0_ProcessPacket(const address_space *space, UINT32 PacketPtr,UINT16 *Dest,UINT8 *TEXTURE);
| 50,857 |
https://github.com/nomisRev/kategory/blob/master/modules/optics/arrow-optics/src/main/kotlin/arrow/optics/instances/listk.kt | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause, MIT | 2,018 | kategory | nomisRev | Kotlin | Code | 340 | 1,055 | package arrow.optics.instances
import arrow.Kind
import arrow.core.*
import arrow.data.*
import arrow.extension
import arrow.instances.option.applicative.applicative
import arrow.optics.*
import arrow.optics.typeclasses.Cons
import arrow.optics.typeclasses.Each
import arrow.optics.typeclasses.FilterIndex
import arrow.... | 3,397 |
https://github.com/cozos/bitfinex-rs/blob/master/src/precision.rs | Github Open Source | Open Source | Apache-2.0, MIT | 2,021 | bitfinex-rs | cozos | Rust | Code | 40 | 75 | pub static P0 : &'static str = "P0";
pub static P1 : &'static str = "P1";
pub static P2 : &'static str = "P2";
pub static P3 : &'static str = "P3";
pub static R0 : &'static str = "R0"; | 16,748 |
https://github.com/GraemeFulton/vulcan-verify-email/blob/master/lib/components/VerifyEmail.jsx | Github Open Source | Open Source | MIT | null | vulcan-verify-email | GraemeFulton | null | Spoken | 161 | 537 | import { Components, withMutation, registerComponent, withCurrentUser } from 'meteor/vulcan:core';
import React, { PureComponent } from 'react';
import { withRouter } from 'react-router';
import PropTypes from 'prop-types';
import { intlShape } from 'meteor/vulcan:i18n';
import Users from 'meteor/vulcan:users';
class... | 10,021 |
https://github.com/Angelino-Valeta/Functional_Programming_with_JS-es-6/blob/master/lib/es6-functional.js | Github Open Source | Open Source | MIT | 2,021 | Functional_Programming_with_JS-es-6 | Angelino-Valeta | JavaScript | Code | 91 | 256 | const forEach = (array, callback) => {
//The loop can be this way.
/*for(const value of array)
{
callback(value);
}*/
let i = 0;
let leng = array.length;
for(i; i < leng; i++)
{
callback(array[i]);
}
}
/* Test forEach
forEach(['a','b', 'c'], (values) => console.log('value: ', values))... | 44,402 |
https://github.com/wangchengww/bio_scripts/blob/master/k-mer/k2readasm/Linux-amd64/dep/AS_UTL_Hash.d | Github Open Source | Open Source | MIT | 2,021 | bio_scripts | wangchengww | Makefile | Code | 10 | 115 | AS_UTL_Hash.o: AS_UTL_Hash.C AS_UTL_Hash.H \
/cbcb/personal-scratch/sergek/wgs-assembler-experimental/src/AS_global.H \
/cbcb/personal-scratch/sergek/wgs-assembler-experimental/src/AS_UTL/AS_UTL_alloc.H \
AS_UTL_heap.H AS_UTL_fileIO.H
| 47,658 |
https://github.com/oracle/coherence/blob/master/prj/coherence-core/src/main/java/com/tangosol/internal/net/service/extend/NameServiceDependencies.java | Github Open Source | Open Source | EPL-1.0, Classpath-exception-2.0, LicenseRef-scancode-unicode, LicenseRef-scancode-warranty-disclaimer, BSD-3-Clause, LicenseRef-scancode-free-unknown, LicenseRef-scancode-protobuf, CDDL-1.1, W3C, APSL-1.0, GPL-2.0-only, Apache-2.0, LicenseRef-scancode-public-domain, SAX-PD, MPL-2.0, MPL-1.1, CC-PDDC, BSD-2-Clause, Ple... | 2,023 | coherence | oracle | Java | Code | 76 | 230 | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
package com.tangosol.internal.net.service.extend;
import com.tangosol.internal.net.service.peer.acceptor.AcceptorDependencies;
import com.ta... | 38,937 |
https://github.com/navikt/helse-frontend-moduler/blob/master/packages/tooltip/src/Tooltip.less | Github Open Source | Open Source | MIT | 2,022 | helse-frontend-moduler | navikt | Less | Code | 86 | 314 | .tooltip {
position: absolute;
padding: 0.5rem 1rem;
background: #59514b;
border-radius: 4px;
color: #fff;
top: 0;
left: 50%;
transform: translateX(-50%) translateY(calc(-100% - 10px));
box-shadow: 0 1px 2px 0 rgba(0,0,0,0.5);
animation-timing-function: ease-out;
animation-du... | 32,098 |
https://github.com/c-cube/logtk/blob/master/.gitignore | Github Open Source | Open Source | BSD-2-Clause | 2,017 | logtk | c-cube | Ignore List | Code | 31 | 113 | .*.swp
.*.swo
*.log
*.lof
*.lot
*.toc
*.aux
*.out
_build
tags
*.native
*.byte
*.cmi
*.cmx
*.o
*.cmo
.session
.subdirtouch
*.docdir
*.db
*.tgz
*.svg
*.dot
TAGS
setup.data
setup.log
Axioms
Problems
pelletier_problems
TODO*
*.exe
| 52,405 |
https://github.com/Jimbly/worlds-continent-gen/blob/master/src/common/glov/words/profanity_common.js | Github Open Source | Open Source | MIT | 2,021 | worlds-continent-gen | Jimbly | JavaScript | Code | 406 | 1,239 | // Portions Copyright 2019 Jimb Esser (https://github.com/Jimbly/)
// Released under MIT License: https://opensource.org/licenses/MIT
// Originally from Splody, used with permission
/* eslint no-multi-spaces:off, array-bracket-spacing:off */
const assert = require('assert');
const { max } = Math;
const trans_src = 'a... | 15,537 |
https://github.com/notional-labs/dig-mobile-app/blob/master/dig_core/lib/src/domain/repository/delegation_repository.dart | Github Open Source | Open Source | MIT | 2,022 | dig-mobile-app | notional-labs | Dart | Code | 33 | 330 | import 'package:dig_core/src/domain/entity/staking/delegations/delegation_unbonding_response.dart';
import 'package:dig_core/src/domain/entity/staking/delegations/delegations_response.dart';
import 'package:dig_core/src/domain/entity/staking/delegations/delegator_rewards_response.dart';
import 'package:dig_core/src/dom... | 39,515 |
https://github.com/sudosurootdev/external_libcxx/blob/master/test/localization/locale.categories/category.time/locale.time.get.byname/Android.mk | Github Open Source | Open Source | MIT | null | external_libcxx | sudosurootdev | Makefile | Code | 223 | 1,037 | #
# Copyright (C) 2014 The Android Open Source Project
#
# 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 la... | 1,076 |
https://github.com/AtomicPulsee/ChatDirector/blob/master/bukkit/src/main/java/com/blalp/chatdirector/bukkit/modules/bungeeMessage/FromBungeeItem.java | Github Open Source | Open Source | MIT | 2,021 | ChatDirector | AtomicPulsee | Java | Code | 46 | 293 | package com.blalp.chatdirector.bukkit.modules.bungeeMessage;
import com.blalp.chatdirector.core.ChatDirector;
import com.blalp.chatdirector.core.modules.common.PassItem;
import com.blalp.chatdirector.core.utils.ItemDaemon;
import com.blalp.chatdirector.core.utils.ValidationUtils;
import com.fasterxml.jackson.databind... | 51,415 |
https://github.com/sheggi/laravel-auth0/blob/master/src/Auth/User/Provider.php | Github Open Source | Open Source | MIT | null | laravel-auth0 | sheggi | PHP | Code | 265 | 1,000 | <?php
declare(strict_types=1);
namespace Auth0\Laravel\Auth\User;
final class Provider implements \Illuminate\Contracts\Auth\UserProvider, \Auth0\Laravel\Contract\Auth\User\Provider
{
/**
* A repository instance.
*/
private \Auth0\Laravel\Contract\Auth\User\Repository $repository;
/**
* @... | 44,614 |
https://github.com/humairakamal/fgmpi/blob/master/src/mpid/ch3/channels/nemesis/include/mpid_nem_datatypes.h | Github Open Source | Open Source | mpich2, BSD-3-Clause, BSD-2-Clause | 2,016 | fgmpi | humairakamal | C | Code | 976 | 3,641 | /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
/*
* (C) 2006 by Argonne National Laboratory.
* See COPYRIGHT in top-level directory.
*/
#ifndef MPID_NEM_DATATYPES_H
#define MPID_NEM_DATATYPES_H
#include "mpid_nem_debug.h"
#include "mpid_nem_atomics.h"
#include <stdio.h>
#include <stdlib.h>
... | 41,128 |
https://github.com/ltosh9802/COVID19-Cases-Tracking-Application/blob/master/lib/mainscreen1.dart | Github Open Source | Open Source | MIT | 2,020 | COVID19-Cases-Tracking-Application | ltosh9802 | Dart | Code | 320 | 1,709 | import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
import 'dart:convert';
import 'package:intl/intl.dart';
import 'areadetails.dart';
class MainScreen extends StatefulWidget {
@override
_MainScreenState createState() => _MainScreenState();
}
class _MainScreenState extends State<Mai... | 20,180 |
https://github.com/mantoun/MKULTRA/blob/master/Assets/Concerns/patrol.prolog | Github Open Source | Open Source | MIT | 2,015 | MKULTRA | mantoun | Prolog | Code | 36 | 220 | %%
%% The Patrol activity
%%
rebid_patrol(Concern) :-
forall(Concern/visited/Prop:Time,
begin(Score is ($now-Time)-distance(Prop, $me),
assert(Concern/location_bids/Prop:Score))).
on_event(arrived_at(Place),
patrol, Concern,
begin(assert(Concern/visited/Place:Time),
rebid_patrol(Concern))) :-
C... | 24,266 |
https://github.com/alireza5014/backpack/blob/master/app/Model/All/alireza/alireza_aaa/Fffa.php | Github Open Source | Open Source | MIT | 2,019 | backpack | alireza5014 | PHP | Code | 19 | 87 | <?php
namespace App\Model\All\alireza\alireza_aaa;
use Illuminate\Database\Eloquent\Model;
class Fffa extends Model
{
protected $connection="alireza_aaa";
protected $table="fffas";
protected $fillable = ["ff","hhy"];
}
... | 51,204 |
https://github.com/ServiceInnovationLab/PresenceChecker/blob/master/app/javascript/bundles/Presence/components/PresenceTable.jsx | Github Open Source | Open Source | MIT | 2,019 | PresenceChecker | ServiceInnovationLab | null | Spoken | 220 | 657 | import PropTypes from 'prop-types';
import React from 'react';
import { sum, map } from 'lodash';
import Year from './Year';
import { format, subYears, addDays } from 'date-fns';
export default class PresenceTable extends React.Component {
static propTypes = {
isEligible: PropTypes.bool,
totalDays: PropTypes... | 51,684 |
https://github.com/lauzi/rename-eh/blob/master/src/ParsePath.hs | Github Open Source | Open Source | BSD-3-Clause | null | rename-eh | lauzi | Haskell | Code | 143 | 324 | module ParsePath
( Title(..)
, parsePath
) where
import Data.Char (isSpace)
import Text.Regex.Applicative
-- regex = r'^.*?\[([^]]+)\]\s*([^([\s][^([]*)(?: - \[)?.*$'
fileNameRE, filePathRE :: RE Char Title
fileNameRE = Title <$> (few anySym *> bracket <* spaces) <*> title <* t... | 9,284 |
https://github.com/texpert/faker/blob/master/test/test_faker_chuck_norris.rb | Github Open Source | Open Source | MIT | null | faker | texpert | Ruby | Code | 18 | 76 | require_relative 'test_helper'
class TestFakerChuckNorris < Test::Unit::TestCase
def setup
@tester = Faker::ChuckNorris
end
def test_fact
assert @tester.fact.match(/.*chuck.*/i)
end
end
| 29,756 |
https://github.com/Shardj/zf1-future/blob/master/library/Zend/Queue/Adapter/AdapterAbstract.php | Github Open Source | Open Source | JSON, LicenseRef-scancode-generic-cla | 2,023 | zf1-future | Shardj | PHP | Code | 647 | 1,562 | <?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... | 34,342 |
https://github.com/jnolleau/ft_transcendence/blob/master/backend/src/users/users.service.ts | Github Open Source | Open Source | MIT | 2,021 | ft_transcendence | jnolleau | TypeScript | Code | 212 | 528 | import { Injectable } from '@nestjs/common';
import { User } from './interfaces/user.interface';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { Users } from './entity/users.entity';
import { CreateUserDto } from './dto/createUser.dto';
import { UpdateUserDto } from '.... | 54,503 |
https://github.com/github-nilsson/finderjs/blob/master/index.js | Github Open Source | Open Source | MIT | 2,022 | finderjs | github-nilsson | JavaScript | Code | 1,098 | 3,326 | /**
* finder.js module.
* @module finderjs
*/
'use strict';
var extend = require('xtend');
var EventEmitter = require('eventemitter3');
var _ = require('./util');
var defaults = {
labelKey: 'label',
childKey: 'children',
className: {
container: 'fjs-container',
col: 'fjs-col',
list: 'fjs-list',
... | 41,127 |
https://github.com/jeroendoggen/Arduino-serial-menu/blob/master/SerialMenu/examples/Menu_Empty/Menu_Empty.ino | Github Open Source | Open Source | MIT | 2,020 | Arduino-serial-menu | jeroendoggen | null | Spoken | 71 | 149 | // Menu_empty.ino - Demo application to show a configuration menu: empty menu example
// Copyright 2012-2013 Jeroen Doggen (jeroendoggen@gmail.com)
//
// Info:
// - All strings are stored in program memory to save RAM
//
// Program flow:
// - Empty menu is shown over the serial port
#include <SerialMenu.h>
S... | 36,964 |
https://github.com/googleinterns/power-data-graphing-intern-2020/blob/master/frontend/src/app/chart/chart.component.spec.ts | Github Open Source | Open Source | Apache-2.0 | null | power-data-graphing-intern-2020 | googleinterns | TypeScript | Code | 698 | 2,149 | // Copyright 2020 Google LLC
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wri... | 20,301 |
https://github.com/WickedLynx/QuickTransfer/blob/master/QuickTransfer/Classes/Views/QTRDeviceDeviceCollectionViewItem.h | Github Open Source | Open Source | MIT | 2,016 | QuickTransfer | WickedLynx | Objective-C | Code | 30 | 91 | //
// QTRDeviceDeviceCollectionViewItem.h
// QuickTransfer
//
// Created by Harshad on 17/12/15.
// Copyright © 2015 Laughing Buddha Software. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface QTRDeviceDeviceCollectionViewItem : NSCollectionViewItem
@end
| 27,897 |
https://github.com/senens/sevens/blob/master/laravel/public/templets/澶嶄欢 htm/style/js/p.mini.js | Github Open Source | Open Source | MIT | 2,016 | sevens | senens | JavaScript | Code | 161 | 732 |
if (/AppleWebKit.*mobile/i.test(navigator.userAgent) || (/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE/.test(navigator.userAgent))) {
if (window.location.href.indexOf("?mobile") < 0) {
try {
if (/Android|webOS|iPho... | 7,785 |
https://github.com/xmidt-org/webpa-common/blob/master/tracing/tracinghttp/http.go | Github Open Source | Open Source | Apache-2.0 | 2,023 | webpa-common | xmidt-org | Go | Code | 121 | 447 | package tracinghttp
import (
"bytes"
"fmt"
"net/http"
"time"
gokithttp "github.com/go-kit/kit/transport/http"
"github.com/xmidt-org/webpa-common/v2/tracing"
)
const (
SpanHeader = "X-Xmidt-Span"
ErrorHeader = "X-Xmidt-Error"
)
// HeadersForSpans emits header information for each Span. The timeLayout may b... | 12,661 |
https://github.com/lovecucu/algorithm_go/blob/master/queue/circular_queue_test.go | Github Open Source | Open Source | Apache-2.0 | null | algorithm_go | lovecucu | Go | Code | 303 | 1,079 | package queue
import (
"testing"
)
// MyCircularQueue circularQueue = new MyCircularQueue(3); // 设置长度为 3
// circularQueue.enQueue(1); // 返回 true
// circularQueue.enQueue(2); // 返回 true
// circularQueue.enQueue(3); // 返回 true
// circularQueue.enQueue(4); // 返回 false,队列已满
// circularQueue.Rear(); // 返回 3
// circu... | 10,207 |
https://github.com/huythanh237/project_final/blob/master/app/Models/Brand.php | Github Open Source | Open Source | MIT | 2,021 | project_final | huythanh237 | PHP | Code | 26 | 99 | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Brand extends Model
{
use HasFactory;
public $fillable = [
'brand_name'
];
public function products(){
$this->belongsToMany(Product::class);
}
}
| 39,132 |
https://github.com/renmengkai/jeecg-cloud/blob/master/jeecg-cloud-demo/jeecg-cloud-demo-biz/src/main/java/org/jeecg/modules/test/client/UserServiceClient.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | jeecg-cloud | renmengkai | Java | Code | 78 | 395 | package org.jeecg.modules.test.client;
import com.alibaba.fastjson.JSONObject;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.constant.ServiceNameConstants;
import org.jeecg.common.system.vo.LoginUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Compone... | 19,501 |
https://github.com/TerryAsh/AshFilterView/blob/master/Example/Podfile | Github Open Source | Open Source | MIT | 2,017 | AshFilterView | TerryAsh | Ruby | Code | 22 | 87 | use_frameworks!
target 'AshFilterView_Example' do
pod 'AshFilterView', :path => '../'
pod 'YTKNetwork'
pod 'SDWebImage'
target 'AshFilterView_Tests' do
inherit! :search_paths
pod 'FBSnapshotTestCase'
end
end
| 13,310 |
https://github.com/umninchi/site-for-pm/blob/master/frontend/views/lesson/archive.php | Github Open Source | Open Source | BSD-3-Clause | null | site-for-pm | umninchi | PHP | Code | 204 | 905 | <?php
use yii\helpers\Html;
use yii\widgets\ListView;
use common\models\Lesson;
use common\models\GroupHasDiscipline;
use yii\helpers\Url;
use yii\web\NotFoundHttpException;
use yii\bootstrap\Tabs;
use yii\helpers\ArrayHelper;
use common\widgets\Schedule;
use common\models\Group;
use common\models\GroupSemesters;
use ... | 35,692 |
https://github.com/deadlance/OTATS/blob/master/database/migrations/2020_08_17_124134_alter_entries_table.php | Github Open Source | Open Source | MIT | null | OTATS | deadlance | PHP | Code | 57 | 204 | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AlterEntriesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('entries', functio... | 3,563 |
https://github.com/t-chov/kgc/blob/master/main.go | Github Open Source | Open Source | MIT | null | kgc | t-chov | Go | Code | 108 | 405 | package main
import (
"bytes"
_ "embed"
"fmt"
"os"
"github.com/t-chov/kgc/db"
)
//go:embed go_gc.csv
var csvBytes []byte
func pretty(g db.Garbage) string {
var buf bytes.Buffer
if len(g.DetailType) > 0 {
buf.WriteString(fmt.Sprintf("%s(%s)\n", g.GarbageType, g.DetailType))
} else {
buf.WriteString(g.Ga... | 37,259 |
https://github.com/DataDog/dd-trace-dotnet/blob/master/tracer/src/Datadog.Trace/AspNet/MimeTypes.cs | Github Open Source | Open Source | Apache-2.0, MIT | 2,023 | dd-trace-dotnet | DataDog | C# | Code | 56 | 126 | // <copyright file="MimeTypes.cs" company="Datadog">
// Unless explicitly stated otherwise all files in this repository are licensed under the Apache 2 License.
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2017 Datadog, Inc.
// </copyright>
namespace Datadog.Trace.AspN... | 43,737 |
https://github.com/microsoft/iclr2019-learning-to-represent-edits/blob/master/diff_representation/model/encdec/decoder.py | Github Open Source | Open Source | MIT | 2,021 | iclr2019-learning-to-represent-edits | microsoft | Python | Code | 42 | 165 | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import re
import torch.nn as nn
class Decoder(nn.Module):
VALID_IDENTIFIER_RE = re.compile(r'^[A-Za-z0-9_-]*$')
def __init__(self):
super(Decoder, self).__init__()
@staticmethod
def _can_only_generate_this_token(token)... | 50,582 |
https://github.com/mtravis/UK-Polling-Stations/blob/master/polling_stations/apps/data_collection/management/commands/import_gravesham.py | Github Open Source | Open Source | BSD-3-Clause | null | UK-Polling-Stations | mtravis | Python | Code | 138 | 481 | from data_collection.management.commands import BaseHalaroseCsvImporter
class Command(BaseHalaroseCsvImporter):
council_id = "E07000109"
addresses_name = (
"local.2019-05-02/Version 1/polling_station_export-2019-02-28Grave.csv"
)
stations_name = (
"local.2019-05-02/Version 1/polling_st... | 517 |
https://github.com/klenkes74/kp-office/blob/master/kp-commons-root/kp-commons-ejb/src/main/java/de/kaiserpfalzedv/commons/jpa/DataSchemaChangeProvider.java | Github Open Source | Open Source | Apache-2.0 | null | kp-office | klenkes74 | Java | Code | 155 | 391 | /*
* Copyright 2017 Kaiserpfalz EDV-Service, Roland T. Lichti
*
* 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 b... | 8,135 |
https://github.com/arekminajj/genius-lyrics-deno/blob/master/src/interfaces/song.ts | Github Open Source | Open Source | MIT | 2,020 | genius-lyrics-deno | arekminajj | TypeScript | Code | 111 | 381 | export interface Meta {
status: number;
}
export interface Stats {
unreviewed_annotations: number;
concurrents: number;
hot: boolean;
pageviews: number;
}
export interface PrimaryArtist {
api_path: string;
header_image_url: string;
id: number;
image_url: string;
is_me... | 8,564 |
https://github.com/hyujun/RTControlBionicArm/blob/master/html/search/searchdata.js | Github Open Source | Open Source | MIT | 2,021 | RTControlBionicArm | hyujun | JavaScript | Code | 75 | 292 | var indexSectionsWithContent =
{
0: "_abcdefghiklmnopqrstuvw",
1: "cdefhklmprst",
2: "hn",
3: "celprst",
4: "acdeghilmoprstuvw",
5: "abceilmnopqstvw",
6: "adisu",
7: "m",
8: "_dhknrsw",
9: "lr"
};
var indexSectionNames =
{
0: "all",
1: "classes",
2: "namespaces",
3: "files",
4: "functions... | 15,591 |
https://github.com/CeciliaMartins/teste_luiza_labs_api/blob/master/database/migrations/1633820511760_wishlist_customers_schema.js | Github Open Source | Open Source | MIT | null | teste_luiza_labs_api | CeciliaMartins | JavaScript | Code | 45 | 228 | "use strict";
/** @type {import('@adonisjs/lucid/src/Schema')} */
const Schema = use("Schema");
class WishlistCustomersSchema extends Schema {
up() {
this.create("wishlist_customers", (table) => {
table.increments();
table.integer("customer_id").unsigned();
table
.foreign("customer_id"... | 9,073 |
https://github.com/lauer3912/chromium.src/blob/master/chrome/browser/sync/test/integration/single_client_status_change_checker.cc | Github Open Source | Open Source | BSD-3-Clause | 2,014 | chromium.src | lauer3912 | C++ | Code | 149 | 623 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/sync/test/integration/single_client_status_change_checker.h"
#include "base/logging.h"
#include "base/scoped_observer.h"
#includ... | 5,624 |
https://github.com/MakeNutri/senior/blob/master/senior/src/main/java/com/yedam/emp/OrderMasterVO.java | Github Open Source | Open Source | MIT | null | senior | MakeNutri | Java | Code | 23 | 70 | package com.yedam.emp;
import java.util.List;
import lombok.Data;
@Data
public class OrderMasterVO {
private String name;
private String addr;
private String tel;
List<OrderDetailVO> ords;
}
| 3,449 |
https://github.com/christopherlovell/hyperion/blob/master/docs/tutorials/scripts/flyaround_cube_setup.py | Github Open Source | Open Source | BSD-2-Clause | 2,022 | hyperion | christopherlovell | Python | Code | 159 | 478 | import numpy as np
from hyperion.model import Model
from hyperion.util.constants import pc, lsun
# Initialize model
m = Model()
# Set up 64x64x64 cartesian grid
w = np.linspace(-pc, pc, 64)
m.set_cartesian_grid(w, w, w)
# Add density grid with constant density and add a higher density cube inside to
# cause a shado... | 16,122 |
https://github.com/YehudaEi/AutoIt-Attachment/blob/master/Attachments/22K-23K/2000-3000/22368/ottimo_export.au3 | Github Open Source | Open Source | MIT | 2,021 | AutoIt-Attachment | YehudaEi | null | Spoken | 347 | 712 | ;
; AutoIt Version: 3.0
; Language: English
; Platform: Win9x/NT
; Author: Dave Beanland
;
; Script Function:
; converts a biesse file to Gabbiani format using Ottimo v7.57
; Prompt the user to run the script - use a Yes/No prompt (4 - see help file)
$answer = MsgBox(4, "AutoIt Example (English ... | 17,498 |
https://github.com/mciezczak312/ArkanoidSFML/blob/master/SFML_Arkanoid/Game.h | Github Open Source | Open Source | Unlicense | 2,016 | ArkanoidSFML | mciezczak312 | C++ | Code | 52 | 196 | #pragma once
#include <SFML\Graphics.hpp>
#include "Ball.h"
#include "Player.h"
#include "Brick.h"
#include <vector>
#include <algorithm>
class Game
{
public:
Game();
void Run();
~Game();
private:
void ProcessEvents();
void Update();
void Render();
void GenerateBricks(int,int);
template <class T1, class T2> b... | 30,491 |
https://github.com/wajncn/eolinker4.0/blob/master/src/main/java/com/eolinker/vo/DatabaseVO.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | eolinker4.0 | wajncn | Java | Code | 45 | 145 | package com.eolinker.vo;
public class DatabaseVO {
private DatabaseInfoVO databaseInfo;
private DatabaseTableVO[] tableList;
public DatabaseInfoVO getDatabaseInfo() {
return databaseInfo;
}
public void setDatabaseInfo(DatabaseInfoVO databaseInfo) {
this.databaseInfo = databaseInf... | 14,054 |
https://github.com/NationalSecurityAgency/ghidra/blob/master/Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/gui/task/RemoveMatchTask.java | Github Open Source | Open Source | GPL-1.0-or-later, GPL-3.0-only, Apache-2.0, LicenseRef-scancode-public-domain, LGPL-2.1-only, LicenseRef-scancode-unknown-license-reference | 2,023 | ghidra | NationalSecurityAgency | Java | Code | 215 | 582 | /* ###
* IP: GHIDRA
*
* 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 writin... | 33,186 |
https://github.com/stefanholek/lazy/blob/master/lazy/examples/example.py | Github Open Source | Open Source | BSD-2-Clause | 2,022 | lazy | stefanholek | Python | Code | 256 | 814 | from datetime import date
from lazy import lazy
class C(object):
@lazy
def foo(self) -> str:
return 'foo'
@lazy
def bar(self) -> str:
return 'bar'
@lazy
def baz(self) -> int:
return 42
@lazy
def quux(self) -> date:
return date(2010, 10, 10)
class D... | 36,306 |
https://github.com/eelco2k/repucaution/blob/master/public/theme/js/controller/rss/index.js | Github Open Source | Open Source | CC0-1.0 | 2,022 | repucaution | eelco2k | JavaScript | Code | 252 | 1,027 | (function($) {
var $custom_save = $('#rss_custom_save');
var index = 1;
$(document).on('click', '.more-link', function(e){
e.preventDefault();
var insert = $(this).closest('.row').find('.more_block').clone(true);
index = parseInt(index, 10) + 1;
insert.find('#rss_custom_tit... | 27,043 |
https://github.com/twetzel/capistrano-postgresql/blob/master/capistrano-postgresql.gemspec | Github Open Source | Open Source | MIT | null | capistrano-postgresql | twetzel | Ruby | Code | 100 | 395 | # -*- encoding: utf-8 -*-
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'capistrano/postgresql/version'
Gem::Specification.new do |gem|
gem.name = 'capistrano-postgresql'
gem.version = Capistrano::Postgresql::VERSION
gem.authors = ... | 35,151 |
https://github.com/pvtienhoa/jspurefix/blob/master/dist/types/FIXFXCM/quickfix/set/peg_instructions.d.ts | Github Open Source | Open Source | MIT | null | jspurefix | pvtienhoa | TypeScript | Code | 21 | 82 | export interface IPegInstructions {
PegOffsetValue?: number;
PegMoveType?: number;
PegOffsetType?: number;
PegLimitType?: number;
PegRoundDirection?: number;
PegScope?: number;
PegPriceType?: number;
FXCMPegFluctuatePts?: number;
}
| 44,861 |
https://github.com/ProteoWizard/pwiz/blob/master/pwiz_tools/Shared/CommonUtil/SystemUtil/PerfUtil.cs | Github Open Source | Open Source | LicenseRef-scancode-free-unknown, Apache-2.0 | 2,023 | pwiz | ProteoWizard | C# | Code | 1,308 | 3,534 | /*
* Original author: Brian Pratt <bspratt .at. u.washington.edu>,
* MacCoss Lab, Department of Genome Sciences, UW
*
* Copyright 2013 University of Washington - Seattle, WA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance wit... | 4,182 |
https://github.com/allanfra/k-9/blob/master/app/core/src/main/java/com/fsck/k9/mailstore/MigrationsHelper.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | k-9 | allanfra | Java | Code | 32 | 78 | package com.fsck.k9.mailstore;
import com.fsck.k9.Account;
/**
* Helper to allow accessing classes and methods that aren't visible or accessible to the 'migrations' package
*/
public interface MigrationsHelper {
Account getAccount();
void saveAccount();
}
| 42,599 |
https://github.com/Foboz/iterable-ios-sdk/blob/master/Podfile | Github Open Source | Open Source | MIT | 2,015 | iterable-ios-sdk | Foboz | Ruby | Code | 4 | 16 | pod "JSONModel", "~> 1.1.0"
| 43,626 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.