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/pcarolei/21school/blob/master/Camagru/application/models/model_modify.php | Github Open Source | Open Source | Unlicense, LicenseRef-scancode-public-domain, LicenseRef-scancode-warranty-disclaimer | 2,020 | 21school | pcarolei | PHP | Code | 103 | 331 | <?PHP
class Model_Modify extends Model
{
protected $db;
public function __construct()
{
$this->db = MyPDO::instance();
}
public function change_entry($user, $email, $login, $password, $notify)
{
if (($notify !== "1") && ($notify !== "0"))
return (false);
if (!filter_var($email, FILTER_VALIDATE_EMAIL))
... | 17,900 |
https://github.com/LordMerc/TGR-Ranker/blob/master/index.js | Github Open Source | Open Source | MIT | null | TGR-Ranker | LordMerc | JavaScript | Code | 514 | 1,789 | const config = require('./config.json')
const bloxy = require('bloxy')
const Republic = 4028827 //9156732
const Military = 9156732
const Senate = 7935307
const Jedi = 7935312
const JP = 50428945
const RP = 27346035
const RPHR = 27332445
const S = 42511300
const bClient = new bloxy.Client({
credentials: {
co... | 28,356 |
https://github.com/rgr19/MpiNonBlockingProtocol/blob/master/extern_libs/tbb-2019-u4/html/a00637.js | Github Open Source | Open Source | Apache-2.0 | 2,019 | MpiNonBlockingProtocol | rgr19 | JavaScript | Code | 10 | 46 | var a00637 =
[
[ "other", "a00637.html#a1e9f9c6f0163df16980598fcafca665b", null ]
]; | 49,034 |
https://github.com/tricinel/brunch-ember-sassy/blob/master/app/app.coffee | Github Open Source | Open Source | MIT | 2,015 | brunch-ember-sassy | tricinel | CoffeeScript | Code | 6 | 18 | # Application bootstrapper
module.exports = Em.Application.create() | 23,055 |
https://github.com/doniexun/PatternRecognizer/blob/master/pro/TriangleRecognizer.pro | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,015 | PatternRecognizer | doniexun | null | Spoken | 71 | 322 | #-------------------------------------------------
#
# Project created by QtCreator 2015-06-22T08:59:12
#
#-------------------------------------------------
QT -= gui
TARGET = TriangleRecognizer
TEMPLATE = lib
CONFIG += c++11
DEFINES += TRIANGLERECOGNIZER_LIBRARY
SRC_DIR = $${PWD}/../src
INC_DIR = $${PWD}/..... | 45,498 |
https://github.com/AlekSi/gophernotes/blob/master/vendor/github.com/cosmos72/gomacro/classic/env.go | Github Open Source | Open Source | MIT | 2,020 | gophernotes | AlekSi | Go | Code | 614 | 1,794 | /*
* gomacro - A Go interpreter with Lisp-like macros
*
* Copyright (C) 2017-2018 Massimiliano Ghilardi
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.... | 1,716 |
https://github.com/DakillerV/fork-of-discord-mongo-currency/blob/master/models/CurrencyModel.js | Github Open Source | Open Source | MIT | null | fork-of-discord-mongo-currency | DakillerV | JavaScript | Code | 38 | 109 | const mongoose = require('mongoose');
const CurrencySchema = new mongoose.Schema({
guildId: String,
userId: String,
coinsInWallet: Number,
coinsInBank: Number,
bankSpace: Number,
inventory: { type: Array, default: null },
work: { type: Number, default: null }
});
module.exports = mongoose.... | 30,537 |
https://github.com/aliakseis/hoppity/blob/master/src/hoppity/rest/health_check.go | Github Open Source | Open Source | MIT | null | hoppity | aliakseis | Go | Code | 72 | 212 | package rest
import (
"hoppity/api"
"hoppity/util"
"log"
"net/http"
)
// Health Check
func HealthCheckHandler(w http.ResponseWriter, r *http.Request) {
// swagger:route GET /health-check utility HealthCheckHandler
// Performs application health check.
// Returns 200 (OK) if health check succeeds, otherwise Int... | 31,174 |
https://github.com/chef/supermarket/blob/master/src/supermarket/app/helpers/adoption_helper.rb | Github Open Source | Open Source | Apache-2.0 | 2,023 | supermarket | chef | Ruby | Code | 164 | 384 | module AdoptionHelper
#
# Return a link to either a Cookbook or a Tool to enable/disable adoption.
#
# @param obj [Cookbook,Tool]
#
# @return [String] the link, wrapped in an <li>
#
def link_to_adoption(obj)
if policy(obj).manage_adoption?
txt, up = if obj.up_for_adoption?
["... | 43,973 |
https://github.com/dcos/dcos-website/blob/master/src/get-started-docs/service/spark.jade | Github Open Source | Open Source | Apache-2.0 | 2,018 | dcos-website | dcos | null | Spoken | 36 | 150 | .card-logo
img(src='/assets/images/icons/get-started/spark.png')
h2 Run Spark on DC/OS
p.install-time <strong>Estimated time:</strong> 25min
p.install-requirements Requires at least 1 node
p.install-description This tutorial covers the basics to get you started with Spark on DC/OS.
.install-cta-container
a(hre... | 35,305 |
https://github.com/jsdev17/ledger/blob/master/server/index.js | Github Open Source | Open Source | MIT | null | ledger | jsdev17 | JavaScript | Code | 97 | 237 | const app = require("express")();
const { PORT: port = 3000 } = process.env;
const { NODE_ENV: env = "dev" } = process.env;
const { DB: db = "local" } = process.env;
// Register development middleware.
if (env === "dev") {
const logger = require("morgan");
app.use(logger(env));
}
// Initiate Database Connection.
... | 38,722 |
https://github.com/PrakharPipersania/LeetCode-Solutions/blob/master/All Solutions/defuse-the-bomb.cpp | Github Open Source | Open Source | MIT | 2,021 | LeetCode-Solutions | PrakharPipersania | C++ | Code | 36 | 197 | class Solution {
public:
vector<int> decrypt(vector<int>& code, int k)
{
int e,n=code.size();
vector<int> x(n);
if(k>0)
for(int i=0;i<n;i++)
for(int j=i+1;j<=i+k;j++)
x[i]+=code[j%n];
if(k<0)
{
k*=-1;
... | 9,892 |
https://github.com/freebsd/freebsd-ports/blob/master/print/dvips2ascii/Makefile | Github Open Source | Open Source | BSD-2-Clause | 2,023 | freebsd-ports | freebsd | Makefile | Code | 32 | 177 | PORTNAME= dvips2ascii
PORTVERSION= 1.3
CATEGORIES= print
MASTER_SITES= SF/srezic/${PORTNAME}/${PORTVERSION}
MAINTAINER= slaven@rezic.de
COMMENT= PostScript (created by dvips) to ASCII converter
USES= shebangfix
NO_BUILD= yes
PLIST_FILES= bin/dvips2ascii
SHEBANG_FILES= dvips2ascii
do-install:
${INSTALL_SCRIPT} ${W... | 9,159 |
https://github.com/aws/aws-sdk-net/blob/master/sdk/src/Services/EC2/Generated/Model/RegisterImageRequest.cs | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-proprietary-license, LicenseRef-scancode-public-domain, MIT, LicenseRef-scancode-unknown-license-reference | 2,023 | aws-sdk-net | aws | C# | Code | 2,352 | 5,405 | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fi... | 10,184 |
https://github.com/mgkennard/todotxt2org/blob/master/Tests/LinuxMain.swift | Github Open Source | Open Source | MIT | 2,019 | todotxt2org | mgkennard | Swift | Code | 12 | 47 | import XCTest
import todotxt2orgTests
var tests = [XCTestCaseEntry]()
tests += todotxt2orgTests.allTests()
XCTMain(tests) | 4,371 |
https://github.com/Dimasik007/Deribit_funding_rate_indicator/blob/master/venv/lib/python3.7/site-packages/jedi/third_party/typeshed/stdlib/2and3/sndhdr.pyi | Github Open Source | Open Source | MIT, Apache-2.0 | 2,019 | Deribit_funding_rate_indicator | Dimasik007 | Python | Code | 80 | 241 | # Stubs for sndhdr (Python 2 and 3)
import os
import sys
from typing import Any, NamedTuple, Optional, Tuple, Union
if sys.version_info >= (3, 5):
SndHeaders = NamedTuple('SndHeaders', [
('filetype', str),
('framerate', int),
('nchannels', int),
('nframes', int),
('sampwidt... | 29,605 |
https://github.com/auxcoder/hyperapp-fountainyouth/blob/master/deploy.js | Github Open Source | Open Source | MIT | null | hyperapp-fountainyouth | auxcoder | JavaScript | Code | 114 | 383 | const path = require('path');
const FtpDeploy = require('ftp-deploy'); // eslint-disable-line
const yaml = require('js-yaml'); // eslint-disable-line
const fs = require('fs');
const ftpDeploy = new FtpDeploy();
let config;
try {
config = yaml.safeLoad(fs.readFileSync('ftp-config.yml', 'utf8'));
} catch (e) {
cons... | 11,329 |
https://github.com/sergejsii/BeautyWell/blob/master/frontend/views/site/partials/_searchForm.php | Github Open Source | Open Source | BSD-3-Clause | null | BeautyWell | sergejsii | PHP | Code | 71 | 247 | <?php
use yii\helpers\Html;
use yii\helpers\BaseHtml;
use yii\widgets\ActiveForm;
use frontend\assets\MapAsset;
MapAsset::register($this);
/* @var $this yii\web\View */
/* @var $model frontend\models\Place */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="col-md-6">
<div class="placegoogle-form">
... | 34,152 |
https://github.com/x0rium/sbermarket-tools/blob/master/src/axiosConfig.ts | Github Open Source | Open Source | MIT | 2,022 | sbermarket-tools | x0rium | TypeScript | Code | 42 | 211 | export const axiosConfig = {
returnRejectedPromiseOnError: true,
withCredentials: true,
timeout: 30000,
baseURL: "https://api.sbermarket.ru/v2/",
headers: {
common: {
"Cache-Control": "no-cache, no-store, must-revalidate",
"Pragma": "no-cache",
"Content-Ty... | 14,631 |
https://github.com/PhilipK/CardboardButler/blob/master/tests/components/GameItem.test.tsx | Github Open Source | Open Source | MIT | 2,022 | CardboardButler | PhilipK | TSX | Code | 208 | 708 |
import * as React from "react";
import GameListItem from "../../src/components/GameListItem";
import { GameInfo } from "../../src/models/GameInfo";
import { render, fireEvent, waitForElement } from "@testing-library/react";
import "@testing-library/jest-dom/extend-expect";
import { alchemists } from "../services/model... | 2,935 |
https://github.com/OpenBazaar/haven/blob/master/components/atoms/HollowButton.js | Github Open Source | Open Source | MIT | 2,021 | haven | OpenBazaar | JavaScript | Code | 90 | 291 | import React from 'react';
import { TouchableWithoutFeedback, Text, View } from 'react-native';
import { primaryTextColor } from '../commonColors';
const styles = {
wrapper: {
minWidth: 250,
height: 29,
borderRadius: 2,
backgroundColor: '#ffffff',
borderStyle: 'solid',
borderWidth: 1,
bor... | 48,976 |
https://github.com/jetdky/cms-based-on-thinkcmf/blob/master/app/admin/controller/NavController.php | Github Open Source | Open Source | MIT | null | cms-based-on-thinkcmf | jetdky | PHP | Code | 508 | 1,873 | <?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2019 http://www.thinkcmf.com All rights reserved.
// +-------------------------------------------... | 7,831 |
https://github.com/kagawa23/openui5/blob/master/src/themelib_sap_horizon/src/sap/m/themes/sap_horizon/Label.less | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,022 | openui5 | kagawa23 | Less | Code | 22 | 67 | /* ================================= */
/* CSS for control sap.m/Label */
/* Horizon theme */
/* ================================= */
.sapMLabel.sapMLabelRequired .sapMLabelColonAndRequired::after {
color: @sapField_RequiredColor;
} | 34,862 |
https://github.com/RWTH-OS/MP-MPICH/blob/master/romio/adio/ad_pfs/ad_pfs_flush.c | Github Open Source | Open Source | mpich2 | null | MP-MPICH | RWTH-OS | C | Code | 174 | 511 | /*
* $Id: ad_pfs_flush.c 5 2000-04-12 17:56:25Z karsten $
*
* Copyright (C) 1997 University of Chicago.
* See COPYRIGHT notice in top-level directory.
*/
#include "ad_pfs.h"
void ADIOI_PFS_Flush(ADIO_File fd, int *error_code)
{
int err, np_total, np_comm;
/* fsync is not actually needed in PFS, ... | 10,917 |
https://github.com/serbinario/seracademico-laravel/blob/master/app/Services/Biblioteca/RNEmprestimos/DuplicidadeDeExemplarNoEmprestimo.php | Github Open Source | Open Source | MIT | null | seracademico-laravel | serbinario | PHP | Code | 113 | 559 | <?php
namespace Seracademico\Services\Biblioteca\RNEmprestimos;
/**
* Created by PhpStorm.
* User: Fabio Aguiar
* Date: 20/03/2017
* Time: 07:58
*/
class DuplicidadeDeExemplarNoEmprestimo
{
private $next;
/**
* ExemplarEmReserva constructor.
*/
public function __construct()
{
... | 24,757 |
https://github.com/PacktPublishing/The-Complete-Python-Course/blob/master/11_web_scraping/projects/scraping-books/app.py | Github Open Source | Open Source | MIT | 2,023 | The-Complete-Python-Course | PacktPublishing | Python | Code | 89 | 398 | import requests
import logging
import time
from pages.all_books_page import AllBooksPage
logging.basicConfig(format='%(asctime)s %(levelname)-8s [%(filename)s:%(lineno)d] %(message)s',
datefmt='%d-%m-%Y %H:%M:%S',
level=logging.INFO,
filename='logs.txt')
log... | 29,945 |
https://github.com/crunchyheath/crunchy-containers/blob/master/examples/standalone/custom-setup/setup.sql | Github Open Source | Open Source | Apache-2.0 | null | crunchy-containers | crunchyheath | SQL | Code | 124 | 282 |
/* create these extensions if you want to do GIS work */
create extension postgis;
create extension postgis_topology;
create extension fuzzystrmatch;
create extension postgis_tiger_geocoder;
/* the following are required for other container operations */
alter user postgres password 'PG_ROOT_PASSWORD';
create user P... | 23,707 |
https://github.com/liqin0702/STUDY/blob/master/08Nodejs/07-Apache目录列表-模板引擎方法.js | Github Open Source | Open Source | MIT | 2,019 | STUDY | liqin0702 | JavaScript | Code | 88 | 489 | //Apache目录列表功能
var http = require('http')
var fs = require('fs')
//使用art-template模板引擎
var template = require('art-template')
// 问题1:如何得到wwwAddr下的目录内容,用readdir
// 问题2:如何将得到的目录内容加载到静态页面中去,客户端渲染(ajax等方法)、服务端渲染(暴力方法,模板渲染),这里选择服务端渲染
// 使用模板渲染方法
// 步骤1,将template1静态页面加载进来
// 步骤2,将template1中需要动态加载数据的部分,用模板语法写好
// 步骤3,利用tem... | 45,372 |
https://github.com/paulgrigas/SmartPredictThenOptimize/blob/master/experiments/shortest_path_run_5k.jl | Github Open Source | Open Source | MIT | 2,022 | SmartPredictThenOptimize | paulgrigas | Julia | Code | 148 | 500 | using CSV, DataFrames, DecisionTree, Distributions, Gurobi, JuMP, LightGraphs, Parameters, SparseArrays, Statistics, ArgParse
include("../oracles/shortest_path_oracle.jl")
include("../solver/util.jl")
include("../solver/sgd.jl")
include("../solver/reformulation.jl")
include("../solver/random_forests_po.jl")
include("..... | 27,683 |
https://github.com/IBMDeveloperBR/intro-data-science/blob/master/backend/index.js | Github Open Source | Open Source | MIT | 2,020 | intro-data-science | IBMDeveloperBR | JavaScript | Code | 65 | 193 | const express = require('express');
const helmet = require('helmet');
const path = require('path');
const routes = require('./routes');
// Iniciando app e configurando
const app = express();
app.use(helmet());
app.use(express.json());
// Renderizar pasta build
app.use(express.static(path.join(__dirname, "../build")))... | 28,522 |
https://github.com/leemason/sql-mason/blob/master/lib/compiler.js | Github Open Source | Open Source | MIT | 2,016 | sql-mason | leemason | JavaScript | Code | 93 | 414 | var Builder = require('./builder'),
_ = require('lodash'),
Escaper = require('./escaper'),
e = new Escaper();
var Compiler = function(){
Builder.apply(this);
}
Compiler.prototype = _.create(Builder.prototype, _.assign({
'_super': Builder.prototype,
'constructor': Compiler
}, {
toSql: func... | 43,746 |
https://github.com/danny0838/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/SecurityAddons.pm | Github Open Source | Open Source | Apache-2.0 | 2,018 | zeroclickinfo-goodies | danny0838 | Perl | Code | 180 | 552 | package DDG::Goodie::SecurityAddons;
# ABSTRACT: Write an abstract here
# Start at https://duck.co/duckduckhack/goodie_overview if you are new
# to instant answer development
use DDG::Goodie;
zci answer_type => "security_addons";
zci is_cached => 1;
# Triggers
triggers startend => "privacy extensions", "privacy ad... | 23,726 |
https://github.com/GunterMueller/ST_STX_Fork/blob/master/build/stx/libview2/FlyByHelp.st | Github Open Source | Open Source | MIT | 2,020 | ST_STX_Fork | GunterMueller | null | Spoken | 1,611 | 4,261 | "
COPYRIGHT (c) 2001 by eXept Software AG
COPYRIGHT (c) 2016 Jan Vrany
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherw... | 29,277 |
https://github.com/maxoumime/react-native/blob/master/packages/rn-tester/js/examples/ScrollView/ScrollViewExpandingExample.js | Github Open Source | Open Source | CC-BY-4.0, MIT | null | react-native | maxoumime | JavaScript | Code | 2,186 | 5,103 | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow
*/
'use strict';
const React = require('react');
const {
ScrollView,
StyleSheet,
Text,
TouchableOpac... | 24,355 |
https://github.com/VolgaCTF/quals-2017-volgactf-ru-cookbook/blob/master/recipes/default.rb | Github Open Source | Open Source | MIT | null | quals-2017-volgactf-ru-cookbook | VolgaCTF | Ruby | Code | 6 | 48 | include_recipe 'latest-nodejs::default'
include_recipe 'modern_nginx::default'
include_recipe 'quals-2017-volgactf-ru::main'
| 20,663 |
https://github.com/amaglio/siteco/blob/master/assets/js/confirmar_desconfirmar_curso.js | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,019 | siteco | amaglio | JavaScript | Code | 126 | 634 | function confirmarCurso(id_curso, anio_lectivo, id_horario, id_profesor ,rol, c_identificacion, c_programa, c_orientacion, n_fila_curso)
{
$.ajax({
url: CI_ROOT+'index.php/programa/confirmar_curso',
data: { id_curso: id_curso,
anio_lectivo: anio_lectivo, ... | 16,791 |
https://github.com/FoundatioFx/Foundatio.Skeleton/blob/master/api/src/Jobs/WebHook/Program.cs | Github Open Source | Open Source | Apache-2.0 | 2,020 | Foundatio.Skeleton | FoundatioFx | C# | Code | 39 | 146 | using System;
using Foundatio.ServiceProviders;
using LearningMachine.Core.Extensions;
using LearningMachine.Domain;
using LearningMachine.Domain.Jobs;
namespace LearningMachine.Jobs {
public class Program {
public static int Main() {
AppDomain.CurrentDomain.SetDataDirectory();
var... | 6,541 |
https://github.com/ablagau/SwarmFACE/blob/master/notebooks/test_j2satSVD.ipynb | Github Open Source | Open Source | CC-BY-4.0 | 2,022 | SwarmFACE | ablagau | Jupyter Notebook | Code | 412 | 1,298 | {
"cells": [
{
"cell_type": "code",
"execution_count": null,
"id": "0b936c0b",
"metadata": {},
"outputs": [],
"source": [
"# Test the SVD dual-satellite FAC estimation with Swarm\n",
"# The full calling syntax:\n",
"# \n",
"# j_df, input_df, param = j2satSVD(dtime_beg, dtime_end, sa... | 2,875 |
https://github.com/matthewdeanmartin/whats_that_code/blob/master/whats_that_code/election.py | Github Open Source | Open Source | MIT | 2,021 | whats_that_code | matthewdeanmartin | Python | Code | 443 | 1,478 | """
Ranked choice election
"""
from typing import List, Optional
import pyrankvote
from pyrankvote import Ballot, Candidate
from whats_that_code.extension_based import guess_by_extension
from whats_that_code.guess_by_popularity import language_by_popularity
from whats_that_code.keyword_based import guess_by_keywords
... | 4,047 |
https://github.com/raml-org/raml-js-parser-2/blob/master/src/parser/test/data/TCK/raml-1.0/JSONErrorsPositioning/unexpanded/AnchorTests/test005/example.raml | Github Open Source | Open Source | Apache-2.0 | 2,022 | raml-js-parser-2 | raml-org | null | Spoken | 11 | 30 | arrayProp:
- prop1: 13
prop2: true
- prop1: 13
prop2: stringValue
| 12,762 |
https://github.com/hitk1/reactAuth/blob/master/frontend/src/pages/Main/index.js | Github Open Source | Open Source | MIT | null | reactAuth | hitk1 | JavaScript | Code | 25 | 54 | import React from 'react';
// import { Container } from './styles';
function Main() {
return (
<div>
Página principal
</div>
)
}
export default Main; | 44,487 |
https://github.com/ascurrajdev/sistema-tesis/blob/master/resources/views/agendamientos/index.blade.php | Github Open Source | Open Source | MIT | null | sistema-tesis | ascurrajdev | PHP | Code | 130 | 828 | <x-app>
@push('css')
<link rel="stylesheet" href="{{asset('assets/plugins/fontawesome/css/all.min.css')}}" />
<link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
@endpush
<x-app-wrapper>
<x-navbar-header />
<x-main-sideba... | 3,748 |
https://github.com/pbibergal/scrollable/blob/master/vbr-scrollable/src/lib/services/viewport.service.ts | Github Open Source | Open Source | MIT | null | scrollable | pbibergal | TypeScript | Code | 96 | 257 | import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
@Injectable({
providedIn: 'root',
})
export class ViewportService {
constructor() {
}
/**
* Method that emits only when all images on the page were loaded.
* @param images
*/
public imagesLoaded(images: NodeListOf<Eleme... | 48,001 |
https://github.com/tonyjdev/minesweeper-minigame/blob/master/minesweeper/main.cpp | Github Open Source | Open Source | MIT | null | minesweeper-minigame | tonyjdev | C++ | Code | 305 | 875 | #include <SFML/Graphics.hpp>
#include <iostream>
using namespace sf;
int main()
{
srand(time(0));
RenderWindow app(VideoMode(400, 400), "Minesweeper Minigame");
int w = 32; // Sprite width
int grid[12][12]; // For check
int spriteGrid[12][12]; // For showing
Texture texture;
texture.loadFromFile("images/til... | 2,322 |
https://github.com/JenkoB/resolwe-bio/blob/master/resolwe_bio/tools/feature_location.py | Github Open Source | Open Source | Apache-2.0 | null | resolwe-bio | JenkoB | Python | Code | 267 | 1,026 | #!/usr/bin/env python2
# pylint: disable=missing-docstring,invalid-name
# XXX: Refactor to a comand line tool and remove pylint disable
"""Extract feature locations."""
from __future__ import absolute_import, division, print_function
import json
import argparse
import re
from six import iteritems
import utils
pars... | 36,346 |
https://github.com/Git-zyn-Hub/AElf/blob/master/AElf.OS.Core/Network/Events/PeerConnectedEventData.cs | Github Open Source | Open Source | MIT | 2,019 | AElf | Git-zyn-Hub | C# | Code | 25 | 63 | using AElf.Kernel;
namespace AElf.OS.Network.Events
{
public class PeerConnectedEventData
{
public BlockHeader Header { get; set; }
public string Peer { get; set; }
}
} | 1,427 |
https://github.com/carlotacb/ACAP/blob/master/Practicas/Practica-5/Codigos/PROC_SEGMENTADO/documentacio/html/search/files_7.js | Github Open Source | Open Source | MIT | null | ACAP | carlotacb | JavaScript | Code | 9 | 176 | var searchData=
[
['ldd_2evhd',['LDD.vhd',['../LDD_8vhd.html',1,'']]],
['ldrd_2evhd',['LDRD.vhd',['../LDRD_8vhd.html',1,'']]],
['ldrs_2evhd',['LDRS.vhd',['../LDRS_8vhd.html',1,'']]],
['lgr_2evhd',['LGR.vhd',['../LGR_8vhd.html',1,'']]],
['lib_2evhd',['LIB.vhd',['../LIB_8vhd.html',1,'']]]
];
| 2,849 |
https://github.com/kingka/PhotoSelector/blob/master/PhotoSelector/PhotoSelector/AppDelegate.swift | Github Open Source | Open Source | MIT | null | PhotoSelector | kingka | Swift | Code | 65 | 200 | //
// AppDelegate.swift
// PhotoSelector
//
// Created by Imanol on 5/22/16.
// Copyright © 2016 imanol. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingW... | 26,283 |
https://github.com/Keksuccino/BookStacker/blob/master/src/main/java/de/keksuccino/core/file/FilenameComparator.java | Github Open Source | Open Source | MIT | null | BookStacker | Keksuccino | Java | Code | 137 | 397 | package de.keksuccino.core.file;
import java.math.BigInteger;
import java.util.Comparator;
import java.util.regex.Pattern;
public final class FilenameComparator implements Comparator<String> {
private static final Pattern NUMBERS = Pattern.compile("(?<=\\D)(?=\\d)|(?<=\\d)(?=\\D)");
@Override
public fin... | 40,728 |
https://github.com/blkopsdev/pigtou-Shopify-theme/blob/master/src/snippets/pluginseo-parse.liquid | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,019 | pigtou-Shopify-theme | blkopsdev | null | Spoken | 1,532 | 3,332 | {% comment %}
----------------------------------------------------------------------------------
Plug in SEO Plus for Shopify
Copyright (c) 2019 Pemberton Rank Ltd, a company registered in England 7341337
This file is subject to the license at https://www.pluginseo.com/eula
------------------------------... | 21,426 |
https://github.com/Elimuhub-Consultants-Kenya/filemanager/blob/master/FileManager/src/main/java/org/openintents/filemanager/bookmarks/BookmarkListActivity.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | filemanager | Elimuhub-Consultants-Kenya | Java | Code | 87 | 390 | package org.openintents.filemanager.bookmarks;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import androidx.fragment.app.FragmentActivity;
import android.view.MenuItem;
import org.openintents.filemanager.compatibility.HomeIconHelper;
import org.openintents.filemanager.util.UIUtils... | 13,264 |
https://github.com/buddhika75/hmis/blob/master/src/main/java/com/divudi/bean/report/CreditSummeryController.java | Github Open Source | Open Source | MIT | 2,020 | hmis | buddhika75 | Java | Code | 2,102 | 7,647 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.divudi.bean.report;
import com.divudi.bean.common.BillController;
import com.divudi.bean.common.CommonController;
import c... | 8,801 |
https://github.com/KvanTTT/Education/blob/master/DigitalSignalProcessing/Convolutions/frmMain.Designer.cs | Github Open Source | Open Source | MIT | 2,018 | Education | KvanTTT | C# | Code | 817 | 3,895 | namespace Convolutions
{
partial class frmMain
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should b... | 17,321 |
https://github.com/bvbharatk/cloud-stack/blob/master/server/src/com/cloud/vm/VirtualMachineProfileImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | cloud-stack | bvbharatk | Java | Code | 632 | 1,949 | // 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 may... | 13,506 |
https://github.com/kuehlfrank/database/blob/master/scripts/1-schema.sql | Github Open Source | Open Source | MIT | null | database | kuehlfrank | SQL | Code | 616 | 1,967 | DROP TABLE IF EXISTS RECIPE CASCADE;
DROP TABLE IF EXISTS INGREDIENT_ALTERNATIVE_NAME CASCADE;
DROP TABLE IF EXISTS INGREDIENT CASCADE;
DROP TABLE IF EXISTS RECIPE_INGREDIENT CASCADE;
DROP TABLE IF EXISTS INVENTORY_ENTRY CASCADE;
DROP TABLE IF EXISTS INVENTORY CASCADE;
DROP TABLE IF EXISTS UNIT CASCADE;
DROP TABLE IF E... | 32,227 |
https://github.com/Nickysix/neos/blob/master/bkup/gnu.emacs.d/bkup-emacs-d/.emacs.d/neos/docs/racket/racket: how-to-design-programs/htdp-solutions-github-adaliu-gh/8-13 Arbitrarily Large Data/9-160.rkt | Github Open Source | Open Source | MIT | 2,020 | neos | Nickysix | null | Spoken | 173 | 386 | ;; The first three lines of this file were inserted by DrRacket. They record metadata
;; about the language level of this file in a form that our tools can easily process.
#reader(lib "htdp-beginner-reader.ss" "lang")((modname 9-160) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-dec... | 51,991 |
https://github.com/Vishakuday/starwars/blob/master/src/actions/index.js | Github Open Source | Open Source | MIT | null | starwars | Vishakuday | JavaScript | Code | 18 | 67 | import axios from 'axios';
export function loginfunction() {
return{type:'TOGGLELOGGEDIN'}
}
export function setplanets(planets){
return{
type:'SETPLANETS',
payload:planets
}
} | 17,570 |
https://github.com/emanuellucas2/OVPsimProject/blob/master/Examples/SimulationControl/passingArgvIntoApplications/application/application.c | Github Open Source | Open Source | TCL | null | OVPsimProject | emanuellucas2 | C | Code | 165 | 279 | /*
*
* Copyright (c) 2005-2021 Imperas Software Ltd., www.imperas.com
*
* The contents of this file are provided under the Software License
* Agreement that you accepted before downloading this file.
*
* This source forms part of the Software and can be used for educational,
* training, and demonstration purpos... | 47,149 |
https://github.com/eNeRGy164/Roslyn.Demos/blob/master/src/Demo04/Program.cs | Github Open Source | Open Source | MIT | null | Roslyn.Demos | eNeRGy164 | C# | Code | 83 | 291 | using System;
using System.Linq;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace Demo04
{
class Program
{
static void Main(string[] args)
{
SyntaxTree tree = CSharpSyntaxTree.ParseText(
@"using System;
using S... | 52,941 |
https://github.com/AO-StreetArt/NeoCpp/blob/master/neocpp/data/impl/neo4j_result_iterator.h | Github Open Source | Open Source | Apache-2.0 | 2,018 | NeoCpp | AO-StreetArt | C++ | Code | 272 | 801 | /*
Apache 2.0 License
Copyright 2018 Alex Barry
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | 28,873 |
https://github.com/GiggleLiu/NiLang.jl/blob/master/src/autodiff/instructs.jl | Github Open Source | Open Source | Apache-2.0 | 2,022 | NiLang.jl | GiggleLiu | Julia | Code | 1,505 | 5,112 | # unary
@i @inline function NEG(a!::GVar)
NEG(a!.x)
NEG(a!.g)
end
function INV(x!::GVar{T}) where T
x2 = x!.x ^ 2
GVar(INV(x!.x), -x!.g * x2)
end
@i @inline function DEC(a!::GVar)
DEC(a!.x)
end
# +-
@i @inline function :(-=)(identity)(a!::GVar, b::GVar)
a!.x -= b.x
b.g += a!.g
end
# inv
... | 42,406 |
https://github.com/bejerome/page-modeller/blob/master/src/profiles/templates-helpers.js | Github Open Source | Open Source | MIT | 2,022 | page-modeller | bejerome | JavaScript | Code | 33 | 108 | const isClickable = entity => ['A', 'BUTTON', 'IMG'].includes(entity.tagName) || (entity.tagName === 'INPUT' && ['button', 'reset', 'image', 'submit'].includes(entity.type));
const isInteractive = entity => ['INPUT', 'A', 'BUTTON', 'IMG', 'SELECT', 'TEXTAREA'].includes(entity.tagName);
export { isClickable, isInterac... | 10,410 |
https://github.com/TheLonelyDev/LovelySpritesheet/blob/master/ConfigReader.lua | Github Open Source | Open Source | MIT | 2,017 | LovelySpritesheet | TheLonelyDev | Lua | Code | 106 | 199 | local floor, sqrt = math.floor, math.sqrt ;
--[[ Returns ImageRectOffset (top left of sprite) starting from 0 as x, y ]]--
function GetOffset( config, number )
local intRows = sqrt( config.count ) ;
number = floor(number) % config.count ;
return ( ( config.diameter + config.padding * 2 ) * ( floor( number % intRows... | 4,124 |
https://github.com/dipoletechi/standard-repository/blob/master/Sources/StandardRepository/Models/Entities/Schemas/ISchemaMain.cs | Github Open Source | Open Source | MIT | 2,021 | standard-repository | dipoletechi | C# | Code | 9 | 31 | namespace StandardRepository.Models.Entities.Schemas
{
public interface ISchemaMain
{
}
} | 17,832 |
https://github.com/leonard-thieu/toofz-necrodancer-core/blob/master/src/toofz.NecroDancer/Data/CursedSlot.cs | Github Open Source | Open Source | MIT | 2,020 | toofz-necrodancer-core | leonard-thieu | C# | Code | 48 | 141 | using System;
namespace toofz.NecroDancer.Data
{
/// <summary>
///
/// </summary>
public sealed class CursedSlot
{
/// <summary>
///
/// </summary>
/// <param name="slot"></param>
public CursedSlot(string slot)
{
Slot = slot ?? throw ne... | 4,667 |
https://github.com/szhangpitt/react-form/blob/master/gulpfile.js | Github Open Source | Open Source | MIT | null | react-form | szhangpitt | JavaScript | Code | 89 | 437 | var gulp = require('gulp');
var sourcemaps = require('gulp-sourcemaps');
var babel = require('gulp-babel');
var concat = require('gulp-concat');
var rimraf = require('gulp-rimraf');
var cleanDir = [
'./node_modules/**/*.*',
'./dist/**/*.*'
];
var libSrc = [
'./node_modules/dottie/dottie.js',
'./node_m... | 890 |
https://github.com/davisford/daisycentral/blob/master/client/templates/devices/tooltip.jade | Github Open Source | Open Source | MIT | 2,017 | daisycentral | davisford | null | Spoken | 5 | 17 | div#tooltip
p {{sensor}}
p {{timestamp}} | 4,745 |
https://github.com/kicholen/GamePrototype/blob/master/Assets/EditorScript/View/Level/Executor/Basic/ChangeLevelDimensionAction.cs | Github Open Source | Open Source | MIT | null | GamePrototype | kicholen | C# | Code | 36 | 100 | public class ChangeLevelDimensionAction : ILevelAction {
float x;
float y;
public ChangeLevelDimensionAction(float x, float y) {
this.x = x;
this.y = y;
}
public void Execute(LevelModelComponent component) {
component.size.x = x;
component.size.y = y;
}
}
| 38,384 |
https://github.com/goldmansachs/obevo-kata/blob/master/kata-files/lesson2/postgresql/expected/MYLARGESCHEMA/function/func245.sql | Github Open Source | Open Source | Apache-2.0 | 2,022 | obevo-kata | goldmansachs | SQL | Code | 44 | 205 | CREATE FUNCTION func245() RETURNS integer
LANGUAGE plpgsql
AS $$ DECLARE val INTEGER; BEGIN val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE473);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE415);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE122);val:=(SELECT COUNT(*)INTO MYCOU... | 24,440 |
https://github.com/berendt/gardenlinux/blob/master/packages/manual/linux-5.4.d/fs-add.patch | Github Open Source | Open Source | MIT | 2,021 | gardenlinux | berendt | null | Spoken | 232 | 1,467 | --- a/debian/patches/bugfix/all/fs-add-module_softdep-declarations-for-hard-coded-cr.patch 2021-07-27 06:52:57.715820404 +0000
+++ b/debian/patches/bugfix/all/fs-add-module_softdep-declarations-for-hard-coded-cr.patch 2021-07-27 06:53:08.495820638 +0000
@@ -10,21 +10,21 @@
Signed-off-by: Ben Hutchings <ben@decadent.or... | 15,708 |
https://github.com/lmanubens/BigNeuron/blob/master/convert_consensus.sh | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, MIT | 2,023 | BigNeuron | lmanubens | Shell | Code | 23 | 106 | #for D in `find . -type d`
for D in `ls 0401_gold163_all_soma_sort/`
do
vaa3d -x eswc_converter -f eswc_to_swc -i 0401_gold163_all_soma_sort/$D/consensus.eswc -o 0401_gold163_all_soma_sort/$D/consensus.swc
done
| 4,951 |
https://github.com/mrmandrake/maoui/blob/master/Maoui.WebGL/Math/RayHit3D.cs | Github Open Source | Open Source | MIT | null | maoui | mrmandrake | C# | Code | 18 | 44 | namespace WebGl
{
public struct RayHit3D
{
public Vector3 Location;
public Vector3 Normal;
public float T;
}
}
| 22,785 |
https://github.com/Vandrs/tcc-v2/blob/master/app/Http/Controllers/AdminController.php | Github Open Source | Open Source | MIT | 2,016 | tcc-v2 | Vandrs | PHP | Code | 61 | 265 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Asset\AssetLoader;
use App\Http\Requests;
use App\Models\Business\ProjectBusiness;
use Auth;
class AdminController extends Controller
{
public function __construct(){
$this->middleware('auth');
}
public function home(){
... | 1,526 |
https://github.com/PerimeterX/perimeterx-python-wsgi/blob/master/perimeterx/px_cookie.py | Github Open Source | Open Source | MIT | 2,022 | perimeterx-python-wsgi | PerimeterX | Python | Code | 554 | 1,985 | import base64
import binascii
import hashlib
import json
import struct
import sys
import traceback
from time import time
from Crypto.Cipher import AES
import px_enc_utils
from px_constants import *
class PxCookie(object):
def __init__(self, config):
self._config = config
self._logger = config.l... | 40,815 |
https://github.com/freebsd/freebsd-ports/blob/master/devel/electron24/files/patch-ui_aura_screen__ozone.h | Github Open Source | Open Source | BSD-2-Clause, BSD-3-Clause | 2,023 | freebsd-ports | freebsd | C++ | Code | 80 | 399 | --- ui/aura/screen_ozone.h.orig 2023-02-01 18:43:51 UTC
+++ ui/aura/screen_ozone.h
@@ -46,7 +46,7 @@ class AURA_EXPORT ScreenOzone : public display::Screen
display::Display GetDisplayMatching(
const gfx::Rect& match_rect) const override;
display::Display GetPrimaryDisplay() const override;
-#if BUILDFLAG(I... | 52,399 |
https://github.com/notobject/ccsu-micro-platform-projects/blob/master/ccsu-team-service/src/main/java/cn/ccsu/team/web/HomePageController.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | ccsu-micro-platform-projects | notobject | Java | Code | 105 | 550 | package cn.ccsu.team.web;
import cn.ccsu.team.anno.OpenId;
import cn.ccsu.team.pojo.vo.BaseRes;
import cn.ccsu.team.pojo.vo.ProjectVO;
import cn.ccsu.team.pojo.vo.TeamVO;
import cn.ccsu.team.service.TeamService;
import cn.ccsu.team.utils.BaseResUtil;
import com.alibaba.fastjson.JSONObject;
import com.google.common.col... | 29,516 |
https://github.com/ryanorz/code-camp/blob/master/CrackingTheCodeInterview/2_7_intersection.cc | Github Open Source | Open Source | Apache-2.0 | null | code-camp | ryanorz | C++ | Code | 193 | 461 | /**
* Qestion: Intersection
* Given two (singly) linked lists, determine if the two lists intersect. Return the
* intersecting node. Note that the intersection is defined based on reference, not value. That is, if the
* kth node of the first linked list is the exact same node (by reference) as the jth node of the... | 50,148 |
https://github.com/shaunstanislaus/LoganSquare/blob/master/processor/src/test/java/com/bluelinelabs/logansquare/processor/NegativeTests.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | LoganSquare | shaunstanislaus | Java | Code | 83 | 499 | package com.bluelinelabs.logansquare.processor;
import com.google.testing.compile.JavaFileObjects;
import org.junit.Test;
import static com.google.common.truth.Truth.ASSERT;
import static com.google.testing.compile.JavaSourceSubjectFactory.javaSource;
public class NegativeTests {
@Test
public void fieldWith... | 26,526 |
https://github.com/rposcro/jwavez/blob/master/jwavez-serial/src/main/java/com/rposcro/jwavez/serial/frames/requests/SerialAPISetupRequest.java | Github Open Source | Open Source | MIT | 2,019 | jwavez | rposcro | Java | Code | 50 | 281 | package com.rposcro.jwavez.serial.frames.requests;
import static com.rposcro.jwavez.serial.enums.SerialCommand.SERIAL_API_SETUP;
import com.rposcro.jwavez.serial.rxtx.SerialRequest;
import com.rposcro.jwavez.serial.utils.FieldUtil;
public class SerialAPISetupRequest extends ZWaveRequest {
public static SerialRequ... | 52,383 |
https://github.com/Kentico/xperience-module-intercom/blob/master/src/DancingGoatCore/Components/Widgets/Articles/_ArticlesWidget.cshtml | Github Open Source | Open Source | MIT | 2,021 | xperience-module-intercom | Kentico | C# | Code | 197 | 913 | @using DancingGoat.InlineEditors
@using DancingGoat.Widgets
@model ArticlesWidgetViewModel
@{
var i = 1;
}
@if (Context.Kentico().PageBuilder().EditMode)
{
<partial name="~/Components/InlineEditors/SpinnerEditor/_SpinnerEditor.cshtml"
model="new SpinnerEditorViewModel
{
... | 3,546 |
https://github.com/babelattke/ti-theme-white/blob/master/_partials/newsletter/subscribe-form.php | Github Open Source | Open Source | MIT | 2,020 | ti-theme-white | babelattke | PHP | Code | 27 | 140 | <form
id="subscribeForm"
class="subscribe-form"
method="POST" data-request="<?= $subscribeHandler ?>">
<div class="input-group subscribe-group">
<input
type="text"
class="form-control"
name="subscribe_email"
>
<span class="input-group-append">
... | 27,995 |
https://github.com/UnofficialJuliaMirror/MRIReco.jl-bdf86e05-2d2b-5731-a332-f3fe1f9e047f/blob/master/test/testCoilsens.jl | Github Open Source | Open Source | MIT | 2,022 | MRIReco.jl-bdf86e05-2d2b-5731-a332-f3fe1f9e047f | UnofficialJuliaMirror | Julia | Code | 149 | 544 |
@testset "ESPIRiT" begin
#image
N=128
img = shepp_logan(N)
msk = zeros(N,N)
msk[findall(x->x!=0,img)] .= 1
# coil sensitivites
smaps = birdcageSensitivity(N, 8, 1.5)
snorm = sqrt.(sum(abs.(smaps).^2,dims=4))
for i=1:8
smaps[:,:,1,i] .= msk .* smaps[:,:,1,i] ./ snorm[:,:,1,1]
end
# simulat... | 38,137 |
https://github.com/plzombie/ne/blob/master/nyan/nyan_mem.h | Github Open Source | Open Source | BSD-3-Clause | null | ne | plzombie | C | Code | 13 | 53 | /*
Файл : nyan_mem.h
Описание: Заголовок для nyan_mem.c
История : 18.08.12 Создан
*/
| 30,893 |
https://github.com/qq296629801/bzGhost/blob/master/vue-pc/src/utils/request.js | Github Open Source | Open Source | MIT | null | bzGhost | qq296629801 | JavaScript | Code | 390 | 1,213 | import axios from "./axios";
import qs from "qs"; // 序列化时候用到
// get方式
const get = async (url, params) => {
try {
let {
data: { success, data, errorHint }
} = await axios.get(url, { params: params });
if (success) {
return data;
} else {
this.$Message.info(errorHint || "出现异常,请重新操作");... | 23,378 |
https://github.com/elektrika-inc/libusb4java/blob/master/src/SsUsbDeviceCapabilityDescriptor.c | Github Open Source | Open Source | MIT | 2,021 | libusb4java | elektrika-inc | C | Code | 308 | 1,231 | /*
* Copyright (C) 2013 Klaus Reimer (k@ailis.de)
* See LICENSE.md file for copying conditions
*/
#include "SsUsbDeviceCapabilityDescriptor.h"
void setSsUsbDeviceCapabilityDescriptor(JNIEnv* env,
const struct libusb_ss_usb_device_capability_descriptor* descriptor, jobject object)
{
SET_POINTER(env, descrip... | 3,819 |
https://github.com/ntquang22298/crypto-mind/blob/master/frontend/src/component/PlayerLayout/PlayerLayout.js | Github Open Source | Open Source | MIT | 2,019 | crypto-mind | ntquang22298 | JavaScript | Code | 480 | 1,791 | import React, { Component } from 'react';
import { Container, Row, Col, Button } from 'reactstrap';
import { connect } from 'react-redux';
import { firestoreConnect } from 'react-redux-firebase';
import { compose } from 'redux';
import QuesArea from './QuesArea';
import RankArea from './RankArea';
import ModalDeposit f... | 31,801 |
https://github.com/BBVA/pacarana/blob/master/src/main/scala/Config.scala | Github Open Source | Open Source | Apache-2.0 | 2,018 | pacarana | BBVA | Scala | Code | 169 | 410 | /*
Copyright 2018 Banco Bilbao Vizcaya Argentaria, S.A.
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 ... | 38,391 |
https://github.com/alipay/antchain-openapi-prod-sdk/blob/master/twc/java/src/main/java/com/antgroup/antchain/openapi/twc/models/QueryWithholdAgreementResponse.java | Github Open Source | Open Source | MIT | 2,022 | antchain-openapi-prod-sdk | alipay | Java | Code | 326 | 1,283 | // This file is auto-generated, don't edit it. Thanks.
package com.antgroup.antchain.openapi.twc.models;
import com.aliyun.tea.*;
public class QueryWithholdAgreementResponse extends TeaModel {
// 请求唯一ID,用于链路跟踪和问题排查
@NameInMap("req_msg_id")
public String reqMsgId;
// 结果码,一般OK表示调用成功
@NameInMap("res... | 28,120 |
https://github.com/Iconscout/react-unicons-thinline/blob/master/icons/uit-image-v.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | react-unicons-thinline | Iconscout | JavaScript | Code | 69 | 771 | import React from 'react';
import PropTypes from 'prop-types';
const UitImageV = (props) => {
const { color, size, ...otherProps } = props
return React.createElement('svg', {
xmlns: 'http://www.w3.org/2000/svg',
width: size,
height: size,
viewBox: '0 0 24 24',
fill: color,
...otherProps
}... | 33,025 |
https://github.com/cs10/sp21/blob/master/src/styles/sassets/schedule.scss | Github Open Source | Open Source | 0BSD | 2,021 | sp21 | cs10 | SCSS | Code | 239 | 850 | @import "./breakpoints";
@mixin shadow-card {
box-shadow: 0 0px 5px 0px #dfdfdf;
border-radius: 3px;
margin-bottom: 20px;
}
.icon-link, .content-modal-button {
margin-left: 10px;
}
.content-item {
display: flex;
flex-direction: row;
justify-content: space-between;
max-height: 24px;
... | 38,268 |
https://github.com/ProphetFlark/teamward-client/blob/master/app/src/main/java/fr/neamar/lolgamedata/tips/builder/PremadeTipBuilder.java | Github Open Source | Open Source | MIT | 2,020 | teamward-client | ProphetFlark | Java | Code | 47 | 199 | package fr.neamar.lolgamedata.tips.builder;
import android.content.Context;
import java.util.ArrayList;
import fr.neamar.lolgamedata.pojo.Game;
import fr.neamar.lolgamedata.tips.PremadeTip;
import fr.neamar.lolgamedata.tips.Tip;
public class PremadeTipBuilder extends TipBuilder {
@Override
public ArrayList<... | 28,339 |
https://github.com/sh19910711/ms-deviceos/blob/master/api/init.cpp | Github Open Source | Open Source | MIT | null | ms-deviceos | sh19910711 | C++ | Code | 68 | 229 | #include <resea.h>
#include <string.h>
#include "app.h"
#include "loop.h"
#include "heartbeat.h"
channel_t channel_server = 0;
class _GPIO GPIO;
class _Timer Timer;
class _Logging Logging;
class _HTTP HTTP;
class _ENV ENV;
class _Device Device;
extern "C" void csapp_startup(void) {
channel_server = connect_to_... | 39,519 |
https://github.com/lkasana/Tizen-CSharp-Samples/blob/master/TV/ImageSample/ImageSample/src/Samples/PixelAreaSample.cs | Github Open Source | Open Source | Apache-2.0 | 2,019 | Tizen-CSharp-Samples | lkasana | C# | Code | 982 | 2,820 | /*
* Copyright (c) 2017 Samsung Electronics Co., Ltd.
*
* 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... | 38,990 |
https://github.com/sfu-db/dataprep/blob/master/docs/source/user_guide/eda/house_price.ipynb | Github Open Source | Open Source | MIT | 2,023 | dataprep | sfu-db | Jupyter Notebook | Code | 1,894 | 6,186 | {
"cells": [
{
"cell_type": "markdown",
"source": [
"# EDA Case Study: House Price"
],
"metadata": {}
},
{
"cell_type": "markdown",
"source": [
"### Task Description\n",
"House Prices is a classical Kaggle competition. The task is to predicts final price of each house. For more deta... | 38,430 |
https://github.com/guilhermeSousa1/get-a-car/blob/master/apps/get-a-car/src/app/core/services/global-error-handler/global-error-handler.service.spec.ts | Github Open Source | Open Source | MIT | 2,021 | get-a-car | guilhermeSousa1 | TypeScript | Code | 151 | 690 | import { TestBed } from '@angular/core/testing';
import { HttpErrorResponse } from '@angular/common/http';
import { MockProvider } from 'ng-mocks';
import { ErrorMessageService } from '@guilhermeSousa1/core/services/error/error-message.service';
import { LoggerService } from '@guilhermeSousa1/core/services/logger/logge... | 4,578 |
https://github.com/Rextuz/libcds/blob/master/test/unit/set/lazy_skiplist.cpp | Github Open Source | Open Source | BSD-2-Clause | null | libcds | Rextuz | C++ | Code | 68 | 506 | #include <cds_test/ext_gtest.h>
#include <cds/gc/dhp.h>
#include <cds/container/lazy_skip_list_set.h>
template<typename T>
using Set = cds::container::LazySkipListSet<cds::gc::DHP, T>;
typedef int value_type;
TEST(LazyTest, test_insert) {
Set<value_type> set;
ASSERT_TRUE(set.insert(42));
ASSERT_TRUE(se... | 678 |
https://github.com/b9813147/sokradeo/blob/master/resources/assets/exhibition/app/components/activity-channel/thumb-eligible-video-list.vue | Github Open Source | Open Source | MIT | null | sokradeo | b9813147 | Vue | Code | 840 | 3,241 | <template>
<div
class="eligible-videos-list-container"
v-if="eventState.requirement && !eventState.deadline.isOver"
>
<!-- Header -->
<Row style="padding: 5px">
<!-- Details -->
<Col span="20">
<!-- Title -->
<h1>
{{ $t("activityChannel.myVideos") }}
(... | 38,766 |
https://github.com/yukiisbored/soryu/blob/master/main.go | Github Open Source | Open Source | Unlicense | 2,022 | soryu | yukiisbored | Go | Code | 2,699 | 8,848 | package main
import (
"bytes"
"fmt"
"image"
"image/color"
"image/draw"
"image/gif"
"image/jpeg"
"image/png"
"io"
"io/ioutil"
"log"
"math/rand"
"net/http"
"os"
"path/filepath"
"sort"
"strings"
"time"
"github.com/StephaneBunel/bresenham"
"github.com/anthonynsimon/bild/blend"
"github.com/anthonynsim... | 52,651 |
https://github.com/notegame/eztool/blob/master/src/EzToolServiceProvider.php | Github Open Source | Open Source | MIT | null | eztool | notegame | PHP | Code | 97 | 417 | <?php
namespace Exzcute\EzTool;
use Illuminate\Support\ServiceProvider;
//run php artisan vendor:publish --provider="Exzcute\EzTool\EzToolServiceProvider"
class EzToolServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function bo... | 6,319 |
https://github.com/shunsunsun/GeACT/blob/master/scRNA-seq/pooled_data/All/do_randomForest.r | Github Open Source | Open Source | Apache-2.0 | 2,021 | GeACT | shunsunsun | R | Code | 478 | 2,010 | # random forest analysis
setwd("~/lustre/06-Human_cell_atlas/pooled_data/All/")
suppressMessages({
library("arrow")
library("randomForest")
library("ggplot2")
library("cowplot")
})
#source("../../scripts/cluster_tools.r")
samplingPos <- "."
OUT <- paste0("03-expression/merged/randomForest/", samplingPos)
dir.... | 11,068 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.