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/svaarala/duktape/blob/master/tests/ecmascript/bi-promise/test-bi-promise-constructor-properties.js | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,022 | duktape | svaarala | JavaScript | Code | 117 | 488 | /*---
duktape_polyfills:
promise: true
---*/
/*@include util-base.js@*/
/*===
- general
function
1
Promise
true
true
propdesc Promise: value=function:Promise, writable=true, enumerable=false, configurable=true
true
- properties
propdesc length: value=1, writable=false, enumerable=false, configurable=true
propdesc n... | 14,493 |
https://github.com/hocgin/payment-project/blob/master/payment-modules/payment-module-wxpay/src/main/java/in/hocg/payment/wxpay/v2/WxPayService.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | payment-project | hocgin | Java | Code | 98 | 410 | package in.hocg.payment.wxpay.v2;
import in.hocg.payment.PaymentMessage;
import in.hocg.payment.PaymentService;
import in.hocg.payment.wxpay.convert.WxPayConverts;
import in.hocg.payment.wxpay.sign.WxSignType;
import in.hocg.payment.wxpay.v2.request.GetSignKeyRequest;
import lombok.Getter;
/**
* Created by hocgin on... | 22,826 |
https://github.com/grigaci/Sensoriada/blob/master/Sensoriada/SRSensorBase.swift | Github Open Source | Open Source | MIT | 2,015 | Sensoriada | grigaci | Swift | Code | 215 | 606 | //
// SRSensorBase.swift
// SensoriadaExample
//
// Created by bogdan on 10/01/15.
// Copyright (c) 2015 Grigaci. All rights reserved.
//
import Foundation
public enum SRSensorType: Int {
case Unknown = -1
case Temperature = 10
}
public enum SRSensorBaseDictionaryKeys: String {
case type = "type"
... | 727 |
https://github.com/alibaba/terraform-provider/blob/master/alicloud/resource_alicloud_ssl_vpn_server_test.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | terraform-provider | alibaba | Go | Code | 484 | 2,679 | package alicloud
import (
"fmt"
"testing"
"github.com/alibaba/terraform-provider/alicloud/connectivity"
"github.com/aliyun/alibaba-cloud-sdk-go/services/vpc"
"github.com/hashicorp/terraform/helper/resource"
"github.com/hashicorp/terraform/terraform"
)
func TestAccAlicloudSslVpnServer_basic(t *testing.T) {
var... | 41,365 |
https://github.com/luismy10/MonitoreoDocumentosReactJS/blob/master/app/src/components/asignacion/AsignacionEstandar.jsx | Github Open Source | Open Source | MIT | null | MonitoreoDocumentosReactJS | luismy10 | null | Spoken | 351 | 1,636 | import React from 'react';
// import { Link, withRouter } from 'react-router-dom';
import $ from '../../assets/js/jquery-3.3.1.min';
class AsignacionEstandar extends React.Component {
constructor(props) {
super(props);
this.state = {
datosFacultadEscuela: "Facultad X - Escuela Y"
... | 29,132 |
https://github.com/mazsoltani/auth/blob/master/config/config.js | Github Open Source | Open Source | MIT | null | auth | mazsoltani | JavaScript | Code | 49 | 210 | module.exports = {
dbURL: "mongodb://mongo:27017/auth",
AuthenticationList: [{
method: "GET",
url: "/auth/v1/validate/token"
}, {
method: "PUT",
url: "/auth/v1/user/changePassword"
}, {
method: "GET",
url: "/auth/v1/user/list"
}, {
method: "GET... | 12,584 |
https://github.com/mbdavid2/healthAI/blob/master/lambda-functions/src/ai_algorithms/Goal.java | Github Open Source | Open Source | MIT | null | healthAI | mbdavid2 | Java | Code | 19 | 56 | package ai_algorithms;
import aima.search.framework.GoalTest;
public class Goal implements GoalTest {
public boolean isGoalState(Object state) {
return false;
}
}
| 33,813 |
https://github.com/cutsea110/aop/blob/master/src/TutorialZygo.hs | Github Open Source | Open Source | BSD-3-Clause | null | aop | cutsea110 | Haskell | Code | 331 | 590 | module TutorialZygo where
-- Ref.) https://stackoverflow.com/questions/36851766/histomorphisms-zygomorphisms-and-futumorphisms-specialised-to-lists
-- Benjamin Hodgson's answer
lengthEven :: [a] -> Bool
lengthEven = even . length
pm0 [] = 0
pm0 (x:xs) = if lengthEven xs then x - pm0 xs else x + pm0 xs
paraL f z... | 20,311 |
https://github.com/stefanwb/chef-graphite_powershell_functions/blob/master/metadata.rb | Github Open Source | Open Source | Apache-2.0 | 2,017 | chef-graphite_powershell_functions | stefanwb | Ruby | Code | 45 | 214 | name 'graphite_powershell_functions'
maintainer 'Tim Smith'
maintainer_email 'tsmith84@gmail.com'
license 'Apache-2.0'
description 'Configures the Graphite PowerShell Functions script to send Windows perf counters to Graphite'
long_description IO.read(File.join(File.dirname(__FILE__), 'R... | 22,093 |
https://github.com/BitFunnel/BitFunnel/blob/master/src/Plan/CMakeLists.txt | Github Open Source | Open Source | MIT | 2,022 | BitFunnel | BitFunnel | CMake | Code | 8 | 46 | # BitFunnel/src/Plan
add_subdirectory(src)
add_subdirectory(test)
# source_group("Utilities" FILES ${PUBLIC_HFILES})
| 15,398 |
https://github.com/nmnag/NURSD--Frontend-UI/blob/master/app/screens/devyani/App.js | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,020 | NURSD--Frontend-UI | nmnag | JavaScript | Code | 46 | 138 | import React from 'react';
import Page1 from './page1.js';
import Page2 from './page2.js';
import Page3 from './page3.js';
import Page4 from './page4.js';
import Page5 from './page5.js';
import Page7 from './page7.js';
import Page8 from './page8.js';
const App =()=>{
return(
<div>
<div>
<Page8/>
</div>
<... | 16,075 |
https://github.com/billhj/Etoile2015/blob/master/applications/SkeletonViewer/OctreeSkeletonWidget.cpp | Github Open Source | Open Source | Apache-2.0 | null | Etoile2015 | billhj | C++ | Code | 89 | 489 | #include "OctreeSkeletonWidget.h"
#include <QFileDialog>
#include "util/File.h"
OctreeSkeletonWidget::OctreeSkeletonWidget(QWidget *parent)
: QWidget(parent), octreeskeleton(NULL)
{
ui.setupUi(this);
octreeskeleton = new OctreeSkeleton();
}
OctreeSkeletonWidget::~OctreeSkeletonWidget()
{
}
void OctreeSkeletonWid... | 50,922 |
https://github.com/zhuyuping/YPAppMonitor/blob/master/Example/YPAppMonitorExample/Pods/YPAppMonitor/YPAppMonitor/AppCrash/YPAppCrashMonitor.h | Github Open Source | Open Source | MIT | 2,018 | YPAppMonitor | zhuyuping | C | Code | 34 | 130 | //
// ZYPAppCrashMonitor.h
// ZYPAppMonitor
//
// Created by ZYP on 2018/3/16.
// Copyright © 2018年 ZYP. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef void(^yp_crash_handler)(NSString *crashInfoString);
@interface YPAppCrashMonitor : NSObject
+ (void)startWithCompletedHandler:(yp_crash_handler)handler... | 35,104 |
https://github.com/mjgpy3/butters/blob/master/test/Butters/TestTypeChecker.hs | Github Open Source | Open Source | BSD-3-Clause | null | butters | mjgpy3 | Haskell | Code | 65 | 222 | module TestTypeChecker (testTypeChecker) where
import Butters.Ast
import Butters.TypeChecker
import Data.Either
import Test.QuickCheck
test_simple_redundant_constructors_dont_type_check :: Bool
test_simple_redundant_constructors_dont_type_check =
consName == "BadNat" && a == (BList [], 0) && b == (BList [], 2)
wh... | 41,952 |
https://github.com/landongw/disease-pattern-miner/blob/master/PatternMiner/libraries/spmf/src/main/java/algorithms/timeseries/autocorrelation/MainTestAutocorrelation.java | Github Open Source | Open Source | MIT | 2,021 | disease-pattern-miner | landongw | Java | Code | 153 | 429 | package algorithms.timeseries.autocorrelation;
import algorithms.timeseries.TimeSeries;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URL;
/**
* Example of how to calculate the autocorrelation function of a time series, using
* the source code of SPMF
*
* @author Phili... | 30,171 |
https://github.com/DalavanCloud/aistore/blob/master/deploy/dev/docker/deploy_docker.sh | Github Open Source | Open Source | MIT | 2,019 | aistore | DalavanCloud | Shell | Code | 1,985 | 6,401 | #!/bin/bash
name=`basename "$0"`
usage() {
echo "Usage: $name [-a=AWS_DIR] [-c=NUM] [-d=NUM] [-f=LIST] [-g] [-h] [-l] [-m] [-p=NUM] [-s] [-t=NUM] [-qs=AWS_DIR (Optional)]"
echo " -a=AWS_DIR or --aws=AWS_DIR : to use AWS, where AWS_DIR is the location of AWS configuration and credential files"
e... | 10,764 |
https://github.com/apache/myfaces-trinidad-maven/blob/master/maven-faces-plugin/src/test/java/org/apache/myfaces/trinidadbuild/plugin/faces/GenerateFacesConfigMojoTest.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | myfaces-trinidad-maven | apache | Java | Code | 249 | 658 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 8,172 |
https://github.com/roussukke/Yorozuya/blob/master/library/ATF/_pt_query_appoint_zoclInfo.hpp | Github Open Source | Open Source | MIT | 2,023 | Yorozuya | roussukke | C++ | Code | 61 | 297 | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <_pt_query_appoint_zocl.hpp>
START_ATF_NAMESPACE
namespace Info
{
using _pt_query_appoint_zoclctor__pt_query_appoint_zocl2_ptr = void ... | 50,026 |
https://github.com/stivalaa/cuda_satabsearch/blob/master/nvcc_src_current/host_cudaSaTabsearch_slurm_script.sh | Github Open Source | Open Source | MIT | null | cuda_satabsearch | stivalaa | Shell | Code | 39 | 171 | #!/bin/bash
#SBATCH --job-name="host_cudaSaTabsearch"
#SBATCH --time=0-00:10:00
#SBATCH --partition=slim
#SBATCH --output=host_cudaSaTabsearch-%j.out
#SBATCH --error=host_cudaSaTabsearch-%j.err
echo -n "started at: " >&2; date >&2
uname -a >&2
module load cudatoolkit
/usr/bin/time ./cudaSaTabsearch -c -r4096 < d2ph... | 17,169 |
https://github.com/maissani/FootManagerFront/blob/master/reducers/users.js | Github Open Source | Open Source | MIT | null | FootManagerFront | maissani | JavaScript | Code | 39 | 95 | import { SET_TOKEN, REMOVE_TOKEN } from '../actions'
export default function(state = {}, action) {
const { type, token } = action
switch (type) {
case SET_TOKEN:
return { token }
case REMOVE_TOKEN:
return {}
default:
return state
}
}
| 25,500 |
https://github.com/andreshp/GeneticQAP/blob/master/results/p2/tho150/ILS-SA-fixed/25.sol | Github Open Source | Open Source | MIT | 2,017 | GeneticQAP | andreshp | Gerber Image | Code | 171 | 307 | Time (s): 3.8693082332611084
Number of evaluations: 1266166
Number of iterations: 24
The solution has objective value 8247630 .
The permutation is:
[101 148 124 35 125 30 13 19 105 4 6 37 61 97 5 111 28 96
66 1 85 12 70 82 138 56 34 127 146 84 118 104 43 31 128 112
51 68 90 75 32 115 ... | 46,582 |
https://github.com/paaube/PyMieSim/blob/master/examples/ComputingFields/Fields:S1S2.py | Github Open Source | Open Source | MIT | 2,021 | PyMieSim | paaube | Python | Code | 64 | 256 | """
S1 S2
=====
"""
# sphinx_gallery_thumbnail_path = '../images/Fields:S1S2.png'
def run(Plot, Save):
from PyMieSim.Scatterer import Sphere
from PyMieSim.Source import PlaneWave
Source = PlaneWave(Wavelength = 450e-9,
Polarization = 0,
E0 = 1... | 51,658 |
https://github.com/davidrunger/active_actions/blob/master/lib/generators/active_actions/action/templates/action.rb | Github Open Source | Open Source | MIT | 2,021 | active_actions | davidrunger | Ruby | Code | 28 | 89 | # frozen_string_literal: true
class <%= class_name %> < ApplicationAction
# requires :email, String
# returns :user, User
def execute
# result.user = User.create!(email: email)
# NewUserMailer.user_created(result.user.id).deliver_later
end
end
| 28,846 |
https://github.com/indrabasak/adt-algo-example/blob/master/src/main/java/com/basaki/pattern/chainofcmd/TestChainOfCmd.java | Github Open Source | Open Source | Apache-2.0 | null | adt-algo-example | indrabasak | Java | Code | 66 | 232 | package com.basaki.pattern.chainofcmd;
public class TestChainOfCmd {
public static final String NEGATIVE_VALUE = "Negative Value ";
public static void main(String[] args) {
// Setup Chain of Responsibility
IHandler h1 = new ConcreteHandlerOne();
IHandler h2 = new ConcreteHandlerTwo()... | 6,687 |
https://github.com/MasatoKokubo/Lightsleep/blob/master/src/test/java/org/lightsleep/test/type/TestArray.java | Github Open Source | Open Source | MIT | 2,018 | Lightsleep | MasatoKokubo | Java | Code | 190 | 522 | // ClassArray.java
// (C) 2016 Masato Kokubo
package org.lightsleep.test.type;
import java.sql.Array;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Map;
import org.lightsleep.helper.Utils;
/**
* This is a class that implements Array.
*
* @author Masato Kokubo
*/
public class TestArra... | 36,090 |
https://github.com/clilystudio/NetBook/blob/master/smali_org/com/ushaqi/zhuishushenqi/model/ReviewHelpful.smali | Github Open Source | Open Source | Unlicense | 2,016 | NetBook | clilystudio | Smali | Code | 103 | 418 | .class public Lcom/ushaqi/zhuishushenqi/model/ReviewHelpful;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field private no:I
.field private yes:I
# direct methods
.method public constructor <init>()V
.locals 0
.prologue
.line 9
invoke-direct {p0}, Ljava/lang/Object;-><init>()V... | 36,802 |
https://github.com/cha63506/LGame/blob/master/Loon-0.5-Alpha/gwt/src/loon/core/geom/Mean.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | LGame | cha63506 | Java | Code | 231 | 601 | package loon.core.geom;
public final class Mean {
float values[];
int added_values = 0;
int last_value;
float mean = 0;
boolean dirty = true;
public Mean(int window_size) {
values = new float[window_size];
}
public boolean hasEnoughData() {
return added_values >= values.length;
}
public void clear() {... | 24,618 |
https://github.com/globality-corp/microcosm-sqlite/blob/master/microcosm_sqlite/tests/test_threading.py | Github Open Source | Open Source | Apache-2.0 | null | microcosm-sqlite | globality-corp | Python | Code | 98 | 362 | """
Threading tests.
"""
from multiprocessing.pool import ThreadPool
from tempfile import NamedTemporaryFile
from microcosm.api import create_object_graph
from microcosm.loaders import load_from_dict
from hamcrest import assert_that, contains
from microcosm_sqlite.context import SessionContext
from microcosm_sqlite.... | 3,890 |
https://github.com/jain-shub/InstagramAndroid/blob/master/app/src/main/java/com/android/instagram/fragments/HomeFragment.java | Github Open Source | Open Source | Apache-2.0 | null | InstagramAndroid | jain-shub | Java | Code | 218 | 740 | package com.android.instagram.fragments;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.util.Log;
import... | 52,180 |
https://github.com/sireniaeu/white/blob/master/src/TestStack.White/UIItems/TableItems/ITableVerticalScrollOffset.cs | Github Open Source | Open Source | Apache-2.0, MIT | 2,022 | white | sireniaeu | C# | Code | 14 | 44 | namespace TestStack.White.UIItems.TableItems
{
public interface ITableVerticalScrollOffset
{
bool IsOnTop { get; }
}
} | 1,049 |
https://github.com/MrFibunacci/SpaceAgencyManager/blob/master/app/framework/Component/StdLib/StdObject/StdObjectException.php | Github Open Source | Open Source | MIT | null | SpaceAgencyManager | MrFibunacci | PHP | Code | 34 | 123 | <?php
/**
* Framy Framework
*
* @copyright Copyright Framy
* @Author Marco Bier <mrfibunacci@gmail.com>
*/
namespace app\framework\Component\StdLib\StdObject;
use app\framework\Component\StdLib\Exception\AbstractException;
/**
* Class StdObjectException
*
* @package app\framework\Comp... | 42,388 |
https://github.com/IoannTrubachev/YardManagement/blob/master/application/views/report/report.php | Github Open Source | Open Source | MIT | 2,016 | YardManagement | IoannTrubachev | PHP | Code | 359 | 1,689 |
<div>
<!-- echo out the system feedback (error and success messages) -->
<?php $this->renderFeedbackMessages(); ?>
<script>var pfHeaderImgUrl = '';var pfHeaderTagline = '';var pfdisableClickToDel = 0;var pfHideImages = 1;var pfImageDisplayStyle = 'right';var pfDisablePDF = 0;var pfDisableEmail = 0;var pfDisab... | 6,926 |
https://github.com/janniksam/RoleServant.Alexa/blob/master/RoleShuffle.Alexa/RoleShuffle.Application/SSMLResponses/TheResistanceAvalon/de-DE/SpecialCharMorganaPrompt.cshtml | Github Open Source | Open Source | MIT | null | RoleServant.Alexa | janniksam | C# | Code | 9 | 33 | <speak>
<p>
Wird mit einer Morgana gespielt?
</p>
</speak> | 28,163 |
https://github.com/xhochy/abseil-cpp-feedstock/blob/master/recipe/osx_framework_fix.diff | Github Open Source | Open Source | BSD-3-Clause, Apache-2.0 | 2,020 | abseil-cpp-feedstock | xhochy | null | Spoken | 35 | 205 | diff --git a/absl/time/CMakeLists.txt b/absl/time/CMakeLists.txt
index 5909832..087bb6a 100644
--- a/absl/time/CMakeLists.txt
+++ b/absl/time/CMakeLists.txt
@@ -82,10 +82,12 @@ absl_cc_library(
"internal/cctz/src/zone_info_source.cc"
COPTS
${ABSL_DEFAULT_COPTS}
- DEPS
- $<$<PLATFORM_ID:Darwin>:${CoreFo... | 38,422 |
https://github.com/flashingpumpkin/epaye-api/blob/master/test/uk/gov/hmrc/epayeapi/router/ApiRouterTest.scala | Github Open Source | Open Source | Apache-2.0 | null | epaye-api | flashingpumpkin | Scala | Code | 336 | 748 | /*
* Copyright 2018 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 12,172 |
https://github.com/idoshveki/magma/blob/master/symphony/graph/graphhttp/wire.go | Github Open Source | Open Source | BSD-3-Clause | 2,021 | magma | idoshveki | Go | Code | 187 | 831 | // Copyright (c) 2004-present Facebook All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build wireinject
package graphhttp
import (
"net/http"
"net/url"
"github.com/facebookincubator/symphony/graph/event"
"github.com/facebookincubat... | 45,478 |
https://github.com/tienlocbui1110/Kele/blob/master/Keyboard/app/src/main/java/com/lh/kete/algorithm/predictor/EuclidPredictor.kt | Github Open Source | Open Source | MIT | 2,020 | Kele | tienlocbui1110 | Kotlin | Code | 170 | 672 | package com.lh.kete.algorithm.predictor
import android.content.Context
import android.util.Log
import com.lh.kete.algorithm.Algorithm
import com.lh.kete.algorithm.common.Path
import com.lh.kete.algorithm.common.PolylineModel
import com.lh.kete.data.KeteConfig
import com.lh.kete.listener.OnWorkerThreadListener
import c... | 6,947 |
https://github.com/radostinpetrov/coding-chess-variants/blob/master/engine/src/main/kotlin/pieces/janggi/Horse.kt | Github Open Source | Open Source | BSD-3-Clause | null | coding-chess-variants | radostinpetrov | Kotlin | Code | 112 | 547 | package pieces.janggi
import moveGenerators.Direction
import moveGenerators.MoveGenerator2D
import pieces.Piece2D
import players.Player
/**
* Represents a horse in Janggi
* Moves are similar to a standard to chess knight, but cannot jump over another pieces
* i.e. is not a leaper
*/
data class Horse(override val ... | 4,179 |
https://github.com/Frazew/seaweedfs/blob/master/weed/messaging/msgclient/config.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | seaweedfs | Frazew | Go | Code | 134 | 567 | package msgclient
import (
"context"
"log"
"github.com/chrislusf/seaweedfs/weed/messaging/broker"
"github.com/chrislusf/seaweedfs/weed/pb"
"github.com/chrislusf/seaweedfs/weed/pb/messaging_pb"
)
func (mc *MessagingClient) configureTopic(tp broker.TopicPartition) error {
return mc.withAnyBroker(func(client mes... | 14,109 |
https://github.com/hjzheng/ccms-components/blob/master/mock/mock-goods-selector-grid.js | Github Open Source | Open Source | MIT | null | ccms-components | hjzheng | JavaScript | Code | 2,686 | 21,163 | var gridData = [
{
'id': 1,
'currentPage': 1,
'pageSize': 20,
'totalPage': 1,
'totalCount': 40,
'data': [
{
'id': '1',
'name': '商品名称1商品名1称商品名1称商1品名称商品名称',
'order': '排序',
'status': 'true',
'created': '创建时间',
'modified': '更改时间',
'lastSync': '同步时间',
'shopId': '10001',
'p... | 25,488 |
https://github.com/jriley15/portfoliov3/blob/master/src/components/common/ThemeSwitch.js | Github Open Source | Open Source | MIT | 2,023 | portfoliov3 | jriley15 | JavaScript | Code | 105 | 421 | import React from "react"
import { withStyles } from "@material-ui/core/styles"
import { purple } from "@material-ui/core/colors"
import Switch from "@material-ui/core/Switch"
const ThemeSwitch = withStyles({
thumbUnchecked: {
backgroundImage: `url("https://dejpknyizje2n.cloudfront.net/marketplace/products/cresc... | 52,337 |
https://github.com/MrHeadShot62/ChatServer/blob/master/src/com/mrheadshot62/server/storage/Storage.java | Github Open Source | Open Source | Apache-2.0 | null | ChatServer | MrHeadShot62 | Java | Code | 52 | 175 | package com.mrheadshot62.server.storage;
import com.mrheadshot62.api.types.UserDatas;
import com.mrheadshot62.server.Client;
import java.util.*;
/**
* Created by novak on 04.01.2017.
*/
class Storage {
private HashMap<String, Client> clients = new HashMap<>();
private HashMap<Integer, UserDatas> users =new... | 47,157 |
https://github.com/kmbulebu/NickNack/blob/master/nicknack-core/src/main/java/com/github/kmbulebu/nicknack/core/attributes/impl/LongFormatDateAttributeDefinition.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,016 | NickNack | kmbulebu | Java | Code | 30 | 176 | package com.github.kmbulebu.nicknack.core.attributes.impl;
import java.util.UUID;
import com.github.kmbulebu.nicknack.core.attributes.BasicAttributeDefinition;
import com.github.kmbulebu.nicknack.core.units.StringUnit;
public class LongFormatDateAttributeDefinition extends BasicAttributeDefinition{
public static ... | 55,587 |
https://github.com/AnyChart/AnyChart/blob/master/src/gantt/Controller.js | Github Open Source | Open Source | Apache-2.0 | 2,023 | AnyChart | AnyChart | JavaScript | Code | 4,912 | 16,870 | goog.provide('anychart.ganttModule.Controller');
goog.require('anychart.core.Base');
goog.require('anychart.format');
goog.require('anychart.ganttModule.ScrollBar');
goog.require('anychart.math.Rect');
goog.require('anychart.scales.GanttDateTime');
goog.require('anychart.treeDataModule.Tree');
goog.require('goog.arra... | 6,705 |
https://github.com/roncohen/apm-server/blob/master/tests/agent/nodejs/express/Makefile | Github Open Source | Open Source | Apache-2.0 | null | apm-server | roncohen | Makefile | Code | 16 | 58 | start:
docker-compose build
docker-compose up
stop:
docker-compose down -v
setup:
npm install elastic/apm-agent-nodejs
npm install express
| 14,244 |
https://github.com/nagi1/elpms/blob/master/app/Http/Controllers/Events/EventsController.php | Github Open Source | Open Source | MIT | 2,021 | elpms | nagi1 | PHP | Code | 38 | 145 | <?php
namespace App\Http\Controllers\Events;
use Illuminate\Http\Request;
use App\Models\Project;
use App\Models\Account;
use App\Http\Controllers\Controller;
use App\Actions\Event\CreateEventAction;
class EventsController extends Controller
{
public function store(Account $account, Project $project, Request $re... | 51,504 |
https://github.com/padhuka/atlantik/blob/master/pages/group/group_del_save.php | Github Open Source | Open Source | MIT | null | atlantik | padhuka | PHP | Code | 20 | 109 | <?php
//$skrg = date('Y-m-d');
include_once '../../lib/config.php';
$id_group_kendaraan = $_GET['id_group_kendaraan'];
$sqlhapussatuan = "DELETE FROM t_group_kendaraan WHERE id_group_kendaraan='$id_group_kendaraan'";
mysql_query( $sqlhapussatuan );
?>
| 39,245 |
https://github.com/rkostko/salt-rocks/blob/master/ntp/stop.sls | Github Open Source | Open Source | Apache-2.0 | 2,015 | salt-rocks | rkostko | null | Spoken | 20 | 61 | {% from "ntp/files/map.jinja" import ntp with context %}
include:
- ntp.configure
ntp-stop:
service:
- name: {{ ntp.srv }}
- dead
| 51,726 |
https://github.com/LloydFinch/ktor/blob/master/ktor-client/ktor-client-tests/jvm/src/io/ktor/client/tests/BuildersTest.kt | Github Open Source | Open Source | Apache-2.0 | 2,019 | ktor | LloydFinch | Kotlin | Code | 130 | 430 | package io.ktor.client.tests
import io.ktor.application.*
import io.ktor.client.*
import io.ktor.client.engine.*
import io.ktor.client.features.*
import io.ktor.client.request.*
import io.ktor.client.tests.utils.*
import io.ktor.response.*
import io.ktor.routing.*
import io.ktor.server.engine.*
import io.ktor.server.n... | 3,427 |
https://github.com/swatantra94/social-media/blob/master/reminderlist/migrations/0013_auto_20200907_0656.py | Github Open Source | Open Source | MIT | 2,020 | social-media | swatantra94 | Python | Code | 36 | 133 | # Generated by Django 3.1 on 2020-09-07 06:56
from django.conf import settings
from django.db import migrations
class Migration(migrations.Migration):
atomic = False
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('reminderlist', '0012_comment'),
]
operat... | 40,767 |
https://github.com/lwqjj/JJFontFit/blob/master/JJFontFitExample/Example/UITextField/JJTextField.h | Github Open Source | Open Source | MIT | 2,021 | JJFontFit | lwqjj | Objective-C | Code | 28 | 87 | //
// JJTextField.h
// JJFontFit
//
// Created by JMZiXun on 2018/4/18.
// Copyright © 2018年 JMZiXun. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface JJTextField : UITextField
@end
| 48,417 |
https://github.com/questionmark/blackboard-qm/blob/master/src/com/questionmark/QMWISe/TestCenter.java | Github Open Source | Open Source | Apache-2.0 | null | blackboard-qm | questionmark | Java | Code | 1,830 | 7,309 | /**
* TestCenter.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.questionmark.QMWISe;
public class TestCenter implements java.io.Serializable {
private int testCenterId;
private java.lang.String label;
private j... | 52,289 |
https://github.com/vusion/cloud-ui-materials/blob/master/src/components/lcap-login.vue/token.js | Github Open Source | Open Source | MIT | 2,023 | cloud-ui-materials | vusion | JavaScript | Code | 40 | 125 | import cookie from './cookie';
import localStorage from './localStorage';
let token;
export default {
set(Authorization) {
token = Authorization;
cookie.set({ authorization: Authorization });
localStorage.set('Authorization', Authorization);
},
get() {
return token || cooki... | 748 |
https://github.com/openaustralia/yinyo/blob/master/pkg/wrapper/wrapper_test.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | yinyo | openaustralia | Go | Code | 993 | 3,421 | package wrapper
// This tests the "yinyo wrapper" without running it in a kubernetes cluster
import (
"errors"
"io/ioutil"
"os"
"path/filepath"
"testing"
mocks "github.com/openaustralia/yinyo/mocks/pkg/apiclient"
"github.com/openaustralia/yinyo/pkg/apiclient"
"github.com/openaustralia/yinyo/pkg/protocol"
"g... | 26,680 |
https://github.com/nicoladaniello/nicoladaniello.github.io/blob/master/src/components/motion/marquee.jsx | Github Open Source | Open Source | MIT | null | nicoladaniello.github.io | nicoladaniello | null | Spoken | 144 | 403 | import React from "react"
import useWindowSize from "../../utils/useWindowSize"
import { motion } from "framer-motion"
import { useRef } from "react"
const Marquee = () => {
const ref = useRef()
const windowSize = useWindowSize()
let offset, initial, final
if (ref.current) {
offset = (windowSize.width * ... | 44,957 |
https://github.com/dylansee97/CodeTranslate/blob/master/src/components/AboutUs.vue | Github Open Source | Open Source | MIT | 2,019 | CodeTranslate | dylansee97 | Vue | Code | 297 | 1,545 | <template>
<v-container>
<d-navbar toggleable="md" type="dark" class="pb-5">
<d-navbar-toggle target="nav-collapse"></d-navbar-toggle>
<d-navbar-brand>
<img class="pr-5 pt-2"
src="@/assets/codetranslatelogo.png"
height="80"
/>
... | 24,374 |
https://github.com/Avatarchik/rail-hunter/blob/master/Assets/Scripts/Controllers/Game/InputListener.cs | Github Open Source | Open Source | LicenseRef-scancode-public-domain, CC-BY-4.0, Unlicense | 2,018 | rail-hunter | Avatarchik | C# | Code | 115 | 440 | using UnityEngine;
using UnityStandardAssets.CrossPlatformInput;
using Zenject;
public class InputListener : ITickable
{
private InputReceivedSignal _inputReceivedSignal;
private float _xThrow;
private float _yThrow;
private Ray _mousePositionRay;
private float _timeSinceLastButtonPress;
[In... | 41,391 |
https://github.com/Vinarnt/morphia/blob/master/morphia/src/main/java/dev/morphia/aggregation/experimental/expressions/impls/MapExpression.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | morphia | Vinarnt | Java | Code | 89 | 314 | package dev.morphia.aggregation.experimental.expressions.impls;
import dev.morphia.aggregation.experimental.codecs.ExpressionCodec;
import dev.morphia.mapping.Mapper;
import org.bson.BsonWriter;
import org.bson.codecs.EncoderContext;
public class MapExpression extends Expression {
private final Expression input;
... | 28,114 |
https://github.com/brunobat/quarkus-in-prod/blob/master/camel-support/src/main/java/org/acme/legume/camel/CustomSendProcessor.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | quarkus-in-prod | brunobat | Java | Code | 56 | 194 | package org.acme.legume.camel;
import org.apache.camel.Endpoint;
import org.apache.camel.ExchangePattern;
import org.apache.camel.impl.engine.DefaultProducerCache;
import org.apache.camel.processor.SendProcessor;
public class CustomSendProcessor extends SendProcessor {
public CustomSendProcessor(final Endpoint de... | 20,240 |
https://github.com/GoMintX/GoMint/blob/master/gomint-api/src/main/java/io/gomint/entity/passive/EntityVillager.java | Github Open Source | Open Source | BSD-3-Clause | null | GoMint | GoMintX | Java | Code | 98 | 269 | package io.gomint.entity.passive;
import io.gomint.GoMint;
import io.gomint.entity.EntityAgeable;
import io.gomint.entity.EntityLiving;
/**
* @author geNAZt
* @version 1.0
*/
public interface EntityVillager extends EntityAgeable {
/**
* Create a new entity villager with no config
*
* @return em... | 36,416 |
https://github.com/shseah601/AAAMovieLibrary/blob/master/resources/views/movies_management/add_movie.blade.php | Github Open Source | Open Source | MIT | null | AAAMovieLibrary | shseah601 | PHP | Code | 388 | 1,461 | @extends('layout.app')
@section('content')
@include('inc.sidebar')
<div class="editContainer">
<div class="container">
<h1>Add Movie</h1>
{!! Form::open(['url' => 'add/add', 'files' => true,'name' => 'addForm', 'onsubmit' => 'return validateAddForm(this)']) !!}
<div class="form-group">
{{Form::labe... | 12,787 |
https://github.com/gavinb/rust-rosetta/blob/master/tasks/run-length-encoding/src/main.rs | Github Open Source | Open Source | Unlicense | null | rust-rosetta | gavinb | Rust | Code | 25 | 83 | extern crate run_length_encoding;
use run_length_encoding::{INPUT, encode, decode};
fn main() {
let enc = encode(INPUT);
println!("encoded {}", enc);
let dec = decode(&enc[..]);
println!("decoded {}", dec.unwrap());
}
| 20,464 |
https://github.com/Andrino-Erick/PruebaAnalisis5/blob/master/app/Http/Requests/AlumnoRequest.php | Github Open Source | Open Source | MIT | null | PruebaAnalisis5 | Andrino-Erick | PHP | Code | 124 | 360 | <?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class AlumnoRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;//dar permiso
}
public... | 17,646 |
https://github.com/jsbyysheng/captcha-recognition/blob/master/captcha-images/src/main/java/me/zouzhipeng/Generator.java | Github Open Source | Open Source | MIT | 2,022 | captcha-recognition | jsbyysheng | Java | Code | 31 | 91 | package me.zouzhipeng;
import java.util.Properties;
import me.zouzhipeng.config.Config;
public interface Generator {
/**
*
* @param config
*/
public void generate(Config config);
/**
*
* @param prop
*/
public void generate(Properties prop);
} | 50,753 |
https://github.com/IRelive/myPhoneGapTest/blob/master/platforms/browser/www/js/bullet.js | Github Open Source | Open Source | Apache-2.0 | 2,017 | myPhoneGapTest | IRelive | JavaScript | Code | 130 | 487 | var BULLET_SIZE=[
null,
{x: 86, y: 0, w: 24, h: 26},
{x: 62, y: 0, w: 25, h: 29},
{x: 30, y: 0, w: 31, h: 35},
{x: 32, y: 35, w: 27, h: 31},
{x: 30, y: 82, w: 29, h: 33},
{x: 0, y: 82, w: 30, h: 34},
{x: 0, y: 0, w: 30, h: 44}
];
function Bullet(type){
this.type =... | 3,391 |
https://github.com/weicao/galaxysql/blob/master/polardbx-optimizer/src/main/java/com/alibaba/polardbx/optimizer/core/planner/rule/util/SubQueryPlanEnumerator.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | galaxysql | weicao | Java | Code | 483 | 1,795 | /*
* Copyright [2013-2021], Alibaba Group Holding Limited
*
* 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... | 6,601 |
https://github.com/qiuchili/ggnn_graph_classification/blob/master/program_data/JavaProgramData/42/1087.java | Github Open Source | Open Source | MIT | 2,018 | ggnn_graph_classification | qiuchili | Java | Code | 96 | 323 | package <missing>;
public class GlobalMembers
{
public static int Main()
{
int n;
int i;
int del;
int j;
int m = 0;
n = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));
int[] a = new int[n]; //??
for (i = 0;i < n;i++)
{
a[i] = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));
}
de... | 43,501 |
https://github.com/vienmvse05783/TemplateBanHang/blob/master/WebContent/webproduct_3/application/views/errors/html/error_404.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,018 | TemplateBanHang | vienmvse05783 | PHP | Code | 225 | 901 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<!DOCTYPE html>
<html class="error-page" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" dir="ltr">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-wid... | 5,322 |
https://github.com/kuator/customer-relations-management/blob/master/users/models.py | Github Open Source | Open Source | MIT | null | customer-relations-management | kuator | Python | Code | 86 | 365 | from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin
from django.db import models
from django.utils import timezone
from django.utils.translation import gettext_lazy as _
from django.db.models.signals import post_save
from .managers import CustomUserManager
class CustomUser(AbstractBaseUser, Per... | 36,491 |
https://github.com/Grave461/CK2ToEU4/blob/master/CK2ToEU4/Source/CK2World/Wonders/Wonder.h | Github Open Source | Open Source | MIT | 2,021 | CK2ToEU4 | Grave461 | C | Code | 121 | 299 | #ifndef CK2_WONDER_H
#define CK2_WONDER_H
#include "Parser.h"
namespace CK2
{
class Wonder: commonItems::parser
{
public:
Wonder() = default;
explicit Wonder(std::istream& theStream);
[[nodiscard]] const auto& getName() const { return name; }
[[nodiscard]] const auto& getType() const { return type; }
[[nodisca... | 45,923 |
https://github.com/JupiterSmalltalk/Pier/blob/master/repository/Pier-Model.package/PRMacroExpander.class/class/on..st | Github Open Source | Open Source | MIT | 2,017 | Pier | JupiterSmalltalk | null | Spoken | 10 | 27 | instance creation
on: aDictionary
^ self new
table: aDictionary;
yourself | 38,841 |
https://github.com/nicksherron/tilt-extensions/blob/master/tests/javascript/test/test.sh | Github Open Source | Open Source | Apache-2.0 | null | tilt-extensions | nicksherron | Shell | Code | 10 | 32 | #!/bin/bash
set -x
cd $(dirname $0)
tilt ci -f Tiltfile.test
| 21,239 |
https://github.com/theteebox/rethink-app/blob/master/app/src/main/java/com/celzero/bravedns/ui/DNSLogFragment.kt | Github Open Source | Open Source | Apache-2.0 | 2,020 | rethink-app | theteebox | Kotlin | Code | 687 | 2,644 | /*
Copyright 2020 RethinkDNS and its 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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | 38,503 |
https://github.com/lolo8304/corda/blob/master/node/src/test/kotlin/net/corda/node/services/persistence/MessageChainState.kt | Github Open Source | Open Source | Apache-2.0 | null | corda | lolo8304 | Kotlin | Code | 208 | 695 | package net.corda.node.services.persistence
import net.corda.core.contracts.*
import net.corda.core.identity.AbstractParty
import net.corda.core.identity.Party
import net.corda.core.schemas.MappedSchema
import net.corda.core.schemas.PersistentState
import net.corda.core.schemas.QueryableState
import net.corda.core.ser... | 11,416 |
https://github.com/yanghoonkim/neural_question_generation/blob/master/model.py | Github Open Source | Open Source | MIT | 2,020 | neural_question_generation | yanghoonkim | Python | Code | 475 | 2,116 | import tensorflow as tf
import sys
import utils
import enc_and_dec
class q_generation:
PAD = 0
GO = 1
EOS = 2
UNK = 3
def __init__(self, params):
self.dtype = params['dtype']
self.voca_size = params['voca_size']
self.embedding_size = params['embedding_size']
self.hidden_size = par... | 10,876 |
https://github.com/sachin21/PixivDeck/blob/master/app/containers/ColumnManager/actions.js | Github Open Source | Open Source | MIT | 2,018 | PixivDeck | sachin21 | JavaScript | Code | 39 | 92 | // @flow
import type { Action } from './actionTypes.js'
import { ADD_TABLE } from './constants'
import type { ColumnManagerId, ColumnManager } from './reducer'
export function addTable(id: ColumnManagerId, maneger: ColumnManager): Action {
return {
type: ADD_TABLE,
id,
maneger,
}
}
| 22,661 |
https://github.com/angr/angr/blob/master/angr/procedures/tracer/random.py | Github Open Source | Open Source | BSD-2-Clause | 2,023 | angr | angr | Python | Code | 32 | 66 | from ..cgc.random import random as orig_random
class random(orig_random):
"""
This a passthrough to the CGC version. Removing this requires regenerating angrop caches used by rex and so this is
being retained.
"""
| 32,946 |
https://github.com/Gilbishkosma/linkeep/blob/master/linkkeep/api/views.py | Github Open Source | Open Source | MIT | null | linkeep | Gilbishkosma | Python | Code | 40 | 140 | from django.shortcuts import render
from rest_framework import status, viewsets
from linkkeep.api.models import LinkData
from linkkeep.api.serializers import LinkDataSerializer
# Create your views here.
class LinkDataReadCreate(viewsets.ModelViewSet):
queryset = LinkData.objects.all()
serializer_class = LinkDataSe... | 53,798 |
https://github.com/harsh98trivedi/C-Programs/blob/master/loops/AMSTRONG.C | Github Open Source | Open Source | Unlicense | 2,022 | C-Programs | harsh98trivedi | C | Code | 78 | 200 | #include<stdio.h>
#include<conio.h>
main()
{
int number, temp, digit1, digit2, digit3;
clrscr();
printf("Printing all Armstrong numbers between 1 and 500:\n");
number = 1;
while (number <= 500)
{
digit1 = number - ((number / 10) * 10);
digit2 = (number / 10) - ((number / 100) * 10);
digit3 = (number / 100) - ((numb... | 2,574 |
https://github.com/studio-x51/dev-pesy/blob/master/cancel/js/main.js | Github Open Source | Open Source | MIT | 2,016 | dev-pesy | studio-x51 | JavaScript | Code | 66 | 301 | $(function(){
var validation = {
required : function(val) { return !!val; },
email : function(val) { return val.match( /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/ ); },
}
$('form').submit(function(){
var inputs = $(this).find(':input').not(':submit'),
valid = true;
inputs.rem... | 25,925 |
https://github.com/lamnohq/gatsby-remark-oembed/blob/master/gatsby-remark-oembed/utils/index.js | Github Open Source | Open Source | MIT | null | gatsby-remark-oembed | lamnohq | JavaScript | Code | 77 | 312 | const amendOptions = require("./amendOptions");
const amendProviders = require("./amendProviders");
const fetchOembed = require("./fetchOembed");
const fetchOembedProviders = require("./fetchOembedProviders");
const filterProviderKeys = require("./filterProviderKeys");
const filterProviders = require("./filterProviders... | 21,914 |
https://github.com/angery/ruoyi-ant-oracle/blob/master/node_modules/ant-design-vue/es/table/createBodyRow.js | Github Open Source | Open Source | MIT | 2,021 | ruoyi-ant-oracle | angery | JavaScript | Code | 173 | 536 | import _mergeJSXProps from 'babel-helper-vue-jsx-merge-props';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import PropTypes from '../_util/vue-types';
import { Store } from './createStore';
var BodyRowProps = {
store: Store,
rowKey: PropTypes.oneOfType([PropTypes.string, PropTypes.number])... | 33,636 |
https://github.com/ptsolakos/mongoose/blob/master/test/pack.c | Github Open Source | Open Source | OpenSSL | 2,021 | mongoose | ptsolakos | C | Code | 417 | 1,091 | // Copyright (c) Cesanta Software Limited
// All rights reserved.
// This program is used to pack arbitrary data into a C binary. It takes
// a list of files as an input, and produces a .c data file that contains
// contents of all these files as a collection of byte arrays.
//
// Usage:
// 1. Compile this file:
// ... | 16,988 |
https://github.com/pedropferr/javascript-course/blob/master/postagemBlog/postagemBlog.js | Github Open Source | Open Source | MIT | 2,020 | javascript-course | pedropferr | JavaScript | Code | 60 | 170 |
// Criar um objeto Postagem de blog que vai contem as seguintes propriedades
// postagem
/*
titulo
mensagem
autor
vizualisações
comentarios
(autor, mensagem)
estaAoVivo
*/
let postagem = {
titulo: 'a',
mensagem: 'b',
autor: 'c',
vizualisacoes: 10,
comentarios: [
{ autor: 'a', mensag... | 38,000 |
https://github.com/gnehil/DataLink/blob/master/dl-flinker/dl-flinker-core/src/main/java/com/ucar/datalink/flinker/core/statistics/container/collector/AbstractCollector.java | Github Open Source | Open Source | CDDL-1.1, Apache-2.0, CDDL-1.0 | 2,021 | DataLink | gnehil | Java | Code | 222 | 996 | package com.ucar.datalink.flinker.core.statistics.container.collector;
import com.ucar.datalink.flinker.api.base.TaskInfo;
import com.ucar.datalink.flinker.api.statistics.PerfTrace;
import com.ucar.datalink.flinker.api.util.Configuration;
import com.ucar.datalink.flinker.api.util.ErrorRecord;
import com.ucar.datalink.... | 24,529 |
https://github.com/OAGi/Score/blob/master/score-web/src/app/release-management/release-management.module.spec.ts | Github Open Source | Open Source | MIT | 2,023 | Score | OAGi | TypeScript | Code | 29 | 91 | import {ReleaseManagementModule} from './release-management.module';
describe('ReleaseManagementModule', () => {
let releaseManagementModule: ReleaseManagementModule;
beforeEach(() => {
releaseManagementModule = new ReleaseManagementModule();
});
it('should create an instance', () => {
expect(release... | 25,076 |
https://github.com/TomasOtano25/api-prueba-mongodb/blob/master/config.ts | Github Open Source | Open Source | MIT | null | api-prueba-mongodb | TomasOtano25 | TypeScript | Code | 18 | 71 | const config = {
port: process.env.PORT/*NODE_ENV*/ || 3000,
db: process.env.MONGODB || 'mongodb://localhost:27017/shop',
SECRET_TOKEN: 'miclavedetokens'
}
export default config
| 52,734 |
https://github.com/flyfire/JavaWithKotlin/blob/master/src/main/kotlin/com/solarexsoft/kotlininaction/K1.1.kt | Github Open Source | Open Source | Apache-2.0 | null | JavaWithKotlin | flyfire | Kotlin | Code | 222 | 694 | package com.solarexsoft.kotlininaction
/**
* Created by houruhou on 2018/10/23.
* Desc:
*/
data class Person(val name: String, val age: Int? = null)
fun main(args: Array<String>) {
val persons = listOf<Person>(Person("Alice"), Person("Bob", 28))
val oldest = persons.maxByOrNull { it.age ?: 0 }
println(... | 13,665 |
https://github.com/sriramy/xcluster/blob/master/ovl/load-balancer/src/xdp/Makefile | Github Open Source | Open Source | MIT | null | xcluster | sriramy | Makefile | Code | 140 | 642 |
ifndef __kobj
$(error __kobj is not set)
endif
LLC ?= llc
CLANG ?= clang
CC ?= gcc
NFQLB_VER := 0.6.0
NFQLB_AR := $(HOME)/Downloads/nfqlb-$(NFQLB_VER).tar.xz
NFQLB_DIR := /tmp/$(USER)/nfqlb-$(NFQLB_VER)
O ?= .
SRC := main.c ../util/util.c ../util/tcpcsum.c $(wildcard cmd*.c)
XDP_OBJ := $(O)/xdp_vip_kern.o
KSRC := $... | 1,097 |
https://github.com/gde-2/arduino-redis/blob/master/examples/Simple/Simple.ino | Github Open Source | Open Source | MIT | 2,022 | arduino-redis | gde-2 | null | Spoken | 142 | 569 | #include <Redis.h>
// this sketch will build for the ESP8266 or ESP32 platform
#ifdef HAL_ESP32_HAL_H_ // ESP32
#include <WiFiClient.h>
#include <WiFi.h>
#else
#ifdef CORE_ESP8266_FEATURES_H // ESP8266
#include <ESP8266WiFi.h>
#endif
#endif
#define WIFI_SSID "SSID"
#define WIFI_PASSWORD "PASSWORD"
#define REDIS_ADDR... | 15,118 |
https://github.com/matyioe92/SlinkyTyped/blob/master/a/aws-sdk/src/main/scala/typingsSlinky/awsSdk/opsworkscmMod/package.scala | Github Open Source | Open Source | MIT | 2,021 | SlinkyTyped | matyioe92 | Scala | Code | 317 | 1,471 | package typingsSlinky.awsSdk
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
package object opsworkscmMod {
type AWSOpsWorksCMResourceArn = java.lang.String
type Acco... | 42,031 |
https://github.com/rdebusscher/octopus-backup/blob/master/core/src/main/java/be/c4j/ee/security/interceptor/checks/SecurityCheckInfo.java | Github Open Source | Open Source | Apache-2.0 | null | octopus-backup | rdebusscher | Java | Code | 171 | 392 | /*
* Copyright 2014-2017 Rudy De Busscher (www.c4j.be)
*
* 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 appli... | 31,373 |
https://github.com/cloneforyou/content-review-lookup/blob/master/dist/rakion/Wikia.js | Github Open Source | Open Source | CC-BY-4.0 | 2,021 | content-review-lookup | cloneforyou | JavaScript | Code | 15 | 79 | importArticles({
type: "script",
articles: [
"MediaWiki:MyCustomJavaScript.js",
"w:c:dev:MediaWiki:External_include.js"
]
});
importArticle({
type: "style",
article: "MediaWiki:Common.css"
}); | 24,481 |
https://github.com/aa1213889/Vue3_Study/blob/master/src/components/todoList/todos.ts | Github Open Source | Open Source | Apache-2.0 | null | Vue3_Study | aa1213889 | TypeScript | Code | 11 | 27 | export interface ITodoLists {
id: number
text: string
isChecked: boolean
}
| 23,179 |
https://github.com/BohdanMosiyuk/samples/blob/master/snippets/visualbasic/VS_Snippets_VBCSharp/vbcollections/vb/class3.vb | Github Open Source | Open Source | CC-BY-4.0, MIT | 2,022 | samples | BohdanMosiyuk | Visual Basic | Code | 580 | 1,360 | ' Collections (C# and Visual Basic)
' e76533a9-5033-4a0b-b003-9c2be60d185b
Option Strict On
Imports System.Collections.Generic
Public Class Class3
Public Sub Process()
ListCars()
Console.WriteLine()
ListColors()
Console.WriteLine()
ListEvenNumbers()
Console.Writ... | 4,809 |
https://github.com/krasiymihajlov/SpaceInvaders/blob/master/Space Invaders/Models/Players/Player.cs | Github Open Source | Open Source | MIT | 2,017 | SpaceInvaders | krasiymihajlov | C# | Code | 101 | 329 | namespace Space_Invaders.Models.Players
{
using Interfaces.Models.Players;
using Entities;
using Interfaces.IO.InputCommands;
using IO.InputCommands.Events;
using Space_Invaders.Common.Constants.Entities;
using Microsoft.Xna.Framework;
public abstract class Player : Entity, IPlayer
{
... | 50,393 |
https://github.com/mohsinalimat/grpc-swift/blob/master/Sources/SwiftGRPCNIO/GRPCClientChannelHandler.swift | Github Open Source | Open Source | Apache-2.0 | 2,019 | grpc-swift | mohsinalimat | Swift | Code | 957 | 2,309 | /*
* Copyright 2019, gRPC Authors All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 46,656 |
https://github.com/gameofbombs/awayjs/blob/master/00_core/system.config.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | awayjs | gameofbombs | JavaScript | Code | 26 | 124 | System.config({
baseURL: "../",
defaultExtension:false,
transpiler: "typescript",
typescriptOptions: {
"module": "system",
"noEmitHelpers": true,
"sourceMap": true
},
paths: {
"awayjs-core/*": "awayjs-core/*.ts"
},
map: {
"typescript": ".... | 3,002 |
https://github.com/Sigma-Ryden/TrixyNet/blob/master/include/Trixy/Core.hpp | Github Open Source | Open Source | MIT | null | TrixyNet | Sigma-Ryden | C++ | Code | 145 | 512 | #ifndef TRIXY_CORE_HPP
#define TRIXY_CORE_HPP
#include <cstddef> // size_t
#include <cstdint>
// size_t, int8_t, int16_t, int32_t, int64_t
// uint8_t, uint16_t, uint32_t, uint64_t
#include <Trixy/Base.hpp>
#include <Trixy/Container/Core.hpp>
#include <Trixy/Lique/Core.hpp>
#include <Trixy/ILique/Core.hpp>
#include... | 9,161 |
https://github.com/lyx-1/takeaway/blob/master/app/src/main/java/com/example/l/myapplication/CollectionActivity.java | Github Open Source | Open Source | Apache-2.0 | null | takeaway | lyx-1 | Java | Code | 56 | 292 | package com.example.l.myapplication;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ListView;
import java.util.ArrayList;
import java.util.List;
public class CollectionActivity extends AppCompatActivity {
private ListView mListView;
private List<NewsInfo> da... | 47,402 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.