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/kwu83tw/freezer/blob/master/freezer/storage/fslike.py | Github Open Source | Open Source | MIT | 2,022 | freezer | kwu83tw | Python | Code | 283 | 912 | # (c) Copyright 2014,2015 Hewlett-Packard Development Company, L.P.
#
# 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 ap... | 22,963 |
https://github.com/FullScreenShenanigans/SpriteMakr-Neue/blob/master/Source/Components/Sections/SettingsSection.tsx | Github Open Source | Open Source | MIT | 2,018 | SpriteMakr-Neue | FullScreenShenanigans | TypeScript | Code | 184 | 685 | /// <reference path="../../References/react.d.ts" />
/// <reference path="../../References/react-dom.d.ts" />
/// <reference path="../../References/react-global.d.ts" />
/// <reference path="SettingsSection.d.ts" />
/// <reference path="Header.tsx" />
/// <reference path="../Inputs/TextInput.tsx" />
/// <reference pa... | 22,703 |
https://github.com/miguelsaddress/play-scala-slick-user-management-seed/blob/master/test/com/mamoreno/playseed/unit/forms/validators/SignUpDataValidatorSpec.scala | Github Open Source | Open Source | CC0-1.0 | 2,017 | play-scala-slick-user-management-seed | miguelsaddress | Scala | Code | 158 | 528 | import org.scalatestplus.play._
import play.api.test.Helpers._
import org.scalatest.FlatSpec
import org.scalatest.Matchers
import scala.util.Success
import org.scalatest.mockito.MockitoSugar
import scala.concurrent.ExecutionContext.Implicits.global
import play.api.test.WithApplication
import com.mamoreno.playseed.auth... | 23,369 |
https://github.com/Cent-Luc/Hotel_Reservation/blob/master/dashboard/views.py | Github Open Source | Open Source | MIT-0 | null | Hotel_Reservation | Cent-Luc | Python | Code | 152 | 650 | from django.contrib.auth.mixins import (
LoginRequiredMixin,
UserPassesTestMixin
)
from django.views.generic import ListView, DetailView
from django.views.generic.edit import UpdateView, DeleteView, CreateView
from django.urls import reverse_lazy
from rooms.models import RoomCategory
from bookedrooms.models im... | 19,079 |
https://github.com/devjangir/CrudDemo/blob/master/CrudTest/ViewController.h | Github Open Source | Open Source | MIT | 2,014 | CrudDemo | devjangir | Objective-C | Code | 28 | 84 | //
// ViewController.h
// CrudTest
//
// Created by devdutt on 12/1/14.
// Copyright (c) 2014 Devjangir. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
| 12,382 |
https://github.com/tdddlmzd/-/blob/master/src/components/shipMap/echarts.vue | Github Open Source | Open Source | MIT | null | - | tdddlmzd | Vue | Code | 488 | 1,874 | <style>
</style>
<template>
<div id="myChart" style="width:100%;height:100%"></div>
</template>
<script>
// vue文件中引入echarts工具
// vue文件中引入echarts工具
let echarts = require("echarts/lib/echarts");
require("echarts/lib/chart/line");
// 以下的组件按需引入
require("echarts/lib/component/tooltip"); // tooltip组件
require("echarts/lib/c... | 37,454 |
https://github.com/Lucasmg37/anime-tv-api/blob/master/app/readable/smali/com/google/android/exoplayer2/mediacodec/MediaCodecInfo.smali | Github Open Source | Open Source | MIT | 2,020 | anime-tv-api | Lucasmg37 | Smali | Code | 2,369 | 13,324 | .class public final Lcom/google/android/exoplayer2/mediacodec/MediaCodecInfo;
.super Ljava/lang/Object;
.source "MediaCodecInfo.java"
# annotations
.annotation build Landroid/annotation/TargetApi;
value = 0x10
.end annotation
# static fields
.field public static final TAG:Ljava/lang/String; = "MediaCodecInfo"
... | 7,995 |
https://github.com/CircuitMess/Wheelson-Library/blob/master/src/MarkerDetection/Aruco/Marker.h | Github Open Source | Open Source | MIT | 2,021 | Wheelson-Library | CircuitMess | C | Code | 361 | 674 | #ifndef TAGDETECTION_MARKER_H
#define TAGDETECTION_MARKER_H
#include "MarkerInfo.h"
namespace Aruco {
/**
* Class is used to represent aruco markers.
* All markers are assumed to be 5x5 markers capable of 1024 options, after considering rotation and error detection.
*/
class Marker {
public:
/**
* Contain all ... | 28,329 |
https://github.com/Nickko04/datacatalog-datahub/blob/master/datahub-web-react/src/app/entity/dataset/profile/schema/SchemaTags.tsx | Github Open Source | Open Source | Apache-2.0 | 2,021 | datacatalog-datahub | Nickko04 | TypeScript | Code | 56 | 159 | import { Space, Badge } from 'antd';
import React from 'react';
import { Tag } from '../stories/sampleSchema';
type Props = {
tags: Tag[];
};
export default function SchemaTags({ tags }: Props) {
return (
<Space>
{tags.map((tag) => (
<Badge
key={`${tag.n... | 49,128 |
https://github.com/KanSmith/LiveCam/blob/master/LiveCam/Core/Particles/Hair.cpp | Github Open Source | Open Source | MIT | null | LiveCam | KanSmith | C++ | Code | 732 | 2,385 | #include "Hair.h"
#include <Common/kdtree.h>
CollSphere::CollSphere()
{
radius = 1.0;
}
bool CollSphere::contains(const Vec3 &v) const
{
return length_sq(v - center) <= radius * radius;
}
Vec3 CollSphere::project_surf(const Vec3 &v) const
{
return center + normalize(v - center) * radius;
}
Hair::Hair()
{
hair_... | 50,422 |
https://github.com/de-jcup/sechub/blob/master/sechub-scan/src/main/java/com/mercedesbenz/sechub/domain/scan/product/ProductExecutorContextFactory.java | Github Open Source | Open Source | MIT, ANTLR-PD, LicenseRef-scancode-generic-exception, BSD-3-Clause, LGPL-2.0-or-later, LGPL-2.1-only, GPL-1.0-or-later, LicenseRef-scancode-oracle-openjdk-exception-2.0, MPL-1.1, MPL-2.0, CC-PDDC, LicenseRef-scancode-warranty-disclaimer, EPL-2.0, GPL-2.0-only, EPL-1.0, CC0-1.0, Classpath-exception-2.0, Apache-2.0, LGPL... | 2,023 | sechub | de-jcup | Java | Code | 55 | 263 | // SPDX-License-Identifier: MIT
package com.mercedesbenz.sechub.domain.scan.product;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.mercedesbenz.sechub.domain.scan.SecHubExecutionContext;
import com.mercedesbenz.sechub... | 16,668 |
https://github.com/salsadigitalauorg/ckan/blob/master/ckan/model/follower.py | Github Open Source | Open Source | BSD-3-Clause | null | ckan | salsadigitalauorg | Python | Code | 553 | 2,306 | # encoding: utf-8
from __future__ import annotations
import datetime as _datetime
from typing import Generic, Optional, Type, TypeVar
import sqlalchemy
from typing_extensions import Self
import ckan.model
import ckan.model.meta as meta
import ckan.model.core as core
import ckan.model.domain_object as domain_object
... | 17,183 |
https://github.com/ezgikaysi/koding/blob/master/go/src/koding/klient/gatherrun/exporter.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | koding | ezgikaysi | Go | Code | 130 | 359 | package gatherrun
import (
"bytes"
"encoding/json"
"net/http"
)
// defaultKodingURI is the value to send gather data.
const defaultKodingURI = "https://koding.com/-/ingestor"
// Exporter defines the interface for sending gather data from
// user VMs to external server.
type Exporter interface {
SendStats(*Gather... | 50,824 |
https://github.com/vathroh/oldapp/blob/master/resources/views/kurangupload/index.blade.php | Github Open Source | Open Source | MIT | null | oldapp | vathroh | PHP | Code | 123 | 674 | @extends('layouts.app')
@section('content')
<form method="post" action="/kurangupload" enctype="multipart/form-data">
@csrf
<div class="row">
<div class="col-5">
<div class="form-group">
<div class="row">
<div class="col">
<label ... | 37,642 |
https://github.com/t83714/scalable-frontend-with-elm-or-redux/blob/master/fractal-component/src/components/RandomGifPair/sagas/index.js | Github Open Source | Open Source | MIT | 2,021 | scalable-frontend-with-elm-or-redux | t83714 | JavaScript | Code | 131 | 396 | import * as actions from "../actions";
import * as actionTypes from "../actions/types";
import {
actions as RandomGifActions,
actionTypes as RandomGifActionTypes
} from "../../RandomGif";
function* mainSaga(effects) {
yield effects.takeEvery(
RandomGifActionTypes.LOADING_START,
function*() ... | 50,857 |
https://github.com/alifshabir10/productMaster-backEnd/blob/master/server/models/productImages.model.js | Github Open Source | Open Source | MIT | 2,021 | productMaster-backEnd | alifshabir10 | JavaScript | Code | 95 | 345 | const productImages =(sequelize,DataTypes)=>{
const productImages = sequelize.define('product_images', {
prim_id: {
type: DataTypes.INTEGER,
allowNull: false,
primaryKey: true
},
prim_path: {
type: DataTypes.STRING(255),
allowNull: true
},
prim_filename: {
type:... | 39,440 |
https://github.com/opendistro-for-elasticsearch/sql/blob/master/sql-odbc/src/PerformanceTests/PTODBCResults/CMakeLists.txt | Github Open Source | Open Source | Apache-2.0, LGPL-2.0-only | 2,022 | sql | opendistro-for-elasticsearch | CMake | Code | 32 | 158 | project(performance_results)
# Source, headers, and include dirs
set(SOURCE_FILES performance_odbc_results.cpp)
include_directories( ${UT_HELPER}
${IT_HELPER}
${ODFEODBC_SRC}
${VLD_SRC} )
# Generate executable
add_executable(performance_results ${SOURCE_FILES})
# Library dependencies
target_link_l... | 33,546 |
https://github.com/TennisBowling/asyncbing/blob/master/setup.py | Github Open Source | Open Source | MIT | 2,021 | asyncbing | TennisBowling | Python | Code | 27 | 174 | from setuptools import setup
setup(
name='asyncbing',
version='2.0.2',
author='TennisBowling',
author_email='tennisbowling@tennisbowling.com',
packages=['asyncbing'],
url='https://github.com/TennisBowling/asyncbing',
license='LICENSE.md',
description='A api wrapper for the bing apis.',
... | 16,466 |
https://github.com/qiaw99/selflerning/blob/master/Java/MultipleThreads_and_Sockets/MiniServer/src/Main.java | Github Open Source | Open Source | MIT | 2,019 | selflerning | qiaw99 | Java | Code | 25 | 76 | package server;
import java.io.IOException;
public class Main {
public static void main(String args[]) {
try {
new MiniServer(8888).execute();
}catch(IOException e) {
e.printStackTrace();
}
}
}
| 20,278 |
https://github.com/misicnenad/dotnet-collections-extensions-topystring/blob/master/src/Collections.Extensions.ToPyString/ObjectPyStringConverter.cs | Github Open Source | Open Source | MIT | 2,020 | dotnet-collections-extensions-topystring | misicnenad | C# | Code | 37 | 121 | using System.Collections.Generic;
namespace Collections.Extensions.ToPyString
{
class ObjectPyStringConverter : BasePyStringConverter<object>
{
internal ObjectPyStringConverter(object source, IEnumerable<object> sourceContainers, string prefix)
: base(source, sourceContainers, prefix)
... | 23,277 |
https://github.com/dlavilat/appActividades/blob/master/database/migrations/2019_03_20_111325_create_actividades_table.php | Github Open Source | Open Source | MIT | 2,019 | appActividades | dlavilat | PHP | Code | 59 | 286 | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateActividadesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('Actividades... | 19,280 |
https://github.com/wayfinder/Wayfinder-Server/blob/master/Shared/FileSystem/include/Selectable.h | Github Open Source | Open Source | BSD-3-Clause | 2,020 | Wayfinder-Server | wayfinder | C | Code | 328 | 568 | /*
Copyright (c) 1999 - 2010, Vodafone Group Services Ltd
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of condit... | 22,053 |
https://github.com/giiita/scaladia/blob/master/refuel-container/src/main/scala-3/refuel/container/ContainerLifecycle.scala | Github Open Source | Open Source | Apache-2.0 | 2,019 | scaladia | giiita | Scala | Code | 11 | 39 | package refuel.container
import refuel.inject.Types.LocalizedContainer
trait ContainerLifecycle {
def container: LocalizedContainer
}
| 49,321 |
https://github.com/chromium/chromium/blob/master/components/invalidation/impl/profile_identity_provider.h | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | 2,022 | chromium | chromium | C | Code | 140 | 538 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_INVALIDATION_IMPL_PROFILE_IDENTITY_PROVIDER_H_
#define COMPONENTS_INVALIDATION_IMPL_PROFILE_IDENTITY_PROVIDER_H_
#include "base/memory... | 3,305 |
https://github.com/PaulBraetz/CitizenBank/blob/master/CBData/Abstractions/Derived Interfaces/ITransactionEntity.cs | Github Open Source | Open Source | MIT | null | CitizenBank | PaulBraetz | C# | Code | 91 | 259 |
using CBData.Entities;
using PBData.Abstractions;
using System;
using static CBCommon.Enums.CitizenBankEnums;
namespace CBData.Abstractions
{
public interface ITransactionEntity<TCreditor, TDebtor, TCreator, TRecipient> : IExpiringEntity, IHasCurrency<CurrencyEntity>, IHasCreator<TCreator>, IHasTags
where TCre... | 13,766 |
https://github.com/tkopacz/2017IotHubGatewaySDK/blob/master/Demo_SRC/modules/logger/tests/logger_ut/logger_ut.cpp | Github Open Source | Open Source | MIT | 2,017 | 2017IotHubGatewaySDK | tkopacz | C++ | Code | 6,905 | 31,961 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <cstdlib>
#ifdef _CRTDBG_MAP_ALLOC
#include <crtdbg.h>
#endif
#include "testrunnerswitcher.h"
#include "micromock.h"
#include "micromockcharstararenulltermina... | 49,458 |
https://github.com/mayc0njr/FTCRegex/blob/master/Startup.cs | Github Open Source | Open Source | MIT | null | FTCRegex | mayc0njr | C# | Code | 150 | 537 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensio... | 9,042 |
https://github.com/tbeucler/CBRAIN-CAM/blob/master/preprocessing-11132019.py | Github Open Source | Open Source | MIT | 2,022 | CBRAIN-CAM | tbeucler | Python | Code | 443 | 1,635 | """
Script to preprocess SPCAM data.
Created on 2019-01-23-14-49
Author: Stephan Rasp, raspstephan@gmail.com
"""
from cbrain.imports import *
from cbrain.preprocessing.convert_dataset_20191113 import preprocess
from cbrain.preprocessing.convert_dataset_20191113 import preprocess_list
from cbrain.preprocessing.shuffle... | 11,371 |
https://github.com/zhangjiquan1/phpsourcecode/blob/master/einsqing/wemall/tpl/theme/default/src/components/register.vue | Github Open Source | Open Source | Apache-2.0 | 2,020 | phpsourcecode | zhangjiquan1 | Vue | Code | 474 | 2,511 | <template>
<div id="main">
<div class="header-bar">
<router-link to="/login" class="header-left" style="display: block;">
</router-link>
<div class="header-title">手机注册</div>
</div>
<div class="b-color-f">
<div class="filter-top" id="scrollUp">
<i class="iconfont icon-jiantou"></i>
</div>
<d... | 41,279 |
https://github.com/TinyPlanetStudios/Project-Crash-Land/blob/master/export/windows/cpp/obj/src/flixel/system/debug/stats/_Stats/GraphicMinimizeButton.cpp | Github Open Source | Open Source | MIT | null | Project-Crash-Land | TinyPlanetStudios | C++ | Code | 350 | 2,349 | // Generated by Haxe 3.3.0
#include <hxcpp.h>
#ifndef INCLUDED_flixel_system_debug_stats__Stats_GraphicMinimizeButton
#include <flixel/system/debug/stats/_Stats/GraphicMinimizeButton.h>
#endif
#ifndef INCLUDED_haxe_Resource
#include <haxe/Resource.h>
#endif
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#en... | 48,223 |
https://github.com/AlphaBeta1906/pyGinit/blob/master/pyGinit/gitCommand.py | Github Open Source | Open Source | MIT | 2,022 | pyGinit | AlphaBeta1906 | Python | Code | 73 | 250 | from configparser import ConfigParser
from pathlib import Path
from os import path, system, devnull
from subprocess import Popen, call, STDOUT, PIPE
import git
config_obj = ConfigParser()
parser = config_obj.read(path.join(Path.home(), ".pyGinitconfig.ini"))
def execute_git(username, token, repo_name, remote_name):
... | 16,160 |
https://github.com/jchitel/renlang/blob/master/src/runtime/types/RInteger.ts | Github Open Source | Open Source | MIT | 2,021 | renlang | jchitel | TypeScript | Code | 56 | 120 | import RValue from './RValue';
/**
* Since JS has no distinction between floating-point and integer numbers,
* using their built-in "number" type, which is backed by floating-point numbers,
* is the only option here.
*/
export default class RInteger extends RValue<number> {
constructor(value: number) {
... | 22,457 |
https://github.com/MarsLongJR/XbzMall/blob/master/mall-admin/src/main/java/com/macro/mall/service/impl/OrderServiceImpl/XbzOrderReturnApplyServiceImpl.java | Github Open Source | Open Source | MIT | null | XbzMall | MarsLongJR | Java | Code | 144 | 867 | package com.macro.mall.service.impl.OrderServiceImpl;
import com.github.pagehelper.PageHelper;
import com.macro.mall.dao.order.XbzOrderReturnApplyDao;
import com.macro.mall.dto.order.XbzOrderReturnApplyResult;
import com.macro.mall.dto.order.XbzReturnApplyQueryParam;
import com.macro.mall.dto.order.XbzUpdateStatusPara... | 9,645 |
https://github.com/hackaugusto/scenario-player/blob/master/scenario_player/services/rpc/schemas/base.py | Github Open Source | Open Source | MIT | null | scenario-player | hackaugusto | Python | Code | 278 | 827 | from typing import Tuple
from flask import current_app
from marshmallow.fields import String
from raiden.network.rpc.client import JSONRPCClient
from scenario_player.services.common.schemas import SPSchema
class RPCClientID(String):
"""A field for (de)serializing a :class:`raiden.network.rpc.client.JSONRPCClien... | 4,509 |
https://github.com/omidm/naiad/blob/master/Examples/DifferentialDataflow/GraphColoring.cs | Github Open Source | Open Source | Apache-2.0 | 2,017 | naiad | omidm | C# | Code | 657 | 1,714 | /*
* Naiad ver. 0.4
* Copyright (c) Microsoft Corporation
* 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 ... | 22,903 |
https://github.com/mintbean-hackathon/mintbean-project/blob/master/server/db/models/drawing.js | Github Open Source | Open Source | MIT | null | mintbean-project | mintbean-hackathon | JavaScript | Code | 56 | 172 | const Sequelize = require('sequelize')
const db = require('../db')
const Drawing = db.define('drawing', {
name: {
type: Sequelize.STRING,
defaultValue: 'Add name',
allowNull: false,
validate: {
notEmpty: true
}
},
description: {
type: Sequelize.STRING,
defaultValue: 'Add Descrip... | 11,491 |
https://github.com/mvanotti/fuchsia-mirror/blob/master/src/sys/time/httpsdate_time_source/src/main.rs | Github Open Source | Open Source | BSD-2-Clause | 2,021 | fuchsia-mirror | mvanotti | Rust | Code | 230 | 964 | // Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
mod bound;
mod constants;
mod datatypes;
mod diagnostics;
mod httpsdate;
mod sampler;
use crate::diagnostics::{CobaltDiagnostics, CompositeDiagnostics, In... | 2,480 |
https://github.com/russellgao/algorithm/blob/master/dailyQuestion/2020/2020-09/9-13/README.adoc | Github Open Source | Open Source | Apache-2.0 | 2,020 | algorithm | russellgao | AsciiDoc | Code | 238 | 805 | = 单词搜索
:toc:
:toc-title:
:toclevels:
:sectnums:
== 说明
给定一个二维网格和一个单词,找出该单词是否存在于网格中。
单词必须按照字母顺序,通过相邻的单元格内的字母构成,其中“相邻”单元格是那些水平相邻或垂直相邻的单元格。同一个单元格内的字母不允许被重复使用。
示例:
```
board =
[
['A','B','C','E'],
['S','F','C','S'],
['A','D','E','E']
]
给定 word = "ABCCED", 返回 true
给定 word = "SEE", 返回 true
给定 word = "ABCB", 返回 fals... | 25,663 |
https://github.com/degarashi/revenant/blob/master/src/random/path.hpp | Github Open Source | Open Source | MIT | null | revenant | degarashi | C++ | Code | 86 | 370 | #pragma once
#include "lubee/src/random/string.hpp"
#include "lubee/src/range.hpp"
#include "../fs/path.hpp"
namespace rev {
namespace random {
//! ランダムなパスセグメント列(utf-8)
template <class RD>
auto GenPathSegment(RD&& rd, const std::size_t len) {
const static std::string c_segment("abcdefghijklmnopqrstuvwxyzABCD... | 64 |
https://github.com/MarvahaGaurav/Codeigniter/blob/master/application/helpers/state_helper.php | Github Open Source | Open Source | MIT | null | Codeigniter | MarvahaGaurav | PHP | Code | 47 | 193 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
if ( ! function_exists('get_state_list'))
{
function get_state_list(){
$obj =& get_instance();
$obj->load->model('Common_model','Common');
$stateList = $obj->Common->fetch_data('state_list','*');
return $stateList;
}
}
i... | 17,797 |
https://github.com/stelong/Historia/blob/master/example-scripts/2_cellcontr/example2_b.py | Github Open Source | Open Source | MIT | 2,022 | Historia | stelong | Python | Code | 359 | 1,194 | import matplotlib.pyplot as plt
import numpy as np
from Historia.cellcontr import solver as solcontr
from Historia.ep import solver as solep
from Historia.shared.plot_utils import get_col, interp_col
def main():
rat = "sham"
# ---------------------------------------------------------------
# Electrophys... | 37,014 |
https://github.com/songbw/EquipmentSys/blob/master/src/main/java/smart/dao/impl/UserDaoImpl.java | Github Open Source | Open Source | Apache-2.0 | null | EquipmentSys | songbw | Java | Code | 298 | 1,503 | package smart.dao.impl;
import smart.dao.UserDao;
import smart.model.PageBean;
import smart.model.User;
import smart.util.StringUtil;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowCallbackHandler;
import org.springframework.stereotype.Repository;
import javax.annotation.Re... | 25,652 |
https://github.com/marbles-ai/lucida/blob/master/lucida/include/lucida/service_names.h | Github Open Source | Open Source | BSD-3-Clause | 2,016 | lucida | marbles-ai | C++ | Code | 412 | 817 | /*
* Copyright 2016 (c). All rights reserved.
* Author: Paul Glendenning
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this ... | 1,003 |
https://github.com/trackway-project/trackway/blob/master/src/AppBundle/Resources/views/layoutSidebar.html.twig | Github Open Source | Open Source | MIT | 2,015 | trackway | trackway-project | Twig | Code | 173 | 701 | {% extends "AppBundle::layout.html.twig" %}
{% block body %}
<body class="skin-red sidebar-mini {% block class %}{% endblock class %}">
<div class="wrapper">
<header class="main-header">
<a class="logo" href="{{ path('calendar_index') }}">
<img src="{{ asset('images/logo_whi... | 22,998 |
https://github.com/philsong/wechat2/blob/master/mp/msg_handler.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | wechat2 | philsong | Go | Code | 422 | 1,783 | // @description wechat2 是腾讯微信公众平台 api 的 golang 语言封装
// @link https://github.com/philsong/wechat2 for the canonical source repository
// @license https://github.com/philsong/wechat2/blob/master/LICENSE
// @authors chanxuehong(chanxuehong@gmail.com)
package mp
import (
//"fmt"
"io"
"net/http"
)
// 微信... | 24,859 |
https://github.com/GRADEBOOK-HCMUS-18/grade-book-v2/blob/master/src/layout/index.ts | Github Open Source | Open Source | MIT | null | grade-book-v2 | GRADEBOOK-HCMUS-18 | TypeScript | Code | 17 | 32 | import { SideBar } from './sidebar';
import { NavBar } from './navbar';
export { SideBar, NavBar };
| 29,882 |
https://github.com/nobaslack/nobatricks/blob/master/APt_args_shell_2 | Github Open Source | Open Source | Apache-2.0 | 2,020 | nobatricks | nobaslack | Shell | Code | 135 | 423 | #!/bin/bash
ARGS=$(getopt -q -o "vzcl:h:" -l "verbose,zip,copy,log:,host:" -n "argumentos" -- "$@");
if [ $? -ne 0 ];
then
echo "Ha habido un error al parsear los argumentos"
exit 1
fi
eval set -- "$ARGS";
VERBOSE=0
COPIAREMOTA=0
while [ $# -gt 0 ]; do
case "$1" in
-v|--verbose)
VERBOSE=1
... | 13,978 |
https://github.com/xyzarivera/cardcaptor-rest-api/blob/master/src/index.ts | Github Open Source | Open Source | MIT | null | cardcaptor-rest-api | xyzarivera | TypeScript | Code | 30 | 100 | import App from "./app";
import DatabaseConnectionManager from "./database";
// eslint-disable-next-line @typescript-eslint/no-var-requires
require("dotenv").config();
DatabaseConnectionManager.connect().then(() => {
const app: App = App.getDefault();
app.start();
});
// const app: App = App.getDefault();
// app.... | 29,829 |
https://github.com/yangfancoming/apache-tomcat-8.5.54-src/blob/master/java/org/apache/catalina/realm/X509SubjectDnRetriever.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | apache-tomcat-8.5.54-src | yangfancoming | Java | Code | 35 | 115 |
package org.apache.catalina.realm;
import java.security.cert.X509Certificate;
/**
* An X509UsernameRetriever that returns a certificate's entire
* SubjectDN as the username.
*/
public class X509SubjectDnRetriever implements X509UsernameRetriever {
@Override
public String getUsername(X509Certificate clien... | 26,488 |
https://github.com/Cosmin89/larashop/blob/master/resources/views/order/show.blade.php | Github Open Source | Open Source | MIT | 2,017 | larashop | Cosmin89 | PHP | Code | 70 | 305 | @extends('templates.app')
@section('content')
<h3>Order # {{ $order->payment_id }}</h3>
<hr>
<div class="row">
<div class="col-md-6">
<h4>Billing Address</h4>
{{ $order->address->address }} <br>
{{ $order->address->city }} <br>
... | 17,121 |
https://github.com/luxius-luminus/pai/blob/master/contrib/submit-job-v2/src/index.ts | Github Open Source | Open Source | MIT | 2,022 | pai | luxius-luminus | TypeScript | Code | 201 | 652 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import "core-js/stable";
import "whatwg-fetch";
import React from "react";
import ReactDOM from "react-dom";
import { resolve } from "url";
import App from "./App";
declare let __webpack_public_path__: string;
const publicPath = __webpack_pu... | 51,138 |
https://github.com/40623128/RL_Webots/blob/master/controllers/vpg_controller/vpg_arbitrator.cpp | Github Open Source | Open Source | MIT | 2,020 | RL_Webots | 40623128 | C++ | Code | 571 | 2,632 | #include "vpg_arbitrator.hpp"
VPG_arbitrator::VPG_arbitrator(){
// Robot Initialization
k4::init_robot();
// Initialize the time stamp
this->m_timestamp = 0;
// Initilaize the current action
this->m_current_action = {0.0,0.0};
// Set invalide time to episodes
this->m_current_e... | 14,807 |
https://github.com/hustfisher/starcoin/blob/master/txpool/src/test_helper.rs | Github Open Source | Open Source | Apache-2.0 | 2,020 | starcoin | hustfisher | Rust | Code | 58 | 255 | use crate::TxPool;
use starcoin_bus::BusActor;
use starcoin_config::{NodeConfig, TxPoolConfig};
use starcoin_genesis::Genesis;
use std::sync::Arc;
use storage::{cache_storage::CacheStorage, storage::StorageInstance, Storage};
pub fn start_txpool() -> (TxPool, Arc<Storage>) {
let cache_storage = CacheStorage::new()... | 29,329 |
https://github.com/quebic-source/searchbox-core/blob/master/src/main/java/com/quebic/searchbox/redis/impl/ScriptProcessorImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | searchbox-core | quebic-source | Java | Code | 138 | 557 | package com.quebic.searchbox.redis.impl;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import static com.quebic.searchbox.config.ConfigKeys.scripts_container_perfix;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.quebic.searchbox.config.SearchBoxConfig;
i... | 13,005 |
https://github.com/FaxHax/fabric-client/blob/master/src/main/java/club/faxhax/client/impl/modules/client/MainMenu.java | Github Open Source | Open Source | MIT | 2,021 | fabric-client | FaxHax | Java | Code | 26 | 115 | package club.faxhax.client.impl.modules.client;
import club.faxhax.client.api.module.Module;
import club.faxhax.client.api.setting.Setting;
public class MainMenu extends Module {
Setting.Mode mainMenuMode = mode("Shader", "FaxHax", "FaxHax");
public MainMenu() {
super("MainMenu", Category.CLIENT);
... | 47,351 |
https://github.com/sam-by-name/ultimate-O-X/blob/master/tests/client/ai/deepClone.test.js | Github Open Source | Open Source | MIT | 2,018 | ultimate-O-X | sam-by-name | JavaScript | Code | 96 | 301 | const {deepClone} = require('../../../lib/medAiV2/lib/deepClone')
test('deep clones a array matrix', () => {
const expected = copy
const actual = deepClone(arr)
expect(actual).toEqual(expected)
})
const arr = [
[
{name: 'Bob', partners: ['John', 'Tammy', 'Jill', 'his work'], age: 78},
{home: 'terrace'... | 9,866 |
https://github.com/proximax-storage/python-xpx-chain-sdk/blob/master/tests/main/models/account_test.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | python-xpx-chain-sdk | proximax-storage | Python | Code | 849 | 7,422 | from xpxchain import models
from xpxchain import util
from tests import harness
@harness.model_test_case({
'type': models.Account,
'network_type': models.NetworkType.MIJIN_TEST,
'data': {
'address': models.Address('SAUJCIBCOFLHUZIWNB32MR6YUX75HO7GGCVZEXSG'),
'public_key': '1b153f8b76ef60a4... | 34,949 |
https://github.com/Zander-Labuschagne/CROSS-v1/blob/master/src/cryogen/ProjectTableEntry.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | CROSS-v1 | Zander-Labuschagne | Java | Code | 65 | 271 | package cryogen;
import javafx.beans.property.SimpleStringProperty;
public class ProjectTableEntry
{
private SimpleStringProperty projectTitle;
private SimpleStringProperty projectRankingScore;
public ProjectTableEntry()
{
setProjectTitle("");
setProjectRankingScore("");
}
public ProjectTableEntry(String ... | 34,290 |
https://github.com/chronoDave/pico8lib/blob/master/functions.p8 | Github Open Source | Open Source | MIT, Unlicense | 2,020 | pico8lib | chronoDave | Lua | Code | 212 | 502 | pico-8 cartridge // http://www.pico-8.com
version 18
__lua__
-- pico8lib functions library
-- by sparr
------------------------------------------------------------------------
-- empty function, useful for callbacks and placeholders
local function noop() end
---------------------------------------------------------... | 19,777 |
https://github.com/lukeephilips/tweetamir-putin/blob/master/Gemfile | Github Open Source | Open Source | MIT | 2,017 | tweetamir-putin | lukeephilips | Ruby | Code | 17 | 111 | source('https://rubygems.org')
gem('sinatra')
gem('sinatra-contrib')
gem('rspec')
gem('capybara')
gem('pry')
gem('byebug')
gem('launchy')
gem('pg')
gem('sinatra-activerecord')
gem('rake')
gem('dotenv')
gem('twitter')
# gem('easy_translate')
gem 'httparty'
| 10,126 |
https://github.com/vadzimpm/yap/blob/master/test/policies/advanced/ReturnResponse.test.ts | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,020 | yap | vadzimpm | TypeScript | Code | 193 | 670 | import assert from 'assert';
import { xml2js } from 'xml-js';
import ReturnResponse from '../../../src/policies/advanced/ReturnResponse';
import { Scope } from '../../../src/policies/policy';
describe('<return-response />', () => {
it('U-TEST-1 - Test return response', async () => {
const res = xml2js(`
... | 2,015 |
https://github.com/seanstride/legerity/blob/master/samples/XamlControlsGallery/Tests/Text/AutoSuggestBoxTests.cs | Github Open Source | Open Source | MIT | 2,021 | legerity | seanstride | C# | Code | 79 | 336 | namespace XamlControlsGallery.Tests.Text
{
using Microsoft.VisualStudio.TestTools.UnitTesting;
using XamlControlsGallery.Pages;
using XamlControlsGallery.Pages.Text;
[TestClass]
public class AutoSuggestBoxTests : BaseTestClass
{
private static AutoSuggestBoxPage AutoSuggestBoxPage { ge... | 19,255 |
https://github.com/EdnGameDev/godot-d-examples-one/blob/master/third_party/godot-d/classes/godot/meshdatatool.d | Github Open Source | Open Source | MIT | 2,017 | godot-d-examples-one | EdnGameDev | D | Code | 1,121 | 5,838 | module godot.meshdatatool;
import std.meta : AliasSeq, staticIndexOf;
import std.traits : Unqual;
import godot.d.meta;
import godot.core;
import godot.c;
import godot.d.bind;
import godot.object;
import godot.classdb;
import godot.reference;
import godot.arraymesh;
import godot.material;
@GodotBaseClass struct MeshData... | 40,015 |
https://github.com/m3sserschmitt/basic-http/blob/master/__init__.py | Github Open Source | Open Source | MIT | null | basic-http | m3sserschmitt | Python | Code | 12 | 58 | import basic_http.session
basic_http.session.LIB_VERSION = 'v0.0.4-beta'
basic_http.session.DEFAULT_AGENT = 'basic-http version ' + basic_http.session.LIB_VERSION
| 4,447 |
https://github.com/arsh-co/sentry/blob/master/src/sentry/api/urls.py | Github Open Source | Open Source | BSD-3-Clause | null | sentry | arsh-co | Python | Code | 225 | 1,803 | from __future__ import absolute_import
from django.conf.urls import patterns, url
from .endpoints.auth_index import AuthIndexEndpoint
from .endpoints.broadcast_index import BroadcastIndexEndpoint
from .endpoints.catchall import CatchallEndpoint
from .endpoints.event_details import EventDetailsEndpoint
from .endpoints... | 8,353 |
https://github.com/creativeprogrammingatelier/atelier/blob/master/client/src/helpers/BootstrapHelper.tsx | Github Open Source | Open Source | MIT | null | atelier | creativeprogrammingatelier | TypeScript | Code | 108 | 305 | export type BootstrapVariant =
| 'primary'
| 'secondary'
| 'success'
| 'danger'
| 'warning'
| 'info'
| 'light'
| 'dark';
export type Breakpoint =
| 'extraSmall'
| 'small'
| 'medium'
| 'large'
| 'extraLarge'
export const breakpointValues = {
// Same breakpoints as Bootstrap, maybe find a way to merge dec... | 9,000 |
https://github.com/bsimser/Gold-Box-Explorer/blob/master/src/Common/Frua/Frua/FruaGeoFile.cs | Github Open Source | Open Source | MIT | 2,022 | Gold-Box-Explorer | bsimser | C# | Code | 844 | 2,848 | using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
namespace GoldBoxExplorer.Common.Frua.Frua
{
public class FruaGeoFile : GoldBoxFile
{
private const int NumEntryPoints = 8;
private const int NumRestEvents = 8;
private const int NumStepEvents =... | 19,159 |
https://github.com/dominikr/libpara/blob/master/Makefile | Github Open Source | Open Source | MIT | 2,014 | libpara | dominikr | Makefile | Code | 14 | 48 | compile:
echo nothing to do
install:
install -d $(DESTDIR)/usr/lib
install -m 644 libpara.sh $(DESTDIR)/usr/lib
| 43,063 |
https://github.com/2017IOTrepo/EnglishManFlutter/blob/master/backend/src/main/java/cn/fivezha/api/mapper/RemeberedWordMapper.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | EnglishManFlutter | 2017IOTrepo | Java | Code | 20 | 126 | package cn.fivezha.api.mapper;
import cn.fivezha.api.core.mapper.MyMapper;
import cn.fivezha.api.dto.MyRemeberedWordDTO;
import cn.fivezha.api.entity.RemeberedWordDO;
import java.util.List;
public interface RemeberedWordMapper extends MyMapper<RemeberedWordDO> {
List<MyRemeberedWordDTO> getDTOList(Long userId);
... | 3,162 |
https://github.com/collaborative-open-plant-omics/COPO/blob/master/.dockerignore | Github Open Source | Open Source | MIT | 2,023 | COPO | collaborative-open-plant-omics | Ignore List | Code | 7 | 36 | .gitignore
Dockerfile
README.md
*.pyc
*.yml
**/.git
selenium_test/
| 23,324 |
https://github.com/nathandunn/GBOL/blob/master/GBOL/src/org/gmod/gbol/simpleObject/generated/AbstractExpressionImage.java | Github Open Source | Open Source | BSD-2-Clause | 2,014 | GBOL | nathandunn | Java | Code | 217 | 612 | package org.gmod.gbol.simpleObject.generated;
import org.gmod.gbol.simpleObject.*;
/**
* ExpressionImage generated by hbm2java
*/
public abstract class AbstractExpressionImage extends AbstractSimpleObject implements java.io.Serializable {
private Integer expressionImageId;
private EImage eImage;
... | 31,950 |
https://github.com/ElectNewt/ProjectTemplate/blob/master/Database/schema/version01.sql | Github Open Source | Open Source | MIT | null | ProjectTemplate | ElectNewt | SQL | Code | 59 | 181 | CREATE DATABASE IF NOT EXISTS `projecttemplate`;
USE `projecttemplate`;
CREATE USER 'personaluser' IDENTIFIED BY 'personalpass';
GRANT ALL PRIVILEGES ON * . * TO 'personaluser';
CREATE TABLE `Product` (
`ProductId` VARCHAR(36) NOT NULL,
`ProductName` VARCHAR(50) NOT NULL,
`ProductDescription` VARCHAR(500) NOT NULL,... | 22,130 |
https://github.com/mastnk/GCIP/blob/master/09/OpticalFlow.py | Github Open Source | Open Source | MIT | null | GCIP | mastnk | Python | Code | 152 | 581 | import sys
import os
import cv2 # it is necessary to use cv2 library
import numpy as np
# https://stackoverflow.com/questions/20064818/how-to-draw-optical-flow-images-from-oclpyrlkopticalflowdense
def draw_flow(img, flow, step=16):
h, w = img.shape[:2]
y, x = np.mgrid[step/2:h:step, step/2:w:step].reshape(2,-... | 2,179 |
https://github.com/silence0201/SICrashGuard/blob/master/SICrashGuard/WildPointer/SIWildPointer.m | Github Open Source | Open Source | MIT | 2,018 | SICrashGuard | silence0201 | Objective-C | Code | 111 | 440 | //
// SIWildPointer.m
// SICrashGuard
//
// Created by Silence on 2018/3/14.
// Copyright © 2018年 Silence. All rights reserved.
//
#import "SIWildPointer.h"
#import "SIDynamicObject.h"
#import "SIRecord.h"
@implementation SIWildPointerManager
+ (instancetype)manager {
static SIWildPointerManager *manager;
... | 47,321 |
https://github.com/tiyee/wh/blob/master/src/index.tsx | Github Open Source | Open Source | MIT | null | wh | tiyee | TypeScript | Code | 61 | 184 | /** @format */
import {start} from 'server'
import process from 'process'
import {logger} from 'log'
logger.warn('111')
start('127.0.0.1', 3000)
process.on('uncaughtException', err => {
console.log('Caught Exception:' + err)
logger.fatal(err.message)
})
process.on('beforeExit', code => {
console.log('Proce... | 5,644 |
https://github.com/HankRobot/NEMRFID/blob/master/node_modules/nem2-sdk/dist/src/model/transaction/MosaicAddressRestrictionTransaction.js | Github Open Source | Open Source | Apache-2.0 | null | NEMRFID | HankRobot | JavaScript | Code | 502 | 1,343 | "use strict";
/*
* Copyright 2019 NEM
*
* 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 agre... | 9,894 |
https://github.com/JonnyBanana/awesome-cryptokitties/blob/master/genes/mixGenes.rb | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-public-domain | 2,020 | awesome-cryptokitties | JonnyBanana | Ruby | Code | 970 | 2,632 | #################
# CryptoKitties geneScience.mixGenes - "magic" sooper-sekret gene mixing operation forumula (ruby edition)
# to run use:
# $ ruby ./mixGenes.rb
#
#
# based on the pseudo-code published by Sean Soria
# in "CryptoKitties mixGenes Function"
# see https://medium.com/@sean.soria/cryptokitti... | 30,501 |
https://github.com/nhs-digital-gp-it-futures/GPITBuyingCatalogue/blob/master/tests/NHSD.GPIT.BuyingCatalogue.WebApp.UnitTests/Areas/Admin/Validators/AddEditServiceLevelModelValidatorTests.cs | Github Open Source | Open Source | MIT | null | GPITBuyingCatalogue | nhs-digital-gp-it-futures | C# | Code | 245 | 1,042 | using AutoFixture.Xunit2;
using FluentValidation.TestHelper;
using Moq;
using NHSD.GPIT.BuyingCatalogue.EntityFramework.Catalogue.Models;
using NHSD.GPIT.BuyingCatalogue.ServiceContracts.ServiceLevelAgreements;
using NHSD.GPIT.BuyingCatalogue.Test.Framework.AutoFixtureCustomisations;
using NHSD.GPIT.BuyingCatalogue.We... | 9,411 |
https://github.com/identifiers-org/cloud-ws-metadata/blob/master/src/main/java/org/identifiers/org/cloud/ws/metadata/MetadataApplication.java | Github Open Source | Open Source | MIT | null | cloud-ws-metadata | identifiers-org | Java | Code | 21 | 91 | package org.identifiers.org.cloud.ws.metadata;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class MetadataApplication {
public static void main(String[] args) {
SpringApplication.run(MetadataApplication.class,... | 21,217 |
https://github.com/yodiwo/plegma/blob/master/Wisper/Plugins/OpenZWave/OZWCplusplus/cpp/src/Manager.cpp | Github Open Source | Open Source | Apache-2.0 | 2,018 | plegma | yodiwo | C++ | Code | 12,043 | 38,986 | //-----------------------------------------------------------------------------
//
// Manager.cpp
//
// The main public interface to OpenZWave.
//
// Copyright (c) 2010 Mal Lansell <openzwave@lansell.org>
//
// SOFTWARE NOTICE AND LICENSE
//
// This file is part of OpenZWave.
//
// OpenZWave is free software: you can r... | 8,346 |
https://github.com/esmeryjose/debugging-with-pry-001-prework-web/blob/master/lib/pry_debugging.rb | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain | 2,016 | debugging-with-pry-001-prework-web | esmeryjose | Ruby | Code | 7 | 23 | def plus_two(num=3)
num=num + 2
num
end
| 25,285 |
https://github.com/techkey/PTVS/blob/master/Python/Tests/Utilities.Python/PythonProjectProcessor.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | PTVS | techkey | C# | Code | 162 | 432 | // Python Tools for Visual Studio
// Copyright(c) Microsoft Corporation
// 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
//... | 34,628 |
https://github.com/FizzerWL/ExampleMods/blob/master/FortMod/Client_SaveConfigureUI.lua | Github Open Source | Open Source | MIT | 2,017 | ExampleMods | FizzerWL | Lua | Code | 24 | 63 |
function Client_SaveConfigureUI(alert)
local turns = turnsInputField.GetValue();
if turns < 1 then alert('Turns to get a fort must be positive'); end
Mod.Settings.TurnsToGetFort = turns;
end
| 25,801 |
https://github.com/Geo-Gecko/DES_dashboard_project/blob/master/routes/National_teach_according_to_TT_router.js | Github Open Source | Open Source | MIT | null | DES_dashboard_project | Geo-Gecko | JavaScript | Code | 215 | 630 | var express = require('express');
var router = express.Router();
var connection = require('../config/database');
router.get('/:region/:year', function(req, res, next) {
let nameOfRegion = req.params.region;
let year = req.inspectionArray.year;
// run query where school id
const limit = 1;
cons... | 37,080 |
https://github.com/davonbarnette/bongo-vu/blob/master/index.js | Github Open Source | Open Source | MIT | null | bongo-vu | davonbarnette | JavaScript | Code | 69 | 219 | if (process.env.NODE_ENV !== "production"){
require("dotenv").config();
}
const express = require('express')
const app = express()
const port = process.env.PORT || 8080
app.get('/', (req, res) => {
res.send('Success')
})
app.listen(port, () => {
console.log(`Example app listening at http://localhost:${port}`)... | 50,265 |
https://github.com/theshoeshiner/scribejava/blob/master/scribejava-apis/src/main/java/com/github/scribejava/apis/wunderlist/WunderlistOAuthService.java | Github Open Source | Open Source | MIT | 2,019 | scribejava | theshoeshiner | Java | Code | 154 | 599 | package com.github.scribejava.apis.wunderlist;
import java.io.OutputStream;
import com.github.scribejava.apis.WunderlistAPI;
import com.github.scribejava.core.httpclient.HttpClient;
import com.github.scribejava.core.httpclient.HttpClientConfig;
import com.github.scribejava.core.model.OAuthRequest;
import com.github.s... | 19,214 |
https://github.com/mimakaev/bioframe/blob/master/tests/test_region.py | Github Open Source | Open Source | MIT | null | bioframe | mimakaev | Python | Code | 150 | 581 | from bioframe.region import parse_region
import pytest
def test_parse_region():
# UCSC-style names
assert parse_region("chr21") == ("chr21", 0, None)
assert parse_region("chr21:1000-2000") == ("chr21", 1000, 2000)
assert parse_region("chr21:1,000-2,000") == ("chr21", 1000, 2000)
# Ensembl style n... | 38,728 |
https://github.com/shevron/proletarier/blob/master/src/Proletarier/Broker/Broker.php | Github Open Source | Open Source | Apache-2.0 | 2,018 | proletarier | shevron | PHP | Code | 464 | 1,210 | <?php
/**
* Copyright 2016 Shahar Evron
*
* 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 ag... | 47,162 |
https://github.com/NuGet/NuGet.Jobs/blob/master/tests/NgTests/StorageFactoryTests.cs | Github Open Source | Open Source | Apache-2.0 | 2,023 | NuGet.Jobs | NuGet | C# | Code | 142 | 462 | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.ComponentModel;
using Ng;
using NuGet.Services.Metadata.Catalog.Persistence;
using Xunit;
namespace NgT... | 47,436 |
https://github.com/BishmoyPaul/lama/blob/master/saicinpainting/training/trainers/default.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | lama | BishmoyPaul | Python | Code | 519 | 2,724 | import logging
import torch
import torch.nn.functional as F
from omegaconf import OmegaConf
from saicinpainting.training.data.datasets import make_constant_area_crop_params
from saicinpainting.training.losses.distance_weighting import make_mask_distance_weighter
from saicinpainting.training.losses.feature_matching im... | 21,448 |
https://github.com/clemos/pyextern/blob/master/out/tensorflow/contrib/training/python/training/sequence_queueing_state_saver/Sequence_queueing_state_saver_Module.hx | Github Open Source | Open Source | BSD-3-Clause | 2,019 | pyextern | clemos | Haxe | Code | 2,540 | 5,848 | /* This file is generated, do not edit! */
package tensorflow.contrib.training.python.training.sequence_queueing_state_saver;
@:pythonImport("tensorflow.contrib.training.python.training.sequence_queueing_state_saver") extern class Sequence_queueing_state_saver_Module {
static public var _SPARSE_CONTEXT_PREFIX_KEY : Dy... | 41,022 |
https://github.com/zhmu/ananas/blob/master/external/gcc-12.1.0/gcc/testsuite/ada/acats/tests/c9/c99004a.ada | 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 | 2,022 | ananas | zhmu | Ada | Code | 616 | 1,582 | -- C99004A.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimit... | 47,157 |
https://github.com/crazy-giraffe-software/8track/blob/master/software/server/AudioIdentification.Gracenote.UnitTests/GracenoteSessionFactoryTests.cs | Github Open Source | Open Source | MIT | 2,019 | 8track | crazy-giraffe-software | C# | Code | 164 | 590 | // <copyright file="GracenoteSessionFactoryTests.cs" company="CrazyGiraffeSoftware.net">
// Copyright (c) CrazyGiraffeSoftware.net. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// </copyright>
//----------------------------------------------... | 27,994 |
https://github.com/rmarable/ParallelClusterMaker/blob/master/ClusterMaker/performance/combine_csv_summary_files_for_plotting.sh | Github Open Source | Open Source | Apache-2.0 | 2,019 | ParallelClusterMaker | rmarable | Shell | Code | 274 | 861 | ################################################################################
# Name: combine_csv_summary_files_for_plotting.sh
# Author: Rodney Marable <rodney.marable@gmail.com>
# Created On: January 12, 2018
# Last Changed: August 9, 2018
# Purpose: Combine standalone CSV data files into a summary file
#########... | 15,083 |
https://github.com/Ingrim4/gradoop/blob/master/gradoop-flink/src/main/java/org/gradoop/flink/model/impl/operators/statistics/ConnectedComponentsDistribution.java | Github Open Source | Open Source | Apache-2.0 | null | gradoop | Ingrim4 | Java | Code | 477 | 1,407 | /*
* Copyright © 2014 - 2021 Leipzig University (Database Research Group)
*
* 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
*
* Unles... | 28,837 |
https://github.com/xdumaine/ember-webrtc-troubleshoot/blob/master/addon/components/webrtc-troubleshooter/component.js | Github Open Source | Open Source | MIT | 2,018 | ember-webrtc-troubleshoot | xdumaine | JavaScript | Code | 860 | 3,332 | /* global WebrtcTroubleshooter */
import Ember from 'ember';
import layout from './template';
const {
ERROR_CODES,
TestSuite,
AudioTest,
VideoTest,
ConnectivityTest,
AdvancedCameraTest,
ThroughputTest,
VideoBandwidthTest,
AudioBandwidthTest,
SymmetricNatTest,
PermissionsTest
} = WebrtcTroubleshoo... | 20,286 |
https://github.com/EDS-APHP-legacy/LightICE/blob/master/src/rosetta/MDC_ECG_AMPL_ST_AS.java | Github Open Source | Open Source | BSD-2-Clause | 2,018 | LightICE | EDS-APHP-legacy | Java | Code | 14 | 51 | package rosetta;
public class MDC_ECG_AMPL_ST_AS {
public static final String VALUE = "MDC_ECG_AMPL_ST_AS";
}
| 50,360 |
https://github.com/shamblesides/swipe-wrong/blob/master/web/game.vue | Github Open Source | Open Source | CC-BY-2.0 | 2,020 | swipe-wrong | shamblesides | Vue | Code | 663 | 2,124 | <template>
<div id="game">
<template v-if="words == null">
Loading!
</template>
<template v-else>
<card :name="name" :pic="pic" :words="[]" style="position: absolute; left: 20px; top: 30px"></card>
<div id="bio-area">
<span v-if="instructionsVisible">Drag&Drop Words Here!</sp... | 36,571 |
https://github.com/aalee888/airswap-mobile-dashboard/blob/master/tailwind.config.js | Github Open Source | Open Source | MIT | 2,021 | airswap-mobile-dashboard | aalee888 | JavaScript | Code | 81 | 292 | const colors = require("tailwindcss/colors");
module.exports = {
theme: {
extend: {},
colors: {
airswapblue: "#2b72ff",
transparent: "transparent",
current: "currentColor",
black: colors.black,
white: colors.white,
gray: colors.trueGray,
indigo: colors.indigo,
r... | 7,235 |
https://github.com/kavahub/learnjava/blob/master/core-java/core-java-stream/src/test/java/io/github/kavahub/learnjava/Java8SortTest.java | Github Open Source | Open Source | MIT | null | learnjava | kavahub | Java | Code | 818 | 3,345 | package io.github.kavahub.learnjava;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertNull;
import static org.junit.jupiter.api.Assertions.assertThrows;
i... | 13,816 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.