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/tinyzimmer/android-farm-operator/blob/master/pkg/resources/emulators/gc.go | Github Open Source | Open Source | MIT | 2,021 | android-farm-operator | tinyzimmer | Go | Code | 445 | 1,204 | package emulators
import (
"context"
"strings"
androidv1alpha1 "github.com/tinyzimmer/android-farm-operator/pkg/apis/android/v1alpha1"
stfutil "github.com/tinyzimmer/android-farm-operator/pkg/util/stf"
"github.com/go-logr/logr"
rdb "gopkg.in/rethinkdb/rethinkdb-go.v6"
metav1 "k8s.io/apimachinery/pkg/apis/meta/... | 21,940 |
https://github.com/aodn/aatams/blob/master/plugins/quartz-0.4.2/src/templates/sql/tables_hsqldb_old.sql | Github Open Source | Open Source | Apache-2.0 | 2,021 | aatams | aodn | SQL | Code | 431 | 1,808 | #
# Thanks to Joseph Wilkicki for submitting this file's contents
#
# In your Quartz properties file, you'll need to set
# org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.HSQLDBDelegate
#
# Some users report the need to change the fields
# with datatype "OTHER" to datatype "BINARY" with
# part... | 50,192 |
https://github.com/qlcchain/go-qlc/blob/master/p2p/types_test.go | Github Open Source | Open Source | MIT | 2,022 | go-qlc | qlcchain | Go | Code | 60 | 303 | package p2p
import (
"bytes"
"testing"
)
func TestNewMessage(t *testing.T) {
msg := NewMessage(PublishReq, "QmYPq8Cqqfyhaj6pKCiCMVX3KFRMZwi4w6fU6wGLU2T9JC", []byte{0x03, 0x04}, []byte{0x01, 0x02, 0x03, 0x04})
if msg.messageType != PublishReq {
t.Fatal("messageType error")
}
if msg.MessageFrom() != "QmYPq8Cqqf... | 46,401 |
https://github.com/ErshovVladislav10M/-Graduate-work-Bachelor-/blob/master/lib/Painless_Mesh/examples/mqttBridge/mqttBridge.ino | Github Open Source | Open Source | Apache-2.0 | null | -Graduate-work-Bachelor- | ErshovVladislav10M | null | Spoken | 417 | 1,252 | //************************************************************
// this is a simple example that uses the painlessMesh library to
// connect to a another network and relay messages from a MQTT broker to the nodes of the mesh network.
// To send a message to a mesh node, you can publish it to "painlessMesh/to/12345678" w... | 17,125 |
https://github.com/jpsilveira13/sapl/blob/master/resources/views/site/formularios.blade.php | Github Open Source | Open Source | MIT | null | sapl | jpsilveira13 | PHP | Code | 174 | 737 | @extends('site.app')
@section('header')
@include('site.header')
@endsection
@section('content')
<div class="container">
<section id="primary" class="content-full-width">
<h2 class="aligncenter"> Formulário - Cadastro de Fornecedores </h2>
<div class="dt-sc-hr-invisible-small"></... | 15,068 |
https://github.com/laravelfy/commentable/blob/master/publishes/Requests/CommentStoreRequest.php | Github Open Source | Open Source | MIT | null | commentable | laravelfy | PHP | Code | 58 | 198 | <?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
/**
* 评论请求
*/
class CommentStoreRequest extends FormRequest
{
/**
* 当前用户是否有权限添加评论
*
* @return bool
*/
public function authorize()
{
return auth()->user() ? true: false;
}
/**
* 校验规则
... | 11,559 |
https://github.com/wangyum/Anaconda/blob/master/pkgs/ipython-1.2.1-py27_0/lib/python2.7/site-packages/IPython/nbconvert/exporters/tests/test_rst.py | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause, LicenseRef-scancode-unknown | 2,022 | Anaconda | wangyum | Python | Code | 97 | 275 | """
Module with tests for rst.py
"""
#-----------------------------------------------------------------------------
# Copyright (c) 2013, the IPython Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#--------... | 49,205 |
https://github.com/seyicoded/mvp_sreport1/blob/master/.history/resources/views/admin/home.blade_20220316150633.php | Github Open Source | Open Source | Apache-2.0 | null | mvp_sreport1 | seyicoded | PHP | Code | 96 | 556 | @extends('admin.layout.app')
@section('content')
<div class="w3-container">
<form method="POST" action="url('/admin/create_new_entry')" class="w3-center w3-card-4 w3-padding-32">
<br/>
@csrf
<h1>Create new Link</h1>
<div class="w3-container">
... | 42,418 |
https://github.com/aliyun/alibabacloud-python-sdk/blob/master/cloudphoto-20170711/alibabacloud_cloudphoto20170711/client.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | alibabacloud-python-sdk | aliyun | Python | Code | 5,775 | 34,822 | # -*- coding: utf-8 -*-
# This file is auto-generated, don't edit it. Thanks.
from typing import Dict
from alibabacloud_tea_openapi.client import Client as OpenApiClient
from alibabacloud_tea_openapi import models as open_api_models
from alibabacloud_tea_util.client import Client as UtilClient
from alibabacloud_endpoi... | 44,658 |
https://github.com/lidio601/html2sendgrid/blob/master/src/lib/filesystem.js | Github Open Source | Open Source | MIT | null | html2sendgrid | lidio601 | JavaScript | Code | 153 | 456 | const _ = require("lodash");
const path = require("path");
const fs = require("fs");
const { makeLoggers } = require("@lidio601/logger");
const { BUILD_DIR } = require("./config");
const { log, logi } = makeLoggers("filesystem", false);
/**
* @typedef TemplateData
* @property {String} name template name (incl. lan... | 32,499 |
https://github.com/tiankk/taskthread/blob/master/src/def.h | Github Open Source | Open Source | MIT | 2,016 | taskthread | tiankk | C | Code | 93 | 280 | /**
* @file: def.h
* @author: tiankk <tiankk@gmail.com>
* @created: 2014/02/13
*/
#ifndef __DEF_H__
#define __DEF_H__
#include <tchar.h>
#include <string>
#include <fstream>
#include <sstream>
#ifdef UNICODE
#define tstring std::wstring
#define tostream std::wostream
#define tistream std... | 4,708 |
https://github.com/aws/aws-sdk-cpp/blob/master/generated/src/aws-cpp-sdk-m2/include/aws/m2/model/MaintenanceSchedule.h | Github Open Source | Open Source | Apache-2.0, MIT, JSON | 2,023 | aws-sdk-cpp | aws | C++ | Code | 357 | 1,099 | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/m2/MainframeModernization_EXPORTS.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class J... | 32,434 |
https://github.com/sux2mfgj/bitvisor-kconfig/blob/master/core/constants.h | Github Open Source | Open Source | 0BSD, Unlicense, Intel, OpenSSL, BSD-3-Clause | 2,022 | bitvisor-kconfig | sux2mfgj | C | Code | 2,654 | 15,033 | /*
* Copyright (c) 2007, 2008 University of Tsukuba
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this ... | 55,872 |
https://github.com/bcgov/cas-ggircs/blob/master/verify/swrs/transform/materialized_view/historical_report_emission_data@v1.5.0.sql | Github Open Source | Open Source | Apache-2.0 | 2,019 | cas-ggircs | bcgov | SQL | Code | 13 | 57 | -- Verify ggircs:swrs/transform/materialized_view/historical_report_emission_data on pg
begin;
select * from swrs_transform.historical_report_emission_data where false;
rollback;
| 38,441 |
https://github.com/Meowmaritus/DSAnimStudio/blob/master/DSAnimStudioNETCore/FMOD/fmod_event_net.cs | Github Open Source | Open Source | MIT | 2,023 | DSAnimStudio | Meowmaritus | C# | Code | 203 | 617 | #define WIN64
/* ========================================================================================== */
/* FMOD Event Net - C# Wrapper . Copyright (c), Firelight Technologies Pty, Ltd. 2004-2016. */
/* */
/* ... | 21,145 |
https://github.com/openebs/elves/blob/master/e2e/vendor/github.com/gogo/protobuf/test/castvalue/castvalue.pb.go | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause | 2,020 | elves | openebs | Go | Code | 6,056 | 24,385 | // Code generated by protoc-gen-gogo.
// source: castvalue.proto
// DO NOT EDIT!
/*
Package castvalue is a generated protocol buffer package.
It is generated from these files:
castvalue.proto
It has these top-level messages:
Castaway
Wilson
*/
package castvalue
import proto "github.com/gogo/protobuf/proto"
impor... | 32,489 |
https://github.com/Stefania12/Web-Client/blob/master/RequestMaker.h | Github Open Source | Open Source | MIT | null | Web-Client | Stefania12 | C | Code | 101 | 261 | #include "includes.h"
#ifndef REQUESTMAKER_H
#define REQUESTMAKER_H
// Builds HTTP requests.
class RequestMaker
{
public:
// Builds and returns a GET request.
// Adds cookie/jwt if it is a non-empty string.
static std::string make_get_request(std::string host, std::string url,
... | 22,003 |
https://github.com/5l1v3r1/bizzet/blob/master/src/BizzetFactory.php | Github Open Source | Open Source | MIT | 2,020 | bizzet | 5l1v3r1 | PHP | Code | 38 | 123 | <?php
/**
* File: BizzetFactory.php
* @author: Cvar1984 <gedzsarjuncomuniti@gmail.com>
* Date: 19.01.2020
* Last Modified Date: 19.01.2020
* Last Modified By: Cvar1984 <gedzsarjuncomuniti@gmail.com>
*/
namespace Cvar1984\Bizzet;
class BizzetFactory
{
public static function create($model)
{
return... | 48,588 |
https://github.com/mishra-arun/FiloDB/blob/master/core/src/main/scala/filodb.core/query/KeyFilter.scala | Github Open Source | Open Source | Apache-2.0 | 2,020 | FiloDB | mishra-arun | Scala | Code | 639 | 1,441 | package filodb.core.query
import java.util.regex.Pattern
import filodb.core.metadata.{Column, DataColumn, Dataset}
import filodb.memory.format.{SingleValueRowReader, UTF8Wrapper, ZeroCopyUTF8String}
sealed trait Filter {
def filterFunc: Any => Boolean
}
object Filter {
final case class Equals(value: Any) extend... | 38,140 |
https://github.com/GregoryGoldshteyn/mage/blob/master/Mage.Client/src/main/java/za/co/swinggamelibrary/GameLoop.java | Github Open Source | Open Source | MIT | 2,020 | mage | GregoryGoldshteyn | Java | Code | 503 | 1,206 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package za.co.swinggamelibrary;
import java.util.concurrent.atomic.AtomicBoolean;
/**
*
* @author dkrou
*/
public abstract class G... | 18,872 |
https://github.com/stevest/prefrontal-micro/blob/master/experiment/network/analysis/Paper_2016/exportStimulationParameters.m | Github Open Source | Open Source | MIT | 2,016 | prefrontal-micro | stevest | MATLAB | Code | 75 | 502 | function exportStimulationParameters(run, pathto)
% Export stimulation parameters in .hoc file:
filename = sprintf('importStimulationParameters_SN%d.hoc',run.sn);
fprintf('Exporting %s...\n',filename);
fid = fopen([pathto,filesep,filename],'W');
fprintf(fid,'// This HOC file was generated with MATLAB\n\n');
fprintf(... | 6,489 |
https://github.com/mck-user580/kafka-connect-azure-storage/blob/master/src/main/java/com/mckesson/kafka/connect/azure/storage/Version.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | kafka-connect-azure-storage | mck-user580 | Java | Code | 132 | 272 | /**
* Copyright Vitalii Rudenskyi (vrudenskyi@gmail.com)
*
* 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 app... | 28,214 |
https://github.com/cbsinteractive/query-tfc-state/blob/master/cmd/workspaces_delete.go | Github Open Source | Open Source | MIT | null | query-tfc-state | cbsinteractive | Go | Code | 141 | 504 | package cmd
import (
"context"
"errors"
"flag"
"io"
"github.com/hashicorp/go-tfe"
)
type workspacesDeleteCmd struct {
fs *flag.FlagSet
deps dependencyProxies
OrgOpts
WorkspaceOpts
w io.Writer
}
func newWorkspacesDeleteCmd(deps dependencyProxies, w io.Writer) *workspacesDeleteCmd {
c := &workspacesDelet... | 38,347 |
https://github.com/trichl/TickTagOpenSource/blob/master/TickTagProgramming/jtag2updi-master/jtag2updi/UPDI_lo_lvl.h | Github Open Source | Open Source | MIT | 2,022 | TickTagOpenSource | trichl | C | Code | 277 | 1,145 | /*
* UPDI_cmd.h
*
* Created: 23-11-2017 22:46:11
* Author: JMR_2
*/
#ifndef UPDI_LO_LVL_H_
#define UPDI_LO_LVL_H_
#include "sys.h"
#include "dbg.h"
#include "updi_io.h"
#include "dbg.h"
namespace UPDI {
// UPDI registers
enum reg {
Status_A, Status_B, Control_A, Control_B,
Reg_4, Reg_5, Reg_6, AS... | 21,210 |
https://github.com/lzyang2000/kinpy/blob/master/kinpy/mjcf_parser/copier.py | Github Open Source | Open Source | MIT | 2,022 | kinpy | lzyang2000 | Python | Code | 361 | 857 | # Copyright 2018 The dm_control Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 38,656 |
https://github.com/ebi-gene-expression-group/atlas/blob/master/atlas-misc/scripts/db_updates/scxa/20171127-create-experiment-table.sql | Github Open Source | Open Source | Apache-2.0 | 2,019 | atlas | ebi-gene-expression-group | SQL | Code | 63 | 228 | DROP TABLE scxa_experiment CASCADE;
CREATE TABLE IF NOT EXISTS scxa_experiment
(
accession VARCHAR(255) NOT NULL
CONSTRAINT scxa_experiment_pkey
PRIMARY KEY,
type VARCHAR(50) NOT NULL,
species VARCHAR(255) NOT NULL,
access_key CHAR(36) NOT NULL,
private BOOLEAN DEFAULT TRUE,
... | 39,440 |
https://github.com/simpleit/BehatViewer/blob/master/src/BehatViewer/BehatViewerBundle/Resources/views/Feature/source.html.twig | Github Open Source | Open Source | MIT | 2,013 | BehatViewer | simpleit | Twig | Code | 99 | 364 | {% extends 'BehatViewerUiBundle::layout.html.twig' %}
{% block container %}
<h1 class="page-header">
{{ feature.name }} {% if build %}
<small>(#{{ build.id }} Built <span data-rel="moment">{{ build.date|date("Y-m-d H:i:s")}}</span>)</small>
{% endif %}
{% include 'BehatViewerBu... | 22,954 |
https://github.com/BenjaminHRC/BikeAdmin/blob/master/routes/web.php | Github Open Source | Open Source | MIT | null | BikeAdmin | BenjaminHRC | PHP | Code | 409 | 1,855 | <?php
use App\Http\Controllers\BrandController;
use App\Http\Controllers\CategoryController;
use App\Http\Controllers\CustomerController;
use App\Http\Controllers\OrderController;
use App\Http\Controllers\OrderItemController;
use App\Http\Controllers\ProductController;
use App\Http\Controllers\RoleController;
use App\... | 52,726 |
https://github.com/DFE-Digital/apply-for-teacher-training/blob/master/spec/system/provider_interface/change_existing_offer_ske_standard_flow_spec.rb | Github Open Source | Open Source | MIT, LicenseRef-scancode-proprietary-license | 2,023 | apply-for-teacher-training | DFE-Digital | Ruby | Code | 722 | 4,324 | require 'rails_helper'
RSpec.feature 'Provider changes an existing offer' do
include DfESignInHelpers
include ProviderUserPermissionsHelper
include OfferStepsHelper
let(:provider_user) { create(:provider_user, :with_dfe_sign_in) }
let(:provider) { provider_user.providers.first }
let(:ratifying_provider) {... | 52,422 |
https://github.com/vitekkor/bbfgradle/blob/master/tmp/arrays/youTrackTests/3406.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | bbfgradle | vitekkor | Kotlin | Code | 87 | 196 | // Original bug: KT-38699
data class Test(val str: String, val strArray: Array<String>? = null) {
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (other !is Test) return false
if (str != other.str) return false
if (strArray != ... | 29,123 |
https://github.com/Chhekur/androidjs-sdk/blob/master/webview/app-debug/smali/com/facebook/drawee/drawable/RoundedColorDrawable.smali | Github Open Source | Open Source | MIT | 2,019 | androidjs-sdk | Chhekur | Smali | Code | 1,670 | 9,397 | .class public Lcom/facebook/drawee/drawable/RoundedColorDrawable;
.super Landroid/graphics/drawable/Drawable;
.source "RoundedColorDrawable.java"
# interfaces
.implements Lcom/facebook/drawee/drawable/Rounded;
# instance fields
.field private mAlpha:I
.field private mBorderColor:I
.field final mBorderPath:Landroid... | 14,072 |
https://github.com/tongdung13/case-study/blob/master/resources/views/playlists/playlist.blade.php | Github Open Source | Open Source | MIT | 2,021 | case-study | tongdung13 | PHP | Code | 77 | 491 | <div id="mainScreenflashPlayer" class="mainScreen">
<div id="coverImageflashPlayer" class="coverImage" style="background: url("https://avatar-ex-swe.nixcdn.com/song/2020/12/07/e/7/5/9/1607308157174_500.jpg") left center / contain no-repeat;">
</div>
<div id="coverSingerflashPlayer" class="coverSin... | 7,146 |
https://github.com/howl111/eth-scrapper/blob/master/contracts/0xf925a82b8c26520170c8d51b65a7def6364877b3.sol | Github Open Source | Open Source | Apache-2.0 | 2,018 | eth-scrapper | howl111 | Gerber Image | Code | 5,371 | 17,041 |
//Address: 0xf925a82b8c26520170c8d51b65a7def6364877b3
//Contract name: GooGameConfig
//Balance: 0 Ether
//Verification Date: 4/15/2018
//Transacion Count: 3
// CODE STARTS HERE
pragma solidity ^0.4.0;
interface ERC20 {
function totalSupply() public constant returns (uint);
function balanceOf(address tokenOw... | 20,215 |
https://github.com/Karina5005/Plagiarism/blob/master/dataset/test/graph/1580/70/0-pdg.dot | Github Open Source | Open Source | MIT | 2,022 | Plagiarism | Karina5005 | Graphviz (DOT) | Code | 953 | 3,018 | digraph "read" {
"1000101" [label = "(METHOD,read)" ]
"1000164" [label = "(METHOD_RETURN,inline int)" ]
"1000104" [label = "(<operator>.assignment,s=0)" ]
"1000108" [label = "(<operator>.assignment,f=1)" ]
"1000112" [label = "(<operator>.assignment,ch=getchar())" ]
"1000160" [label = "(RETURN,return s*f;,return s*f;)... | 32,793 |
https://github.com/Superinterface/suweb/blob/master/src/main/java/com/sujianan/util/IPUtil.java | Github Open Source | Open Source | MIT | 2,019 | suweb | Superinterface | Java | Code | 127 | 484 | package com.sujianan.util;
import java.net.InetAddress;
import java.net.UnknownHostException;
import javax.servlet.http.HttpServletRequest;
/**
* 获取客户端的ipv4地址
* @author github: SuperInteface
* @date 2019年7月26日
*/
public class IPUtil {
public static String getIpAddr(HttpServletRequest request) throws UnknownHostE... | 12,914 |
https://github.com/MichaelKeidler/PinkPoints/blob/master/fastlane/installer/fastlane_lib/bundle/lib/ruby/gems/2.2.0/gems/hurley-0.2/test/multipart_test.rb | Github Open Source | Open Source | MIT | 2,021 | PinkPoints | MichaelKeidler | Ruby | Code | 718 | 3,579 | require File.expand_path("../helper", __FILE__)
module Hurley
class MultipartTest < TestCase
def test_build_form_with_flat_query
ctype, body = Query::Flat.new(:a => [1,2,3]).to_form
assert_equal "application/x-www-form-urlencoded", ctype
assert_equal "a=1&a=2&a=3", body.read
end
def te... | 40,100 |
https://github.com/AkaShark/ChineseGoldFish/blob/master/iOS-ShareCup/Modules/Home(主页)/V/GFShowAllImageCollectionViewCell.h | Github Open Source | Open Source | MIT | 2,018 | ChineseGoldFish | AkaShark | Objective-C | Code | 36 | 143 | //
// GFShowAllImageCollectionViewCell.h
// iOS-ShareCup
//
// Created by kys-20 on 2018/10/5.
// Copyright © 2018 刘述豪. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@class GFShowImageModel;
@interface GFShowAllImageCollectionViewCell : UICollectionViewCell
@property (nonatomic,strong) ... | 13,904 |
https://github.com/amadio/vecgeom/blob/master/test/gdml/gdmls/gdmlFlow.dot | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0, LicenseRef-scancode-warranty-disclaimer | 2,023 | vecgeom | amadio | Graphviz (DOT) | Code | 392 | 1,128 | // \file gdmlFlow.dot
// \brief The testing order and derivation of the test gdml files.
// If a file is handled correctly, the predecessors should too.
// Visualize this file with dot.
// Solid line means dependence, dotted lines mean derivation.
// \authors Author: Dmitry Savin
// \license Distr... | 32,481 |
https://github.com/paulschreiber/validates_mixed_case_of/blob/master/lib/validates_mixed_case_of.rb | Github Open Source | Open Source | MIT | 2,012 | validates_mixed_case_of | paulschreiber | Ruby | Code | 117 | 526 | module ActiveRecord
module Validations
module ClassMethods
ALL_CAPS = 1
ALL_LOWERCASE = -1
def validates_mixed_case_of(*args)
configuration = { :with => nil }
configuration.update(args.pop) if args.last.is_a?(Hash)
validates_each(args, configuration) do |record... | 21,753 |
https://github.com/alexrdclement/Garden/blob/master/app/src/main/java/com/alexrdclement/garden/firebase/FirebaseGardenUser.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | Garden | alexrdclement | Kotlin | Code | 16 | 44 | package com.alexrdclement.garden.firebase
data class FirebaseGardenUser(
val uid: String = "",
val email: String = ""
)
| 657 |
https://github.com/tangenta/homework-Xlex/blob/master/src/main/scala/viewer/TreeFileStyleViewer.scala | Github Open Source | Open Source | MIT | 2,019 | homework-Xlex | tangenta | Scala | Code | 61 | 191 | package viewer
import regexParser._
object TreeFileStyleViewer {
def print(tree: RegexTree): Unit = {
printAll(tree, "")
}
private def printAll(tree: RegexTree, indent: String): Unit = {
tree match {
case BinNode(oper, left, right) =>
println(s"$indent($oper)")
printAll(left, indent... | 51,465 |
https://github.com/felipepossari/java-springboot-insurance-advisor/blob/master/src/main/java/com/felipepossari/insuranceadvisor/adapter/in/web/risk/v1/request/CustomerHouseApiRequest.java | Github Open Source | Open Source | MIT | null | java-springboot-insurance-advisor | felipepossari | Java | Code | 28 | 119 | package com.felipepossari.insuranceadvisor.adapter.in.web.risk.v1.request;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@Builder
@ToString
public clas... | 23,522 |
https://github.com/selimppc/unisol/blob/master/app/modules/examination/routes_sh.php | Github Open Source | Open Source | MIT | 2,015 | unisol | selimppc | PHP | Code | 165 | 1,070 | <?php
//AMW ROUTE CONFIGURATION
//Route::any('examination/amw/storeQuestionPaper','ExmAmwController@storeQuestionPaper');
Route::any('examination/amw/viewQuestion/{id}', [
'as' => 'examination.amw.viewQuestion',
'uses' => 'ExmAmwController@viewQuestion'
]);
Route::any('examination/amw/create',[
'as' =>'... | 8,553 |
https://github.com/cdli-gh/mtaac_cdli_ur3_corpus/blob/master/ur3_corpus_data/conll/P291151.conll | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-public-domain | 2,022 | mtaac_cdli_ur3_corpus | cdli-gh | null | Spoken | 89 | 526 | #new_text=P291151
# ID FORM SEGM XPOSTAG HEAD DEPREL MISC
o.1.1 5(disz)
o.1.2 sila3
o.1.3 zi3
o.1.4 sig15
o.2.1 5(disz)
o.2.2 sila3
o.2.3 esza
o.3.1 1(ban2)
o.3.2 5(disz)
o.3.3 sila3
o.3.4 zi3-gu
o.4.1 1(disz)
o.4.2 dug
o.4.3 dida
o.4.4 1(ban2)-ta
o.5.1 5(disz)
o.5.2 sila3
o.5.3 zu2-lum
o.6.1 siskur2
o.6.2 a-sza3
o.6.3... | 38,310 |
https://github.com/Lokitosi/Gestion-Hotelera/blob/master/Hotel/src/Logic/Main/Controller.java | Github Open Source | Open Source | MIT | 2,021 | Gestion-Hotelera | Lokitosi | Java | Code | 31 | 61 | package Logic.Main;
/**
* Initialize the window
*/
import GUI.Start;
public class Controller {
/* Main function */
public static void main(String[] args) {
Start window = new Start();
}
} | 1,498 |
https://github.com/pdf/xbmc-jsonrpc/blob/master/lib/xbmc-jsonrpc.rb | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,013 | xbmc-jsonrpc | pdf | Ruby | Code | 986 | 2,686 | # This program allows easy interaction with XBMC's json-rpc API.
# Connection information is provided, and connection is created
# and stored for repeated use. The list of classes and methods
# available are retrieved from the XBMC json-rpc API, and can be
# accessed or referenced using instance.commands or
# instance... | 23,009 |
https://github.com/KULeuven-COSIC/SCALE-MAMBA/blob/master/src/FHE/Ciphertext.h | Github Open Source | Open Source | BSD-2-Clause | 2,022 | SCALE-MAMBA | KULeuven-COSIC | C++ | Code | 563 | 1,616 | /*
Copyright (c) 2017, The University of Bristol, Senate House, Tyndall Avenue, Bristol, BS8 1TH, United Kingdom.
Copyright (c) 2021, COSIC-KU Leuven, Kasteelpark Arenberg 10, bus 2452, B-3001 Leuven-Heverlee, Belgium.
All rights reserved
*/
#ifndef _Ciphertext
#define _Ciphertext
#include "FHE/FHE_Params.h"
#includ... | 25,821 |
https://github.com/DRIVER-EU/node-test-bed-adapter/blob/master/packages/test-bed-schemas/src/sim/specific/sumo/simulation_sumo_configuration-value.ts | Github Open Source | Open Source | MIT | 2,018 | node-test-bed-adapter | DRIVER-EU | TypeScript | Code | 127 | 219 | /**
* Initialization message, contains simulation file names and settings (sent to
* SUMO)
*/
export interface ISumoConfiguration {
/**
* Configuration file name (can be an absolute or relative path). This file
* contains references to the network and the routes etc.
*/
configFile: string;
/** Begin t... | 51,233 |
https://github.com/alipay/alipay-sdk-net/blob/master/AlipaySDKNet/Response/AlipayFundAgreementQuotaModifyResponse.cs | Github Open Source | Open Source | Apache-2.0 | null | alipay-sdk-net | alipay | C# | Code | 40 | 174 | using System;
using System.Xml.Serialization;
using System.Collections.Generic;
using Aop.Api.Domain;
namespace Aop.Api.Response
{
/// <summary>
/// AlipayFundAgreementQuotaModifyResponse.
/// </summary>
public class AlipayFundAgreementQuotaModifyResponse : AopResponse
{
/// <summary>
... | 12,431 |
https://github.com/shang1219178163/BN_Category/blob/master/NNCategoryPro/UITabBarController+Helper.h | Github Open Source | Open Source | MIT | 2,019 | BN_Category | shang1219178163 | C | Code | 147 | 601 | //
// UITabBarController+Helper.h
// ProductTemplet
//
// Created by Bin Shang on 2018/12/29.
// Copyright © 2018 BN. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
UIKIT_EXTERN NSString * const kUIBadgeView;
UIKIT_EXTERN NSString * const kUITabBarButton;
UIKIT_EXTERN NSString * const kU... | 48,210 |
https://github.com/Rdroit/rnafusion/blob/master/bin/summary/report_config.py | Github Open Source | Open Source | MIT | 2,019 | rnafusion | Rdroit | Python | Code | 219 | 729 | """Module for Report Configuration"""
import os
import base64
from datetime import datetime
from yaml import safe_load, YAMLError
class ReportConfig:
"""Class for adjusting report"""
def __init__(self, config=None):
self.current_path = os.path.dirname(os.path.abspath(__file__))
self.report_tit... | 19,166 |
https://github.com/pseudohuman92/visitor-web-client/blob/master/src/Components/Dialogs/ChooseDialog.jsx | Github Open Source | Open Source | MIT | null | visitor-web-client | pseudohuman92 | null | Spoken | 219 | 859 | import React, {Component} from "react";
import Dialog from "@material-ui/core/Dialog";
import Button from "@material-ui/core/Button";
import {connect} from "react-redux";
import PlayingCard from "../Card/PlayingCard";
import {withHandlers} from "../MessageHandlers/HandlerContext";
import {mapDispatchToProps} from "../... | 13,588 |
https://github.com/jmpcosta/osapi_plus/blob/master/docs/html/search/files_b.js | Github Open Source | Open Source | MIT | 2,020 | osapi_plus | jmpcosta | JavaScript | Code | 7 | 100 | var searchData=
[
['release_2ehh',['release.hh',['../release_8hh.html',1,'']]],
['runner_2ecpp',['runner.cpp',['../runner_8cpp.html',1,'']]],
['runner_2ehh',['runner.hh',['../runner_8hh.html',1,'']]]
];
| 22,205 |
https://github.com/cp-sam-media/100ms-web/blob/master/src/components/Playlist/VideoPlayer.jsx | Github Open Source | Open Source | MIT | null | 100ms-web | cp-sam-media | null | Spoken | 195 | 680 | import React, { useRef } from "react";
import { useFullscreen, useToggle } from "react-use";
import screenfull from "screenfull";
import {
selectVideoPlaylist,
selectVideoPlaylistVideoTrackByPeerID,
useHMSActions,
useHMSStore,
} from "@100mslive/react-sdk";
import { ShrinkIcon, ExpandIcon, CrossIcon } from "@10... | 51,316 |
https://github.com/Picovoice/porcupine-arduino-fr/blob/master/examples/PorcupineExample/PorcupineExample.ino | Github Open Source | Open Source | Apache-2.0 | null | porcupine-arduino-fr | Picovoice | null | Spoken | 235 | 697 | /*
Copyright 2021 Picovoice Inc.
You may not use this file except in compliance with the license. A copy of the license is located in the "LICENSE"
file accompanying this source.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
an ... | 48,230 |
https://github.com/tomtusz/serwis/blob/master/resources/views/customer/index.blade.php | Github Open Source | Open Source | MIT | null | serwis | tomtusz | PHP | Code | 282 | 1,332 | @extends('master')
@section('content')
<div ng-app="myApp" ng-controller="customersCtrl">
<div class="row">
<div class="col-md-12">
<h3 class="text-left">Klienci</h3>
<input type="text" class="" placeholder="Szukaj klienta ..." ng-model="searchCustomer">
<a href="" class="btn btn-xs btn-info" ng... | 39,530 |
https://github.com/florafonzo/ciete_modulos/blob/master/database/seeds/RolesSeeder.php | Github Open Source | Open Source | MIT | null | ciete_modulos | florafonzo | PHP | Code | 245 | 860 | <?php
use Illuminate\Database\Seeder;
use App\Models\Role;
use App\Models\Permission;
class RolesSeeder extends Seeder {
public function run()
{
DB::table('roles')->delete();
// Rol Adminnistrador--------------------------
$admin = Role::create(array(
'name' => 'admin',
... | 39,907 |
https://github.com/fogo-sh/insta-game/blob/master/docker-containers/xonotic/Makefile | Github Open Source | Open Source | MIT | 2,022 | insta-game | fogo-sh | Makefile | Code | 12 | 47 | all: download clean build
download:
./download.sh
clean:
./clean.sh
build:
./build.sh
run:
./run.sh
| 7,488 |
https://github.com/wsmoak/nivens/blob/master/mongo-ruby/load.rb | Github Open Source | Open Source | Apache-2.0 | null | nivens | wsmoak | Ruby | Code | 499 | 1,573 | # Copyright 2014 Wendy Smoak
#
# 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, ... | 30,560 |
https://github.com/thoslin/ELF/blob/master/db/elf.db.sql/sql/archives/20130126133842_DML.sql | Github Open Source | Open Source | BSD-3-Clause | 2,014 | ELF | thoslin | SQL | Code | 196 | 1,238 | --配置资金账户在不同通道下的交易账户
--中石油
delete from AC_TRADING_ACCOUNTNO_SETTING where CASH_ACCOUNT_ID='ptzj00101'
/
Insert into AC_TRADING_ACCOUNTNO_SETTING (TRADING_ACCOUNTNO_SETTING_ID, CASH_ACCOUNT_ID, TRADING_CHANNEL_CODE, TRADING_ACCOUNT_NO) Values ('ac10', 'ptzj00101', 'td20001', 'A123456780')
/
Insert into AC_TRADING_ACCO... | 9,587 |
https://github.com/rbmateescu/ham-resource-discoverer/blob/master/pkg/controller/application/application_controller_test.go | Github Open Source | Open Source | Apache-2.0 | null | ham-resource-discoverer | rbmateescu | Go | Code | 833 | 4,005 | // Copyright 2019 The Kubernetes Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or a... | 33,208 |
https://github.com/linnovate/root/blob/master/packages/custom/icu/server/controllers/webhook.js | Github Open Source | Open Source | MIT | 2,023 | root | linnovate | JavaScript | Code | 209 | 731 | var _ = require('lodash');
var mongoose = require('mongoose');
var Task = mongoose.model('Task');
var crud = require('../controllers/crud.js');
var crudService = require('../services/crud.js');
var templates = require('../controllers/templates');
exports.create = function(req, res, next) {
if(req.locals.error) {
... | 31,822 |
https://github.com/glustful/mika/blob/master/YiXin/src/com/miicaa/detail/DetailProgressAdapter.java | Github Open Source | Open Source | Apache-2.0 | null | mika | glustful | Java | Code | 647 | 2,841 | package com.miicaa.detail;
import java.util.ArrayList;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.content.Context;
import android.content.res.Resources;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view... | 41,528 |
https://github.com/vitduck/dixie/blob/master/PBS/Qdel.pm | Github Open Source | Open Source | BSD-3-Clause | null | dixie | vitduck | Perl | Code | 21 | 62 | package PBS::Qdel;
use Moose::Role;
use namespace::autoclean;
use experimental 'signatures';
sub qdel ( $self, $job ) {
system 'qdel', $job;
}
1
| 39,357 |
https://github.com/esavard/SoulEVSpy/blob/master/app/src/main/java/com/evranger/soulevspy/obd/StatusLoggingMessageFilter.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | SoulEVSpy | esavard | Java | Code | 69 | 256 | package com.evranger.soulevspy.obd;
import com.evranger.soulevspy.obd.values.CurrentValuesSingleton;
import com.evranger.obd.ObdMessageData;
import com.evranger.obd.ObdMessageFilter;
import java.util.ArrayList;
/**
* Created by henrik on 29/06/2017.
*/
public class StatusLoggingMessageFilter extends ObdMessageFil... | 34,214 |
https://github.com/daadit/ci4-simlapd/blob/master/app/Views/laporan/kwitansi.php | Github Open Source | Open Source | MIT | 2,021 | ci4-simlapd | daadit | PHP | Code | 306 | 1,489 | <!DOCTYPE html>
<html>
<head>
<title>Surat Perintah Tugas</title>
<link rel="shortcut icon" href="<?= base_url(); ?>/assets/images/logo.png">
<style type="text/css">
.head {
border-style: double;
border-width: 3px;
border-color: white;
}
.body {
... | 29,035 |
https://github.com/withshubh/dagster/blob/master/js_modules/dagit/src/partitions/PartitionSetSelector.tsx | Github Open Source | Open Source | Apache-2.0 | 2,021 | dagster | withshubh | TypeScript | Code | 86 | 366 | import {Button, Menu, MenuItem, Popover} from '@blueprintjs/core';
import * as React from 'react';
import {PipelinePartitionsRootQuery_partitionSetsOrError_PartitionSets_results} from 'src/partitions/types/PipelinePartitionsRootQuery';
type PartitionSet = PipelinePartitionsRootQuery_partitionSetsOrError_PartitionSets... | 52,692 |
https://github.com/achreto/barrelfish/blob/master/kernel/arch/x86_64/entry.S | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-dco-1.1, MIT | 2,021 | barrelfish | achreto | Unix Assembly | Code | 1,692 | 5,236 | /**
* \file
* \brief System call entry point to the kernel and LRPC fast-path
*/
/*
* Copyright (c) 2007, 2008, 2009, 2010, 2016, ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* E... | 9,420 |
https://github.com/trevorwang/github-client-android/blob/master/app/src/main/java/mingsin/github/viewmodel/MainViewModel.kt | Github Open Source | Open Source | MIT | null | github-client-android | trevorwang | Kotlin | Code | 50 | 163 | package mingsin.github.viewmodel
import android.content.Context
import android.databinding.adapters.TextViewBindingAdapter
import android.view.View
import mingsin.github.extension.toast
import javax.inject.Inject
/**
* Created by trevorwang on 12/12/2016.
*/
class MainViewModel @Inject constructor(val context: Cont... | 15,530 |
https://github.com/disco0/typesync/blob/master/src/type-definition-source.ts | Github Open Source | Open Source | MIT | 2,020 | typesync | disco0 | TypeScript | Code | 106 | 284 | import { ITypeDefinitionSource, ITypeDefinition } from './types'
import axios from 'axios'
const typedefsUrl =
'https://typespublisher.blob.core.windows.net/typespublisher/data/search-index-min.json'
/**
* Used to pull definitions.
*/
export function createTypeDefinitionSource(): ITypeDefinitionSource {
return ... | 1,593 |
https://github.com/Orange-OpenSource/optisam-ui/blob/master/src/app/modules/home/pages/product-catalogue/editor/create-editor/partner-managers/single-partner-manager/single-partner-manager.component.ts | Github Open Source | Open Source | Apache-2.0 | 2,023 | optisam-ui | Orange-OpenSource | TypeScript | Code | 148 | 532 | import {
ChangeDetectionStrategy,
Component,
Input,
OnInit,
} from '@angular/core';
import {
ControlContainer,
FormArray,
FormControl,
FormGroup,
Validators,
} from '@angular/forms';
import { MatDialog } from '@angular/material/dialog';
import { PartnerDeletionConfirmationComponent } from './partner-d... | 3,535 |
https://github.com/nifli/toggles-java-client/blob/master/src/main/java/com/togglize/client/event/ReadyEvent.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | toggles-java-client | nifli | Java | Code | 133 | 300 | /*
Copyright 2019, Strategic Gains, Inc.
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 writ... | 20,567 |
https://github.com/haworth606/Mvc/blob/master/src/Microsoft.AspNetCore.Mvc.Api.Analyzers/SymbolApiResponseMetadataProvider.cs | Github Open Source | Open Source | Apache-2.0 | null | Mvc | haworth606 | C# | Code | 1,170 | 3,912 | // 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;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.C... | 50,608 |
https://github.com/walletma/ml/blob/master/src/main/java/edu/berkeley/compbio/ml/cluster/kohonen/BruteForceSearchStrategy.java | Github Open Source | Open Source | Apache-2.0 | 2,014 | ml | walletma | Java | Code | 296 | 913 | /*
* Copyright (c) 2006-2013 David Soergel <dev@davidsoergel.com>
* Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*/
package edu.berkeley.compbio.ml.cluster.kohonen;
import edu.berkeley.compbio.ml.cluster.AdditiveClusterable;
import edu.berkeley.compbio.ml.cluster.C... | 2,939 |
https://github.com/rahulkumaran/ui-components/blob/master/packages/ui-components/banner-message/BannerMessage.stories.js | Github Open Source | Open Source | MIT | null | ui-components | rahulkumaran | JavaScript | Code | 60 | 181 | import { storiesOf } from '@storybook/react';
import React, { Fragment } from 'react';
import BannerMessage from './index';
const stories = storiesOf('Banner Message', module);
stories.add('Banner Messages', () => (React.createElement(Fragment, null,
React.createElement(BannerMessage, { type: "info" }, "Hello, this... | 41,037 |
https://github.com/opendevstack/ods-provisioning-app/blob/master/client/src/app/ui/scss/components/_infobox.scss | Github Open Source | Open Source | Apache-2.0 | 2,022 | ods-provisioning-app | opendevstack | SCSS | Code | 33 | 138 | .infobox {
text-align: center;
}
.infobox__img {
margin-bottom: 15px;
img {
width: 240px;
}
}
.infobox__headline {
font-size: 1.75rem;
font-weight: bold;
margin-bottom: 5px;
}
.infobox__subline {
font-size: 1.25rem;
margin-bottom: 10px;
color: var(--text-lighter-color);
}
| 13,132 |
https://github.com/rohitshetty/CNES_MAJA_custom_dem/blob/master/orchestrator/common/maja_exceptions.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | CNES_MAJA_custom_dem | rohitshetty | Python | Code | 540 | 2,145 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2020 Centre National d'Etudes Spatiales (CNES)
#
# 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
#
# ... | 25,108 |
https://github.com/cajacko/VikiBell-Blog/blob/master/gulpfile.js | Github Open Source | Open Source | MIT | 2,016 | VikiBell-Blog | cajacko | JavaScript | Code | 498 | 1,831 | var gulp = require('gulp');
var sass = require('gulp-sass');
var rename = require('gulp-rename');
var minifyCss = require('gulp-minify-css');
var uglify = require('gulp-uglify');
var concat = require('gulp-concat');
var modernizr = require('gulp-modernizr');
var browserSync = require('browser-sync');
var autoprefixer =... | 30,908 |
https://github.com/pekd/vmx86/blob/master/projects/org.graalvm.vm.x86.emu/src/org/graalvm/vm/x86/emu/Ptrace.java | Github Open Source | Open Source | UPL-1.0, Apache-2.0 | 2,020 | vmx86 | pekd | Java | Code | 1,089 | 2,397 | /*
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* The Universal Permissive License (UPL), Version 1.0
*
* Subject to the condition set forth below, permission is hereby granted to any
* person obtaining a copy of this s... | 53,113 |
https://github.com/joaofds/joomla/blob/master/Tutoriais/Promocao/SEO/nao_tente_burlar_o_algoritmo_no_google_arquivos/bt-px.js | Github Open Source | Open Source | MIT | 2,020 | joomla | joaofds | JavaScript | Code | 75 | 251 | /* Tracket BT
- 09/08/2012 12:42 - Inclusão
- 09/08/2012 15:35 - Alterado para 50%
- 15/08/2012 11:35 - Alterado para 100%
- 25/09/2012 14:55 - Retirado/Substituido o trecho abaixo pelo partner, mudando de img para script
--- var btimage = new Image();btimage.src = ('https:' == document.location.protocol ? 'https://... | 24,818 |
https://github.com/sitegeist/Sitegeist.Archaeopteryx/blob/master/Neos.Ui/error-handling/src/application/ErrorBoundary.tsx | Github Open Source | Open Source | MIT | 2,021 | Sitegeist.Archaeopteryx | sitegeist | TypeScript | Code | 140 | 510 | import * as React from 'react';
import {FallbackProps, ErrorBoundary as ReactErrorBoundary} from 'react-error-boundary';
import {VError} from 'verror';
import {Alert, Trace} from '../presentation';
const ErrorFallback: React.FC<FallbackProps> = props => {
const isDev = Boolean(document.querySelector('[data-env^="... | 22,655 |
https://github.com/blmage/preact-use/blob/master/esm/useKeyboardJs.js | Github Open Source | Open Source | Unlicense | null | preact-use | blmage | JavaScript | Code | 99 | 256 | import { useEffect, useState } from 'preact/hooks';
import useMount from './useMount';
var useKeyboardJs = function (combination) {
var _a = useState([false, null]), state = _a[0], set = _a[1];
var _b = useState(null), keyboardJs = _b[0], setKeyboardJs = _b[1];
useMount(function () {
import('keyboar... | 48,899 |
https://github.com/satuomainen/rollcall/blob/master/server/app.js | Github Open Source | Open Source | MIT | null | rollcall | satuomainen | JavaScript | Code | 192 | 602 | const bodyParser = require('body-parser');
const express = require('express');
const session = require('express-session');
const morgan = require('morgan');
const httpLogger = require('debug')('rollcall:http');
const path = require('path');
const passport = require('passport');
const LocalStrategy = require('passport-l... | 38,685 |
https://github.com/dockerian/n0dejs-api/blob/master/src/api/hello/index.js | Github Open Source | Open Source | MIT | null | n0dejs-api | dockerian | JavaScript | Code | 32 | 87 | /**
* index.js - entry point of /app/hello/
*/
import express from 'express'
import * as m from './methods'
const router = express.Router()
router.get('/:name/:lang', m.get)
router.get('/:name', m.get)
router.get('/', m.get)
export default router
| 52,844 |
https://github.com/CoSoSys/cppdevtk/blob/master/src/base/concurrent_run.cpp | Github Open Source | Open Source | BSL-1.0, Apache-2.0 | null | cppdevtk | CoSoSys | C++ | Code | 219 | 654 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// \file
///
/// \copyright Copyright (C) 2015 - 2020 CoSoSys Ltd <info@cososys.com>\n
/// Licensed under the Apache License, Version 2.0 (the "License");\n
/// you may not use this file except... | 13,694 |
https://github.com/jirimilos/802.11ad-phy-sim/blob/master/result_all.m | Github Open Source | Open Source | MIT | 2,020 | 802.11ad-phy-sim | jirimilos | MATLAB | Code | 55 | 412 | function results = result_all(results)
%
% Author: Jiri Milos, DREL FEEC BUT, 2018
%
results.ber_PSDU = sum(results.err_PSDU,1)./sum(results.num_PSDU,1);
atest1 = results;
fields_atest1 = fieldnames(atest1);
if sum(strcmp(fields_atest1, 'err_PSDU_plus_service')) > 0
results.ber_PSDU_plus_service = sum(results.err... | 13,466 |
https://github.com/Mignet/supermarket-android/blob/master/lcds/src/main/java/com/v5ent/xiubit/entity/WealthNews.java | Github Open Source | Open Source | MIT | null | supermarket-android | Mignet | Java | Code | 247 | 809 | package com.v5ent.xiubit.entity;
import com.toobei.common.entity.BaseEntity;
/**
* 公司: tophlc
* 类说明:财富快报 实体
*
* @date 2015-10-22
*/
public class WealthNews extends BaseEntity {
/**
* serialVersionUID
*/
//
// 变量名 含义 类型 备注
// crtTime 开始有效时间 object 2017-07-04 10:39:12
// img 图片地址 string http://imag... | 5,966 |
https://github.com/timgates42/bayesian-belief-networks/blob/master/bayesian/utils.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | bayesian-belief-networks | timgates42 | Python | Code | 257 | 591 | '''Some Useful Helper Functions'''
import inspect
from prettytable import PrettyTable
# TODO: Find a better location for get_args
def get_args(func):
'''
Return the names of the arguments
of a function as a list of strings.
This is so that we can omit certain
variables when we marginalize.
Not... | 13,736 |
https://github.com/primeval-io/saga/blob/master/saga-api/src/main/java/io/primeval/saga/http/client/BoundHttpClient.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | saga | primeval-io | Java | Code | 983 | 2,425 | package io.primeval.saga.http.client;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import io.primeval.saga.http.client.method.HttpClientDelete;
import io.primeval.saga.http.client.method.HttpClientGet;
import io.primeval.sag... | 49,549 |
https://github.com/polens29/lb-billing/blob/master/app/components/Credits/BankTransfer/index.js | Github Open Source | Open Source | MIT | null | lb-billing | polens29 | JavaScript | Code | 228 | 760 | /**
*
* BankTransfer
*
*/
/* eslint-disable camelcase, jsx-a11y/href-no-hash, jsx-a11y/no-static-element-interactions */
import React, { PropTypes } from 'react';
import BankTransferImg from 'assets/bank-transfer.png';
import BankTransferLogo from 'assets/bank-transfer-logo.png';
import { Wrapper, StyledButton, Ti... | 53,949 |
https://github.com/417511458/cas-management/blob/master/webapp/cas-mgmt-webapp-workspace/libs/mgmt-lib/src/lib/form/access-strategy/access-strategy.module.ts | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, Apache-2.0, LicenseRef-scancode-free-unknown | 2,019 | cas-management | 417511458 | TypeScript | Code | 89 | 365 | import {CommonModule} from '@angular/common';
import {NgModule} from '@angular/core';
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
import {AccessStrategyComponent} from './access-strategy.component';
import {GroovyComponent} from './groovy/groovy.component';
import {GrouperComponent} from './grouper... | 51,095 |
https://github.com/fabiojfl/code-commerce/blob/master/app/Cart.php | Github Open Source | Open Source | MIT | null | code-commerce | fabiojfl | PHP | Code | 182 | 644 | <?php
namespace CodeCommerce;
class Cart
{
private $items;
public function __construct()
{
$this->items = [];
}
public function add($id, $name, $price)
{
$this->items += [
$id =>
[
'qtd' => isset($this->items[$id]['qtd']) ? ... | 47,853 |
https://github.com/ratelGloria/web/blob/master/src/main/resources/static/js/countDown.js | Github Open Source | Open Source | MIT | 2,019 | web | ratelGloria | JavaScript | Code | 26 | 107 |
var time = 5;
var timer;
function countDown(){
$("#countDown").text(time)
if(time == 0){
$(window).attr('location',"/logIn")
}else {
$("#countDown").text(" ")
time = time-1
$("#countDown").text(time)
}
}
timer = setInterval("countDown()",1000)
| 34,365 |
https://github.com/fchapoton/NaCl/blob/master/MonteCarlo/instance_factory.hpp | Github Open Source | Open Source | Apache-2.0 | 2,021 | NaCl | fchapoton | C++ | Code | 64 | 172 | #ifndef INSTANCE_FACTORY_HPP
#define INSTANCE_FACTORY_HPP
#include "ppapi/cpp/instance.h"
#include "ppapi/cpp/module.h"
#include "ppapi/cpp/var.h"
// Factory method called by the browser when first loaded
namespace pp {
Module* CreateModule();
};
// Module used to create instance of NaCl module on webpage
template... | 22,032 |
https://github.com/willingtonortiz/navigation_drawer_challenge/blob/master/lib/app/widgets/delayed_widget.dart | Github Open Source | Open Source | MIT | null | navigation_drawer_challenge | willingtonortiz | Dart | Code | 57 | 179 | import 'package:flutter/material.dart';
class DelayedWidget extends StatelessWidget {
const DelayedWidget({
Key? key,
required this.duration,
required this.placeholder,
required this.child,
}) : super(key: key);
final Duration duration;
final Widget child;
final Widget placeholder;
@overr... | 38,581 |
https://github.com/jalsamn/spree_sanebackyard/blob/master/.bundle/gems/rabl-0.11.6/fixtures/ashared/views/users/index.json.rabl | Github Open Source | Open Source | BSD-3-Clause | 2,022 | spree_sanebackyard | jalsamn | Ruby | Code | 4 | 13 | collection @users
extends "users/show" | 38,934 |
https://github.com/fengzhongye/Piplin/blob/master/app/Http/Controllers/Admin/ProviderController.php | Github Open Source | Open Source | MIT | 2,017 | Piplin | fengzhongye | PHP | Code | 287 | 831 | <?php
/*
* This file is part of Piplin.
*
* Copyright (C) 2016-2017 piplin.com
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Piplin\Http\Controllers\Admin;
use Illuminate\Http\Request;
use Piplin\Http\Controllers\Con... | 53,674 |
https://github.com/montgomp/azure-sdk-for-python/blob/master/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_request_handlers.py | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, MIT | 2,020 | azure-sdk-for-python | montgomp | Python | Code | 248 | 716 | # coding=utf-8
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
import six
from ._models import (
DetectLanguageInput,
TextDocumentInput,
)
def _validate_single_input(text, hint, hint_value):
"""Valida... | 26,244 |
https://github.com/mini2Dx/mini2Dx/blob/master/ui/src/main/java/org/mini2Dx/ui/style/RadioButtonStyleRule.java | Github Open Source | Open Source | BSD-3-Clause, Apache-2.0 | 2,023 | mini2Dx | mini2Dx | Java | Code | 345 | 1,273 | /*******************************************************************************
* Copyright 2019 See AUTHORS file
*
* 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.apac... | 22,659 |
https://github.com/jgularte/gcsc_frontend/blob/master/src/app/services/reservations.service.ts | Github Open Source | Open Source | MIT | 2,021 | gcsc_frontend | jgularte | TypeScript | Code | 56 | 212 | import {Injectable} from '@angular/core';
import {ReservationsModel} from '../models/reservations.model';
import {Subject} from 'rxjs';
@Injectable({providedIn: 'root'})
export class ReservationsService {
public reservationsChanges = new Subject<ReservationsModel[]>();
private reservations: ReservationsModel[] = [... | 5,861 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.