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/druide/dalmatinerdb-test/blob/master/worker.js | Github Open Source | Open Source | MIT | null | dalmatinerdb-test | druide | JavaScript | Code | 162 | 357 | const Dalmatiner = require('dalmatiner')
const argv = require('minimist')(process.argv.slice(2))
const conn = new Dalmatiner('tcp://localhost:5555', argv.bucket, 1) // change to server IP
const events = ['request', 'impression', 'creativeView', 'start', 'firstQuartile', 'midpoint', 'thirdQuartile',
'complete']
const... | 7,787 |
https://github.com/pulkit10251/cbData-Science-Master/blob/master/MachineLearning/linear regression/hardworkpaysoff.py | Github Open Source | Open Source | MIT | null | cbData-Science-Master | pulkit10251 | Python | Code | 288 | 1,614 | #!/usr/bin/env python
# coding: utf-8
# In[3]:
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# In[4]:
### section 1 ###
### DATA LOAD ###
X=pd.read_csv('.\Training Data\Linear_X_Train.csv')
y=pd.read_csv('.\Training Data\Linear_Y_Train.csv')
### convert to numpy array ###
X=X.values
y=y... | 3,824 |
https://github.com/astro-friedel/yggdrasil/blob/master/yggdrasil/drivers/tests/test_InterpretedModelDriver.py | Github Open Source | Open Source | BSD-3-Clause | null | yggdrasil | astro-friedel | Python | Code | 56 | 254 | from yggdrasil.drivers.tests import test_ModelDriver as parent
class TestInterpretedModelParam(parent.TestModelParam):
r"""Test parameters for basic InterpretedModelDriver class."""
driver = 'InterpretedModelDriver'
class TestInterpretedModelDriver(TestInterpretedModelParam,
... | 37,011 |
https://github.com/alfonsoeromero/S2F/blob/master/commands/Install.py | Github Open Source | Open Source | MIT | 2,022 | S2F | alfonsoeromero | Python | Code | 1,109 | 5,078 | from GOTool import GeneOntology
from Utils import ColourClass, Configuration, FancyApp, Utilities
from requests_html import HTMLSession
import os
import subprocess
import re
import sys
class Install(FancyApp.FancyApp):
def __init__(self, args):
super(Install, self).__init__()
self.colour = Colour... | 12,417 |
https://github.com/noplanman/ansible-nextcloud-upgrade/blob/master/tests/nc_check_versions_test.php | Github Open Source | Open Source | BSD-2-Clause | 2,020 | ansible-nextcloud-upgrade | noplanman | PHP | Code | 542 | 1,872 | <?php
/**
* Class to test the version check script.
*/
class NcVersionCheckTest
{
protected $upgrade_check_script;
protected $install_dir;
protected $upgrade_dir;
protected $install_version_file;
protected $upgrade_version_file;
protected $install_version;
protected $upgrade_version;
protected $test_... | 40,343 |
https://github.com/huqianshan/OperatingSystemAndCompiler/blob/master/test.c | Github Open Source | Open Source | Unlicense | null | OperatingSystemAndCompiler | huqianshan | C | Code | 198 | 781 | #include <linux/module.h>
#include <linux/init.h>
#define SIZE 0x1000
#define TDLCD_MAJOR 250
#define TDLCD_MINOR 0
#define TDLCD_NR_DEVS 4
#define DEVICE_NAME ”tdlcd“
struct tdlcd_dev{
struct cdev cdev;
unsigned char mem[SIZE];
}
static int tdlcd_major=TDLCD_MAJOR
static int tdlcd_minor=TDLCD_MINOR
module_... | 5,798 |
https://github.com/AndriiMysko/travis-api/blob/master/spec/lib/services/sync_user_spec.rb | Github Open Source | Open Source | MIT | 2,022 | travis-api | AndriiMysko | Ruby | Code | 100 | 335 | describe Travis::Services::SyncUser do
include Travis::Testing::Stubs
let(:publisher) { double('publisher', :publish => true) }
let(:service) { described_class.new(user, {}) }
describe 'given the user is not currently syncing' do
before :each do
allow(user).to receive(:update_column)
allow(u... | 20,312 |
https://github.com/fedorov/IDC-WebApp/blob/master/static/js/libs/assets.responsive.js | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause | 2,020 | IDC-WebApp | fedorov | JavaScript | Code | 842 | 2,696 | /*************************************************************************
Namespaced method to use in conjunction with responsive methods.
**************************************************************************/
var A11yResp = {
Core: function() {
//Set responsive indicator in body
var indic... | 19,062 |
https://github.com/KamilKarpus/invoices/blob/master/backend/Administration.Application/DomainEventsHandlers/SellerCreatedDomainEventHandler.cs | Github Open Source | Open Source | MIT | null | invoices | KamilKarpus | C# | Code | 45 | 235 | using Administration.Domain.DomainEvents.Sellers;
using Adminstration.IntegrationEvents;
using EventServiceBus;
using Invoices.Common.DomainEvents;
using System.Threading.Tasks;
namespace Administration.Application.DomainEventsHandlers
{
public class SellerCreatedDomainEventHandler : IDomainEventHandler<SellerCre... | 5,176 |
https://github.com/debra888/qpp-conversion-tool/blob/master/converter/src/main/java/gov/cms/qpp/conversion/validate/CpcClinicalDocumentValidator.java | Github Open Source | Open Source | CC0-1.0 | null | qpp-conversion-tool | debra888 | Java | Code | 476 | 2,046 | package gov.cms.qpp.conversion.validate;
import gov.cms.qpp.conversion.Context;
import gov.cms.qpp.conversion.decode.ClinicalDocumentDecoder;
import gov.cms.qpp.conversion.model.Node;
import gov.cms.qpp.conversion.model.Program;
import gov.cms.qpp.conversion.model.TemplateId;
import gov.cms.qpp.conversion.model.Valida... | 27,842 |
https://github.com/nhn/toast-ui.doc/blob/master/bin/apiDataFactory.js | Github Open Source | Open Source | MIT | 2,022 | toast-ui.doc | nhn | JavaScript | Code | 709 | 1,926 | const navigationDataFactory = require('./apiNavigationDataFactory');
const contentDataFactory = require('./apiContentDataFactory');
const helper = require('./apiDataFactoryHelper');
let navItems = [];
const searchItems = [];
const etcItems = [];
const navMap = {};
const contentMap = {};
/**
* Make of base date
* @... | 35,751 |
https://github.com/elct9620/boxing/blob/master/lib/boxing/commands/update.rb | Github Open Source | Open Source | Apache-2.0 | 2,022 | boxing | elct9620 | Ruby | Code | 45 | 136 | # frozen_string_literal: true
module Boxing
# :nodoc:
module Commands
# The Database Updater
#
# @since 0.3.0
class Update < Base
# Update Database
#
# @since 0.3.0
def execute
if Database.exist?
Database.new.update!
else
Database.download... | 43,218 |
https://github.com/RuanShan/jpos_rapi/blob/master/app/views/spree/api/v1/expense_items/show.v1.rabl | Github Open Source | Open Source | MIT | null | jpos_rapi | RuanShan | Ruby | Code | 21 | 79 | object @expense_item
attributes *expense_item_attributes
node(:user_name) { |o| o.user.username }
node(:store_name) { |o| o.store_name }
child images: :images do
extends 'spree/api/v1/images/expense_image'
end
| 17,670 |
https://github.com/rafaelpuyau/HSMu-Code-School/blob/master/projeto_velocidade.py | Github Open Source | Open Source | MIT | null | HSMu-Code-School | rafaelpuyau | Python | Code | 249 | 533 | """
No Brasil, a multa por excesso de velocidade pode ser enquadrada em três
categorias: média, grave e gravíssima. Os valores são definidos de acordo
com o percentual em que o motorista excede o limite da via. Por exemplo, se
o motorista é flagrado a 48 km/h em uma via que a velocidade máxima permitida
é de 40 km/h, e... | 1,071 |
https://github.com/RafaelContact/pythonProject/blob/master/CadeMinhaPasta/23.1.py | Github Open Source | Open Source | MIT | null | pythonProject | RafaelContact | Python | Code | 21 | 48 | n = int(input('Digite um número de 1 a 9999 : '))
# list([])
# não serve :print(n.find[int])
#caralho não faço ideia
| 42,921 |
https://github.com/JonkiPro/popcorn/blob/master/popcorn-core/src/main/java/com/jonki/popcorn/core/jpa/entity/movie/package-info.java | Github Open Source | Open Source | MIT | 2,019 | popcorn | JonkiPro | Java | Code | 15 | 42 | /**
* Entity classes that represent the data model/internal state for MovieEntity.
*/
package com.jonki.popcorn.core.jpa.entity.movie; | 40,690 |
https://github.com/danka74/SnomedCTParser/blob/master/src/main/java/se/liu/imt/mi/snomedct/parser/SNOMEDCTExpressionRefsetDocumentFormatFactory.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | SnomedCTParser | danka74 | Java | Code | 60 | 213 | /**
*
*/
package se.liu.imt.mi.snomedct.parser;
import org.semanticweb.owlapi.model.OWLDocumentFormat;
import org.semanticweb.owlapi.util.OWLDocumentFormatFactoryImpl;
/**
* @author Daniel Karlsson, Linköping university, daniel.karlsson@liu.se
* @
*
*/
public class SNOMEDCTExpressionRefsetDocumentFormatFactory... | 32,440 |
https://github.com/istiakshihab/ChocoBar/blob/master/app/src/main/java/com/pd/snickers/SecondaryActivity.kt | Github Open Source | Open Source | MIT | 2,021 | ChocoBar | istiakshihab | Kotlin | Code | 212 | 1,523 | package com.pd.snickers
import android.content.Intent
import android.graphics.Color
import android.graphics.Typeface
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.AppCompatImageButton
import android.view.View
import android.widget.Button
import android.widget... | 30,621 |
https://github.com/alliance-genome/agr_java_software/blob/master/agr_java_core/src/main/java/org/alliancegenome/neo4j/entity/node/Gene.java | Github Open Source | Open Source | MIT | 2,021 | agr_java_software | alliance-genome | Java | Code | 374 | 1,463 | package org.alliancegenome.neo4j.entity.node;
import java.util.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.alliancegenome.es.util.DateConverter;
import org.alliancegenome.neo4j.entity.SpeciesType;
import org.alliancegenome.neo4j.entity.relationship.*;
import org.alliancegenome.neo4j.view.View;... | 41,113 |
https://github.com/nahakiole/Winnetou/blob/master/src/ch/robinglauser/winnetou/ControlCenter.java | Github Open Source | Open Source | MIT | null | Winnetou | nahakiole | Java | Code | 500 | 1,955 | package ch.robinglauser.winnetou;
import ch.robinglauser.winnetou.Services.ApacheService;
import ch.robinglauser.winnetou.Services.MySQLService;
import ch.robinglauser.winnetou.Services.Service;
import javax.swing.*;
import javax.swing.border.EmptyBorder;
import javax.swing.event.AncestorEvent;
import javax.swing.eve... | 4,473 |
https://github.com/Yambottle/datajoint-labbook/blob/master/src/App.test.tsx | Github Open Source | Open Source | MIT | 2,022 | datajoint-labbook | Yambottle | TypeScript | Code | 153 | 569 | import React from 'react';
import { render, screen, fireEvent, waitFor, cleanup } from '@testing-library/react';
import App from './Components/App';
import Login from './Components/Login/Login';
import Home from './Components/Home'
test('Verifying components appear on login page.', async () => {
render(<App />);
... | 37,302 |
https://github.com/Taher-Ghaleb/twilio-java/blob/master/src/main/java/com/twilio/rest/conversations/v1/service/Configuration.java | Github Open Source | Open Source | MIT | 2,022 | twilio-java | Taher-Ghaleb | Java | Code | 750 | 2,041 | /**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
package com.twilio.rest.conversations.v1.service;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotati... | 9,713 |
https://github.com/jonjonus/videogallery/blob/master/app/Http/routes.php | Github Open Source | Open Source | MIT | null | videogallery | jonjonus | PHP | Code | 180 | 1,360 | <?php
use App\Video;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Input;
Route::get('/', 'VideosController@index');
Route::resource('clients', 'ClientsController');
// Route::get('clients/{id}/videos','ClientsController@videos');
Route::resource('metatexts', 'MetatextsController');
Route::reso... | 21,663 |
https://github.com/yanalucky/MBB/blob/master/fcgo_order/Fcgo/Work/Home/V/Fcgo_HomeWholePointGoodsFooterView.h | Github Open Source | Open Source | Apache-2.0 | null | MBB | yanalucky | C | Code | 36 | 141 | //
// Fcgo_HomeWholePointGoodsFooterView.h
// Fcgo
//
// Created by huafanxiao on 2017/6/12.
// Copyright © 2017年 huafanxiao. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface Fcgo_HomeWholePointGoodsFooterView : UICollectionReusableView
@property (nonatomic,strong) UILabel *titleLabel;
@property (nonat... | 27,005 |
https://github.com/DataScientists/OccIDEAS/blob/master/src/main/java/org/occideas/security/dao/UserProfileDao.java | Github Open Source | Open Source | MIT | 2,019 | OccIDEAS | DataScientists | Java | Code | 92 | 371 | package org.occideas.security.dao;
import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.criterion.Order;
import org.hibernate.criterion.Restrictions;
import org.occideas.security.model.UserProfile;
import org.springframework.beans.factory.annotation.Aut... | 2,176 |
https://github.com/Thanteewarit/ICACU/blob/master/public/member/inc/docs/docs-protocol.php | Github Open Source | Open Source | MIT | null | ICACU | Thanteewarit | PHP | Code | 193 | 1,295 | <div class="docs-box">
<div id="docs_a" class="swiper-container swiper-no-swiping">
<div class="swiper-wrapper">
<div class="swiper-slide"><?php include 'topic-a-01.php';?></div>
<div class="swiper-slide"><?php include 'topic-a-02.php';?></div>
<div class="swiper-slide">... | 40,636 |
https://github.com/tangentforks/zpl/blob/master/comp/include/passes.h | Github Open Source | Open Source | MIT | 2,021 | zpl | tangentforks | C | Code | 793 | 2,171 | /******************************************************************************
Copyright (c) 1996 - 2004 -- University of Washington
******************************************************************************/
/***
*** file: passes.h
*** description: This file contains the list of comp... | 31,318 |
https://github.com/SmiteWindows/rust-analyzer/blob/master/crates/parser/test_data/parser/inline/ok/0199_const_param_default_expression.rs | Github Open Source | Open Source | Apache-2.0, MIT | 2,022 | rust-analyzer | SmiteWindows | Rust | Code | 8 | 15 | struct A<const N: i32 = { 1 }>;
| 39,044 |
https://github.com/Andreas237/AndroidPolicyAutomation/blob/master/ExtractedJars/RT_News_com.rt.mobile.english/javafiles/com/google/android/gms/common/stats/ConnectionEvent.java | Github Open Source | Open Source | MIT | 2,019 | AndroidPolicyAutomation | Andreas237 | Java | Code | 2,322 | 8,326 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.google.android.gms.common.stats;
import android.os.Parcel;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
// Refe... | 3,194 |
https://github.com/aeorfei/aggregate-incremental/blob/master/sample/inside_view_through/RunInsideViewThroughMerchant.py | Github Open Source | Open Source | BSD-2-Clause | null | aggregate-incremental | aeorfei | Python | Code | 41 | 204 | def RunInsideViewThroughMerchant(merchantUuid,
StartDate,
EndDate,
TimeWindow,
SalesTax,
Outpath,
AllowedprocessorType = [... | 16,370 |
https://github.com/ltekieli/shorturl/blob/master/build/docker.sh | Github Open Source | Open Source | MIT | null | shorturl | ltekieli | Shell | Code | 25 | 80 | #!/bin/bash
set -euo pipefail
docker build -f build/dockerfile-api -t shorturl-api .
docker build -f build/dockerfile-web -t shorturl-web .
docker build -f build/dockerfile-nginx -t shorturl-nginx .
| 29,840 |
https://github.com/anx-dclappier/go-cloudlog/blob/master/errors_test.go | Github Open Source | Open Source | MIT | null | go-cloudlog | anx-dclappier | Go | Code | 103 | 414 | package cloudlog_test
import (
"errors"
"testing"
"github.com/anexia-it/go-cloudlog"
"github.com/stretchr/testify/require"
)
func TestEventEncodingError_Error(t *testing.T) {
e := &cloudlog.EventEncodingError{
Message: "test",
}
require.EqualValues(t, e.Message, e.Error())
}
func TestIsEventEncodingError(... | 3,936 |
https://github.com/ehooo/pycharm-security/blob/master/src/test/java/security/validators/SubprocessShellModeInspectionTest.kt | Github Open Source | Open Source | MIT | null | pycharm-security | ehooo | Kotlin | Code | 424 | 1,549 | package security.validators
import org.junit.jupiter.api.AfterAll
import org.junit.jupiter.api.BeforeAll
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.TestInstance
import security.Checks
import security.SecurityTestTask
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
class SubprocessShellModeInspecti... | 46,399 |
https://github.com/yudabp/alat_berat/blob/master/application/views/leave/request.php | Github Open Source | Open Source | MIT | 2,021 | alat_berat | yudabp | PHP | Code | 592 | 2,818 | <?php
$this->load->view('template/head');
$this->load->view('template/topbar');
$this->load->view('template/sidebar');
?>
<style type="text/css">
a:hover{
text-decoration: none;
}
.days:hover{
color: blue;
cursor: pointer;
}
</style>
<!-- partial -->
<div class="main-panel">
... | 15,350 |
https://github.com/bploetz/dremio-oss/blob/master/dac/backend/src/main/java/com/dremio/dac/resource/AccelerationResource.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | dremio-oss | bploetz | Java | Code | 966 | 4,099 | /*
* Copyright (C) 2017 Dremio Corporation
*
* 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... | 14,303 |
https://github.com/zgg2001/Mark/blob/master/src/client/client/m_client.h | Github Open Source | Open Source | Apache-2.0 | 2,022 | Mark | zgg2001 | C | Code | 279 | 1,273 | /*************************************************************************
> File Name: m_client.h
> Author: ZHJ
> Remarks: 客户端类
> Created Time: Fri 04 Feb 2022 09:19:36 AM CST
************************************************************************/
#ifndef _M_CLIENT_H_
#define _M_CLIENT_H_
#include<unistd.h>
#... | 8,237 |
https://github.com/bLoyal-Integration/dinerware/blob/master/V1.0/DataSyncService/Service/Models/DWAddress.cs | Github Open Source | Open Source | MIT | null | dinerware | bLoyal-Integration | C# | Code | 72 | 148 | namespace DataSyncService.Models
{
public class DWAddress
{
public int address_cust_id { get; set; }
public string address_address1 { get; set; }
public string address_address2 { get; set; }
public string address_city { get; set; }
public string address_st { get; set; }
... | 39,190 |
https://github.com/AlanOliveira1998/ExerciciosPython01-100/blob/master/Exercicios Python/ex0008.py | Github Open Source | Open Source | MIT | null | ExerciciosPython01-100 | AlanOliveira1998 | Python | Code | 83 | 170 | # Escreva um programa que leia um valor em metros e o exiba convertido em centimetros e milimetros
n = float(input('Digite o valor em metros (m):'))
cm = n*100
mm = n*1000
dam = n/10
hm = n/100
km = n/ 1000
print('O valor em centimetros equivale a {} cm'. format(cm))
print('O valor em milimetros equivale a {} m.m'.form... | 4,620 |
https://github.com/rocktavious/larder/blob/master/pantry/admin.py | Github Open Source | Open Source | MIT | null | larder | rocktavious | Python | Code | 9 | 30 | from django.contrib import admin
from .models import Ingredient
admin.site.register(Ingredient)
| 24,921 |
https://github.com/hendrikleyendeckers/platform/blob/master/src/Storefront/Test/Framework/Seo/SeoUrl/SeoUrlExtensionTest.php | Github Open Source | Open Source | MIT | null | platform | hendrikleyendeckers | PHP | Code | 748 | 3,253 | <?php declare(strict_types=1);
namespace Shopware\Storefront\Test\Framework\Seo\SeoUrl;
use function Flag\next741;
use function Flag\skipTestNext741;
use PHPUnit\Framework\TestCase;
use Shopware\Core\Content\Product\ProductEntity;
use Shopware\Core\Defaults;
use Shopware\Core\Framework\Context;
use Shopware\Core\Fram... | 38,447 |
https://github.com/ridi/ridi-token-refresher/blob/master/scripts/generate_integrity.sh | Github Open Source | Open Source | MIT | null | ridi-token-refresher | ridi | Shell | Code | 18 | 65 | #! /bin/bash
INTEGRITY=$(cat $1 | openssl dgst -sha384 -binary | openssl base64 -A)
echo "<script src=\"$1\" integrity=\"sha384-$INTEGRITY\" crossorigin=\"anonymous\"></script>" | 3,314 |
https://github.com/metux/chromium-deb/blob/master/net/android/javatests/src/org/chromium/net/NetworkChangeNotifierNoNativeTest.java | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | null | chromium-deb | metux | Java | Code | 107 | 282 | // Copyright 2017 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.
package org.chromium.net;
import android.os.Looper;
import android.support.test.filters.MediumTest;
import org.junit.Test;
import org.junit.runner.RunWi... | 6,786 |
https://github.com/ghsecuritylab/comanche/blob/master/src/components/block/nvme/src/nvme_buffer.h | Github Open Source | Open Source | Apache-2.0 | 2,021 | comanche | ghsecuritylab | C | Code | 226 | 514 | /*
Copyright [2017] [IBM Corporation]
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 t... | 38,907 |
https://github.com/KawaRoro/DWWM_2005_part2/blob/master/_Mickael/DWWM_2005-master_21_02_2021_22h45/DWWM_2005-master/merise/tp_bibliotheque/sql/bibliotheque_DML.sql | Github Open Source | Open Source | MIT | null | DWWM_2005_part2 | KawaRoro | SQL | Code | 13 | 30 | -- INSERTION DU JEU D'ESSAI DANS LA BASE DE DONNEES db_bibli
USE db_bibli; | 20,153 |
https://github.com/The-Never/vueBlog-master/blob/master/server/routes/classify.js | Github Open Source | Open Source | MIT | null | vueBlog-master | The-Never | JavaScript | Code | 129 | 646 | const express = require('express');
const router = express.Router();
const api = require('../api');
const formatDate = require('../middleware/formatDate');
const checkToken = require('../middleware/checkToken');
// 创建分类 checkToken,
router.post('/create', checkToken, function (req,res,next){
let classify = {
cla... | 36,699 |
https://github.com/liftoff-group-five/ShopNotes/blob/master/angular/app/app.routing.ts | Github Open Source | Open Source | Apache-2.0 | null | ShopNotes | liftoff-group-five | TypeScript | Code | 136 | 357 |
import { NgModule } from '@angular/core'
import { BrowserModule } from '@angular/platform-browser'
import { Routes, RouterModule } from '@angular/router'
import { AppComponent } from './app.component'
import { LandingComponent } from './landing/landing.component'
import { LoginComponent } from './login/login.compo... | 30,055 |
https://github.com/baroquebobcat/pubsubhubbub-rb/blob/master/vendor/ohm-0.0.31/test/model_test.rb | Github Open Source | Open Source | Apache-2.0 | 2,021 | pubsubhubbub-rb | baroquebobcat | Ruby | Code | 1,885 | 5,769 | # encoding: UTF-8
require File.join(File.dirname(__FILE__), "test_helper")
require "ostruct"
class Post < Ohm::Model
attribute :body
list :comments
list :related, Post
end
class User < Ohm::Model
attribute :email
set :posts, Post
end
class Person < Ohm::Model
attribute :name
index :initial
def vali... | 28,327 |
https://github.com/dbqeo/bencuan.me/blob/master/src/sass/custom.scss | Github Open Source | Open Source | MIT | 2,021 | bencuan.me | dbqeo | SCSS | Code | 1,944 | 7,102 | /* ===================================
Main stylesheet for bencuan.me - v4_2021
Created by Ben Cuan
====================================== */
/* ----------
Imports
------------- */
@use '_mixins';
@use '_colors';
@use '_fonts';
@use '_animations';
@use '_burgers';
/* ----------
Variables
------------- */
$nav-height:... | 30,800 |
https://github.com/Fernando256/projeto-upload/blob/master/app0/mvc/Controlador/UploadControlador.php | Github Open Source | Open Source | MIT | null | projeto-upload | Fernando256 | PHP | Code | 66 | 274 | <?php
namespace Controlador;
use \Modelo\Upload;
use \Framework\DW3Sessao;
class UploadControlador extends Controlador {
public function index() {
$this->verificarLogado();
$this->visao('inicial/upload-file.php', [], 'navbar.php');
}
public function armazenar() {
$titulo = $_POST... | 27,707 |
https://github.com/roussita17/SistemaServicio/blob/master/Conexion(pdo).php | Github Open Source | Open Source | MIT | null | SistemaServicio | roussita17 | PHP | Code | 70 | 202 | <?php
/* Conectar a una base de datos de MySQL invocando al controlador */
$dsn = 'mysql:dbname=sistemaservicio;host=localhost';
$usuario = 'id8801236_root';
$contraseña = '14141414';
try {
$gbd = new PDO($dsn, $usuario, $contraseña);
foreach ($gbd->query("select * from usuarios") as $row) {
print $row[... | 46,174 |
https://github.com/sahujaunpuri/Backendless/blob/master/samples/EndlessMatchMaker/src/com/backendless/examples/endless/matchmaker/models/persistent/UserPreferences.java | Github Open Source | Open Source | MIT | null | Backendless | sahujaunpuri | Java | Code | 253 | 615 | /*
* ********************************************************************************************************************
* <p/>
* BACKENDLESS.COM CONFIDENTIAL
* <p/>
* ********************************************************************************************************************
* <p/>
* Copyright 20... | 4,071 |
https://github.com/continuous-software/node-rocketgate/blob/master/lib/reasonCodes.js | Github Open Source | Open Source | MIT | 2,016 | node-rocketgate | continuous-software | JavaScript | Code | 442 | 1,068 | module.exports = {
"0": "Success",
"100": "Declined – No matching transaction",
"101": "Declined – Cannot Void",
"102": "Declined – Cannot Credit",
"103": "Declined – Cannot Ticket",
"104": "Declined",
"105": "Declined - Over Limit",
"106": "Declined - CVV2",
"107": "Declined - Expir... | 9,863 |
https://github.com/jwindmuller/RpmApiClient-CSharp/blob/master/RpmApi/ApiResults/ProcsResult.cs | Github Open Source | Open Source | Apache-2.0 | null | RpmApiClient-CSharp | jwindmuller | C# | Code | 25 | 74 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RPM.ApiResults
{
class ProcsResult
{
public List<ProcResult> Procs { get; set; }
}
}
| 32,338 |
https://github.com/EPCCed/ffs/blob/master/test/smoke/ut_suite.c | Github Open Source | Open Source | BSD-3-Clause | 2,022 | ffs | EPCCed | C | Code | 74 | 275 | /*****************************************************************************
*
* ut_suite.c
*
* Parallel Forward Flux Sampling
* (c) 2012 The University of Edinburgh
* Funded by United Kingdom EPSRC Grant EP/I030298/1
*
*****************************************************************************/
#inclu... | 36,803 |
https://github.com/rohitgituser/co-connect-demo/blob/master/node_modules/@rxweb/reactive-form-validators/decorators/sanitize/toBoolean.decorator.d.ts | Github Open Source | Open Source | MIT | null | co-connect-demo | rohitgituser | TypeScript | Code | 13 | 30 | export declare function toBoolean(strict?: boolean): (target: Object, propertyKey: string, parameterIndex?: any) => void;
| 8,295 |
https://github.com/joannawheeler/4ntent-vue/blob/master/src/components/public/Pricing.vue | Github Open Source | Open Source | MIT | null | 4ntent-vue | joannawheeler | Vue | Code | 3,752 | 12,324 | <!-- PAYPAL NOT CURRENTLY IN USE FOR FREE TRIAL GROUP
USER CHOOSES A PLAN AND IS REDIRECTED TO DASHBOARD IMMEDIATELY-->
<template>
<div class="ntentbackground">
<div class="row titlecontent">
<div class="col">
<div class="pricing-title mont">
Choose Your Plan
</div>
</div>
... | 33,610 |
https://github.com/tamirgrBGU/CG3DBasicEngine/blob/master/tutorial/Project/Project.cpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | CG3DBasicEngine | tamirgrBGU | C++ | Code | 362 | 1,574 | #include "Project.h"
#include <iostream>
static void printMat(const Eigen::Matrix4d& mat)
{
std::cout<<" matrix:"<<std::endl;
for (int i = 0; i < 4; i++)
{
for (int j = 0; j < 4; j++)
std::cout<< mat(j,i)<<" ";
std::cout<<std::endl;
}
}
Project::Project()
{
}
//Project::Project(float angle ,float relatio... | 24,480 |
https://github.com/erthru/animeinfo/blob/master/resources/js/components/admin/ContentRead.vue | Github Open Source | Open Source | MIT | null | animeinfo | erthru | Vue | Code | 338 | 1,642 | <template>
<div>
<div class="row">
<div class="col-md-3">
<sidebar></sidebar>
</div>
<div class="modal fade" id="modalDelete" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="m... | 16,214 |
https://github.com/tralf-strues/simple-gui-library/blob/master/docs/search/classes_d.js | Github Open Source | Open Source | MIT | null | simple-gui-library | tralf-strues | JavaScript | Code | 6 | 78 | var searchData=
[
['text_0',['Text',['../class_sgl_1_1_text.html',1,'Sgl']]],
['tilepane_1',['TilePane',['../class_sgl_1_1_tile_pane.html',1,'Sgl']]]
];
| 13,340 |
https://github.com/Theoluky/setup-finder/blob/master/src/main/java/entry/move/MoveSettings.java | Github Open Source | Open Source | MIT | 2,022 | setup-finder | Theoluky | Java | Code | 196 | 597 | package entry.move;
import common.tetfu.common.ColorType;
import common.tetfu.field.ColoredField;
import core.field.Field;
import core.field.FieldFactory;
import java.util.ArrayList;
import java.util.List;
public class MoveSettings {
private static final String DEFAULT_LOG_FILE_PATH = "output/last_output.txt";
... | 15,053 |
https://github.com/bluemax75/ssh2.nim/blob/master/src/ssh2/private/agent.nim | Github Open Source | Open Source | MIT | 2,022 | ssh2.nim | bluemax75 | null | Spoken | 141 | 413 | import libssh2, types, strformat
proc initAgent*(session: Session): Agent {.inline.} =
result = session.agent_init()
if result.isNil:
raise newException(SSHException, "Failure initializing ssh-agent support")
proc connect*(agent: Agent) {.inline.} =
if agent.agent_connect() < 0:
raise newException(SSHEx... | 46,444 |
https://github.com/boston-library/curator/blob/master/spec/indexers/concerns/curator/indexer/related_item_indexer_spec.rb | Github Open Source | Open Source | MIT | 2,021 | curator | boston-library | Ruby | Code | 128 | 611 | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe Curator::Indexer::RelatedItemIndexer do
describe 'indexing' do
let(:indexer_test_class) do
Class.new(Curator::Indexer) do
include Curator::Indexer::RelatedItemIndexer
end
end
let(:indexer) { indexer_test_class.new }
... | 42,479 |
https://github.com/hsguron/alexa/blob/master/Integration/include/Integration/ConnectionStatusObserver.h | Github Open Source | Open Source | Apache-2.0 | null | alexa | hsguron | C | Code | 331 | 834 | /*
* ConnectionStatusObserver.h
*
* Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon... | 21,606 |
https://github.com/inepex/ineform/blob/master/ineform/src/main/java/com/inepex/ineForm/client/form/FormContext.java | Github Open Source | Open Source | BSD-3-Clause | 2,016 | ineform | inepex | Java | Code | 239 | 909 | package com.inepex.ineForm.client.form;
import com.google.gwt.event.shared.EventBus;
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.inepex.ineForm.client.datamanipulator.ValueRangeProvider;
import com.inepex.ineForm.client.form.factories.FormUnitFactory;
import com.inepex.ineForm.client... | 39,179 |
https://github.com/VladyslavLysak/-veton/blob/master/frontend/src/Components/cards/DoctorCard/index.js | Github Open Source | Open Source | MIT | null | -veton | VladyslavLysak | JavaScript | Code | 77 | 243 | import React from 'react'
import { useSelector, useDispatch } from 'react-redux'
import { selectDoctorCity, selectCity } from 'Redux/reducers/citiesSlice'
import {
onDoctorChange,
onCityChange,
onHospitalChange,
} from 'Redux/reducers/orderSlice'
import DoctorCardLayout from './DoctorCard'
const DoctorCard = ... | 16,369 |
https://github.com/full360/terraform-aws-ssm-parameter-store/blob/master/variables.tf | Github Open Source | Open Source | Apache-2.0 | null | terraform-aws-ssm-parameter-store | full360 | HCL | Code | 209 | 393 | variable "parameter_read" {
type = list(any)
description = "List of parameters to read from SSM. These must already exist otherwise an error is returned. Can be used with `parameter_write` as long as the parameters are different."
default = []
}
variable "parameter_write" {
type = list(any)
descr... | 44,605 |
https://github.com/yahyanik/survewilance_camera/blob/master/app.py | Github Open Source | Open Source | MIT | null | survewilance_camera | yahyanik | Python | Code | 225 | 658 | #!/usr/bin/env python
from importlib import import_module
import os
from flask import Flask, render_template, Response, make_response
import argparse
# import camera driver
if os.environ.get('CAMERA'):
Camera = import_module('camera_' + os.environ['CAMERA']).Camera
else:
from camera_opencv import Camera
# Ra... | 16,063 |
https://github.com/teshima058/3d_pose_baseline_openpose/blob/master/src/plot_pose.py | Github Open Source | Open Source | MIT | null | 3d_pose_baseline_openpose | teshima058 | Python | Code | 413 | 2,084 | import matplotlib.pyplot as plt
import numpy as np
import argparse
import seaborn as sns
import pandas as pd
from matplotlib import pyplot, transforms
import matplotlib.pyplot as plt
from matplotlib import animation, rc
from mpl_toolkits.mplot3d import axes3d, Axes3D
from matplotlib.animation import FFMpegWriter
from ... | 36,913 |
https://github.com/donkagunila/tzconnect/blob/master/resources/views/admin/service/createtransport.blade.php | Github Open Source | Open Source | MIT | null | tzconnect | donkagunila | PHP | Code | 125 | 627 | @extends('layouts.admin')
@section('title', 'Transport Service | Admin')
@section('content')
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header card-header-rose card-header-icon">
<div class="card-icon">
... | 40,704 |
https://github.com/ahmad-atef/GraphQL-Kata/blob/master/ApolloCodegen/ApolloCLI/apollo/node_modules/@apollographql/graphql-language-service-utils/dist/getASTNodeAtPosition.js | Github Open Source | Open Source | MIT | 2,021 | GraphQL-Kata | ahmad-atef | JavaScript | Code | 170 | 425 | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getASTNodeAtPosition = getASTNodeAtPosition;
exports.pointToOffset = pointToOffset;
var _Range = require('./Range');
var _graphql = require('graphql');
function getASTNodeAtPosition(query, ast, point) {
var offset = pointToOffs... | 4,102 |
https://github.com/Quire/handsontable/blob/master/handsontable/src/selection/highlight/types/cell.js | Github Open Source | Open Source | MIT | null | handsontable | Quire | JavaScript | Code | 100 | 211 | import { CELL_TYPE } from '../constants';
import VisualSelection from '../visualSelection';
/**
* Creates the new instance of Selection responsible for highlighting currently selected cell. This type of selection
* can present on the table only one at the time.
*
* @param {object} highlightParams A configuration o... | 44,519 |
https://github.com/federicogatti/eftaios/blob/master/src/main/java/it/polimi/eftaios/model/card/AttackCard.java | Github Open Source | Open Source | Apache-2.0 | null | eftaios | federicogatti | Java | Code | 52 | 190 | package it.polimi.eftaios.model.card;
import it.polimi.eftaios.model.command.AttackCommand;
import it.polimi.eftaios.model.command.Command;
import it.polimi.eftaios.view.gui.AttackCardImage;
import java.awt.Image;
public class AttackCard extends ObjectCard {
private static final long serialVersionUID = 1L;
pub... | 41,276 |
https://github.com/itsyaboyrocket/pirates/blob/master/pirates/effects/RainSplashes.py | Github Open Source | Open Source | BSD-3-Clause | 2,022 | pirates | itsyaboyrocket | Python | Code | 221 | 1,638 | # uncompyle6 version 3.2.0
# Python bytecode 2.4 (62061)
# Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)]
# Embedded file name: pirates.effects.RainSplashes
from pandac.PandaModules import *
from direct.interval.IntervalGlobal import *
from direct.particles import... | 9,472 |
https://github.com/kzrnm/SourceExpander/blob/master/Source/SourceExpander.Generating.Common/EmbeddedLoader.cs | Github Open Source | Open Source | MIT | null | SourceExpander | kzrnm | C# | Code | 337 | 1,294 | using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Threading;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
namespace SourceExpander
{
/// <summary>
/// Resolve Embedded source code
/// </summary>
public class Embedd... | 29,228 |
https://github.com/surfstudio/SurfAndroidStandard/blob/master/navigation/lib-navigation/src/main/java/ru/surfstudio/android/navigation/command/dialog/Dismiss.kt | Github Open Source | Open Source | Apache-2.0 | 2,022 | SurfAndroidStandard | surfstudio | Kotlin | Code | 36 | 169 | package ru.surfstudio.android.navigation.command.dialog
import ru.surfstudio.android.navigation.animation.Animations
import ru.surfstudio.android.navigation.animation.DefaultAnimations
import ru.surfstudio.android.navigation.animation.resource.NoResourceAnimations
import ru.surfstudio.android.navigation.command.dialog... | 24,170 |
https://github.com/vntborgesjr/Python-Mundo-01/blob/master/desafio021.py | Github Open Source | Open Source | MIT | null | Python-Mundo-01 | vntborgesjr | Python | Code | 32 | 102 | # Desafio 021 - Faça um programa em Python que abre e reproduza o audio de um arquivo mp3.
'''
import os
os.startfile('01. Faixa 1.mp3.mp3')
'''
import pygame
pygame.init()
pygame.mixer.music.load('ex01.mp3')
pygame.mixer.music.play()
pygame.event.wait() | 29,649 |
https://github.com/finderly/googleads-mobile-ios-mediation/blob/master/adapters/AppLovin/AppLovinAdapter/GADMAppLovinMediatedNativeUnifiedAd.h | Github Open Source | Open Source | Apache-2.0 | 2,020 | googleads-mobile-ios-mediation | finderly | C | Code | 61 | 242 | //
// GADMAppLovinMediatedNativeUnifiedAd.h
// SDK Network Adapters Test App
//
// Created by Santosh Bagadi on 4/12/18.
// Copyright © 2018 AppLovin Corp. All rights reserved.
//
#import <AppLovinSDK/AppLovinSDK.h>
#import <GoogleMobileAds/GoogleMobileAds.h>
@interface GADMAppLovinMediatedNativeUnifiedAd : NSObj... | 44,319 |
https://github.com/Anteycu/goit-react-hw-07-phonebook/blob/master/src/redux/store.js | Github Open Source | Open Source | MIT | null | goit-react-hw-07-phonebook | Anteycu | JavaScript | Code | 28 | 77 | import contactReducer from "./contacts/contactsReducer";
// import logger from "redux-logger";
import { configureStore } from "@reduxjs/toolkit";
const store = configureStore({
reducer: {
contacts: contactReducer,
},
});
export default store;
| 16,002 |
https://github.com/seedalpha/vue/blob/master/test/unit/specs/async_component_spec.js | Github Open Source | Open Source | MIT | null | vue | seedalpha | JavaScript | Code | 471 | 1,442 | var Vue = require('../../../src/index')
var _ = Vue.util
describe('Async components', function () {
var el
beforeEach(function () {
el = document.createElement('div')
document.body.appendChild(el)
spyWarns()
})
afterEach(function () {
document.body.removeChild(el)
})
it('normal', functio... | 32,750 |
https://github.com/TJVB/githash/blob/master/src/HashFinders/GitFileSystemHashFinder.php | Github Open Source | Open Source | MIT | 2,021 | githash | TJVB | PHP | Code | 280 | 864 | <?php
declare(strict_types=1);
namespace TJVB\GitHash\HashFinders;
use Exception;
use TJVB\GitHash\Contracts\GitHashFinder;
use TJVB\GitHash\Exceptions\GitHashException;
use TJVB\GitHash\Values\GitHash;
final class GitFileSystemHashFinder implements GitHashFinder
{
public const GIT_DIRECTORY = '.git';
publ... | 2,267 |
https://github.com/fbarrera/educasostenible1/blob/master/application/views/special/monitoreo/formularios-general/contrapartes.php | Github Open Source | Open Source | MIT | null | educasostenible1 | fbarrera | PHP | Code | 234 | 1,527 | <form action="<?php echo base_url('/proceso_monitoreo/guardar_informacion_general/' . $data->id . '/4') ?>"
method='POST'>
<ul class="list list-lg">
<li class="align-items-center">
<div class="row">
<h4 class="col-4">Liderazgo</h4>
</div>
</li>
<li class="align-items-center">
<div class="row">
... | 46,653 |
https://github.com/adelhult/welcome-bot/blob/master/main.py | Github Open Source | Open Source | MIT | 2,021 | welcome-bot | adelhult | Python | Code | 133 | 417 | from discord import Client, Intents, Embed, ChannelType
from greet import greet, get_gif
from actions import act
import sys
try:
from config import *
except Exception:
print("You need to create a config object!!")
sys.exit(1)
class Bot(Client):
async def on_ready(self):
print(f'Logged on as {s... | 18,407 |
https://github.com/indramahkota/made-moveous/blob/master/app/src/main/java/com/indramahkota/moveous/ui/HomeFragment.kt | Github Open Source | Open Source | MIT | null | made-moveous | indramahkota | Kotlin | Code | 8 | 34 | package com.indramahkota.moveous.ui
import androidx.fragment.app.Fragment
class HomeFragment : Fragment() | 13,575 |
https://github.com/jbarrez/flowable-engine/blob/master/modules/flowable-dmn-rest/src/test/java/org/flowable/rest/dmn/service/api/repository/DmnDeploymentResourceTest.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | flowable-engine | jbarrez | Java | Code | 317 | 1,260 | /* 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 writing, software
* distributed... | 25,350 |
https://github.com/zippi-tech/zippi-tachyons/blob/master/docs/components/Colors.js | Github Open Source | Open Source | MIT | 2,018 | zippi-tachyons | zippi-tech | JavaScript | Code | 257 | 716 | const React = require('react')
const e = React.createElement
const colorable = require('colorable')
const {
ColorsCx: {
td,
bg,
color,
colorTile
}
} = require('../style')
const COLORABLE_DESCRIPTION = `
In visual perception a color is almost never seen as
it really is – as it physically is. T... | 44,856 |
https://github.com/mtlynch/pyrestic/blob/master/restic/internal/snapshots_test.py | Github Open Source | Open Source | MIT | 2,022 | pyrestic | mtlynch | Python | Code | 144 | 881 | import unittest
from unittest import mock
import restic
from restic.internal import snapshots
# Ignore suggestions to turn methods into functions.
# pylint: disable=R0201
class SnapshotsTest(unittest.TestCase):
@mock.patch.object(snapshots.command_executor, 'execute')
def test_snapshots_simple(self, mock_e... | 5,024 |
https://github.com/kierdavis/mealplanner/blob/master/mpdb/tables.go | Github Open Source | Open Source | BSD-3-Clause | 2,017 | mealplanner | kierdavis | Go | Code | 913 | 2,304 | package mpdb
import (
"database/sql"
"github.com/kierdavis/mealplanner/mpdata"
"log"
"time"
)
// SQL statements to delete tables.
var deleteTablesSQLs = []string{
"DROP TABLE IF EXISTS meal",
"DROP TABLE IF EXISTS tag",
"DROP TABLE IF EXISTS mealplan",
"DROP TABLE IF EXISTS serving",
}
// SQL statements to c... | 5,864 |
https://github.com/TomaszRewak/BMCP/blob/master/BMCP_GA/Flow.h | Github Open Source | Open Source | MIT | 2,022 | BMCP | TomaszRewak | C | Code | 100 | 463 | #pragma once
#include <vector>
#include "../GeneticAlgorithm/GeneticAlgorithm.h"
#include "Random.h"
namespace BMCP_GA
{
class Split : public GA::Component
{
private:
std::vector<std::pair<int, std::shared_ptr<GA::Component>>> flows;
int iteration = 0;
int currentFlow = 0;
public:
Split(std::function<v... | 22,452 |
https://github.com/rjw57/tiw-computer/blob/master/emulator/src/mame/includes/shadfrce.h | Github Open Source | Open Source | MIT | 2,022 | tiw-computer | rjw57 | C | Code | 180 | 1,333 | // license:BSD-3-Clause
// copyright-holders:David Haywood
#include "machine/gen_latch.h"
#include "machine/timer.h"
#include "sound/okim6295.h"
#include "screen.h"
class shadfrce_state : public driver_device
{
public:
shadfrce_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device... | 7,960 |
https://github.com/Kesco-m/Kesco.App.Web.MVC.Persons/blob/master/Kesco.Persons.Web/Views/Shared/DisplayTemplates/DialogResult.ascx | Github Open Source | Open Source | MIT | null | Kesco.App.Web.MVC.Persons | Kesco-m | null | Spoken | 37 | 170 | <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<DialogResult>" %>
<script type="text/javascript" language="javascript">
$(document).ready(function () {
<% if (!String.IsNullOrWhiteSpace(Model.ReturnUri)) { %>
$("#dialogResultForm").attr("action", "<%= Model.ReturnUri %>");
<% } %>
<% if (!St... | 43,897 |
https://github.com/jubedhms/jubedhms/blob/master/application/controllers/Chat_patient.php | Github Open Source | Open Source | MIT | null | jubedhms | jubedhms | PHP | Code | 618 | 5,316 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Chat_patient extends MY_Controller {
public function __construct(){
parent::__construct();
$this->load->model('chat_model');
$this->main_page=base_url(''.strtolower(get_class($this)));
$this->heading='Chat List';
... | 12,028 |
https://github.com/mgarrettm/serverless-prototype/blob/master/Common/Providers/QueueProvider.cs | Github Open Source | Open Source | MIT | 2,021 | serverless-prototype | mgarrettm | C# | Code | 197 | 782 | using System;
using System.Collections.Concurrent;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.WindowsAzure.Storage.Queue;
using Serverless.Common.Configuration;
using Serverless.Common.Extensions;
namespace Serverless.Common.Providers
{
public static class QueueProvider
{
pr... | 22,852 |
https://github.com/emersonsiega/FlashCards/blob/master/components/container/DeckViewContainer.js | Github Open Source | Open Source | MIT | null | FlashCards | emersonsiega | JavaScript | Code | 145 | 415 | import React, { Component } from 'react'
import { connect } from 'react-redux'
import DeckView from '../presentational/DeckView'
import { routes } from '../../routes'
class DeckViewContainer extends Component {
static navigationOptions = ({ navigation }) => ({
title: navigation.state.params.deckTitle,
})
o... | 24,670 |
https://github.com/Estefani-prog/individual-entrega-5/blob/master/back-end/src/main/java/entregafinal/forrester/util/DateUtil.java | Github Open Source | Open Source | MIT | null | individual-entrega-5 | Estefani-prog | Java | Code | 23 | 102 | package entregafinal.forrester.util;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import org.springframework.stereotype.Component;
@Component
public class DateUtil {
public String formatLocalDateTime(LocalDateTime dateTime) {
return DateTimeFormatter.ofPattern("yyyy-MM-dd HH... | 36,174 |
https://github.com/rvansa/JGroups/blob/master/src/org/jgroups/protocols/relay/SiteMaster.java | Github Open Source | Open Source | Apache-2.0 | null | JGroups | rvansa | Java | Code | 138 | 344 | package org.jgroups.protocols.relay;
import org.jgroups.Address;
import org.jgroups.util.UUID;
/**
* Special address with the UUID part being 0: identifies the current (relay) coordinator of a given site. E,g, if we
* send a message with dest=SiteMaster(SFO) from site LON, then the message will be forwarded to the ... | 30,900 |
https://github.com/mosaic-cloud/mosaic-distribution-dependencies/blob/master/dependencies/otp/r15b03-1/lib/ssl/src/ssl_connection.erl | Github Open Source | Open Source | Apache-2.0 | null | mosaic-distribution-dependencies | mosaic-cloud | Erlang | Code | 9,100 | 32,398 | %%
%% %CopyrightBegin%
%%
%% Copyright Ericsson AB 2007-2012. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
%% compliance with the License. You should have received a copy of the
%% Erlang Public Licens... | 13,317 |
https://github.com/Abishaik/NodeJS-codes/blob/master/express_example.js | Github Open Source | Open Source | MIT | null | NodeJS-codes | Abishaik | JavaScript | Code | 44 | 105 | //Required Modules
const express = require('express')
//creating an instance
const app = express()
//Function inside Route
app.get('/', (req, res) => {
// to display in webpage
res.send('Hello World!')
})
//setting server for production
app.listen(3000, () => {
console.log(`Example app listening at http://lo... | 15,613 |
https://github.com/plagoa/big-data-plugin/blob/master/kettle-plugins/hbase/src/main/java/org/pentaho/big/data/kettle/plugins/hbase/mapping/HBaseRowToKettleTuple.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | big-data-plugin | plagoa | Java | Code | 1,159 | 3,136 | /*******************************************************************************
*
* Pentaho Big Data
*
* Copyright (C) 2002-2017 by Hitachi Vantara : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (the ... | 21,673 |
https://github.com/huangtao/cloud-test/blob/master/vendor/RainbowRepacker/tool/engine_android(5)/assets/scripts/view/kScreen_1280_800/hall/login/login_autoVerifyFailed.lua | Github Open Source | Open Source | Apache-2.0 | 2,018 | cloud-test | huangtao | Lua | Code | 64 | 2,087 | local login_autoVerifyFailed=
{
name="login_autoVerifyFailed",type=0,typeName="View",time=0,report=0,x=0,y=0,width=0,height=0,visible=1,fillParentWidth=1,fillParentHeight=1,nodeAlign=kAlignCenter,
{
name="shiled",type=1,typeName="Image",time=77266903,report=0,x=0,y=0,width=0,height=0,visible=1,fillParentWidth=1,fil... | 10,023 |
https://github.com/SanwixCo/MHGenericAdapter/blob/master/mhrecycleradapter/src/main/java/mh/sanwix/com/GenericAdapter/MHViewHolder.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | MHGenericAdapter | SanwixCo | Java | Code | 536 | 2,021 | package mh.sanwix.com.GenericAdapter;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.EditText;
import android... | 45,899 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.