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/caiyonglong/StarrySky/blob/master/starrysky/src/main/java/com/lzx/starrysky/playback/offline/ExoCache.kt | Github Open Source | Open Source | MIT | 2,020 | StarrySky | caiyonglong | Kotlin | Code | 240 | 866 | package com.lzx.starrysky.playback.offline
import android.content.Context
import android.net.Uri
import com.google.android.exoplayer2.C
import com.google.android.exoplayer2.upstream.cache.Cache
import com.google.android.exoplayer2.upstream.cache.CacheSpan
import com.google.android.exoplayer2.upstream.cache.CacheUtil
i... | 51,536 |
https://github.com/jovandeginste/medisana-bs/blob/master/Makefile | Github Open Source | Open Source | MIT | 2,017 | medisana-bs | jovandeginste | Makefile | Code | 55 | 252 | bin=medisana-bs
all: arm6 arm7 linux32 linux64
pi: arm6
rsync -vaiz build/medisana-bs.arm6 root@scale-pi:/opt/medisana-bs/
ssh -t root@scale-pi systemctl restart medisana-bs
build:
$(BUILDOPTS) go build -mod vendor -o build/$(bin).$(EXT)
arm6:
@$(MAKE) build BUILDOPTS="GOOS=linux GOARCH=arm GOARM=6" EXT=$(@)
a... | 22,914 |
https://github.com/Ryan-DD-H/Road-to-learning/blob/master/EnterpriseCostMS/src/com/zlt/sys/finance/service/imp/SalaryServiceImp.java | Github Open Source | Open Source | MIT | 2,020 | Road-to-learning | Ryan-DD-H | Java | Code | 51 | 331 | package com.zlt.sys.finance.service.imp;
import com.zlt.pojo.SalaryRecord;
import com.zlt.sys.finance.dao.ISalaryDao;
import com.zlt.sys.finance.dao.imp.SalaryDaoImp;
import com.zlt.sys.finance.service.ISalaryService;
import java.util.List;
import static com.zlt.utiles.NullAssertion.isNotNull;
public class SalaryS... | 39,131 |
https://github.com/astoncheah/CLocker/blob/master/C Locker/src/com/ccs/lockscreen_pro/SettingsMap.java | Github Open Source | Open Source | MIT | 2,018 | CLocker | astoncheah | Java | Code | 935 | 4,824 | package com.ccs.lockscreen_pro;
import android.graphics.Color;
import android.location.Location;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemSelectedListener;
import android.widget.ArrayAdapter;
import android.w... | 50,172 |
https://github.com/jwieckowski/MCDA-GUI/blob/master/src/components/Calculation/Step/Matrix/Settings/Settings.jsx | Github Open Source | Open Source | MIT | 2,022 | MCDA-GUI | jwieckowski | null | Spoken | 256 | 945 | import React, { useState } from 'react'
import { useDispatch, useSelector } from 'react-redux'
import { Grid } from '@material-ui/core'
import { makeStyles } from '@material-ui/core/styles'
import { useTranslation } from 'react-i18next'
import { ExcelRenderer } from 'react-excel-renderer'
import Input from '@material-... | 5,197 |
https://github.com/FRC6854/2020InfiniteRechargeOfficial/blob/master/src/main/java/frc/robot/commands/drivetrain/ProfileFollower.java | Github Open Source | Open Source | MIT | null | 2020InfiniteRechargeOfficial | FRC6854 | Java | Code | 70 | 355 | package frc.robot.commands.drivetrain;
import edu.wpi.first.wpilibj2.command.CommandBase;
import frc.robot.subsystems.KitDrivetrain;
import viking.ProfileBuffer;
public class ProfileFollower extends CommandBase {
private KitDrivetrain drivetrain = null;
private ProfileBuffer buffer = null;
public ProfileFol... | 47,393 |
https://github.com/philipmat/method-override-examples/blob/master/app.js | Github Open Source | Open Source | MIT | 2,018 | method-override-examples | philipmat | JavaScript | Code | 187 | 504 | var PORT = process.env.PORT || 3000;
var express = require('express');
var bodyParser = require('body-parser');
var methodOverride = require('method-override');
var app = express();
app.use(methodOverride('X-HTTP-Method-Override'));
app.use(methodOverride('_method'));
// by default method-override only looks at POS... | 24,046 |
https://github.com/bednabedna/PbrEngine/blob/master/src/core/object.rs | Github Open Source | Open Source | MIT | null | PbrEngine | bednabedna | Rust | Code | 20 | 56 | use super::geometry::Geometry;
use super::material::Material;
pub struct Object<'a, 'b> {
pub geometry: &'b dyn Geometry,
pub material: &'a dyn Material,
}
| 37,144 |
https://github.com/TCU-DistributedSystem/TeamTCU/blob/master/admin/content/_Removeregisted.php | Github Open Source | Open Source | MIT | 2,017 | TeamTCU | TCU-DistributedSystem | PHP | Code | 34 | 154 |
<?php
$sql= "DELETE FROM `meetingroom_history_detail` WHERE ID =".$_GET['ID'];
$result = mysql_query($sql);
$sql="SELECT ID FROM meetingroom_history_detail WHERE ID =" .$_GET['ID'];
$result = mysql_query($sql);
if(mysql_num_rows($result) ==0) echo "<script> alert('Delete the user Complet... | 24,577 |
https://github.com/konn/sized/blob/master/src/Data/Sized/Internal.hs | Github Open Source | Open Source | BSD-3-Clause | 2,020 | sized | konn | Haskell | Code | 881 | 2,268 | {-# LANGUAGE CPP, ConstraintKinds, DataKinds, DeriveDataTypeable #-}
{-# LANGUAGE DeriveFunctor, DeriveTraversable, DerivingStrategies #-}
{-# LANGUAGE ExplicitNamespaces, FlexibleContexts, FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving, KindSignatures #-}
{-# ... | 39,201 |
https://github.com/dqduc/dotfiles/blob/master/.bashrc | Github Open Source | Open Source | BSD-3-Clause, MIT | 2,015 | dotfiles | dqduc | Shell | Code | 73 | 251 | #
# $Header: ~/.bashrc, 2014/09/28 22:52:41 -tclover Exp $
#
shopt -qs extglob
shopt -qs nullglob
if [[ -f ~/lib/aliasrc ]]; then
source ~/lib/aliasrc
fi
if [[ -f /etc/bash_completion ]] && ! shopt -oq posix; then
source /etc/bash_completion
fi
if [[ -f ~/lib/functions.bash ]]; then
source ~/lib/functions.bash
fi... | 32,368 |
https://github.com/QuangChuIT/carbon-identity-framework-5.14.97/blob/master/components/sso-authentication/org.wso2.carbon.identity.sso.authentication/src/main/java/org/wso2/carbon/identity/sso/authentication/servlet/SSOAuthenticationServlet.java | Github Open Source | Open Source | Apache-2.0 | null | carbon-identity-framework-5.14.97 | QuangChuIT | Java | Code | 57 | 243 | package org.wso2.carbon.identity.sso.authentication.servlet;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
i... | 10,803 |
https://github.com/DLwbm123/FVI_CV/blob/master/lib/utils/camvid.py | Github Open Source | Open Source | MIT | 2,020 | FVI_CV | DLwbm123 | Python | Code | 220 | 1,096 | """
PyTorch dataloaders for CamVid dataset.
based on: https://github.com/wjmaddox/swa_gaussian
"""
import os
import torch
from torchvision import transforms
from .camvid_utils import CamVid
from .joint_transforms_seg import (JointRandomResizedCrop,
JointRandomHorizontalFlip,
JointCompose,
LabelToLo... | 7,184 |
https://github.com/stoplightio/gitlabhq/blob/master/app/serializers/merge_request_poll_cached_widget_entity.rb | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT, CC-BY-SA-4.0 | 2,019 | gitlabhq | stoplightio | Ruby | Code | 240 | 1,081 | # frozen_string_literal: true
class MergeRequestPollCachedWidgetEntity < IssuableEntity
expose :auto_merge_enabled
expose :state
expose :merge_commit_sha
expose :short_merge_commit_sha
expose :merge_error
expose :merge_status
expose :merge_user_id
expose :source_branch
expose :source_project_id
exp... | 30,708 |
https://github.com/mdautrey/terraform-ovh-commons/blob/master/examples/multiregion-pci/outputs.tf | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-unknown-license-reference | 2,021 | terraform-ovh-commons | mdautrey | HCL | Code | 25 | 110 | output "bastion_pub_ipv4" {
value = openstack_compute_instance_v2.bastion.access_ip_v4
}
output "hosts" {
value = {
for h in concat(module.hosts-one.hosts, module.hosts-two.hosts, module.hosts-three.hosts) :
h.name => h.access_ip_v4
}
}
| 30,296 |
https://github.com/finalvalue/Yfrobot-Motor-Driver-Library/blob/master/examples/motorTest_IIC/motorTest_IIC.ino | Github Open Source | Open Source | BSD-3-Clause | 2,021 | Yfrobot-Motor-Driver-Library | finalvalue | null | Spoken | 235 | 1,183 | /***************************************************
Motor Test - IIC Motor Drive
motor driver library: https://github.com/YFROBOT-TM/Yfrobot-Motor-Driver-Library
motor driver iic Introduction: http://www.yfrobot.com.cn/wiki/index.php?title=MotorDriver_IIC
motor driver iic:https://item.taobao.com/item.htm?id=6... | 43,418 |
https://github.com/konser1/alipaytest/blob/master/src/main/java/com/alipay/api/response/AlipayInsCooperationProductOfflineBatchqueryResponse.java | Github Open Source | Open Source | Apache-2.0 | null | alipaytest | konser1 | Java | Code | 69 | 322 | package com.alipay.api.response;
import java.util.List;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
import com.alipay.api.domain.InsOffilneProduct;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.ins.cooperation.product.offline.batchquery resp... | 39,577 |
https://github.com/vandsonlima/SSP/blob/master/src/main/java/org/jasig/ssp/web/api/reports/DistanceLearningReportController.java | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | 2,022 | SSP | vandsonlima | Java | Code | 458 | 1,721 | /**
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in ... | 41,940 |
https://github.com/zengyimou/react-native-webview-x5/blob/master/index.android.js | Github Open Source | Open Source | MIT | 2,019 | react-native-webview-x5 | zengyimou | JavaScript | Code | 144 | 635 | "use strict";
import React, { cloneElement } from "react";
import { WebView, NativeModules, requireNativeComponent, UIManager, findNodeHandle } from "react-native";
class X5WebView extends WebView {
static getX5CoreVersion = function(cb) {
if (cb) {
NativeModules.X5WebView.getX5CoreVersion(cb);
... | 29,417 |
https://github.com/oneHamidreza/Meow-Framework-MVVM/blob/master/Sample/src/main/kotlin/sample/ui/markdown/MarkdownFragment.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | Meow-Framework-MVVM | oneHamidreza | Kotlin | Code | 221 | 638 | /*
* Copyright (C) 2020 Hamidreza Etebarian & Ali Modares.
*
* 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 ... | 39,083 |
https://github.com/DaanMoura/SongSim/blob/master/src/components/toolbox/index.jsx | Github Open Source | Open Source | MIT | null | SongSim | DaanMoura | null | Spoken | 513 | 1,605 | import React, { Component } from 'react';
import Clipboard from 'clipboard';
import './style.css';
import config from '../../config';
import {MODE, MODE_TOOLTIPS} from '../../constants';
// TODO: is this really the orthodox way to do this? :/
new Clipboard('#perma');
/**
* Contains a bunch of controls for stuff li... | 31,854 |
https://github.com/vmishenev/Continuation/blob/master/guide/test/ReadmeSpec.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | Continuation | vmishenev | Kotlin | Code | 58 | 292 | // This file was automatically generated from README.md by Knit tool. Do not edit.
package example.test
import io.kotest.core.spec.style.StringSpec
import kotlin.time.Duration
import kotlin.time.ExperimentalTime
@OptIn(ExperimentalTime::class)
class ReadmeSpec : StringSpec({
"ExampleReadme02".config(timeout= Dura... | 20,459 |
https://github.com/xLive/discord-react-forms/blob/master/lib/components/TextArea.js | Github Open Source | Open Source | MIT | 2,020 | discord-react-forms | xLive | JavaScript | Code | 117 | 460 | /* @flow */
import React, {PropTypes} from 'react';
import ReactMixin from 'react-mixin';
import FieldMixin from './common/FieldMixin';
import FieldWrapper from './common/FieldWrapper';
import '../styles/TextArea.css';
@ReactMixin.decorate(FieldMixin)
class TextArea extends React.Component {
static propTypes = {
... | 28,737 |
https://github.com/Jugendhackt/SWTU/blob/master/SWTU/scenes/LifeScreen.gd | Github Open Source | Open Source | MIT | 2,019 | SWTU | Jugendhackt | GDScript | Code | 20 | 79 | extends Node2D
onready var tree = load("res://scenes/Tree.tscn")
func _ready():
$RoundLabel.text = "Round " + str(Globals.round_counter)
for i in range(3):
$LifeAnchor.add_child(tree.instance()) | 726 |
https://github.com/hugmyndakassi/IRPMon/blob/master/km-shared/process-context-table.h | Github Open Source | Open Source | MIT | 2,022 | IRPMon | hugmyndakassi | C | Code | 131 | 643 |
#ifndef __PROCESS_CONTEXT_TABLE_H__
#define __PROCESS_CONTEXT_TABLE_H__
#include <ntifs.h>
#include <fltKernel.h>
#include "general-types.h"
typedef void (PS_CONTEXT_FREE_ROUTINE)(void *PsContext);
typedef struct _PROCESS_DLL_ENTRY {
LIST_ENTRY Entry;
void *ImageBase;
size_t ImageSize;
ULONG InageNameLen;
UL... | 18,617 |
https://github.com/CykoDev/LaraFest/blob/master/resources/views/events/index/browse.blade.php | Github Open Source | Open Source | MIT | 2,022 | LaraFest | CykoDev | PHP | Code | 178 | 886 | @extends('layouts.app')
@section('content')
<div class="container-fluid">
<div class="row mb-5">
<div class="col text-right">
<img src="{{ asset('img/public/undraw_browsing_urt9.svg') }}" height="150">
</div>
<div class="col my-auto text-left">
<div class="d-sm-fle... | 773 |
https://github.com/forgottenlands/ForgottenCore406/blob/master/sql/fl/2012_01_28_npc_chains_of_woe.sql | Github Open Source | Open Source | OpenSSL | null | ForgottenCore406 | forgottenlands | SQL | Code | 7 | 34 | UPDATE `creature_template` SET `modelid1`=33553, `modelid2`=0 WHERE `entry`=40447; | 18,323 |
https://github.com/woslinux/gaia/blob/master/tv_webapps/smart-home/js/edit.js | Github Open Source | Open Source | Apache-2.0 | null | gaia | woslinux | JavaScript | Code | 271 | 1,147 | 'use strict';
(function(exports) {
const EDIT_MODE_SCALE = 0.536;
function Edit() {}
Edit.prototype = {
mainSection: document.getElementById('main-section'),
doneButton: document.getElementById('done-button'),
searchButton: document.getElementById('search-button'),
addNewFolderButton: document... | 54,981 |
https://github.com/mila-iqia/COVI-Mobile/blob/master/lib/screens/onboarding/dataShare.dart | Github Open Source | Open Source | Apache-2.0 | null | COVI-Mobile | mila-iqia | Dart | Code | 599 | 2,597 | import 'dart:async';
import 'package:covi/material/customButton.dart';
import 'package:covi/material/externalLink.dart';
import 'package:covi/material/switchWithLabel.dart';
import 'package:covi/utils/settings.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter... | 12,114 |
https://github.com/preslavrachev/fConcBook/blob/master/Chapter.01/QuickSort.cs/Program.cs | Github Open Source | Open Source | MIT | 2,020 | fConcBook | preslavrachev | C# | Code | 100 | 371 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace QuickSort.cs
{
class Program
{
static void Main(string[] args)
{
Random rand = new Random((int) DateTime.Now.Ticks);
... | 28,270 |
https://github.com/team-mayes/gaussian_wrangler/blob/master/tests/test_goodvibes_hm.py | Github Open Source | Open Source | MIT | 2,021 | gaussian_wrangler | team-mayes | Python | Code | 1,826 | 8,649 | import unittest
import os
from gaussian_wrangler.vib_scale_factors import CalcBBE
from gaussian_wrangler.goodvibes_hm import main
from common_wrangler.common import (capture_stdout, capture_stderr)
import logging
# logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger(__name__)
DISABLE_REMOVE = logger.... | 14,659 |
https://github.com/face-sea/acra/blob/master/acra/src/main/java/org/acra/legacy/ReportMigrator.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | acra | face-sea | Java | Code | 277 | 796 | package org.acra.legacy;
import android.content.Context;
import android.support.annotation.NonNull;
import org.acra.ACRA;
import org.acra.ACRAConstants;
import org.acra.file.CrashReportFileNameParser;
import org.acra.file.ReportLocator;
import java.io.File;
import java.io.FilenameFilter;
import static org.acra.ACRA... | 36,246 |
https://github.com/snarfed/bridgy/blob/master/cron.py | Github Open Source | Open Source | LicenseRef-scancode-public-domain | 2,023 | bridgy | snarfed | Python | Code | 378 | 1,381 | """Cron jobs. Currently just minor cleanup tasks.
"""
from builtins import range
from datetime import datetime, timedelta, timezone
import itertools
import logging
from flask import g
from flask.views import View
from google.cloud import ndb
from oauth_dropins.webutil.models import StringIdModel
import requests
from ... | 972 |
https://github.com/Avinashreddy29/DataVault/blob/master/dbt_modules/dbtvault/macros/materialisations/shared_helpers.sql | Github Open Source | Open Source | Apache-2.0 | 2,021 | DataVault | Avinashreddy29 | SQL | Code | 43 | 124 | {% macro check_placeholder(model_sql, placeholder='__PERIOD_FILTER__') %}
{%- if model_sql.find(placeholder) == -1 -%}
{%- set error_message -%}
Model '{{ model.unique_id }}' does not include the required string '{{ placeholder }}' in its sql
{%- endset -%}
{{ exceptions.raise_c... | 41,649 |
https://github.com/nolar/kopf/blob/master/tests/handling/daemons/conftest.py | Github Open Source | Open Source | MIT | 2,023 | kopf | nolar | Python | Code | 345 | 1,168 | import asyncio
import contextlib
import time
import freezegun
import pytest
from mock import MagicMock, patch
import kopf
from kopf._cogs.aiokits.aiotoggles import ToggleSet
from kopf._cogs.structs.bodies import RawBody
from kopf._cogs.structs.ephemera import Memo
from kopf._core.engines.daemons import daemon_killer
... | 20,768 |
https://github.com/15110088/ReactNativeChallenges/blob/master/BookStore/src/constants/icons.js | Github Open Source | Open Source | MIT | 2,021 | ReactNativeChallenges | 15110088 | JavaScript | Code | 94 | 386 | export const card_icon = require('../icons/card_icon.png');
export const claim_icon = require('../icons/claim_icon.png');
export const dashboard_icon = require('../icons/dashboard_icon.png');
export const menu_icon = require('../icons/menu_icon.png');
export const notification_icon = require('../icons/notification_icon... | 48,021 |
https://github.com/qoala/CauldronMods/blob/master/Controller/Heroes/Titan/Cards/JuggernautStrikeCardController.cs | Github Open Source | Open Source | MIT | 2,022 | CauldronMods | qoala | C# | Code | 178 | 714 | using Handelabra.Sentinels.Engine.Controller;
using Handelabra.Sentinels.Engine.Model;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace Cauldron.Titan
{
public class JuggernautStrikeCardController : TitanCardController
{
public JuggernautStrikeCard... | 7,492 |
https://github.com/dreamapplehappy/babel/blob/master/packages/babel-plugin-transform-curry-function/test/fixtures/curry/simple/exec.js | Github Open Source | Open Source | MIT | null | babel | dreamapplehappy | JavaScript | Code | 20 | 84 | function @@ foo(a, b, c){
return a + b + c;
}
expect(foo(1, 2, 3)).toBe(6);
expect(foo(1)(2, 3)).toBe(6);
expect(foo(1, 2)(3)).toBe(6);
expect(foo(1)(2)(3)).toBe(6);
| 49,958 |
https://github.com/cfe-lab/MiSeqQCReport/blob/master/install/miseqqc_upload.service | Github Open Source | Open Source | BSD-3-Clause | 2,022 | MiSeqQCReport | cfe-lab | null | Spoken | 69 | 284 | [Unit]
Description=MiSeqQC data upload
[Service]
# TODO: Update e-mail addresses to send errors to, and update path to RAW_DATA.
ExecStart=/usr/bin/python3 /opt/crontab_mail.py \
--log /var/log/miseqqc_upload.log \
--level ERROR \
--subject "MiSeqQC data upload" \
--from "donotreply-docker@bccfe.ca... | 4,820 |
https://github.com/goyalr41/UnusualGitCommit/blob/master/src/server/surveyclass.java | Github Open Source | Open Source | MIT | 2,015 | UnusualGitCommit | goyalr41 | Java | Code | 13 | 28 | package server;
public class surveyclass {
public String participantid;
public String data;
}
| 56,196 |
https://github.com/Reading-eScience-Centre/edal-java/blob/master/common/src/main/java/uk/ac/rdg/resc/edal/grid/GridCell4D.java | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, BSD-2-Clause | 2,023 | edal-java | Reading-eScience-Centre | Java | Code | 416 | 859 | /*******************************************************************************
* Copyright (c) 2013 The University of Reading
* 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. Redis... | 25,760 |
https://github.com/gfis/joeis-lite/blob/master/internal/fischer/care/A076521.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | joeis-lite | gfis | Java | Code | 57 | 217 | package irvine.oeis.a076;
// manually floor at 2021-09-01 20:47
import irvine.math.cr.CR;
import irvine.math.z.Z;
import irvine.oeis.FloorSequence;
/**
* A076521 Floor( (n/2)*log_2(2*n/3) ).
* @author Georg Fischer
*/
public class A076521 extends FloorSequence {
/** Construct the sequence */
public A076521() {... | 51,205 |
https://github.com/spring-projects/spring-data-rest/blob/master/src/main/asciidoc/events.adoc | Github Open Source | Open Source | Apache-2.0 | 2,023 | spring-data-rest | spring-projects | AsciiDoc | Code | 461 | 817 | [[events]]
= Events
The REST exporter emits eight different events throughout the process of working with an entity:
* `BeforeCreateEvent`
* `AfterCreateEvent`
* `BeforeSaveEvent`
* `AfterSaveEvent`
* `BeforeLinkSaveEvent`
* `AfterLinkSaveEvent`
* `BeforeDeleteEvent`
* `AfterDeleteEvent`
[[events.application-listene... | 41,978 |
https://github.com/VinithKrishnan/Prism_Voting_Chains/blob/master/src/epsilon.py | Github Open Source | Open Source | MIT | null | Prism_Voting_Chains | VinithKrishnan | Python | Code | 46 | 113 | from math import comb
from math import pow
voter_chains = 30
#beta = 0.3 and k = 2
p = 0.31
rev_prob = 0
for i in range(voter_chains // 2, voter_chains + 1):
rev_prob += (comb(voter_chains, i) * pow(p, i) * pow((1-p), (voter_chains - i)))
print(rev_prob) | 30,557 |
https://github.com/rseegmiller/lichobile/blob/master/src/styl/search.styl | Github Open Source | Open Source | MIT | 2,018 | lichobile | rseegmiller | Stylus | Code | 150 | 478 | #advancedSearchForm
margin 0px 5px 0px 5px
// select
.game_search_row
display flex
flex-flow row nowrap
justify-content space-around
margin-top 5px
width 100%
label
flex 0 0 33%
.game_search_input
flex 0 0 49.5%
&.full
flex 0 0 100%
input[type=text]
background transparent
border 1px... | 45,125 |
https://github.com/badges/shields/blob/master/services/greasyfork/greasyfork-rating.spec.js | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-public-domain, BSD-3-Clause, ECL-2.0, MS-PL, Artistic-2.0, LicenseRef-scancode-proprietary-license, AFL-3.0, WTFPL, CC-BY-4.0, Unlicense, BSL-1.0, Apache-2.0, BSD-2-Clause, EPL-1.0, EPL-2.0, MIT, MPL-2.0, OFL-1.1 | 2,023 | shields | badges | JavaScript | Code | 129 | 328 | import { test, given } from 'sazerac'
import GreasyForkRatingCount from './greasyfork-rating.service.js'
describe('GreasyForkRatingCount', function () {
test(GreasyForkRatingCount.render, () => {
given({ good: 0, ok: 0, bad: 30 }).expect({
message: '0 good, 0 ok, 30 bad',
color: 'red',
})
giv... | 28,449 |
https://github.com/KPO-2020-2021/zad3-iliubin7/blob/master/include/size.hh | Github Open Source | Open Source | Unlicense | null | zad3-iliubin7 | KPO-2020-2021 | C++ | Code | 12 | 28 | #pragma once
constexpr int SIZE = 2;
constexpr int NUMBEROFVERTEX = 4;
| 42,309 |
https://github.com/easybiblabs/mirror-it/blob/master/Rakefile | Github Open Source | Open Source | Apache-2.0 | 2,016 | mirror-it | easybiblabs | Ruby | Code | 51 | 197 | #!/usr/bin/env rake
# encoding: utf-8
require 'bundler'
require 'rake'
require 'rake/testtask'
require 'rspec/core/rake_task'
require 'yaml'
Bundler.setup
task default: [
:test,
:rubocop
]
desc 'Run tests'
Rake::TestTask.new do |t|
t.pattern = '**/**/tests/test_*.rb'
end
require 'rubocop/rake_task'
# no auto... | 41,990 |
https://github.com/cody343960591/Evaluation-of-Data-Compression/blob/master/read_rawdata.py | Github Open Source | Open Source | MIT | 2,019 | Evaluation-of-Data-Compression | cody343960591 | Python | Code | 54 | 198 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
# Created on Feb-23-19 15:14
# read_rawdata.py
# @author: Cody Xu
'''
import pandas as pd
import os
def read_rawdata():
rawdata_name = os.listdir('./testingData/_DATA_')
num_file = len(rawdata_name)
dl = []
for f_path in rawdata_name:
dl.appe... | 27,750 |
https://github.com/chyzman/victus/blob/master/src/main/java/com/glisco/victus/mixin/LivingEntityMixin.java | Github Open Source | Open Source | MIT | 2,021 | victus | chyzman | Java | Code | 165 | 784 | package com.glisco.victus.mixin;
import com.glisco.victus.Victus;
import com.glisco.victus.hearts.HeartAspect;
import com.glisco.victus.hearts.content.IcyAspect;
import com.glisco.victus.hearts.content.IronAspect;
import com.glisco.victus.item.VictusItems;
import com.glisco.victus.util.VictusStatusEffects;
import net.... | 16,610 |
https://github.com/ti-net/clink-sdk/blob/master/clink-serversdk/src/main/java/com/tinet/clink/kb/response/ListStandardQuestionResponse.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | clink-sdk | ti-net | Java | Code | 45 | 190 | package com.tinet.clink.kb.response;
import com.tinet.clink.kb.model.StandardQuestionModel;
import com.tinet.clink.core.response.ResponseModel;
import java.util.List;
/**
* 标准问题列表响应实体
*
* @author feizq
* @date 2022/07/27
**/
public class ListStandardQuestionResponse extends ResponseModel {
private List<Sta... | 36,914 |
https://github.com/idrisadetunmbi/More-Recipes/blob/master/client/tests/components/__snapshots__/landing-page.test.jsx.snap | Github Open Source | Open Source | MIT | 2,018 | More-Recipes | idrisadetunmbi | null | Spoken | 312 | 1,126 | // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`LandingPage component matches snapshot 1`] = `
<div
id="landing-page-component"
>
<div
className="parallax-container"
id="index-banner"
>
<div
className="section no-pad-bot"
>
<div
className="container"
>
<h1
... | 50,071 |
https://github.com/AnmolPanchal/Workday.WebServices/blob/master/Workday.ResourceManagement/Get_Credit_Card_Code_MappingsOutput.cs | Github Open Source | Open Source | MIT | 2,018 | Workday.WebServices | AnmolPanchal | C# | Code | 47 | 277 | using System;
using System.CodeDom.Compiler;
using System.ComponentModel;
using System.Diagnostics;
using System.ServiceModel;
namespace Workday.ResourceManagement
{
[GeneratedCode("System.ServiceModel", "4.0.0.0"), EditorBrowsable(EditorBrowsableState.Advanced), DebuggerStepThrough, MessageContract(IsWrapped = false... | 6,183 |
https://github.com/bruno-barros/w.eloquent.light/blob/master/src/plugins/simple-custom-post-order/assets/taxonomy_order.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | w.eloquent.light | bruno-barros | JavaScript | Code | 192 | 548 | jQuery( document ).ready( function( $ )
{
// if it is taxonomy page
if( adminpage == 'edit-tags-php' )
{
// make table rows sortable
$( '.wp-list-table.tags tbody' ).sortable({
items: 'tr:not(.inline-edit-row)',
cursor: 'move',
axis: 'y',
containment: 'table.widefat',
scrollSensitivity: 40,
sto... | 19,710 |
https://github.com/SNIKO/UniversalImageLoader/blob/master/sources/Desktop/SV.ImageLoader.Test/CacheCleanupStrategyTest.cs | Github Open Source | Open Source | MIT | 2,016 | UniversalImageLoader | SNIKO | C# | Code | 127 | 560 |
namespace SV.ImageLoader.Test
{
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Linq;
[TestClass]
public abstract class CacheCleanupStrategyTest
{
[TestMethod]
[ExpectedException(typeof(ArgumentNullException)... | 17,345 |
https://github.com/quipham152/git_Bliink/blob/master/app/components/HomePageSignIn/index.js | Github Open Source | Open Source | MIT | 2,018 | git_Bliink | quipham152 | JavaScript | Code | 133 | 515 | /**
*
* HomePageSignIn
*
*/
import React from 'react';
import logos from '../../../vendor/images/logos.png';
// import styled from 'styled-components';
class HomePageSignIn extends React.Component { // eslint-disable-line react/prefer-stateless-function
constructor(props) {
super(props);
this.state = { ema... | 3,473 |
https://github.com/fwestrom/hapili/blob/master/lib/hapili-server.js | Github Open Source | Open Source | BSD-3-Clause | 2,017 | hapili | fwestrom | JavaScript | Code | 117 | 460 | 'use strict';
var _ = require('lodash');
var Promise = require('bluebird');
var util = require('util');
var options = require('./options.js');
var rooms = require('../rooms.js');
var webServer = require('./web-server.js');
var log = require('./logging.js').log;
log.debug('Hapili is starting; options:\n', options);
... | 55,577 |
https://github.com/tgbv/telnyx-golang/blob/master/config/messaging.go | Github Open Source | Open Source | BSD-2-Clause | null | telnyx-golang | tgbv | Go | Code | 15 | 36 | package config
/*
* contains messaging-related config
*/
type Messaging struct {
Profiles []map[string]interface{}
}
| 50,735 |
https://github.com/shufo/vagrant-stf/blob/master/lib/units/device/plugins/browser.js | Github Open Source | Open Source | Apache-2.0 | 2,015 | vagrant-stf | shufo | JavaScript | Code | 329 | 1,172 | var syrup = require('stf-syrup')
var browsers = require('stf-browser-db')
var logger = require('../../../util/logger')
var wire = require('../../../wire')
var wireutil = require('../../../wire/util')
var mapping = (function() {
var list = Object.create(null)
Object.keys(browsers).forEach(function(id) {
var b... | 19,702 |
https://github.com/vulk/chef-metal/blob/master/lib/chef/provisioning/machine_spec.rb | Github Open Source | Open Source | Apache-2.0 | 2,015 | chef-metal | vulk | Ruby | Code | 187 | 463 | require 'chef/provisioning/managed_entry'
class Chef
module Provisioning
#
# Specification for a machine. Sufficient information to find and contact it
# after it has been set up.
#
class MachineSpec < ManagedEntry
def initialize(*args)
super
data['name'] ||= name
# Upgrade from metal t... | 552 |
https://github.com/seongwon-kang/Elsword-Source-2014/blob/master/X2Lib/X2StateOption.h | Github Open Source | Open Source | MIT | 2,020 | Elsword-Source-2014 | seongwon-kang | C++ | Code | 624 | 4,566 | #pragma once
class CX2StateOption : public CX2State
{
public:
enum STATE_OPTION_UI_CUSTOM_MSG
{
SOUCM_OPTION_WINDOW_OPEN = 2000,
SOUCM_OPTION_WINDOW_CLOSE,
SOUCM_OPTION_GRAPHIC,
SOUCM_OPTION_SOUND,
SOUCM_OPTION_OTHER,
SOUCM_OPTION_COMMUNITY,
SOUCM_OPTION_GRAPHIC_AUTOSET_LEFT,
SOUCM_OPTION_GRAPHIC_... | 37,641 |
https://github.com/LoveB/kth-applications-sem-3/blob/master/resources/views/pages/calendar.blade.php | Github Open Source | Open Source | MIT | null | kth-applications-sem-3 | LoveB | PHP | Code | 386 | 1,965 | @extends('layouts.app')
@section('content')
<header>
<div class="cal-header">
<h2>Explore the recipe of the day!</h2>
<div class="flaticon-book"></div>
</div>
</header>
<!-- Page content -->
<div class="calendar">
<div class="month">
<div class="month-switch fa fa-a... | 18,254 |
https://github.com/tommorse/nrn/blob/master/src/scopmath/scpmth.mak | Github Open Source | Open Source | BSD-3-Clause | 2,022 | nrn | tommorse | Makefile | Code | 87 | 473 | LIBR = /cygdrive/c/nrn/lib
LNAME = $(LIBR)/libscpmt.a
cc = gcc
CFLAGS = -mno-cygwin -DHOC=1 -I/cygdrive/c/nrn/lib -I../mswin -I/cygdrive/c/nrn/mingw
OBJ = \
abort.o\
adams.o\
adeuler.o\
adrunge.o\
advance.o\
boundary.o\
crank.o\
crout.o\
csoda.o\
csodabnc.o\
deflate.o\
dimplic.o\
euler.o\
expfit.o\
ex... | 29,517 |
https://github.com/imnetcat/ecosystem/blob/master/src/utils/random.cpp | Github Open Source | Open Source | MIT | null | ecosystem | imnetcat | C++ | Code | 32 | 139 | #include "random.h"
std::mt19937_64 random::engine = std::mt19937_64(std::random_device()());
std::uniform_int_distribution<unsigned __int64> random::distributor = std::uniform_int_distribution<unsigned __int64>(0, 999'999'999'999);
size_t random::Generate(size_t max)
{
if (!max) return 0;
return distributor(engine... | 43,748 |
https://github.com/liuzhisheng1226/HipMer/blob/master/src/hipmer/scaffolding/histogrammer/CMakeLists.txt | Github Open Source | Open Source | BSD-3-Clause-LBNL | 2,017 | HipMer | liuzhisheng1226 | CMake | Code | 30 | 217 | MESSAGE("Building merAlignerAnalyzer ${CMAKE_BUILD_TYPE} UPC code using '${CMAKE_UPC_COMPILER} ${CMAKE_UPC_FLAGS}' to compile UPC code")
ADD_DEFINITIONS(-DUSE_UPC_FOR_COMMON)
SET_SOURCE_FILES_PROPERTIES(merAlignerAnalyzer.c PROPERTIES LANGUAGE "UPC"
OBJECT_... | 3,498 |
https://github.com/d-tree-org/opensrp-client-chw/blob/master/opensrp-chw/src/main/java/org/smartregister/chw/contract/MonthlyActivityContract.java | Github Open Source | Open Source | Apache-2.0 | null | opensrp-client-chw | d-tree-org | Java | Code | 100 | 423 | package org.smartregister.chw.contract;
import android.view.ViewGroup;
import org.jetbrains.annotations.Nullable;
import org.smartregister.reporting.domain.IndicatorQuery;
import org.smartregister.reporting.domain.IndicatorTally;
import org.smartregister.reporting.domain.ReportIndicator;
import java.util.List;
impor... | 1,144 |
https://github.com/culturesofknowledge/site-portal/blob/master/omk-wemlo/html/plugins/HistoryLog/views/helpers/Showlog.php | Github Open Source | Open Source | MIT | null | site-portal | culturesofknowledge | PHP | Code | 457 | 1,531 | <?php
/**
* HistoryLog full item log show page
*
* @copyright Copyright 2014 UCSC Library Digital Initiatives
* @license http://www.gnu.org/licenses/gpl-3.0.txt GNU GPLv3
*/
/**
* History log view helper
* @package HistoryLog\View\Helper
*/
class HistoryLog_View_Helper_Showlog extends Zend_View_Helper_Abstrac... | 21,619 |
https://github.com/gce-neiist/neiist-website/blob/master/client/src/UserDataContext.js | Github Open Source | Open Source | PostgreSQL, Unlicense, MIT | 2,022 | neiist-website | gce-neiist | JavaScript | Code | 11 | 28 | import React from 'react';
const UserDataContext = React.createContext();
export default UserDataContext;
| 16,302 |
https://github.com/novafacing/challenges/blob/master/b01lers-bootcamp-2019/dragonslayer/dragonslayer.c | Github Open Source | Open Source | MIT | null | challenges | novafacing | C | Code | 1,467 | 4,986 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
char * flag = "b0ctf{i_4m_n0t_wa1t1ng_f0r_s0m3_knight_they_are_all_cowardzzz}";
//char * flag = "b0ctf{there_was_a_flag_here_but_its_up_to_you_to_figure_it_out!}}";
int check_0(char * input) {
if (input[0] == flag[0]) {
printf("Success\n");
fflu... | 19,365 |
https://github.com/rstudio/mlflow-original/blob/master/R/mlflow/man/mlflow_rfunc_predict.Rd | Github Open Source | Open Source | Apache-2.0 | 2,018 | mlflow-original | rstudio | R | Code | 118 | 337 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model.R
\name{mlflow_rfunc_predict}
\alias{mlflow_rfunc_predict}
\title{Predict using RFunc MLflow Model}
\usage{
mlflow_rfunc_predict(model_dir, data, output_file = NULL,
restore = FALSE)
}
\arguments{
\item{model_dir}{The path to the MLfl... | 10,858 |
https://github.com/dangqihe/fabric-sdk-go/blob/master/pkg/fab/events/client/lbp/lbp_test.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | fabric-sdk-go | dangqihe | Go | Code | 375 | 966 | /*
Copyright SecureKey Technologies Inc. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package lbp
import (
"fmt"
"testing"
"github.com/studyzy/fabric-sdk-go/pkg/common/providers/fab"
fabmocks "github.com/studyzy/fabric-sdk-go/pkg/fab/mocks"
)
func TestRandom(t *testing.T) {
lbp := NewRandom()
... | 15,116 |
https://github.com/nopbyte/compose-idm/blob/master/src/main/java/de/passau/uni/sec/compose/id/core/service/security/RestAuthentication.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | compose-idm | nopbyte | Java | Code | 631 | 2,334 | package de.passau.uni.sec.compose.id.core.service.security;
import java.util.Collection;
import java.util.LinkedList;
import javax.annotation.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation... | 29,640 |
https://github.com/levan92/detectron2/blob/master/projects/train_pp/reduce_lr.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | detectron2 | levan92 | Python | Code | 61 | 261 | import torch
import argparse
from pathlib import Path
from pprint import pprint
parser = argparse.ArgumentParser()
parser.add_argument('pthfile',help='path to pth file')
args = parser.parse_args()
pthdict = torch.load(args.pthfile)
# pprint(pthdict)
print(pthdict.keys())
print(pthdict['scheduler'])
# print(len(pthdi... | 33,105 |
https://github.com/okanjauhary/ngeblog-yukz/blob/master/src/components/partials/Button.tsx | Github Open Source | Open Source | MIT | null | ngeblog-yukz | okanjauhary | TypeScript | Code | 92 | 283 | import React from "react";
import { css } from "@emotion/core";
import classNames from "classnames";
type ButtonProp = {
disabled?: boolean;
type?: "button" | "submit";
medium?: boolean;
large?: boolean;
};
const Button: React.FC<ButtonProp> = props => {
const { children, disabled = false, type = "button" }... | 23,742 |
https://github.com/shivharis/pybind/blob/master/pybind/slxos/v16r_1_00b/mpls_state/policy/admin_groups/__init__.py | Github Open Source | Open Source | Apache-2.0 | null | pybind | shivharis | Python | Code | 667 | 2,755 |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | 45,799 |
https://github.com/xuedong/mini-ada/blob/master/tests/typing/bad/testfile-unique-4.adb | Github Open Source | Open Source | MIT | null | mini-ada | xuedong | Ada | Code | 24 | 56 | with Ada.Text_IO; use Ada.Text_IO;
procedure Test is
type T is record A: Integer; end record;
procedure t is begin new_line; end;
begin New_Line; end;
| 7,083 |
https://github.com/nwhator/CryptoInvestment/blob/master/resources/views/admin/withdraw/withdraw_detal.blade.php | Github Open Source | Open Source | MIT | 2,020 | CryptoInvestment | nwhator | Blade | Code | 236 | 1,258 | @extends('admin.layouts.master')
@section('title',__('Withdraw Detail'))
@section('content')
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header">
<h2>@lang('Withdraw Detail') </h2>
</div>
<div... | 13,899 |
https://github.com/kamalkhan/web-browser/blob/master/src/Concerns/CanBePaused.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,021 | web-browser | kamalkhan | PHP | Code | 93 | 271 | <?php
/*
* This file is part of bhittani/web-browser.
*
* (c) Kamal Khan <shout@bhittani.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Bhittani\WebBrowser\Concerns;
trait CanBePaused
{
/**
* Pause the b... | 30,995 |
https://github.com/radharishna7971/archidustrepo/blob/master/application/views/event.php | Github Open Source | Open Source | MIT | null | archidustrepo | radharishna7971 | PHP | Code | 1,586 | 7,095 |
<section class="inner-page">
<div id="content">
<div class="container-fluid">
<div class="col-md-12">
<ul class="breadcrumb">
<li><a href="#">Home</a> </li>
<li>Events....</li>
</ul>
</div>
<div class="col-md-3">
<!-- *** MENUS AND FILTERS ***
_____... | 31,454 |
https://github.com/alexpidhornyi/gamerlink-code-challenge/blob/master/client/modules/User/components/UserRankingView/UserRankingView.js | Github Open Source | Open Source | MIT | null | gamerlink-code-challenge | alexpidhornyi | JavaScript | Code | 114 | 549 | import React, { PropTypes, Component} from 'react';
import { Link } from 'react-router';
// Import Style
import styles from './UserRankingView.css';
/*
{this.props.rank}||
{this.props.rating}||
{this.props.gamesPlayed}||
{this.props.topPercentile}||
{this.props.rankImage}||
*/
class... | 50,072 |
https://github.com/SpiritWolf2015/learn-thread/blob/master/ThreadDesignPatterns/src/com/gzc/chapter11/sample2/Log.java | Github Open Source | Open Source | Apache-2.0 | null | learn-thread | SpiritWolf2015 | Java | Code | 67 | 242 | package com.gzc.chapter11.sample2;
public class Log {
private static final ThreadLocal<TSLog> tsLogCollection = new ThreadLocal<>();
/**
* 写日志
*/
public static void println(String s) {
getTSLog().println(s);
}
/**
* 关闭日志
*/
public static void close() {
getT... | 13,368 |
https://github.com/rasmusgreve/yahtzee/blob/master/src/player/GreedyPlayer.java | Github Open Source | Open Source | MIT | 2,021 | yahtzee | rasmusgreve | Java | Code | 140 | 419 | package player;
import game.Answer;
import game.GameLogic;
import game.Question;
import game.Scoreboard;
import game.Scoreboard.ScoreType;
public class GreedyPlayer implements Player {
int id;
@Override
public Answer PerformTurn(Question question) {
Answer ans = new Answer();
ans.diceToHold = holdHigh(questio... | 8,321 |
https://github.com/nishaya/reaktion/blob/master/src/components/sampler/sample_preview.jsx | Github Open Source | Open Source | MIT | 2,019 | reaktion | nishaya | null | Spoken | 344 | 1,014 | // @flow
import React, { Component } from 'react'
import Box from 'components/seq/fragments/box'
import type { Sample } from 'types/sampler'
const PreviewBox = Box.extend`
width: 600px;
margin: 0px;
`
const WIDTH = 600
const HEIGHT = 64
type Props = {
sample: ?Sample,
}
export default class SamplePreview ext... | 53,989 |
https://github.com/garyjohnson/pinch_hitter/blob/master/test/test_service.rb | Github Open Source | Open Source | MIT | 2,016 | pinch_hitter | garyjohnson | Ruby | Code | 311 | 1,242 | ENV['RACK_ENV'] = 'test'
require 'minitest/autorun'
require_relative 'message_assertions'
class TestService < MiniTest::Test
include Rack::Test::Methods
include MessageAssertions
def app
PinchHitter::Service::ReplayWs
end
def test_retrieve
post "/store", xml_message
post "/respond", ''
as... | 46,180 |
https://github.com/rohitbhalani/xyz/blob/master/public/assets/js/pagejs/Resource.js | Github Open Source | Open Source | MIT | null | xyz | rohitbhalani | JavaScript | Code | 167 | 377 | var Messages = {
PasswordsDoNotMatch: "Passwords do not match",
ReportsToRequired: "Please assign a person to whom this person reports to",
InvalidFile: "Invalid Excel File. Please upload an .xls or .xlsx file.",
PasswordRequired: "Password is required",
ConfirmPasswordRequired: "Confirm Password i... | 54,772 |
https://github.com/bhi5hmaraj/Coursera-Graph-Theory/blob/master/Week3/BreathFirstSearch.java | Github Open Source | Open Source | MIT | 2,017 | Coursera-Graph-Theory | bhi5hmaraj | Java | Code | 268 | 1,038 | import java.util.*;
import java.io.*;
public class BreathFirstSearch
{
/************************ SOLUTION STARTS HERE ***********************/
private static ArrayList<Integer>[] adj;
private static int[] bfs(int start,int V)
{
boolean marked[] = new boolean[V+1];
marked[start] = true;
int dist... | 6,322 |
https://github.com/artdevgame/overwolf-boilerplate/blob/master/src/features/windows/InGameMini.tsx | Github Open Source | Open Source | MIT | 2,020 | overwolf-boilerplate | artdevgame | TypeScript | Code | 84 | 277 | import React, { FC } from 'react';
import { useSelector } from 'react-redux';
import { initStateWithPrevTab } from 'redux-state-sync';
import { InGameMiniAppHeader } from '~src/components/organisms/AppHeader/InGameMiniAppHeader';
import { MinimalLayout } from '~src/components/templates/MinimalLayout';
import { useToggl... | 35,871 |
https://github.com/ClairBerlin/managair/blob/master/core/migrations/0010_auto_20201109_0814.py | Github Open Source | Open Source | BSD-3-Clause | 2,020 | managair | ClairBerlin | Python | Code | 58 | 342 | # Generated by Django 3.1.3 on 2020-11-09 08:14
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('core', '0009_auto_202011... | 4,005 |
https://github.com/MohamedBakrAli/-DataBase-Management-System/blob/master/src/parser/helper/GetStrings.java | Github Open Source | Open Source | MIT | null | -DataBase-Management-System | MohamedBakrAli | Java | Code | 120 | 405 | package parser.helper;
import java.sql.SQLException;
import java.util.ArrayList;
public class GetStrings {
private static GetStrings instance;
private GetStrings() {
}
public static GetStrings getInstance() {
if (instance == null) {
instance = new GetStrings();
}
return instance;
}
public Array... | 41,967 |
https://github.com/douglaspinheiro-dev/my-budget/blob/master/app/actions/categoryCollection.js | Github Open Source | Open Source | MIT | 2,019 | my-budget | douglaspinheiro-dev | JavaScript | Code | 571 | 1,990 | import { CATEGORY_INITIAL_STATE } from "./category";
import { Dispatch } from "../reducers/types";
export const ADD_CATEGORY = "ADD_CATEGORY";
export const REMOVE_CATEGORY = "REMOVE_CATEGORY";
export const RENAME_CATEGORY = "RENAME_CATEGORY";
export const SET_CATEGORY_SPENT = "SET_CATEGORY_SPENT";
export const SET_COL... | 20,386 |
https://github.com/MichelMeijer/laravel-docker-aws-tpe/blob/master/resources/views/job.blade.php | Github Open Source | Open Source | MIT | null | laravel-docker-aws-tpe | MichelMeijer | PHP | Code | 65 | 362 | @extends('layout')
@section('content')
<!-- {{ $job }} -->
<div class="jobinfo">
<h1 class="jobtitle">{{ $job->title}}</h1>
<hr>
<div class="row justify-content-center">
<div class="col-sm-6">
<h2><b>City: </b>{{ $job->city}}</h2>
</div>
<div class="col-sm-6">
<h2><b>Country: </b>{... | 50,489 |
https://github.com/astro75/ufront-mvc/blob/master/thx/src/thx/math/scale/NumericScale.hx | Github Open Source | Open Source | MIT | 2,013 | ufront-mvc | astro75 | Haxe | Code | 449 | 1,153 | package thx.math.scale;
/**
* Based on D3.js by Michael Bostock
* @author Franco Ponticelli
*/
import thx.error.AbstractMethod;
using Arrays;
class NumericScale<This> implements IScale<Float, Float>
{
var _domain : Array<Float>;
var _range : Array<Float>;
var f : Float -> Float -> (Float -> Float) -> (Float -... | 20,151 |
https://github.com/ForritunarkeppniFramhaldsskolanna/epsilon/blob/master/Makefile | Github Open Source | Open Source | MIT | 2,017 | epsilon | ForritunarkeppniFramhaldsskolanna | Makefile | Code | 7 | 26 | all:
$(MAKE) -C problemtools
$(MAKE) -C judge/isolate
| 9,821 |
https://github.com/Knlsharma/Hackerrank-30-days/blob/master/Day12.java | Github Open Source | Open Source | MIT | null | Hackerrank-30-days | Knlsharma | Java | Code | 171 | 480 | import java.util.Scanner;
public class Day12 {
private class Student{
protected String firstName;
protected String lastName;
int phone;
Student(String fname,String lname,int p){
firstName=fname;
lastName=lname;
phone=p;
}
public void display(... | 35,235 |
https://github.com/dieterich-lab/rp-bp/blob/master/src/rpbp/models/nonperiodic/no-periodicity.stan | Github Open Source | Open Source | MIT | 2,023 | rp-bp | dieterich-lab | null | Spoken | 127 | 395 | functions {
}
data {
int<lower=0> T; // number of observations in each frame
vector[T] x_1; // the observations in frame 1
vector[T] x_2; // the observations in frame 2
vector[T] x_3; // the observations in frame 3
}
transformed data {
// set the hyperparam... | 12,358 |
https://github.com/xstmass/CustomNPC-Plus/blob/master/src/main/java/noppes/npcs/ModelPartData.java | Github Open Source | Open Source | MIT | 2,021 | CustomNPC-Plus | xstmass | Java | Code | 177 | 569 | package noppes.npcs;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.ResourceLocation;
public class ModelPartData {
public int color = 0xFFFFFF;
public String texture;
public byte type = 0;
public boolean playerTexture;
private ResourceLocation location;
public ModelPartData(){
playerTe... | 56,221 |
https://github.com/olih/visual-experiments/blob/master/brush-ui/tests/SectionUnitTests.elm | Github Open Source | Open Source | MIT | null | visual-experiments | olih | null | Spoken | 94 | 266 | module SectionUnitTests exposing (suite)
import Expect as Expect
import Test exposing (Test, describe, fuzz, fuzz2)
import Experiment.Brush.Editor.Dialect.Section as Section
import Fuzzing exposing (sectionString, brushSectionsString)
import Experiment.Brush.Editor.Dialect.Identifier as Identifier
suite : Test
suite =... | 29,953 |
https://github.com/job-hunter-toolkit/job-hunter-toolkit/blob/master/jobpostings/shef.go | Github Open Source | Open Source | MIT | 2,023 | job-hunter-toolkit | job-hunter-toolkit | Go | Code | 24 | 86 | package jobpostings
import (
"context"
)
// GetShefJobPostings finds JobPostings found at https://jobs.lever.co/shef
func GetShefJobPostings(ctx context.Context) (<-chan *JobPosting, error) {
return getLeverJobsFor(ctx, "shef")
}
| 18,429 |
https://github.com/dxw/buy-for-your-school/blob/master/spec/presenters/support/case_presenter_spec.rb | Github Open Source | Open Source | MIT | null | buy-for-your-school | dxw | Ruby | Code | 528 | 1,757 | RSpec.describe Support::CasePresenter do
subject(:presenter) { described_class.new(support_case) }
let(:agent) { create(:support_agent) }
let(:organisation) { create(:support_organisation, urn: "000000", name: "Example Org") }
let(:procurement) { create(:support_procurement) }
let(:support_case_created_at) {... | 47,861 |
https://github.com/factly/mande/blob/master/server/action/plan/create.go | Github Open Source | Open Source | MIT | 2,022 | mande | factly | Go | Code | 206 | 868 | package plan
import (
"context"
"encoding/json"
"errors"
"net/http"
"github.com/factly/mande-server/model"
"github.com/factly/x/errorx"
"github.com/factly/x/loggerx"
"github.com/factly/x/meilisearchx"
"github.com/factly/x/middlewarex"
"github.com/factly/x/renderx"
"github.com/factly/x/validationx"
)
// Cr... | 53,234 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.