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/SKupisz/sgk-news/blob/master/inbox/deleteMessage.php | Github Open Source | Open Source | MIT | 2,020 | sgk-news | SKupisz | PHP | Code | 117 | 414 | <?php
session_start();
if(!isset($_SESSION["zalogowany"])){
header("Location: ../");
exit();
}
if(!isset($_REQUEST["id"])){
header("Location: ../inbox.php");
exit();
}
else{
$id = $_REQUEST["id"];
$idc = (int)$id; // checking if int
$idc = (string)$idc;
if($id != $idc){
echo "wro... | 38,974 |
https://github.com/phatblat/macOSPrivateFrameworks/blob/master/PrivateFrameworks/CoreDuet/CDDevice.h | Github Open Source | Open Source | MIT | 2,022 | macOSPrivateFrameworks | phatblat | C | Code | 105 | 427 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "NSObject.h"
@class NSString;
@interface CDDevice : NSObject
{
BOOL _isDefaultPaired;
unsigned int _identifier;
NSString *_modelIdentifier;
}
@property BOOL i... | 13,809 |
https://github.com/USCDataScience/polar.usc.edu/blob/master/html/team19/spectrum-grouped-by-domain/tracemeek.com | Github Open Source | Open Source | Apache-2.0 | 2,023 | polar.usc.edu | USCDataScience | DIGITAL Command Language | Code | 2 | 28 | unit,count,min,max,average
inches,4,40.0,55.0,47.25
| 39,579 |
https://github.com/immuta/tap-immuta/blob/master/tap_immuta/schemas/audit.py | Github Open Source | Open Source | MIT | null | tap-immuta | immuta | Python | Code | 36 | 213 | from singer_sdk import typing as th
schema = th.PropertiesList(
th.Property("dateTime", th.StringType),
th.Property("dataSourceName", th.StringType),
th.Property("projectName", th.StringType),
th.Property("recordType", th.StringType),
th.Property("blobId", th.StringType),
th.Property("userId", ... | 51,098 |
https://github.com/isabella232/wireless-media-drive/blob/master/linux-2.6.35.3/arch/arm/mach-mx3/mx35_sdma_script_code_v2.h | Github Open Source | Open Source | Apache-2.0 | 2,021 | wireless-media-drive | isabella232 | C | Code | 1,180 | 5,999 | /*
* Copyright 2008-2010 Freescale Semiconductor, Inc. All Rights Reserved. */
/*
* 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
* the Free Software Foundation; either version 2 of the License, or
* (at your option) an... | 7,838 |
https://github.com/SkillsFundingAgency/das-providerevents/blob/master/src/api/SFA.DAS.Provider.Events.Api.Client/PaymentsEventsApiClientFactory.cs | Github Open Source | Open Source | MIT | 2,023 | das-providerevents | SkillsFundingAgency | C# | Code | 49 | 186 | using System.Net.Http;
using SFA.DAS.Provider.Events.Api.Client.Configuration;
namespace SFA.DAS.Provider.Events.Api.Client
{
public class PaymentsEventsApiClientFactory : IPaymentsEventsApiClientFactory
{
private readonly IPaymentsEventsApiClientConfiguration _configuration;
public PaymentsE... | 17,732 |
https://github.com/Gubancs/chess-profile/blob/master/src/main/webapp/resources/js/StateManager.js | Github Open Source | Open Source | Apache-2.0 | 2,017 | chess-profile | Gubancs | JavaScript | Code | 323 | 626 | /*
* Copyright 2016 TopClouders Hungary Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 13,696 |
https://github.com/nimashoghi/zxing-cpp-fork/blob/master/core/src/qrcode/QRFinderPatternFinder.cpp | Github Open Source | Open Source | Apache-2.0 | 2,019 | zxing-cpp-fork | nimashoghi | C++ | Code | 3,061 | 7,307 | /*
* Copyright 2016 Nu-book Inc.
* Copyright 2016 ZXing authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 47,935 |
https://github.com/sureshHARDIYA/intromat-fhir/blob/master/src/resources/1_0_2/profiles/orderresponse/mutation.js | Github Open Source | Open Source | MIT | 2,022 | intromat-fhir | sureshHARDIYA | JavaScript | Code | 184 | 575 | // Schemas
const OrderResponseSchema = require('../../schemas/orderresponse.schema.js');
const OperationOutcome = require('../../inputs/operationoutcome.input.js');
// Inputs
const OrderResponseInput = require('../../inputs/orderresponse.input.js');
// Scalars
const idScalar = require('../../scalars/id.scalar.js');
... | 51,794 |
https://github.com/ian76g/RailroadOnlineMapper/blob/master/utils/dtAbstractData.php | Github Open Source | Open Source | BSD-3-Clause | 2,021 | RailroadOnlineMapper | ian76g | PHP | Code | 18 | 44 | <?php
abstract class dtAbstractData
{
public abstract function getName();
public abstract function serialize();
public abstract function getSingleLenghtInBytes();
} | 19,292 |
https://github.com/shockzinfinity/sapHowmuch.WebAPI/blob/master/sapHowmuch.Api.Common/Extensions/ComObjectHelper.cs | Github Open Source | Open Source | MIT | 2,021 | sapHowmuch.WebAPI | shockzinfinity | C# | Code | 42 | 134 | using System.Runtime.InteropServices;
namespace sapHowmuch.Api.Common.Extensions
{
public static class ComObjectHelper
{
public static void ReleaseComObject(object instance)
{
if (instance != null)
{
try
{
while (Marshal.ReleaseComObject(instance) > 0) ;
}
catch { }
finally
{
... | 36,652 |
https://github.com/Wanggcong/SolutionSimilarityLearning/blob/master/utils/train_test.py | Github Open Source | Open Source | MIT | 2,020 | SolutionSimilarityLearning | Wanggcong | Python | Code | 515 | 2,435 | import time
import torch
import numpy as np
from metrics import AverageMeter,accuracy
from utils.write_data import WriteData
from sklearn.metrics import average_precision_score
def evaluate(query_feats, query_targets, gal_feats, gallery_targets):
# compute scores
all_scores = np.dot(query_feats.cpu().numpy()... | 20,546 |
https://github.com/FBISProjects/RetopaWeb/blob/master/src/pages/Admin_Dashboard/Transactions.jsx | Github Open Source | Open Source | MIT | null | RetopaWeb | FBISProjects | null | Spoken | 649 | 2,080 | import React, { useState, useEffect } from "react"
import { Table, Icon, Input, Select, Pagination, Tabs, Button } from "antd"
import { ColumnsTwo, TableTwo } from "../../components/Constants/Tableone"
import "../../scss/Table.scss"
import "../../scss/Retailer.scss"
import { CSVLink, CSVDownload } from "react-csv"
impo... | 44,289 |
https://github.com/SpencerBlum/fewpjs-removing-altering-and-inserting-html-lab-atlanta-web-021720/blob/master/index.js | Github Open Source | Open Source | LicenseRef-scancode-public-domain, LicenseRef-scancode-unknown-license-reference | 2,020 | fewpjs-removing-altering-and-inserting-html-lab-atlanta-web-021720 | SpencerBlum | JavaScript | Code | 31 | 94 | // Write your code here!
let element = document.querySelector("p#greeting");
element.innerHTML = 'Hello, DOM!'
let main = document.getElementById("main")
main.remove()
let newHeader = document.createElement("h1")
newHeader.id = "victory"
newHeader.innerHTML = "spencer is the champion"
| 47,440 |
https://github.com/kxxt/taichi/blob/master/python/taichi/ui/scene.py | Github Open Source | Open Source | MIT | null | taichi | kxxt | Python | Code | 577 | 1,687 | from taichi.core import ti_core as _ti_core
from taichi.lang.impl import field
from taichi.lang.kernel_impl import kernel
from taichi.lang.matrix import Vector
from taichi.lang.ops import atomic_add
from taichi.types.annotations import template
from taichi.types.primitive_types import f32
from .staging_buffer import (... | 45,367 |
https://github.com/dolphin-li/ClothDesigner/blob/master/Algorithm/cudpp/Cuda3DArray.h | Github Open Source | Open Source | MIT | 2,022 | ClothDesigner | dolphin-li | C | Code | 439 | 2,008 | #pragma once
#include <device_functions.h>
#include <driver_functions.h>
#include <vector_functions.h>
#include <channel_descriptor.h>
#include <surface_types.h>
#include "cuda_utils.h"
#include <intrin.h>
namespace Cuda3DArray_Internal
{
int add_ref(void* addr, int delta);
void copy_d2h(const cudaSurfaceObject_t a... | 51,123 |
https://github.com/Jafic/EZNEW/blob/master/EZNEW/Cache/SortedSet/Option/SortedSetRangeByRankOptions.cs | Github Open Source | Open Source | MIT | 2,021 | EZNEW | Jafic | C# | Code | 142 | 364 | using System.Collections.Generic;
using System.Threading.Tasks;
namespace EZNEW.Cache.SortedSet
{
/// <summary>
/// Sorted set range by rank options
/// </summary>
public class SortedSetRangeByRankOptions : CacheOptions<SortedSetRangeByRankResponse>
{
/// <summary>
/// Gets or sets... | 18,420 |
https://github.com/jyucsiro/gwt-ontology-lib/blob/master/ontology-lib/src/main/java/au/csiro/eis/ontology/resource/owlapi/OwlApiOntologyMediator.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | gwt-ontology-lib | jyucsiro | Java | Code | 1,751 | 9,186 | package au.csiro.eis.ontology.resource.owlapi;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.SortedSet;
import java.util.TreeSet;
import org.semanticweb.owlapi.model.IRI... | 43,064 |
https://github.com/shailjakant-3245/miwok/blob/master/app/src/main/java/com/example/android/miwok/NumbersActivity.java | Github Open Source | Open Source | Apache-2.0 | null | miwok | shailjakant-3245 | Java | Code | 633 | 1,831 | package com.example.android.miwok;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget... | 37,764 |
https://github.com/wolkenarchitekt/redgrease/blob/master/src/redgrease/typing.py | Github Open Source | Open Source | MIT | 2,022 | redgrease | wolkenarchitekt | Python | Code | 1,058 | 2,193 | # -*- coding: utf-8 -*-
# from __future__ import annotations
"""
Type variables, Type aliases and Protocol Types.
"""
__author__ = "Anders Åström"
__contact__ = "anders@lyngon.com"
__copyright__ = "2021, Lyngon Pte. Ltd."
__licence__ = """The MIT License
Copyright © 2021 Lyngon Pte. Ltd.
Permission is hereby granted,... | 30,425 |
https://github.com/morga549/budget-app-rn/blob/master/tests/integration/_cat.php | Github Open Source | Open Source | Apache-2.0 | 2,019 | budget-app-rn | morga549 | PHP | Code | 50 | 140 | <?php
/* Copyright 2015-present Facebook, Inc.
* Licensed under the Apache License, Version 2.0 */
array_shift($argv);
$files = $argv;
if (!count($files)) {
$files[] = '-';
}
foreach ($files as $file) {
if ($file == '-') {
stream_copy_to_stream(STDIN, STDOUT);
} else {
$fp = fopen($file, 'rb');
strea... | 28,834 |
https://github.com/yodaos-project/yodaos/blob/master/openwrt/target/linux/brcm2708/patches-4.4/0146-bcm2835-sdhost-Restore-ATOMIC-flag-to-PIO-sg-mapping.patch | Github Open Source | Open Source | Apache-2.0 | 2,022 | yodaos | yodaos-project | null | Spoken | 123 | 431 | From 681233bfac9474a1defb720fddf90a3087cd1ef4 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.org>
Date: Mon, 15 Feb 2016 10:00:27 +0000
Subject: [PATCH 146/381] bcm2835-sdhost: Restore ATOMIC flag to PIO sg mapping
Allocation problems have been seen in a wireless driver, and
this is the only change which... | 51,328 |
https://github.com/Timer-Q/fw/blob/master/src/containers/Iframe/router/index.js | Github Open Source | Open Source | MIT | null | fw | Timer-Q | JavaScript | Code | 37 | 124 | const systemNamePrefix = "iframe_"
import MainContainer from '@/containers/MainContainer.vue'
import IframeComponent from '@Iframe/containers/IframeComponent.vue'
export default [
{
path: '/iframe',
component: MainContainer,
children: [
{path: ':tag', component: IframeComponent,... | 42,587 |
https://github.com/hiroki-kitahara/LGW/blob/master/Assets/LGW/Scripts/UserSettings.cs | Github Open Source | Open Source | MIT | null | LGW | hiroki-kitahara | C# | Code | 141 | 435 | using HK.Framework.Systems;
using System;
using UnityEngine;
using UnityEngine.Assertions;
#if UNITY_EDITOR
using UnityEditor;
#endif
namespace LGW
{
/// <summary>
///
/// </summary>
[Serializable]
public sealed class UserSettings
{
private const string KeyName = "LGW.UserSettings";
... | 50,202 |
https://github.com/guoxiaohealth/medical-examination/blob/master/app/Model/MemberKind.php | Github Open Source | Open Source | MIT | 2,021 | medical-examination | guoxiaohealth | PHP | Code | 20 | 55 | <?php
namespace App\Model;
class MemberKind extends Model
{
protected $table = 'member_kinds';
protected $fillable = [
'kind', 'desc'
];
}
| 39,017 |
https://github.com/caocao0427/poi-tl/blob/master/poi-tl/src/main/java/com/deepoove/poi/xwpf/XWPFNumberingWrapper.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | poi-tl | caocao0427 | Java | Code | 187 | 528 | /*
* Copyright 2014-2021 Sayi
*
* 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... | 18,861 |
https://github.com/zby1329434052/lib-web/blob/master/lib-web/src/main/java/com/zhang/libweb/model/book/BookClassDTO.java | Github Open Source | Open Source | Apache-2.0 | null | lib-web | zby1329434052 | Java | Code | 38 | 114 | package com.zhang.libweb.model.book;
import java.io.Serializable;
import com.zhang.libweb.model.BaseDTO;
import lombok.Data;
/**
* book_class
* @author
*/
@Data
public class BookClassDTO extends BaseDTO implements Serializable {
/**
* 分类名称
*/
private String name;
private static final long... | 16,731 |
https://github.com/kira78/meson/blob/master/test cases/frameworks/4 qt/main.cpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | meson | kira78 | C++ | Code | 136 | 504 | #include <QApplication>
#include "mainWindow.h"
#if QT_VERSION > 0x050000
// include some random private headers
// As you're not supposed to use it, your system may miss
// qobject_p.h. To locate it try one of these commands:
// - dnf provides */private/qobject_p.h
// - apt-file search qobject_p.h
#include <pri... | 9,018 |
https://github.com/sandysuarezjimenez/HolandaCatalinaFw/blob/master/src/main/java/org/hcjf/io/net/http/HttpVersion.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | HolandaCatalinaFw | sandysuarezjimenez | Java | Code | 31 | 98 | package org.hcjf.io.net.http;
/**
* Contains all the http version that the server support.
*/
public interface HttpVersion {
String VERSION_1_0 = "HTTP/1.0";
String VERSION_1_1 = "HTTP/1.1";
String VERSION_2_0 = "HTTP/2.0";
}
| 41,836 |
https://github.com/hyds/hds-hydstra-definition/blob/master/lib/Hydstra/Hydrlmp.pm | Github Open Source | Open Source | Artistic-2.0 | 2,015 | hds-hydstra-definition | hyds | Perl | Code | 1,804 | 4,395 |
{
package Hydstra::Hydrlmp;
use Moose;
use Moose::Util::TypeConstraints;
__PACKAGE__->meta->error_class('Moose::Error::Croak');
use constant UC_TABLE_NAME => 'HYDRLMP';
use constant CHILD_OF => qw( gwpipe );
=head1 VERSION
Version 0.01
=cut
our $VERSION = '0.01';
=head1 SYNOPSIS
Use this module to create... | 32,508 |
https://github.com/CivicTechTO/open-cabinet/blob/master/openorders/alerts/views.py | Github Open Source | Open Source | MIT | 2,016 | open-cabinet | CivicTechTO | Python | Code | 211 | 605 | from flask import request, redirect, jsonify, url_for, render_template
from . import alerts_blueprint
from emailtoken import generate_confirmation_token, confirm_token
from validation import EmailSchema
from . import get_db
# from mailer import send_confirmation
@alerts_blueprint.route('subscribe', methods=['POST'])
d... | 19,883 |
https://github.com/DaoLam98/SpringBank/blob/master/frontend/src/app/services/user.service.ts | Github Open Source | Open Source | MIT | 2,021 | SpringBank | DaoLam98 | TypeScript | Code | 298 | 1,198 | import { Injectable } from '@angular/core';
import { HttpClient, HttpResponse } from '@angular/common/http';
import { BehaviorSubject, forkJoin, Observable } from 'rxjs';
import { KeycloakService } from 'keycloak-angular';
import { User, Role } from '../models/user.model';
import { KeyCloakTableOptions } from '../mode... | 9,369 |
https://github.com/robrich/orchestrator/blob/master/test/emitTaskDone.js | Github Open Source | Open Source | MIT | 2,020 | orchestrator | robrich | JavaScript | Code | 302 | 979 | /*jshint node:true */
/*global describe:false, it:false */
"use strict";
var Orchestrator = require('../');
var should = require('should');
require('mocha');
describe('orchestrator', function() {
describe('_emitTaskDone()', function() {
it('should emit task_stop if no err', function(done) {
var orchestrator, ... | 46,520 |
https://github.com/voirtimid/web-api/blob/master/src/main/java/mk/metalkat/webapi/models/enums/Status.java | Github Open Source | Open Source | Apache-2.0 | null | web-api | voirtimid | Java | Code | 12 | 53 | package mk.metalkat.webapi.models.enums;
public enum Status {
BEHIND,
NORMAL,
CANCELED,
TODAY,
FINISHED
}
| 18,366 |
https://github.com/hpyer/node-easywechat/blob/master/dist/MiniProgram/UniformMessage/UniformMessageClient.js | Github Open Source | Open Source | MIT | 2,022 | node-easywechat | hpyer | JavaScript | Code | 214 | 740 | 'use strict';
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const TemplateMessageClient_1 = __importDefault(require("../../OfficialAccount/TemplateMessage/TemplateM... | 51,237 |
https://github.com/NadinYrosh/animals/blob/master/js/scripts.js | Github Open Source | Open Source | MIT | 2,016 | animals | NadinYrosh | JavaScript | Code | 48 | 228 | $(document).ready(function() {
$("button.pan").click(function() {
$(".panda").show();
$(".panda").siblings().hide();
});
$("button.turt").click(function() {
$(".turtle").show();
$(".turtle").siblings().hide();
});
$("button.wild").click(function() {
$(".cat").show();
$(".cat").sibl... | 14,129 |
https://github.com/copley/University/blob/master/Undergraduate/NWEN303/Assignment 1/Submission/code/RecursiveArraySum.java | Github Open Source | Open Source | MIT | 2,016 | University | copley | Java | Code | 393 | 1,181 | import org.knowm.xchart.*;
import org.knowm.xchart.XYChartBuilder;
import java.io.IOException;
import java.util.ArrayList;
/**
* Created by danielbraithwt on 7/21/16.
*/
public class RecursiveArraySum extends Thread {
public static final int SIZE = 10000000;
public static final int STEP = 100000;
public... | 13,763 |
https://github.com/sven820/WebTest/blob/master/typescript/tsdemo/index.js | Github Open Source | Open Source | Apache-2.0 | null | WebTest | sven820 | JavaScript | Code | 44 | 124 | "use strict";
exports.__esModule = true;
var util_1 = require("./util");
var Person = /** @class */ (function () {
//构造函数
function Person(name) {
this.msg = 'person class';
this.name = name;
}
Person.prototype.hello = function () {
console.log(this.msg);
util_1["default"]... | 40,970 |
https://github.com/chncwang/mindspore/blob/master/mindspore/ccsrc/mindquantum/utils.cc | Github Open Source | Open Source | Apache-2.0 | 2,021 | mindspore | chncwang | C++ | Code | 251 | 601 | /**
* Copyright 2021 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 3,626 |
https://github.com/aleDanna/ods-raidplanner/blob/master/src/core/features/common/index.ts | Github Open Source | Open Source | Unlicense | 2,020 | ods-raidplanner | aleDanna | TypeScript | Code | 16 | 32 | export { commonReducer } from './reducer';
export { commonRoutes } from './routes';
export * from './types';
| 18,298 |
https://github.com/hczboy/algo/blob/master/src/main/java/my/czhhu/algo/classic/MyHeap.java | Github Open Source | Open Source | Apache-2.0 | null | algo | hczboy | Java | Code | 334 | 924 | package my.czhhu.algo.classic;
import java.util.Arrays;
public class MyHeap {
private int size = 0;
private int capacity = 100;
private int[] elem;
public MyHeap() {
super();
this.capacity = 20;
elem = new int[capacity];
}
public MyHeap(int[] elem) {
super();
this.elem = elem;
capacity = elem... | 3,047 |
https://github.com/weisso5/Spin.Swift/blob/master/SpinCombine-iOS/Spin_Combine.h | Github Open Source | Open Source | MIT | 2,022 | Spin.Swift | weisso5 | C | Code | 63 | 178 | //
// Spin_Combine_iOS.h
// Spin.Combine-iOS
//
// Created by Thibault Wittemberg on 2020-04-13.
// Copyright © 2020 Spinners. All rights reserved.
//
#import <Foundation/Foundation.h>
//! Project version number for Spin_Combine_iOS.
FOUNDATION_EXPORT double Spin_Combine_iOSVersionNumber;
//! Project version str... | 9,548 |
https://github.com/BlackGlory/lhast/blob/master/src/index.ts | Github Open Source | Open Source | MIT | null | lhast | BlackGlory | TypeScript | Code | 40 | 111 | export * as LHAST from './lhast.js'
export * as LHASTCompact from './lhast-compact.js'
export * from './lhast-schema.js'
export * from './lhast-compact-schema.js'
export * from './parse.js'
export * from './compact/index.js'
export * from './uncompact/index.js'
export * from './is.js'
export * from './validate.js'
| 26,429 |
https://github.com/alirizaadiyahsi/Nucleus/blob/master/src/Nucleus.Web.Vue/src/identity/identity-layout.scss | Github Open Source | Open Source | MIT | 2,022 | Nucleus | alirizaadiyahsi | SCSS | Code | 30 | 94 | .identity-form {
.card {
width: 450px;
form {
margin-top: 2rem;
}
.field {
margin-bottom: 1.5rem;
}
}
@media screen and (max-width: 960px) {
.card {
width: 80%;
}
}
} | 41,465 |
https://github.com/Owands/PathLossPredictionSatelliteImages/blob/master/predict.py | Github Open Source | Open Source | MIT | 2,020 | PathLossPredictionSatelliteImages | Owands | Python | Code | 354 | 1,362 | import argparse
import torch
from dataset_factory import dataset_factory
from model import SkynetModel
from torch import optim
from torch import nn
from torch.utils.tensorboard import SummaryWriter
from torch.optim import lr_scheduler
import matplotlib.pyplot as plt
from experimentlogger import load_experiment
from eas... | 22,681 |
https://github.com/davidlrichmond/macports-ports/blob/master/games/sdl_sopwith/files/src_swmain.c.patch | Github Open Source | Open Source | BSD-3-Clause | 2,022 | macports-ports | davidlrichmond | null | Spoken | 29 | 110 | --- src/swmain.c.orig 2010-09-06 23:30:15.000000000 +1000
+++ src/swmain.c 2011-09-10 03:55:17.000000000 +1000
@@ -24,6 +24,8 @@
//---------------------------------------------------------------------------
#include <stdio.h>
+/* needed to substitute SDL_Main for main */
+#include <SDL.h>
#include "timer.h"
| 50,184 |
https://github.com/SebiSebi/DataMine/blob/master/data_mine/nlp/RACE/constants.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | DataMine | SebiSebi | Python | Code | 10 | 46 | import os
from data_mine.utils import datamine_cache_dir
RACE_CACHE_DIR = os.path.join(datamine_cache_dir(), "RACE")
| 20,657 |
https://github.com/luke-h1/explore-education-statistics/blob/master/src/GovUk.Education.ExploreEducationStatistics.Publisher.Model/ViewModels/LegacyReleaseViewModel.cs | Github Open Source | Open Source | MIT | 2,022 | explore-education-statistics | luke-h1 | C# | Code | 32 | 79 | using System;
namespace GovUk.Education.ExploreEducationStatistics.Publisher.Model.ViewModels
{
public class LegacyReleaseViewModel
{
public Guid Id { get; set; }
public string Description { get; set; }
public string Url { get; set; }
}
} | 8,185 |
https://github.com/zhaozengj/ICRA2020-JLU-TARS_GO-Navigation/blob/master/roborts_planning/global_planner/global_planner_node.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,022 | ICRA2020-JLU-TARS_GO-Navigation | zhaozengj | C++ | Code | 981 | 3,819 | /****************************************************************************
* Copyright (C) 2019 RoboMaster.
*
* 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
* the Free Software Foundation, either version 3 of the ... | 46,407 |
https://github.com/ypsun-umd/ADC/blob/master/rpi/burnin/__init__.py | Github Open Source | Open Source | BSD-2-Clause | 2,019 | ADC | ypsun-umd | Python | Code | 8 | 31 | #!/usr/bin/env python3
name = "rpi.burnin"
version = "0.3.5"
| 18,478 |
https://github.com/rgarver/bigrecord/blob/master/bigrecord-driver/README.rdoc | Github Open Source | Open Source | MIT | 2,009 | bigrecord | rgarver | RDoc | Code | 219 | 472 | = Big Record Driver
Bigrecord drivers that use JRuby DRb servers to connect with databases through their native Java APIs. Currently supported databases are HBase and Cassandra.
== Requirements
* JRuby 1.3.0+
== Installation
(1) Install the latest Java Runtime for your operating system. There are many resources on... | 20,609 |
https://github.com/xinzhuzi/Record/blob/master/public/2020/05/08/Unity/ToLua/ToLua 介绍/ToLua/Lua/tolua.lua | Github Open Source | Open Source | MIT | 2,022 | Record | xinzhuzi | Lua | Code | 136 | 470 | --------------------------------------------------------------------------------
-- Copyright (c) 2015 - 2016 , 蒙占志(topameng) topameng@gmail.com
-- All rights reserved.
-- Use, modification and distribution are subject to the "MIT License"
-----------------------------------------------------------------... | 42,381 |
https://github.com/CatalinPuscoci/rust-coopsched-unikraft/blob/master/glue.h | Github Open Source | Open Source | BSD-3-Clause | null | rust-coopsched-unikraft | CatalinPuscoci | C | Code | 6 | 17 | #define errno_location __errno
#define NULL 0
| 45,650 |
https://github.com/anderson-uchoa/DyMMer/blob/master/src/br/ufc/lps/model/contextaware/Context.java | Github Open Source | Open Source | MIT | 2,016 | DyMMer | anderson-uchoa | Java | Code | 138 | 427 | package br.ufc.lps.model.contextaware;
import java.util.List;
import br.ufc.lps.splar.core.fm.FeatureModel;
public class Context {
private String name;
private List<Resolution> resolutions;
private FeatureModel featureModel;
private List<Constraint> constraints;
public Context(String name, List<Resolution> r... | 33,970 |
https://github.com/Hospitalxona/sistema/blob/master/storage/framework/views/db16fde285166db0651f157a484b1eebc9a9f7d8.php | Github Open Source | Open Source | MIT | 2,020 | sistema | Hospitalxona | PHP | Code | 30 | 191 | <?php $__env->startSection('contenido'); ?>
<br><br><br><br><br><br>
<span><marquee direction="left" style="background:#0DA2CA">-</marquee></span>
<center>
<marquee><img src="<?php echo e(asset('laravel/img/isem.png')); ?>" width="260" height="210">
</marquee>
... | 28,945 |
https://github.com/wwe-johndpope/swift-tensorflow/blob/master/tensorflow/Tensorflow.DeviceAttributes.proto.swift | Github Open Source | Open Source | MIT | 2,017 | swift-tensorflow | wwe-johndpope | Swift | Code | 3,044 | 9,264 | /// Generated by the Protocol Buffers 3.2.0 compiler. DO NOT EDIT!
/// Protobuf-swift version: 3.0.13
/// Source file "device_attributes.proto"
/// Syntax "Proto3"
import Foundation
import ProtocolBuffers
public struct Tensorflow { }
public extension Tensorflow {
public struct DeviceAttributesRoot {
pu... | 25,332 |
https://github.com/andersfylling/rolerboler/blob/master/vendor/github.com/s1kx/unison/commandPermission.go | Github Open Source | Open Source | MIT | 2,017 | rolerboler | andersfylling | Go | Code | 87 | 217 | package unison
// import "github.com/bwmarrin/discordgo"
// Designed to handle X guilds per bot instance
type CommandPermission struct {
// Used for specific User banning on a per command basis
BannedUserIDs []string // *discordgo.User.ID
// Users that has been given access to a command even though they do not ha... | 7,390 |
https://github.com/code-corps/code-corps-ember/blob/master/tests/helpers/setup-mirage-for-integration.js | Github Open Source | Open Source | MIT | 2,018 | code-corps-ember | code-corps | JavaScript | Code | 11 | 45 | import mirageInitializer from '../../initializers/ember-cli-mirage';
export default function startMirage(container) {
mirageInitializer.initialize(container);
}
| 44,199 |
https://github.com/yongaru/pngtastic/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,015 | pngtastic | yongaru | Ignore List | Code | 3 | 8 | bin
build
target
| 12,601 |
https://github.com/Galsor/KBNPathfinder/blob/master/src/initialisations.py | Github Open Source | Open Source | MIT | null | KBNPathfinder | Galsor | Python | Code | 41 | 172 | from src.spatial.find import get_closest_node_id
from src.structures.graph import KBNGraph
from src.structures.node import Node
def from_node_with_max_score(graph: KBNGraph) -> Node:
return graph.get_node_with_max_score()
def from_closest_node(graph: KBNGraph, x: float, y: float) -> Node:
nodes_coords_df = ... | 1,946 |
https://github.com/rwcoding/rwup/blob/master/app/Http/Apis/User/ListApi.php | Github Open Source | Open Source | MIT | null | rwup | rwcoding | PHP | Code | 110 | 405 | <?php
namespace App\Http\Apis\User;
use App\Http\Apis\BaseApi;
use App\Models\UserModel;
/**
* @property int page
* @property int page_size
* @property string username
* @property int role_id
*/
class ListApi extends BaseApi
{
public function rules(): array
{
return [
"page" => ... | 6,685 |
https://github.com/HubSpot/hubspot-api-php/blob/master/lib/Discovery/Cms/AuditLogs/Discovery.php | Github Open Source | Open Source | 2,023 | hubspot-api-php | HubSpot | PHP | Code | 19 | 88 | <?php
namespace HubSpot\Discovery\Cms\AuditLogs;
use HubSpot\Client\Cms\AuditLogs\Api\AuditLogsApi;
use HubSpot\Discovery\DiscoveryBase;
/**
* @method AuditLogsApi auditLogsApi()
*/
class Discovery extends DiscoveryBase
{
}
| 36,587 | |
https://github.com/GGupzHH/vuex-namespaced-structure/blob/master/src/mixins/index.js | Github Open Source | Open Source | MIT | 2,021 | vuex-namespaced-structure | GGupzHH | JavaScript | Code | 12 | 35 |
import RulesForm from '@/mixins/RulesForm'
export default {
mixins: [
RulesForm
]
}
| 16,711 |
https://github.com/andriusdgt/the-dots-backend/blob/master/build.gradle | Github Open Source | Open Source | MIT | 2,020 | the-dots-backend | andriusdgt | Gradle | Code | 70 | 419 | plugins {
id 'org.springframework.boot' version '2.2.6.RELEASE'
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
id 'com.github.johnrengelman.shadow' version '5.2.0'
id 'application'
}
repositories {
jcenter()
}
dependencies {
implementation project(':the-dots-core')
runtimeOnl... | 11,316 |
https://github.com/flatlogic/sing-app/blob/master/node_modules/es5-ext/string/from-code-point/shim.js | Github Open Source | Open Source | ISC, MIT | 2,021 | sing-app | flatlogic | JavaScript | Code | 127 | 399 | // Based on:
// http://norbertlindenberg.com/2012/05/ecmascript-supplementary-characters/
// and:
// https://github.com/mathiasbynens/String.fromCodePoint/blob/master
// /fromcodepoint.js
"use strict";
var floor = Math.floor, fromCharCode = String.fromCharCode;
// eslint-disable-next-line no-unused-vars
module.expor... | 21,267 |
https://github.com/pmtresearch/sci-notes/blob/master/app/helpers/client_api/users/user_teams_helper.rb | Github Open Source | Open Source | MIT | null | sci-notes | pmtresearch | Ruby | Code | 19 | 62 | module ClientApi
module Users
module UserTeamsHelper
def retrive_role_name(index)
return unless index
['Guest', 'Normal user', 'Administrator'].at(index)
end
end
end
end
| 37,096 |
https://github.com/ryanberg/color-color/blob/master/src/ColorsPlot.svelte | Github Open Source | Open Source | MIT | 2,021 | color-color | ryanberg | null | Spoken | 300 | 1,127 | <style>
h3 {
@apply text-sm font-bold text-gray-700;
}
.subtitle {
@apply font-normal text-gray-600;
}
.wrapper {
@apply grid mt-2 p-1 bg-gray-100;
grid-template-columns: 1fr max-content;
}
.legend {
@apply pl-1 font-mono text-gray-600 text-xs flex flex-col justify-between;
}
s... | 6,569 |
https://github.com/mpneuried/node-pi-photobooth/blob/master/_src/lib/config.coffee | Github Open Source | Open Source | MIT | null | node-pi-photobooth | mpneuried | CoffeeScript | Code | 500 | 1,205 | # # Config
#
# ### Exports: *Instance*
#
# This module encapsulates the whole configuration to be able to require it everywhere
# **npm modules**
extend = require( "extend" )
_ = require( "lodash" )
# load the Package json
PackageJSON = require( "../package.json" )
# ## Config Defaults
DEFAULT =
version: PackageJS... | 16,803 |
https://github.com/jahau/addons/blob/master/tensorflow_addons/optimizers/rectified_adam_test.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | addons | jahau | Python | Code | 500 | 2,195 | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 50,900 |
https://github.com/frontzhm/gulpDemo/blob/master/test/mocha.js | Github Open Source | Open Source | MIT | null | gulpDemo | frontzhm | JavaScript | Code | 138 | 353 | const { add, mul, cover } = require('../src/math')
const { should, expect, assert } = require('chai')
describe('#math', function () {
describe('#indexOf()', function () {
it('should return -1 when the value is not present', function () {
assert.equal(-1, [1, 2, 3].indexOf(4));
});
}... | 44,739 |
https://github.com/jeffisabelle/ddosawareness/blob/master/src/content/licenseDialog.js | Github Open Source | Open Source | BSD-2-Clause, BSD-4-Clause | 2,012 | ddosawareness | jeffisabelle | JavaScript | Code | 28 | 123 | Components.utils.import("resource://ddospreventer/ddosPrefs.js");
function doOK(){
/**let tBox = document.getElementById("ddos-pref-textbox");
let messageCount = XULSchool.Prefs.count;
if(tbox) {
tBox.value = messageCount;
} */
return true;
}
function doCancel(){
// window.alert(prefs.accessPerMi... | 47,050 |
https://github.com/west1636/RDM-ember-osf-web/blob/master/lib/osf-components/app/components/files/widget/component.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | RDM-ember-osf-web | west1636 | JavaScript | Code | 6 | 21 | export { default } from 'osf-components/components/files/widget/component';
| 32,972 |
https://github.com/123099/QuestJobs/blob/master/libs/craftbukkit/src/main/java/net/minecraft/server/TileEntityLightDetector.java | Github Open Source | Open Source | MIT | null | QuestJobs | 123099 | Java | Code | 45 | 144 | package net.minecraft.server;
public class TileEntityLightDetector extends TileEntity {
public TileEntityLightDetector() {}
public void h() {
if (this.world != null && !this.world.isStatic && this.world.getTime() % 20L == 0L) {
this.h = this.q();
if (this.h instanceof BlockDay... | 41,233 |
https://github.com/dfrezell/gostfix/blob/master/cmd/master/main.go | Github Open Source | Open Source | MIT | 2,022 | gostfix | dfrezell | Go | Code | 331 | 986 | package main
import (
"fmt"
"os"
"os/signal"
"path/filepath"
"syscall"
"github.com/gostfix/gostfix/internal/global"
"github.com/gostfix/gostfix/internal/util"
"github.com/alecthomas/kong"
)
func main() {
// Initialize
syscall.Umask(077)
if os.Getenv(global.CONF_ENV_VERB) != "" {
util.MsgVerbose = 1
}... | 42,021 |
https://github.com/samvera/hyrax/blob/master/spec/forms/hyrax/forms/collection_form_spec.rb | Github Open Source | Open Source | Apache-2.0 | 2,023 | hyrax | samvera | Ruby | Code | 483 | 1,628 | # frozen_string_literal: true
RSpec.describe Hyrax::Forms::CollectionForm, skip: !(Hyrax.config.collection_class < ActiveFedora::Base) do
let(:collection) { build(:collection_lw) }
let(:ability) { Ability.new(create(:user)) }
let(:repository) { double }
let(:form) { described_class.new(collection, ability, repo... | 40,914 |
https://github.com/dutinmeow/library/blob/master/verify/discrete-log.yosupo-discrete-logarithm.test.cpp | Github Open Source | Open Source | MIT | 2,022 | library | dutinmeow | C++ | Code | 42 | 135 | #define PROBLEM "https://judge.yosupo.jp/problem/discrete_logarithm_mod"
#include <bits/stdc++.h>
using namespace std;
#include "math/discrete-log.hpp"
int main() {
int TC;
cin >> TC;
while (TC--) {
long long A, B, mod;
cin >> A >> B >> mod;
cout << math::discrete_log(A, B, mod) << '\n';
}
} | 11,133 |
https://github.com/ArnoldasSid/vilnius-carpool/blob/master/src/packages/carpool-view-map/routes.coffee | Github Open Source | Open Source | MIT | 2,021 | vilnius-carpool | ArnoldasSid | CoffeeScript | Code | 39 | 153 | Router.map ()->
@route 'Register', path: '/register'
@route 'CarpoolLogin', path: '/map/login', controller: "CarpoolMapController"
@route 'CarpoolMap', path: '/map'
@route 'CarpoolTrip', path: '/map/trip'
# Mobile views
@route 'ShowRide', path: '/map/showRide'
@route 'ShowDrive', path: '/map/showDrive'
... | 26,161 |
https://github.com/ginlove0/repo_erp_nova/blob/master/database/migrations/2020_02_11_032105_add_shipping_method_to_sale_order.php | Github Open Source | Open Source | MIT | 2,020 | repo_erp_nova | ginlove0 | PHP | Code | 61 | 215 | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddShippingMethodToSaleOrder extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('sale_o... | 23,348 |
https://github.com/Teezkad/quizroom-beta/blob/master/node_modules/nativescript-telerik-ui-pro/platforms/ios/TelerikUI.framework/Headers/TKChartLineSeries.h | Github Open Source | Open Source | Apache-2.0 | 2,022 | quizroom-beta | Teezkad | C | Code | 70 | 161 | //
// TKChartLineSeries.h
// TelerikUI
//
// Copyright (c) 2013 Telerik. All rights reserved.
//
#import "TKChartSeries.h"
/**
Represents TKChart line series.
*/
@interface TKChartLineSeries : TKChartSeries
/**
If distance between hit and line is bigger, the selection is cleared. By default, it is 25 pixels.
*... | 37,224 |
https://github.com/ahellander/fedn/blob/master/fedn/fedn/common/tracer/mongotracer.py | Github Open Source | Open Source | Apache-2.0 | null | fedn | ahellander | Python | Code | 52 | 216 |
from fedn.common.tracer.tracer import Tracer
from fedn.common.storage.db.mongo import connect_to_mongodb
class MongoTracer(Tracer):
def __init__(self):
try:
self.mdb = connect_to_mongodb()
self.collection = self.mdb['status']
except Exception as e:
print("FAILE... | 30,487 |
https://github.com/isabella232/ld-relay/blob/master/internal/core/internal/metrics/test_utils_test.go | Github Open Source | Open Source | Apache-2.0 | 2,020 | ld-relay | isabella232 | Go | Code | 355 | 1,257 | package metrics
import (
"encoding/json"
"testing"
"time"
"github.com/pborman/uuid"
"github.com/stretchr/testify/require"
"github.com/launchdarkly/ld-relay/v6/config"
st "github.com/launchdarkly/ld-relay/v6/internal/core/sharedtest"
"gopkg.in/launchdarkly/go-sdk-common.v2/ldlog"
"gopkg.in/launchdarkly/go-s... | 41,513 |
https://github.com/finworks/glass/blob/master/repository/GemStone-ANSI-Streams.package/FileStream.class/class/on..st | Github Open Source | Open Source | MIT | 2,016 | glass | finworks | null | Spoken | 6 | 15 | instance creation
on: aCollection
self shouldNotImplement | 6,925 |
https://github.com/1-2-3-4/nicolekuprienko/blob/master/demos/form-promo.php | Github Open Source | Open Source | MIT | 2,016 | nicolekuprienko | 1-2-3-4 | PHP | Code | 2,124 | 9,098 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1"><title>
Promo - Mac.com
</title>
<?php require '_form-header.php'; ?>
</head>
<body>
<?php require '_form-nav.php'; ?>
<form nam... | 27,759 |
https://github.com/alldatacenter/alldata/blob/master/govern/data-security/ranger/security-admin/src/main/java/org/apache/ranger/service/XPolicyExportAuditService.java | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause, WTFPL, MIT, GPL-2.0-only | 2,023 | alldata | alldatacenter | Java | Code | 229 | 825 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 36,684 |
https://github.com/saltfor/SinemaBiletSistemi/blob/master/FormFilmEkle.cs | Github Open Source | Open Source | MIT | null | SinemaBiletSistemi | saltfor | C# | Code | 400 | 1,790 | using System;
using System.Data.OleDb;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace sinema_otomasyonu
{
public partial class FormFilmEkle : Form
{
public FormFilmEkle(... | 11,801 |
https://github.com/leijiancd/arcgis-cookbook/blob/master/cookbooks/arcgis-server/attributes/default.rb | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,016 | arcgis-cookbook | leijiancd | Ruby | Code | 186 | 487 | #
# Cookbook Name:: arcgis-server
# Attributes:: default
#
# Copyright 2015 Esri
#
# 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 ... | 11,998 |
https://github.com/SeeForward/SysMonitor/blob/master/src/include/monitor/TcpConn.h | Github Open Source | Open Source | MIT | 2,018 | SysMonitor | SeeForward | C | Code | 111 | 457 | #ifndef __TCP_CONN_H__
#define __TCP_CONN_H__
#include "TypeDef.h"
#include "TcpInode.h"
#include <string>
#include <vector>
//TCP connection state
#define NS_TCP_UNKNOW 0
#define NS_TCP_CLOSED 1
#define NS_TCP_LISTEN 2
#define NS_TCP_SYN_SENT 3
#define NS_TCP_SYN_RCVD 4... | 21,740 |
https://github.com/bdqnghi/j2cstranslator/blob/master/J2CSMapping/src/IBM/ICU/Text/UnicodeDecompressor.cs | Github Open Source | Open Source | ICU | 2,018 | j2cstranslator | bdqnghi | C# | Code | 2,529 | 8,428 | /*
*******************************************************************************
* Copyright (C) 1996-2007, International Business Machines Corporation and *
* others. All Rights Reserved. *
*************************************************************************... | 27,968 |
https://github.com/alexup71rus/pam/blob/master/js/classes/RectangleRuler.js | Github Open Source | Open Source | MIT | null | pam | alexup71rus | JavaScript | Code | 617 | 2,605 | export default class RectangleRuler {
constructor() {
this.action = '';
this.resizeSide = '';
this.rect = {};
this.rectangleNode = false;
this.tooltipSizeNode = false;
this.tooltipPosNode = false;
this.bind();
}
create() {
const html = `
... | 9,139 |
https://github.com/nodejsera/100daysofcode/blob/master/day1-htmlRenderingUsingNodejs/test.js | Github Open Source | Open Source | MIT | 2,020 | 100daysofcode | nodejsera | JavaScript | Code | 60 | 169 | const Path = require('path');
const fs = require('fs');
var templatepath = Path.join(__dirname, '/');
var fileReadStream = fs.createReadStream(templatepath + 'index.html');
var emailTemplate = '';
fileReadStream.on('data', function (buffer) {
emailTemplate += buffer.toString();
});
fileReadStream... | 39,054 |
https://github.com/CosmoStat/lenspack/blob/master/lenspack/peaks.py | Github Open Source | Open Source | MIT | 2,023 | lenspack | CosmoStat | Python | Code | 686 | 1,511 | # -*- coding: utf-8 -*-
"""PEAKS MODULE
This module contains functions for detecting and counting peaks (local maxima)
in images. Peak counts in weak-lensing maps are a useful statistic for
constraining cosmological models.
"""
import numpy as np
def find_peaks2d(image, threshold=None, ordered=True, mask=None,
... | 45,549 |
https://github.com/skafdasschaf/lilypond-grammar/blob/master/grammars/lilypond-notenames-de.cson | Github Open Source | Open Source | MIT | null | lilypond-grammar | skafdasschaf | CoffeeScript | Code | 35 | 321 | 'name': 'LilyPond-notenames-de'
'patterns': [
{
'content': 'LilyPond note or chord abbreviation'
'match': '\\b(c|ces|ceses|cis|cisis|d|des|deses|dis|disis|e|es|eses|eis|eisis|f|fes|feses|fis|fisis|g|ges|geses|gis|gisis|a|as|ases|ais|aisis|h|b|bes|his|hisis)(\'*,*)([?!]?)(128|64|32|16|8|4|2|1|\\breve|\\longa|\... | 12,179 |
https://github.com/duki87/ofinger/blob/master/resources/views/layouts/front.blade.php | Github Open Source | Open Source | MIT | 2,019 | ofinger | duki87 | PHP | Code | 434 | 2,709 | <!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
... | 52,206 |
https://github.com/PhantomX7/uph-php/blob/master/pertemuan13/routes/web.php | Github Open Source | Open Source | MIT | 2,019 | uph-php | PhantomX7 | PHP | Code | 251 | 1,043 | <?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| ... | 3,563 |
https://github.com/zealoussnow/chromium/blob/master/third_party/blink/web_tests/http/tests/serviceworker/resources/fetch-script-onerror.php | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | 2,022 | chromium | zealoussnow | PHP | Code | 7 | 34 | <?php
header("Access-Control-Allow-Origin: *");
header("Content-Type: application/javascript");
?>
UndefinedReference
| 52,107 |
https://github.com/convox/convox/blob/master/vendor/github.com/convox/stdcli/reader.go | Github Open Source | Open Source | Apache-2.0 | 2,023 | convox | convox | Go | Code | 100 | 275 | package stdcli
import (
"io"
"os"
"golang.org/x/crypto/ssh/terminal"
)
var (
DefaultReader *Reader
)
type Reader struct {
io.Reader
}
func init() {
DefaultReader = &Reader{os.Stdin}
}
func (r *Reader) IsTerminal() bool {
if f, ok := r.Reader.(*os.File); ok {
return IsTerminal(f)
}
return false
}
func ... | 24,149 |
https://github.com/onezens/QQTweak/blob/master/qqtw/qqheaders7.2/AIOGrayTipsModel.h | Github Open Source | Open Source | MIT | 2,020 | QQTweak | onezens | C | Code | 116 | 352 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "TipsMessageModel.h"
@class NSString;
@interface AIOGrayTipsModel : TipsMessageModel
{
NSString *_brief;
_Bool _isRemind;
_Bool _showAsLastest;
unsigned lo... | 49,860 |
https://github.com/invm/whiskrs/blob/master/client/src/components/posts/PostModal.js | Github Open Source | Open Source | MIT | null | whiskrs | invm | JavaScript | Code | 278 | 970 | import React, { Component } from 'react';
import {
Button,
Modal,
ModalHeader,
ModalBody,
Form,
FormGroup,
Label,
Input,
FormText,
Col
} from 'reactstrap';
import { connect } from 'react-redux';
import { addPost } from '../../actions/postActions';
import PropTypes from 'prop-types';
class PostModal... | 39,265 |
https://github.com/fluid-project/engage/blob/master/framework/js/user.js | Github Open Source | Open Source | Apache-2.0 | null | engage | fluid-project | JavaScript | Code | 461 | 1,092 | /*
Copyright 2010 University of Toronto
Licensed under the Educational Community License (ECL), Version 2.0 or the New
BSD license. You may not use this file except in compliance with one these
Licenses.
You may obtain a copy of the ECL 2.0 License and BSD License at
https://source.fluidproject.org/svn/LICENSE.... | 23,751 |
https://github.com/ike-cunha/ProjetoBancoDeItens/blob/master/ProjetoBancoDeItens/Data/Migrations/20190602134649_ItemDB.cs | Github Open Source | Open Source | MIT | null | ProjetoBancoDeItens | ike-cunha | C# | Code | 113 | 504 | using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
namespace ProjetoBancoDeItens.Data.Migrations
{
public partial class ItemDB : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
... | 24,696 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.