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/rabbishuki/mychag/blob/master/Server/db/mysql.js | Github Open Source | Open Source | MIT | 2,017 | mychag | rabbishuki | JavaScript | Code | 408 | 1,251 | var mysql = require('mysql'),
pool = mysql.createPool({
host: process.env.host,
user: process.env.user,
password: process.env.password,
database: process.env.database
});
function validate(string) {
return pool.escape(string) || '';
}
function query(string, callback) {
p... | 21,129 |
https://github.com/DaveCS1/JB.Toolkit/blob/master/JB.Toolkit/Scripts/CustomFunctions.js | Github Open Source | Open Source | MIT | 2,020 | JB.Toolkit | DaveCS1 | JavaScript | Code | 2,813 | 7,860 | /*
************************************************************************
REUSABLES JAVASCRIPT CUSTOM FUNCTIONS - CAN BE COPIED TO ANOTHER PROJECT
************************************************************************
*/
/** @description I.e. http://domina.com/
*/
function BaseUrl() {
return windo... | 18,952 |
https://github.com/brain-not-found/xnxx/blob/master/views/ajoutcarte.php | Github Open Source | Open Source | MIT | null | xnxx | brain-not-found | PHP | Code | 42 | 231 | <?PHP
include "../entities/carte.php";
include "../core/carteC.php";
if (isset($_POST['username']) and isset($_POST['mail']) and isset($_POST['type']) and isset($_POST['nom']) and isset($_POST['prenom']) and isset($_POST['tel']) and isset($_POST['age'])){
$carte1=new carte($_POST['username'],$_POST['mail'],$_POST['typ... | 43,947 |
https://github.com/hmac/nvim-treesitter/blob/master/queries/surface/folds.scm | Github Open Source | Open Source | Apache-2.0 | 2,022 | nvim-treesitter | hmac | Scheme | Code | 15 | 33 | ; Surface folds similar to HTML and includes blocks
[
(tag)
(component)
(block)
] @fold
| 15,389 |
https://github.com/XiaofengdiZhu/percentage/blob/master/percentage/percentage/TrayIcon.cs | Github Open Source | Open Source | MIT | 2,020 | percentage | XiaofengdiZhu | C# | Code | 309 | 957 | using System;
using System.Drawing;
using System.Runtime.InteropServices;
using System.Windows.Forms;
namespace percentage
{
class TrayIcon
{
[DllImport("user32.dll", CharSet = CharSet.Auto)]
static extern bool DestroyIcon(IntPtr handle);
private const string iconFont = "pannetje_10";
... | 31,852 |
https://github.com/TrickyPi/swc/blob/master/crates/swc_ecma_ast/src/lib.rs | Github Open Source | Open Source | Apache-2.0 | null | swc | TrickyPi | Rust | Code | 655 | 2,756 | #![cfg_attr(docsrs, feature(doc_cfg))]
#![deny(unreachable_patterns)]
#![deny(missing_copy_implementations)]
#![deny(trivial_casts)]
#![deny(trivial_numeric_casts)]
#![deny(unreachable_pub)]
#![deny(clippy::all)]
#![allow(clippy::enum_variant_names)]
#![allow(clippy::clone_on_copy)]
// #![deny(variant_size_differences... | 28,964 |
https://github.com/shubh24/MfoPaper/blob/master/code/MFO/new/main.m | Github Open Source | Open Source | BSD-2-Clause | 2,016 | MfoPaper | shubh24 | MATLAB | Code | 47 | 140 | clear all
clc
SearchAgents_no=30; % Number of search agents
Max_iteration=1500; % Maximum numbef of iterations
[ess dat] = file("../../data/ks_100_0");
[Best_score,Best_pos,cg_curve]=MFO1(SearchAgents_no,Max_iteration, ess, dat);
display(['The best solution obtained by MFO is : ', num2str(Best_pos)]);
display(['The... | 34,384 |
https://github.com/Nebulis/blog/blob/master/src/pages/asia/malaysia/east-malaysia/semenggoh-nature-reserve.tsx | Github Open Source | Open Source | MIT | null | blog | Nebulis | TypeScript | Code | 854 | 5,354 | import React, { useContext } from "react"
import { PageProps } from "gatsby"
import i18n from "i18next"
import SEO from "../../../../components/layout/seo"
import { useCustomTranslation } from "../../../../i18n-hook"
import { Comments } from "../../../../components/core/comments"
import translationFr from "../../../../... | 30,674 |
https://github.com/mirunakyuz/ojs/blob/master/src/Ojs/UserBundle/OAuth/ResourceOwner/GenericOAuth2ResourceOwner.php | Github Open Source | Open Source | MIT | null | ojs | mirunakyuz | PHP | Code | 59 | 280 | <?php
namespace Ojs\UserBundle\OAuth\ResourceOwner;
use HWI\Bundle\OAuthBundle\OAuth\ResourceOwner\GenericOAuth2ResourceOwner as BaseClass;
use HWI\Bundle\OAuthBundle\Security\Core\Authentication\Token\OAuthToken;
use Ojs\CoreBundle\Service\OrcidService;
class GenericOAuth2ResourceOwner extends BaseClass
{
/**
... | 39,157 |
https://github.com/bbakernoaa/eccodes/blob/master/examples/F90/bufr_expanded.f90 | Github Open Source | Open Source | Apache-2.0 | 2,021 | eccodes | bbakernoaa | Fortran Free Form | Code | 208 | 544 | ! (C) Copyright 2005- ECMWF.
!
! This software is licensed under the terms of the Apache Licence Version 2.0
! which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
!
! In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
! virtue of its status as an intergovernme... | 27,077 |
https://github.com/leereilly/unreal.hx/blob/master/Haxe/Externs/unreal/USoundNodeOscillator.hx | Github Open Source | Open Source | MIT | 2,016 | unreal.hx | leereilly | Haxe | Code | 314 | 689 | /**
*
* WARNING! This file was autogenerated by:
* _ _ _____ ___ _ _ __ __
* | | | | ___| / | | | | |\ \ / /
* | | | | |__ / /| | | |_| | \ V /
* | | | | __| / /_| | | _ | / \
* | |_| | |___ \___ | | | | |/ /^\ \
* \___/\____/ |_/ \_| |_/\/ \/
* ... | 41,395 |
https://github.com/mubaidr/prisma-nestjs-graphql/blob/master/@generated/tag/tag-unchecked-create.input.ts | Github Open Source | Open Source | MIT | null | prisma-nestjs-graphql | mubaidr | TypeScript | Code | 52 | 171 | import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { ArticleUncheckedCreateNestedManyWithoutTagsInput } from '../article/article-unchecked-create-nested-many-without-tags.input';
@InputType()
export class TagUncheckedCreateInput {
@Field(() => String, { nullable: true ... | 11,323 |
https://github.com/anayarojo/ionic-movies/blob/master/src/app/pipes/image-filter.pipe.ts | Github Open Source | Open Source | MIT | null | ionic-movies | anayarojo | TypeScript | Code | 30 | 88 | import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'imageFilter'
})
export class ImageFilterPipe implements PipeTransform {
transform(movies: any[]): any[] {
return movies.filter(m => {
return m.backdrop_path;
});
}
}
| 9,238 |
https://github.com/gtfierro/reasonable/blob/master/benches/python/buildings/AMRL(v1.1).ttl | Github Open Source | Open Source | BSD-3-Clause | 2,022 | reasonable | gtfierro | Turtle | Code | 1,005 | 7,159 | @prefix bf: <https://brickschema.org/schema/1.0.2/BrickFrame#> .
@prefix bldg: <http://buildsys.org/ontologies/AMRL#> .
@prefix brick: <https://brickschema.org/schema/1.0.2/Brick#> .
@prefix brick1: <https://brickschema.org/schema/1.1/Brick#> .
@prefix brick_v_1_0_2: <https://brickschema.org/schema/1.0.2/Brick#> .
@pre... | 49,067 |
https://github.com/invantage/npm-gate/blob/master/test/runScript.spec.js | Github Open Source | Open Source | Apache-2.0 | null | npm-gate | invantage | JavaScript | Code | 758 | 3,007 | /* eslint no-underscore-dangle: 0 */
import expect from 'expect'
import isPromise from 'is-promise'
import mockFn from 'execa'
import runScript from '../src/runScript'
jest.mock('execa')
expect.extend({
toBeAPromise() {
expect.assert(isPromise(this.actual), 'expected %s to be a Promise', this.actual)
... | 3,389 |
https://github.com/fibersel/catboost/blob/master/library/cpp/threading/future/core/future-inl.h | Github Open Source | Open Source | Apache-2.0 | 2,021 | catboost | fibersel | C | Code | 2,052 | 7,167 | #pragma once
#if !defined(INCLUDE_FUTURE_INL_H)
#error "you should never include future-inl.h directly"
#endif // INCLUDE_FUTURE_INL_H
namespace NThreading {
namespace NImpl {
////////////////////////////////////////////////////////////////////////////////
template <typename T>
using TCal... | 11,746 |
https://github.com/programmercintasunnah/kp-ibnu_masud_kampar-ci/blob/master/application/views/login/index.php | Github Open Source | Open Source | MIT | null | kp-ibnu_masud_kampar-ci | programmercintasunnah | PHP | Code | 176 | 748 | <div class="container">
<div class="row">
<div class="login-container col-lg-4 col-md-6 col-sm-8 col-xs-12">
<div class="login-content">
<div class="login-header">
<h4 class="tg">YAYASAN NIDA' AS-SUNNAH KAMPAR</h4>
<h4 class="tg">PPS. TAHF... | 5,083 |
https://github.com/uk-gov-mirror/hmrc.professional-subscriptions-frontend/blob/master/app/models/auditing/AuditSubmissionData.scala | Github Open Source | Open Source | Apache-2.0 | null | hmrc.professional-subscriptions-frontend | uk-gov-mirror | Scala | Code | 366 | 1,200 | /*
* Copyright 2021 HM Revenue & Customs
*
* 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 a... | 871 |
https://github.com/galuf/BookTravel/blob/master/src/containers/Login/login.js | Github Open Source | Open Source | LicenseRef-scancode-public-domain | 2,019 | BookTravel | galuf | JavaScript | Code | 172 | 689 | import React, { Component } from 'react';
//import client from '../../config/client'
import firebase from 'firebase'
import Formulario from './form'
import Forms2 from './form2'
import styled from 'styled-components'
import HeaderHome from '../../components/header'
const Sesion = styled.div`
width: 100%;
`
const R... | 3,741 |
https://github.com/siku2/AoC2018/blob/master/src/puzzles/day7.rs | Github Open Source | Open Source | MIT | null | AoC2018 | siku2 | Rust | Code | 489 | 1,608 | use std::collections::hash_map::Entry;
use std::collections::HashMap;
use std::collections::HashSet;
use std::io::BufRead;
use regex::Regex;
use utils;
fn get_connections(lines: &Vec<String>) -> Vec<(&str, &str)> {
let mut connections: Vec<(&str, &str)> = Vec::new();
let line_parser = Regex::new(r#"Step (?P<... | 34,686 |
https://github.com/ValorZard/Shooty-Game-2/blob/master/Assets/Scripts/UI/UIEndScreen.cs | Github Open Source | Open Source | MIT | 2,022 | Shooty-Game-2 | ValorZard | C# | Code | 192 | 459 | /*
Programmer: Manhattan Calabro
*/
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
public class UIEndScreen : MonoBehaviour
{
// Private variables
// Reference to the player and enemy lists
private FindEntities m_Entities;
// Start is called be... | 38,666 |
https://github.com/amymcgovern/spacesettlers/blob/master/src/spacesettlers/graphics/ShipGraphics.java | Github Open Source | Open Source | MIT | 2,023 | spacesettlers | amymcgovern | Java | Code | 669 | 2,227 | package spacesettlers.graphics;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Polygon;
import java.awt.Shape;
import java.awt.geom.AffineTransform;
import java.awt.geom.Ellipse2D;
import spacesettlers.gui.JSpaceSettlersComponent;
import spacesettlers.objects.Flag;
import spacesettlers.objects.Shi... | 32,146 |
https://github.com/HananMohammed/moltaqa/blob/master/resources/views/front/advantage/index.blade.php | Github Open Source | Open Source | MIT | null | moltaqa | HananMohammed | PHP | Code | 54 | 285 | <section id="section-1-3" class="describe-1">
<div class="container">
<div class="row flex"><!-- Row begin -->
<div class="col-md-6 col-sm-12 col-xs-12">
<div class="image">
<img src="{{asset_public('storage/uploads/'.$data["advantage"][0]->image)}}" alt="desc... | 6,021 |
https://github.com/udyvish/loki/blob/master/cmd/promtail/Dockerfile | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,019 | loki | udyvish | Dockerfile | Code | 75 | 275 | # Directories in this file are referenced from the root of the project not this folder
# This file is intented to be called from the root like so:
# docker build -t grafana/promtail -f cmd/promtail/Dockerfile .
FROM grafana/loki-build-image:0.2.1 as build
ARG GOARCH="amd64"
COPY . /go/src/github.com/grafana/loki
WORKD... | 12,615 |
https://github.com/billsong0407/BeatsBot/blob/master/commands/lyrictrivia.js | Github Open Source | Open Source | MIT | null | BeatsBot | billsong0407 | JavaScript | Code | 459 | 1,143 | //import discord-quiz npm as dquiz
const dquiz = require ('./trivia-module.js');
//initialize arrays of questions, correct answers and wrong answers with matching index per question set
var questionPool = [
'That tonights gonna be a good night',
'Lets start living dangerously',
... | 30,884 |
https://github.com/ziegeer/autocert/blob/master/api/utils/docstr.py | Github Open Source | Open Source | MIT | null | autocert | ziegeer | Python | Code | 25 | 84 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import inspect
def docstr():
frame = inspect.currentframe().f_back
funcname = frame.f_code.co_name
globals_ = frame.f_globals
func = globals_[funcname]
return func.__doc__
| 13,710 |
https://github.com/qtothec/pyomo/blob/master/examples/pyomo/diet/diet2.py | Github Open Source | Open Source | BSD-3-Clause | 2,020 | pyomo | qtothec | Python | Code | 216 | 721 | # ___________________________________________________________________________
#
# Pyomo: Python Optimization Modeling Objects
# Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC
# Under the terms of Contract DE-NA0003525 with National Technology and
# Engineering Solutions of Sandia, LLC... | 19,447 |
https://github.com/zhmu/ananas/blob/master/external/gcc-12.1.0/gcc/config/i386/dragonfly.h | Github Open Source | Open Source | LGPL-2.1-only, FSFAP, LGPL-3.0-only, GPL-3.0-only, GPL-2.0-only, GCC-exception-3.1, LGPL-2.0-or-later, Zlib, LicenseRef-scancode-public-domain, GPL-3.0-or-later | 2,022 | ananas | zhmu | C++ | Code | 377 | 950 | /* Definitions for Intel 386 running DragonFly with ELF format
Copyright (C) 2014-2022 Free Software Foundation, Inc.
Contributed by John Marino <gnugcc@marino.st>
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as publis... | 15,715 |
https://github.com/dr-vij/SpiceSharp/blob/master/SpiceSharp/Components/RLC/Resistors/Parameters.cs | Github Open Source | Open Source | MIT | 2,022 | SpiceSharp | dr-vij | C# | Code | 347 | 900 | using SpiceSharp.ParameterSets;
using SpiceSharp.Attributes;
namespace SpiceSharp.Components.Resistors
{
/// <summary>
/// Parameters for a <see cref="Resistor" />.
/// </summary>
/// <seealso cref="ParameterSet"/>
[GeneratedParameters]
public partial class Parameters : ParameterSet<Parameters>... | 12,211 |
https://github.com/AdaCore/spat/blob/master/src/util/gnatcoll-opt_parse-extension.adb | Github Open Source | Open Source | WTFPL | 2,020 | spat | AdaCore | Ada | Code | 667 | 1,612 | ------------------------------------------------------------------------------
-- G N A T C O L L --
-- --
-- Copyright (C) 2009-2019, AdaCore --
-- ... | 36,056 |
https://github.com/sergeyrachev/sandstream/blob/master/test/mock_callback_pat.h | Github Open Source | Open Source | MIT | null | sandstream | sergeyrachev | C | Code | 23 | 99 | #pragma once
#include "matcher.h"
#include "callback_pat.h"
namespace mock{
class callback_pat_t : public challenge::callback_pat_t{
public:
callback_pat_t();
~callback_pat_t() final;
MOCK_METHOD1(on_pat, void(const challenge::pat_t &update));
};
}
| 12,489 |
https://github.com/strengthandwill/wiki-contacts-android/blob/master/src/com/kahkong/wikicontacts/service/PreferencesServiceImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,014 | wiki-contacts-android | strengthandwill | Java | Code | 135 | 458 | package com.kahkong.wikicontacts.service;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.preference.PreferenceManager;
/**
*
* @author Poh Kah Kong
*
*/
public class PreferencesServiceImpl implements PreferencesService {
... | 40,638 |
https://github.com/viant/datly/blob/master/router/marshal/json/marshaller_uint.go | Github Open Source | Open Source | Apache-2.0 | 2,023 | datly | viant | Go | Code | 389 | 1,468 | package json
import (
"github.com/francoispqt/gojay"
"github.com/viant/xunsafe"
"strconv"
"unsafe"
)
type uintMarshaller struct {
defaultValue string
dTag *DefaultTag
}
func newUintMarshaller(dTag *DefaultTag) *uintMarshaller {
var zeroValue uint
if dTag._value != nil {
zeroValue, _ = dTag._value.(... | 45,788 |
https://github.com/WXM99/SE228_SpringbootDemo/blob/master/ebook-backend/src/516015910018-hw2/main/java/ebook/controller/BookInfoController.java | Github Open Source | Open Source | MIT | 2,019 | SE228_SpringbootDemo | WXM99 | Java | Code | 168 | 699 | package ebook.controller;
import ebook.model.BookDetails;
import ebook.model.BookInOrder;
import ebook.model.BookInfoBrief;
import ebook.model.outOfDB.WholeBook;
import ebook.repository.BookRepository;
import ebook.service.BookService;
import net.sf.json.JSONObject;
import org.hibernate.annotations.Source;
import org.... | 35,070 |
https://github.com/123FLO321/SwiftTileserverCache/blob/master/Sources/SwiftTileserverCache/Model/Style.swift | Github Open Source | Open Source | MIT | 2,021 | SwiftTileserverCache | 123FLO321 | Swift | Code | 30 | 67 | //
// Style.swift
// SwiftTileserverCache
//
// Created by Florian Kostenzer on 03.03.20.
//
import Vapor
public struct Style: Content {
public var id: String
public var name: String
}
| 9,605 |
https://github.com/xiacijie/omr-wala-linkage/blob/master/third_party/omr/gc/structs/HashTableIterator.cpp | Github Open Source | Open Source | Apache-2.0 | null | omr-wala-linkage | xiacijie | C++ | Code | 277 | 697 | /*******************************************************************************
* Copyright (c) 1991, 2016 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at https://w... | 38,777 |
https://github.com/i-gaven/Just_a_dumper/blob/master/all_headers/百度贴吧-全球最大中文兴趣社区-9.3.8(越狱应用)_headers/TBCPicFilterView.h | Github Open Source | Open Source | MIT | 2,018 | Just_a_dumper | i-gaven | Objective-C | Code | 113 | 446 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import "TBCAutoLayoutScrollView.h"
@class NSArray, NSMutableArray;
@protocol TBCPicEditorProtocol;
@interface TBCPicFilterView : TBC... | 40,846 |
https://github.com/markmckinnon/cLeapp/blob/master/scripts/artifacts/googleDocs.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | cLeapp | markmckinnon | Python | Code | 295 | 1,077 | import os
import sqlite3
import datetime
from scripts.artifact_report import ArtifactHtmlReport
from scripts.cleapfuncs import logfunc, tsv, timeline, is_platform_windows, open_sqlite_db_readonly, does_column_exist_in_db
def get_editor(file_found):
if 'slides' in file_found.lower():
return 'Google Slides'... | 25,424 |
https://github.com/JackFish/jfinal-weixin/blob/master/src/com/jfinal/weixin/sdk/msg/InMsgParser.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | jfinal-weixin | JackFish | Java | Code | 1,029 | 5,437 | /**
* Copyright (c) 2011-2014, James Zhan 詹波 (jfinal@126.com).
*
* Licensed under the Apache License, Version 2.0 (the "License");
*/
package com.jfinal.weixin.sdk.msg;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import com.jfinal.weixin.sdk.msg.in.event.InVerifyFailEvent;
impor... | 49,351 |
https://github.com/kbsriram/thormor/blob/master/src/cli/org/thormor/cli/CShowCommand.java | Github Open Source | Open Source | JSON, MIT, BSD-2-Clause | 2,012 | thormor | kbsriram | Java | Code | 404 | 1,376 | package org.thormor.cli;
import org.thormor.vault.CLinkedVault;
import org.thormor.vault.CVault;
import org.thormor.provider.IProgressMonitor;
import java.util.List;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.Calendar;
import java.te... | 1,352 |
https://github.com/abobija/words-and-synonyms/blob/master/src/main/resources/public/js/script.js | Github Open Source | Open Source | MIT | 2,019 | words-and-synonyms | abobija | JavaScript | Code | 388 | 1,206 | /**
* Main script fof application which
* purpose is to initialize UI and send requests to service
* on button click events etc...
*
* Script depends on
* - jQuery
* - Bootstrap
* - ./modal
*/
const KEY_ENTER = 13;
const KEY_SPACE = 32;
let isSearcherBusy = false;
const $search = $('#search').focus();
co... | 39,736 |
https://github.com/Remalloc/simple_proxy_pool/blob/master/simple_proxy_pool/config.py | Github Open Source | Open Source | BSD-3-Clause | 2,019 | simple_proxy_pool | Remalloc | Python | Code | 23 | 133 | REQUEST_HEADERS = {
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) "
"AppleWebKit/537.36 (KHTML, like Gecko) "
"Chrome/71.0.3578.98 "
"Safari/5... | 37,376 |
https://github.com/carlosclayton/app-delivery/blob/master/resources/views/layouts/app.blade.php | Github Open Source | Open Source | MIT | null | app-delivery | carlosclayton | PHP | Code | 436 | 1,680 | <!DOCTYPE html>
<html lang="{{ app()->getLocale() }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel') }}</title>
<!-- Styles -->
<link href... | 36,376 |
https://github.com/dragoneena12/lapi-website-gatsby/blob/master/src/components/Characters/Fetherdra.tsx | Github Open Source | Open Source | 0BSD | 2,023 | lapi-website-gatsby | dragoneena12 | TSX | Code | 147 | 929 | import React from "react"
import { StaticImage } from "gatsby-plugin-image"
import * as classes from "./Fetherdra.module.scss"
const Fetherdra: React.FC = () => (
<div className={classes.Container}>
<div className={classes.Description}>
<h2>フェザードラゴネット(Feather Dragonet)</h2>
<ul className={classes.Lis... | 14,801 |
https://github.com/J-Keven/Gobarber-api/blob/master/src/modules/appointments/repositories/IAppointmentsRepository.ts | Github Open Source | Open Source | MIT | 2,020 | Gobarber-api | J-Keven | TypeScript | Code | 53 | 247 | import ICreateAppotmentsDTO from '@modules/appointments/dtos/ICreateAppointmentsDTO';
import Appointments from '../infra/typeorm/entities/Appointments';
import IFindAllInMonthFromProviderDTO from '../dtos/IFindAllInMonthFromProviderDTO';
import IFindAllInDayFromProviderDTO from '../dtos/IFindAllInDayFromProviderDTO';
i... | 41,556 |
https://github.com/liebeskind/Spoke/blob/master/src/editor/nodes/BoxColliderNode.js | Github Open Source | Open Source | MIT | 2,019 | Spoke | liebeskind | JavaScript | Code | 167 | 553 | import THREE from "../../vendor/three";
import EditorNodeMixin from "./EditorNodeMixin";
export default class BoxColliderNode extends EditorNodeMixin(THREE.Object3D) {
static legacyComponentName = "box-collider";
static nodeName = "Box Collider";
static _geometry = new THREE.BoxBufferGeometry();
static _mat... | 6,860 |
https://github.com/rajabishek/queueless/blob/master/app/Exceptions/OrganisationNotFoundException.php | Github Open Source | Open Source | MIT | 2,016 | queueless | rajabishek | PHP | Code | 9 | 28 | <?php
namespace Queueless\Exceptions;
class OrganisationNotFoundException extends AbstractNotFoundException
{
} | 49,863 |
https://github.com/roots/bud/blob/master/examples/babel/bud.config.js | Github Open Source | Open Source | MIT | 2,023 | bud | roots | JavaScript | Code | 23 | 112 | export default async bud => {
bud.entry('app', ['app.js', 'app.css'])
bud.babel
.setPresets({
'@babel/preset-env': '@babel/preset-env',
})
.setPlugins({
'@babel/plugin-transform-runtime': [
'@babel/plugin-transform-runtime',
{helpers: false},
],
})
}
| 14,616 |
https://github.com/CaoLP/hay/blob/master/Vendor/croogo/croogo/Settings/Controller/SettingsAppController.php | Github Open Source | Open Source | MIT | 2,015 | hay | CaoLP | PHP | Code | 40 | 126 | <?php
App::uses('AppController', 'Controller');
/**
* Settings Application controller
*
* @category Settings.Controllers
* @package Croogo.Settings
* @version 1.0
* @author Fahad Ibnay Heylaal <contact@fahad19.com>
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @link ... | 25,782 |
https://github.com/neatLines/logFinder/blob/master/server/models/oneHost.go | Github Open Source | Open Source | MIT | 2,019 | logFinder | neatLines | Go | Code | 14 | 37 | package models
//
type Host struct {
Hostname string `json:"hostname"`
Appname string `json:"appname"`
}
| 16,326 |
https://github.com/ArrogantWombatics/openbsd-src/blob/master/gnu/usr.bin/perl/cpan/Unicode-Collate/t/loc_ta.t | Github Open Source | Open Source | BSD-3-Clause | 2,019 | openbsd-src | ArrogantWombatics | Perl | Code | 276 | 1,745 |
BEGIN {
unless ('A' eq pack('U', 0x41)) {
print "1..0 # Unicode::Collate cannot pack a Unicode code point\n";
exit 0;
}
unless (0x41 == unpack('U', 'A')) {
print "1..0 # Unicode::Collate cannot get a Unicode code point\n";
exit 0;
}
if ($ENV{PERL_CORE}) {
chdir('t') if -d 't';
@INC = $^O eq '... | 5,055 |
https://github.com/hwbeeson/wepppy/blob/master/wepppy/wepp/soils/soilsdb/data/Database/la/PELHAM(LS).sol | Github Open Source | Open Source | BSD-3-Clause | null | wepppy | hwbeeson | Solidity | Code | 71 | 217 | 95.1
# This WEPP soil input file was made using USDA-SCS Soil-5 (1992) data
# base. Assumptions: soil albedo=0.23, initial sat.=0.75. If you have
# any question, please contact Reza Savabi, Ph: (317)-494-5051
# Soil Name: PELHAM Rec. ID: GA0015 Tex.:loamy sand
1 1
'PELHAM' 'L... | 32,262 |
https://github.com/Cherobin/GameJamUnivali2020/blob/master/ApocalipseCHI/src/apiPS/PS_Som2.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | GameJamUnivali2020 | Cherobin | Java | Code | 801 | 1,982 | package apiPS;
import java.io.*;
import javax.sound.sampled.*;
/*
* Created on 02/02/2009
* Atualizado Para Verção 1.0
* Desenvolvido Por Dennis Kerr Coelho
* PalmSoft Tecnologia
*/
public class PS_Som2 {
private static final int ECHO_NUMBER = 1; // how many echoes to add
private static final double DE... | 45,143 |
https://github.com/Peracek/Bedouin/blob/master/src/server/api/templates/controller.ts | Github Open Source | Open Source | MIT | 2,019 | Bedouin | Peracek | TypeScript | Code | 227 | 619 |
import { TemplateDir } from '@shared/types/TemplateDir'
import { Template } from '@shared/types/Template'
import TemplateDeployDTO from '@shared/types/TemplateDeployDTO'
import { log } from '@common/logger'
import * as templateManager from 'templateManager'
import TemplateDefinition from 'templateManager/TemplateDefin... | 11,661 |
https://github.com/rkluszczynski/avro-cli/blob/master/src/main/java/io/github/rkluszczynski/avro/cli/command/kafka/KafkaConsumption.java | Github Open Source | Open Source | MIT | 2,021 | avro-cli | rkluszczynski | Java | Code | 140 | 641 | package io.github.rkluszczynski.avro.cli.command.kafka;
import io.github.rkluszczynski.avro.cli.CliMainParameters;
import io.github.rkluszczynski.avro.cli.CommandException;
import io.github.rkluszczynski.avro.cli.command.CliCommand;
import io.github.rkluszczynski.avro.cli.command.CliCommandParameters;
import org.sprin... | 45,372 |
https://github.com/ZJKCode/ZJKReflectUtil/blob/master/ZJKReflectUtil/Classes/ReflectUtil.m | Github Open Source | Open Source | MIT | 2,019 | ZJKReflectUtil | ZJKCode | Objective-C | Code | 982 | 4,069 | //
// ReflectUtil.m
// ZJKReflectUtil
//
// Created by zhangjikuan on 2019/11/4.
//
#import "ReflectUtil.h"
#import <objc/message.h>
#import <objc/runtime.h>
#import "objc/objc.h"
#import "objc/objc-api.h"
#define ARRAY(...) ([NSArray arrayWithObjects: IDARRAY(__VA_ARGS__) count: IDCOUNT(__VA_ARGS__)]
#define $set... | 38,219 |
https://github.com/Claude-Ray/LeetCode/blob/master/Algorithms/arranging-coins.js | Github Open Source | Open Source | MIT | 2,019 | LeetCode | Claude-Ray | JavaScript | Code | 38 | 81 | /**
* @param {number} n
* @return {number}
*/
var arrangeCoins = function (n) {
n = n * 2;
let root = Math.ceil(Math.sqrt(n));
while (root * (root - 1) > n) root--;
return root - 1;
};
| 32,498 |
https://github.com/moashraf/kafigroup/blob/master/resources/views/profile.blade.php | Github Open Source | Open Source | MIT | 2,021 | kafigroup | moashraf | Blade | Code | 378 | 2,065 | <x-layout>
<section id="profile-info" class="bg-light" style="direction: rtl;">
<div class="container">
<div class="main-body">
<div class="row gutters-sm">
<div class="col-md-4 mb-3">
... | 21,727 |
https://github.com/chineping/jenkins-pipeline-scripts/blob/master/vars/withWhiteSourceWrapper.groovy | Github Open Source | Open Source | MIT | 2,020 | jenkins-pipeline-scripts | chineping | Groovy | Code | 187 | 802 | #!/usr/bin/groovy
import hudson.model.*
def call(Closure body=null) {
this.vars = [:]
call(vars, body)
}
def call(Map vars, Closure body=null) {
echo "[JPL] Executing `vars/withWhiteSourceWrapper.groovy`"
vars = vars ?: [:]
def RELEASE = vars.get("RELEASE", env.RELEASE ?: false).toBoolean()
def REL... | 6,256 |
https://github.com/Biacode/hermes-core/blob/master/api/rest/rest-facade/src/test/kotlin/org/biacode/hermes/core/api/rest/facade/test/AbstractFacadeImplTest.kt | Github Open Source | Open Source | Apache-2.0 | 2,018 | hermes-core | Biacode | Kotlin | Code | 37 | 164 | package org.biacode.hermes.core.api.rest.facade.test
import org.biacode.hermes.core.api.rest.facade.test.helper.FacadeImplTestHelperTestHelper
import org.easymock.EasyMockRunner
import org.easymock.EasyMockSupport
import org.junit.runner.RunWith
/**
* Created by Arthur Asatryan.
* Date: 1/13/18
* Time: 4:56 PM
*/... | 14,166 |
https://github.com/mjFer/USVG/blob/master/Assets/USVG/SVG/DOM/SVGGeometry.cs | Github Open Source | Open Source | MIT | 2,021 | USVG | mjFer | C# | Code | 318 | 1,100 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace USVG {
public class SVGGeometry : SVGElement {
protected Vector2[] vectors_2d;
protected Mesh msh;
protected MeshFilter filter;
protected Renderer renderer;
protected SVGGeometry(Dictionar... | 41,745 |
https://github.com/hampgoodwin/infra/blob/master/cmd/cpfuzz/1-download.sh | Github Open Source | Open Source | Apache-2.0 | 2,020 | infra | hampgoodwin | Shell | Code | 115 | 405 | #!/bin/bash
set -e
context=$(kubectl config get-contexts --output name | grep automated-clearing-house)
dir="fuzz-"$(date +"%Y-%m-%d")
containers=($(kubectl --context "$context" get pods -n apps | grep fuzz | cut -d' ' -f1))
echo "found ${#containers[@]} fuzz containers"
subdir=""
if [[ "$1" != "" ]];
then
subdi... | 20,543 |
https://github.com/awslabs/aws-trusted-advisor-explorer/blob/master/source/verify-ta-check-status-lambda.py | Github Open Source | Open Source | Apache-2.0, MIT-0 | 2,022 | aws-trusted-advisor-explorer | awslabs | Python | Code | 350 | 1,317 | ######################################################################################################################
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. #
# ... | 24,469 |
https://github.com/BoniLindsley/pymap/blob/master/pymap/backend/redis/mailbox.py | Github Open Source | Open Source | MIT | null | pymap | BoniLindsley | Python | Code | 1,153 | 4,346 |
from __future__ import annotations
from collections.abc import Iterable, Mapping, Sequence
from datetime import datetime
from typing import Optional
import msgpack
from aioredis import Redis, ResponseError, WatchError
from pymap.bytes import HashStream
from pymap.concurrent import Event
from pymap.exceptions import... | 10,881 |
https://github.com/leikang123/LKCompiler/blob/master/src/main/system/Platform.java | Github Open Source | Open Source | BSD-3-Clause | 2,022 | LKCompiler | leikang123 | Java | Code | 25 | 83 | package main.system;
import main.type.TypeTable;
import main.utils.ErrorHandler;
public interface Platform {
TypeTable typeTable();
CodeGenerator codeGenerator(CodeGeneratorOptions opts, ErrorHandler h);
Assembler assembler(ErrorHandler h);
Linker linker(ErrorHandler h);
}
}
| 42,248 |
https://github.com/dvn1627/gamificator/blob/master/app/Http/Controllers/Api/ContactsController.php | Github Open Source | Open Source | MIT | null | gamificator | dvn1627 | PHP | Code | 423 | 1,410 | <?php
namespace App\Http\Controllers\Api;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Http\Response;
use Validator;
use App\Models\ContactType;
use App\Models\Contact;
class ContactsController extends Controller
{
/**
* Create a ... | 29,650 |
https://github.com/mstsuite/MuST/blob/master/MST/lib/computeProdExpan.F90 | Github Open Source | Open Source | BSD-3-Clause | 2,023 | MuST | mstsuite | Fortran Free Form | Code | 457 | 1,673 | ! *******************************************************************
! * *
! * This subroutine aims to compute the spherical harmonic *
! * expansion of the product of two real functions, f and g, which *
! * are expanded in spherical harm... | 14,995 |
https://github.com/manumaticx/Sandstorm.CookiePunch/blob/master/Resources/Private/KlaroTranslations/build.js | Github Open Source | Open Source | MIT | 2,022 | Sandstorm.CookiePunch | manumaticx | JavaScript | Code | 440 | 1,369 | var fs = require("fs");
var path = require("path");
const Handlebars = require("handlebars");
const yaml = require("js-yaml");
const templateDir = __dirname;
const klaroTranslationsDir = path.join(
__dirname,
"../../../node_modules/klaro/src/translations"
);
const fusionTranslationFile = path.join(
__dirname,
... | 35,267 |
https://github.com/wojtekblack/ludumdare30/blob/master/project/Assets/Animations/MovingPlatform1.anim.meta | Github Open Source | Open Source | MIT | 2,014 | ludumdare30 | wojtekblack | Unity3D Asset | Code | 6 | 37 | fileFormatVersion: 2
guid: 9557195970daf794b8708f4cd5753972
NativeFormatImporter:
userData:
| 17,047 |
https://github.com/petnagy/android_architect_playground/blob/master/app/src/main/java/com/playground/android_architect_playground/inject/modules/ColorFragmentModule.java | Github Open Source | Open Source | Apache-2.0 | null | android_architect_playground | petnagy | Java | Code | 39 | 191 | package com.playground.android_architect_playground.inject.modules;
import android.arch.lifecycle.LifecycleRegistry;
import com.playground.android_architect_playground.inject.PerActivity;
import com.playground.android_architect_playground.pages.colorpage.ColorActivity;
import com.playground.android_architect_playgrou... | 40,836 |
https://github.com/universal-development/parsers-service/blob/master/parsers-service-app/src/main/java/com/unidev/parsers/controller/ParserController.java | Github Open Source | Open Source | Apache-2.0 | null | parsers-service | universal-development | Java | Code | 75 | 401 | package com.unidev.parsers.controller;
import com.unidev.parsers.model.Parser;
import com.unidev.parsers.model.ParserRequest;
import com.unidev.parsers.model.ParserResponse;
import com.unidev.parsers.service.ParsersService;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.anno... | 21,179 |
https://github.com/thdiaman/GDDownloader/blob/master/helpers.py | Github Open Source | Open Source | Apache-2.0 | 2,018 | GDDownloader | thdiaman | Python | Code | 212 | 530 | import json
def get_number_of(gdownloader, repo_api_address, statistic_type, parameter = None):
"""
Posts a request using an instance of GithubDownloader and returns the number of
a given statistic (e.g. number of issues, number of commits, etc.).
:param gdownloader: an instance of GithubDownloader.
:param stati... | 5,376 |
https://github.com/fdeleo/alugaqui-webserver/blob/master/node_modules/intern/browser_modules/dojo/_debug/Observable.ts | Github Open Source | Open Source | MIT | 2,017 | alugaqui-webserver | fdeleo | TypeScript | Code | 484 | 1,454 | import core = require('./interfaces');
import lang = require('./lang');
import Scheduler = require('./Scheduler');
interface ICallbackObject {
removed?: boolean;
callback: core.IObserver<any>;
}
interface INotification {
newValue: any;
oldValue: any;
callbacks: Array<ICallbackObject>;
}
// TODO: `informImmediat... | 9,504 |
https://github.com/ulises-jeremias/pdytr/blob/master/practica-4/resources/given/jade/src/jade/src/jade/core/mobility/MobileAgentClassLoader.java | Github Open Source | Open Source | MIT, LGPL-2.1-only, LGPL-2.0-or-later | 2,021 | pdytr | ulises-jeremias | Java | Code | 505 | 1,513 | /*****************************************************************
JADE - Java Agent DEvelopment Framework is a framework to develop
multi-agent systems in compliance with the FIPA specifications.
Copyright (C) 2000 CSELT S.p.A.
GNU Lesser General Public License
This library is free software; you can redistribute it ... | 21,662 |
https://github.com/ghandhikus/TworcyGierStrona/blob/master/src/main/java/com/clockwise/tworcy/model/chat/ChatService.java | Github Open Source | Open Source | MIT | 2,016 | TworcyGierStrona | ghandhikus | Java | Code | 37 | 130 | package com.clockwise.tworcy.model.chat;
import java.util.List;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import com.clockwise.tworcy.model.account.Account;
public @Service @Repository interface ChatService {
public void getMessages(Account account, List<Str... | 27,494 |
https://github.com/UrosGligovic/crawl/blob/master/src/main/java/rs/ugligovic/crawl/crawlers/PageCrawler.java | Github Open Source | Open Source | Apache-2.0 | null | crawl | UrosGligovic | Java | Code | 63 | 158 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package rs.ugligovic.crawl.crawlers;
import java.time.LocalDate;
import java.time.LocalDateTime;
import org.jsoup.nodes.Document;
/**... | 14,214 |
https://github.com/zodsoft/SCJMapper-V2/blob/master/Joystick/Options.cs | Github Open Source | Open Source | MIT | 2,016 | SCJMapper-V2 | zodsoft | C# | Code | 1,398 | 4,054 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.IO;
using System.Xml.Linq;
using System.Windows.Forms;
namespace SCJMapper_V2.Joystick
{
/// <summary>
/// Maintains an Options - something like:
///
/// <options type="joystick" instance="1"... | 36,568 |
https://github.com/darthcav/tutorial-java-rest-google/blob/master/src/main/java/io/github/cavweb20/google/GoogleResponse.java | Github Open Source | Open Source | MIT | 2,015 | tutorial-java-rest-google | darthcav | Java | Code | 93 | 269 | package io.github.cavweb20.google;
/**
*
* @author cavweb20
*/
public class GoogleResponse
{
private ResponseData responseData = null;
private String responseDetails = null;
private int responseStatus;
private Cursor cursor;
public Cursor getCursor()
{
return cursor;
}
pub... | 283 |
https://github.com/robertdigital/fix-rust/blob/master/fixclient/src/connector/memstore.rs | Github Open Source | Open Source | Apache-2.0 | 2,018 | fix-rust | robertdigital | Rust | Code | 239 | 746 |
use std::io::{self};
use super::{MessageStore, MessageStoreState};
use super::super::sender::Sender;
use super::super::FixSessionConfig;
use fix::frame::FixFrame;
pub struct MemoryMessageStore {
state: MessageStoreState,
messages : Vec<FixFrame>,
}
impl MemoryMessageStore {
pub fn new( _cfg: &FixSessi... | 1,614 |
https://github.com/krishnaIndia/MaidsafeJenkins/blob/master/src/main/java/com/jenkinsci/plugins/MaidsafeJenkins/Exception/TooManyPRForModule.java | Github Open Source | Open Source | MIT | null | MaidsafeJenkins | krishnaIndia | Java | Code | 40 | 108 | package com.jenkinsci.plugins.MaidsafeJenkins.Exception;
public class TooManyPRForModule extends Exception {
private String moduleName;
public TooManyPRForModule(String moduleName) {
this.moduleName = moduleName;
}
@Override
public String getMessage() {
return "More than one matching Pull Request fo... | 8,065 |
https://github.com/ashish-narwal/nalaf/blob/master/nalaf/domain/bio/gnormplus.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | nalaf | ashish-narwal | Python | Code | 301 | 994 | import difflib
from nalaf.learning.taggers import Tagger
from nalaf.utils.ncbi_utils import GNormPlus
from nalaf.utils.uniprot_utils import Uniprot
from nalaf.structures.data import Entity
class GNormPlusGeneTagger(Tagger):
"""
Performs tagging for genes with GNormPlus.
Is able to add normalisations for u... | 14,819 |
https://github.com/TANHAIYU/Self-calibration-using-Homography-Constraints/blob/master/cmake-build-debug/3rdparty/Eigen/Debug/src/Eigen-build/doc/snippets/compile_RealSchur_RealSchur_MatrixType.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,020 | Self-calibration-using-Homography-Constraints | TANHAIYU | C++ | Code | 96 | 215 | #include <Eigen/Dense>
#include <iostream>
using namespace Eigen;
using namespace std;
int main(int, char**)
{
cout.precision(3);
MatrixXd A = MatrixXd::Random(6,6);
cout << "Here is a random 6x6 matrix, A:" << endl << A << endl << endl;
RealSchur<MatrixXd> schur(A);
cout << "The orthogonal matrix U is:" << endl... | 27,533 |
https://github.com/NemesisGames/Amazon/blob/master/src/Amazon.Route53/Actions/ListTrafficPolicyInstancesByPolicyRequest.cs | Github Open Source | Open Source | MIT | 2,020 | Amazon | NemesisGames | C# | Code | 10 | 28 | namespace Amazon.Route53
{
public sealed class ListTrafficPolicyInstancesByPolicyRequest { }
}
| 14,020 |
https://github.com/pprpc/ftconn/blob/master/relay-ms/logic/LRelayStepTwo.go | Github Open Source | Open Source | Apache-2.0 | null | ftconn | pprpc | Go | Code | 137 | 572 | package logic
import (
"fmt"
errc "github.com/pprpc/ftconn/common/errorcode"
"github.com/pprpc/ftconn/model/ftconn"
"github.com/pprpc/util/common"
"github.com/pprpc/core"
"github.com/pprpc/core/packets"
"xcthings.com/protoc/ftconnrelay/RelayStepTwo"
lc "github.com/pprpc/ftconn/relay-ms/common"
m "github.com... | 13,183 |
https://github.com/rgrempel/purescript-sequences/blob/master/test/Utils.purs | Github Open Source | Open Source | MIT | null | purescript-sequences | rgrempel | PureScript | Code | 1,080 | 2,423 | module Tests.Utils where
import Prelude
import Data.Array as A
import Data.Function (on)
import Data.Foldable (class Foldable, intercalate, foldr, foldMap)
import Data.Maybe (Maybe(Nothing, Just))
import Data.Monoid (class Monoid, mempty)
import Data.Monoid.Additive (Additive(Additive))
import Data.Newtype (un)
impor... | 29,428 |
https://github.com/Cheng-Yi-Lin/Software2/blob/master/catkin_ws/src/pmcn/bot_arm/src/tsp_salesman_nagivation_node.py | Github Open Source | Open Source | CC-BY-2.0 | null | Software2 | Cheng-Yi-Lin | Python | Code | 360 | 3,113 | #!/usr/bin/env python
import rospy
import socket
import pygame
from duckietown_msgs.msg import Twist2DStamped, BoolStamped, StopLineReading
from std_msgs.msg import String, Int32, Int16
from Adafruit_PWM_Servo_Driver import PWM
from Adafruit_MotorHAT import Adafruit_MotorHAT
import time
import urllib2
from __builtin__... | 34,005 |
https://github.com/mandyzore/fuzzysearch/blob/master/src/fuzzysearch/_substitutions_only_lp_template.h | Github Open Source | Open Source | MIT | 2,017 | fuzzysearch | mandyzore | C | Code | 202 | 726 | #define DO_FREES free(sub_counts)
static PyObject *
FUNCTION_NAME(PyObject *self, PyObject *args)
{
/* input params */
const char *subsequence;
const char *sequence;
int subseq_len, seq_len, max_substitutions;
unsigned int *sub_counts;
unsigned int seq_idx, subseq_idx, count_idx;
DECLARE_... | 40,012 |
https://github.com/KickSeason/neon-js/blob/master/src/transactions/typings/Transaction.d.ts | Github Open Source | Open Source | MIT | 2,018 | neon-js | KickSeason | TypeScript | Code | 305 | 576 | import { Account, Balance, Claims } from '../../wallet';
import {
TransactionInput,
TransactionAttribute,
TransactionOutput,
Witness,
} from './components';
/**
* Transactions are what you use to interact with the blockchain.
* A transaction is made up of components found in the component file.
* Besides th... | 2,086 |
https://github.com/i-gaven/Just_a_dumper/blob/master/all_headers/百度地图-出行导航必备的智能路线规划软件-10.6.5(越狱应用)_headers/BNUGCCommentRefreshController.h | Github Open Source | Open Source | MIT | 2,018 | Just_a_dumper | i-gaven | Objective-C | Code | 156 | 593 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import <Foundation/NSObject.h>
@class BasePage, NSNumber, NSString, NSTimer;
@interface BNUGCCommentRefreshController : NSObject
{
... | 39,910 |
https://github.com/UnixJunkie/ocamlnet/blob/master/code/tests/netclient/http_bench/specs/framed-basicauth-fails.sh | Github Open Source | Open Source | BSD-3-Clause | null | ocamlnet | UnixJunkie | Shell | Code | 30 | 88 | . helpers.sh
start_test_server \
-line 1 -file data/require-basicauth \
-line 9 -file data/require-basicauth
trap "stop_test_server" EXIT
request \
-realm testrealm -user testuser -password testpassword -basic-auth \
-get / \
-run
| 27,086 |
https://github.com/jtlivingston/earthquake-eventpages/blob/master/src/htdocs/modules/scientific/ScientificModule.js | Github Open Source | Open Source | LicenseRef-scancode-public-domain-disclaimer, LicenseRef-scancode-unknown-license-reference | 2,016 | earthquake-eventpages | jtlivingston | JavaScript | Code | 168 | 639 | 'use strict';
var EventModule = require('base/EventModule'),
Util = require('util/Util');
var DEFAULTS = {
title: 'Scientific',
hash: 'scientific',
cssUrl: 'modules/scientific/index.css',
pages: [
/**
* NOTE: pages that are bundled in the scientific module must be added
* to the "browserify:scie... | 6,005 |
https://github.com/JIAmengxuan/bwbble/blob/master/mg-ref/sample_usage.sh | Github Open Source | Open Source | MIT | null | bwbble | JIAmengxuan | Shell | Code | 144 | 644 | #!/bin/bash
#######################################
## compile mg-ref
#######################################
make clean; make
#######################################
## clean up the output directory
#######################################
if [ -d "mg-ref-output" ]; then
echo "directory mg-ref-output found"
rm m... | 30,803 |
https://github.com/cwkuehl/csbp/blob/master/CSBP/Services/Repositories/MaMandantRep.cs | Github Open Source | Open Source | MIT | null | csbp | cwkuehl | C# | Code | 117 | 360 | // <copyright file="MaMandantRep.cs" company="cwkuehl.de">
// Copyright (c) cwkuehl.de. All rights reserved.
// </copyright>
namespace CSBP.Services.Repositories
{
using System.Collections.Generic;
using CSBP.Apis.Services;
using Microsoft.EntityFrameworkCore;
/// <summary>
/// Klasse für MA_Mandant-Reposit... | 9,354 |
https://github.com/kaboudian/InterviewSeminarAtFDA/blob/master/programs/defib/fhn-electrodes/defib_s3.frag | Github Open Source | Open Source | MIT | null | InterviewSeminarAtFDA | kaboudian | GLSL | Code | 153 | 374 | #version 300 es
precision highp float ;
precision highp int ;
in vec2 cc ;
uniform sampler2D icolor ;
uniform sampler2D activeElectrodes ;
uniform sampler2D electrodeCoordinates ;
uniform float electrodeSize ;
layout (location = 0 ) out vec4 ocolor ;
#define paces(l) (texture( activeElectrodes, l).r... | 41,407 |
https://github.com/jogonzal/UwMachineLearningHw4/blob/master/Problem4SVM/Statistics/Transformer.cs | Github Open Source | Open Source | BSD-3-Clause | 2,017 | UwMachineLearningHw4 | jogonzal | C# | Code | 33 | 98 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Problem1BiasAndVariance.Statistics
{
public static class Transformer
{
public static double BoolToDouble(bool input)
{
return input ? 1.0 : 0.0;
}
}
}
| 50,204 |
https://github.com/StrahinjaJacimovic/mikrosdk_click_v2/blob/master/clicks/speaker/lib/include/speaker.h | Github Open Source | Open Source | MIT | 2,022 | mikrosdk_click_v2 | StrahinjaJacimovic | C | Code | 963 | 1,753 | /****************************************************************************
** Copyright (C) 2020 MikroElektronika d.o.o.
** Contact: https://www.mikroe.com/contact
**
** Permission is hereby granted, free of charge, to any person obtaining a copy
** of this software and associated documentation files (the "Software"... | 44,088 |
https://github.com/saluk/keyteki/blob/master/server/game/cards/01-Core/DeipnoSpymaster.js | Github Open Source | Open Source | AGPL-3.0-only | 2,020 | keyteki | saluk | JavaScript | Code | 51 | 169 | const Card = require('../../Card.js');
class DeipnoSpymaster extends Card {
setupCardAbilities(ability) {
this.omni({
target: {
cardType: 'creature',
controller: 'self',
gameAction: ability.actions.forRemainderOfTurn((context) => ({
... | 28,193 |
https://github.com/NunoEdgarGFlowHub/open-data-certificate/blob/master/db/migrate/20130613221052_add_api_id_to_response_cache_map.rb | Github Open Source | Open Source | MIT | 2,021 | open-data-certificate | NunoEdgarGFlowHub | Ruby | Code | 12 | 44 | class AddApiIdToResponseCacheMap < ActiveRecord::Migration
def change
add_column :response_cache_maps, :api_id, :string
end
end
| 32,202 |
https://github.com/aliyun/alibabacloud-ecs-easy-sdk/blob/master/incubator-plugins/preemptive-instance-recommendation/src/main/java/com/aliyun/ecs/easysdk/preemptiveinstance/impl/PreemptiveInstanceBaseServiceCachedImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | alibabacloud-ecs-easy-sdk | aliyun | Java | Code | 494 | 2,223 | /*
* Copyright (c) 2021-present, Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... | 32,765 |
https://github.com/daima3629/werewolf/blob/master/cogs/status.py | Github Open Source | Open Source | MIT | null | werewolf | daima3629 | Python | Code | 130 | 665 | from discord.ext import commands
# ゲーム開始前:nothing
# 参加者募集中:waiting
# ゲーム中:playing
class GameStatus(commands.Cog):
def __init__(self, bot):
self.bot = bot
async def cog_check(self, ctx):
if ctx.guild is None:
await ctx.send('サーバー内でのみ実行できるコマンドです')
return False
i... | 48,192 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.