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/dszakal/autodb/blob/master/src/AutoRecord.php
Github Open Source
Open Source
BSD-2-Clause
2,018
autodb
dszakal
PHP
Code
3,930
11,173
<?php namespace AutoDb; use mysqli; use Exception; use AutoDb\AutoDbException; use AutoDb\AutoDb; use mysqli_result; class AutoRecord { const DEAD_REFERENCE_PK_VALUE = -1; private $_tableName; private $_attributes = array(); /** * * @var array - ['column']['column_properties']...
34,523
https://github.com/mor10/wcmia/blob/master/index.php
Github Open Source
Open Source
MIT
2,015
wcmia
mor10
PHP
Code
415
1,222
<?php /** * The main template file. * * This is the most generic template file in a WordPress theme * and one of the two required files for a theme (the other being style.css). * It is used to display a page when nothing more specific matches a query. * E.g., it puts together the home page when no home.php file e...
17,329
https://github.com/jblashki/aoc-2019-go/blob/master/day13/day13.go
Github Open Source
Open Source
MIT
null
aoc-2019-go
jblashki
Go
Code
722
2,035
package day13 import ( "fmt" "os" "os/exec" "sync" intcode "github.com/jblashki/aoc-intcode-go/v5" ) const name = "Day 13" const inputFile = "./day13/program" type tile int const ( tileEmpty tile = iota tileWall tileBlock tilePaddle tileBall ) func (t tile) String() string { return [...]string{" ", "#"...
7,064
https://github.com/sanggaRedhat/simklaim/blob/master/database/seeders/StatusHeaderSeeder.php
Github Open Source
Open Source
MIT
2,021
simklaim
sanggaRedhat
PHP
Code
38
154
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class StatusHeaderSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { DB::table('status_headers')->insert( ['nama'=>'d...
21,504
https://github.com/michaelfaerber/Agnos/blob/master/src/main/java/alu/linking/disambiguation/hops/graph/GraphBuilder.java
Github Open Source
Open Source
MIT
null
Agnos
michaelfaerber
Java
Code
233
964
package alu.linking.disambiguation.hops.graph; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.util.HashSet; import java.util.List; import java.util.Map; import org.apache.commons.collections4.bidimap.DualHashBidiMap; import alu.linking.config.co...
38,652
https://github.com/AndreyVChernykh/allure-csharp/blob/master/Allure.Features/IgnoreException.cs
Github Open Source
Open Source
Apache-2.0
2,020
allure-csharp
AndreyVChernykh
C#
Code
13
31
using System; namespace Allure.Features { internal class IgnoreException : Exception { } }
33,931
https://github.com/hawkore/ignite-hk/blob/master/modules/platforms/php/src/Apache/Ignite/Internal/Binary/MessageBuffer.php
Github Open Source
Open Source
Apache-2.0, BSD-3-Clause, LicenseRef-scancode-gutenberg-2020, CC0-1.0
2,022
ignite-hk
hawkore
PHP
Code
857
2,610
<?php /* * 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"); yo...
32,022
https://github.com/Robert-Marchinhaki/primeiros-passos-Python/blob/master/python/Exercicios/ex041.py
Github Open Source
Open Source
MIT
null
primeiros-passos-Python
Robert-Marchinhaki
Python
Code
167
456
# VERIFICADOR DE NATAÇÃO from datetime import date nascimento = int(input('Digite se ano de nascimento: ')) anoatual = date.today().year idade = anoatual - nascimento print(f'O atleta tem {idade} anos') if nascimento > anoatual: print('Por favor, verefique se a data digitada é inferior ao ano atual.') elif idade ...
49,096
https://github.com/subashncrypt/rapaio/blob/master/tst/rapaio/math/linear/DenseAlgebraTest.java
Github Open Source
Open Source
Apache-2.0
2,022
rapaio
subashncrypt
Java
Code
2,645
8,642
/* * Apache License * Version 2.0, January 2004 * http://www.apache.org/licenses/ * * Copyright 2013 - 2021 Aurelian Tutuianu * * 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 * * h...
16,766
https://github.com/uakihir0/SocialHub/blob/master/src/main/java/net/socialhub/core/model/common/xml/XmlConvertRule.java
Github Open Source
Open Source
MIT
2,023
SocialHub
uakihir0
Java
Code
61
153
package net.socialhub.core.model.common.xml; public class XmlConvertRule { /** p tag */ private String p = "\n"; /** br tag */ private String br = "\n"; //region // Getter&Setter public String getP() { return p; } public void setP(String p) { this.p = p; } p...
30,292
https://github.com/GabiOC/sinatra-pigeon-web-0715-public/blob/master/app/controllers/application_controller.rb
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain
2,015
sinatra-pigeon-web-0715-public
GabiOC
Ruby
Code
35
123
class ApplicationController < Sinatra::Base register Sinatra::ActiveRecordExtension set :views, Proc.new { File.join(root, "../views/") } helpers do def link_for(object) resource_url = "/" + object.class.name.downcase + "s" id = object.id name = object.name %{<a href="#{resource_url}/...
21,237
https://github.com/MITMediaLabAffectiveComputing/eda-explorer/blob/master/load_files.py
Github Open Source
Open Source
MIT
2,019
eda-explorer
MITMediaLabAffectiveComputing
Python
Code
971
3,251
import pandas as pd import scipy.signal as scisig import os import numpy as np def get_user_input(prompt): try: return raw_input(prompt) except NameError: return input(prompt) def getInputLoadFile(): '''Asks user for type of file and file path. Loads corresponding data. OUTPUT: ...
51,414
https://github.com/codemt/erppracticedemoapp/blob/master/resources/views/admin/purchase_requisition/index_old.blade.php
Github Open Source
Open Source
MIT
2,018
erppracticedemoapp
codemt
Blade
Code
611
2,932
@extends('admin.layout.layout') @section('style') <?= Html::style('backend/css/dataranger.css',[],IS_SECURE) ?> @stop @section('top_fixed_content') <nav class="navbar navbar-static-top"> <div class="title"> <h4><i class="fa fa-list"></i>Purchase Requisition</h4> </div> <div style="width: 21%;min...
11,600
https://github.com/sam-chuang/react-playground/blob/master/src/App.js
Github Open Source
Open Source
Unlicense
null
react-playground
sam-chuang
JavaScript
Code
366
1,254
import React from "react" import { Root, Routes } from "react-static" import { Link, Router } from "@reach/router" import styled from "styled-components" import "./app.css" const App = () => { return ( <FullHeightRoot> <Header> <Link to="/"> <Home></Home> </Link> <SearchIn...
21,640
https://github.com/devmuaz/FlutterSwitch/blob/master/lib/flutter_switch.dart
Github Open Source
Open Source
BSD-3-Clause
2,020
FlutterSwitch
devmuaz
Dart
Code
995
2,501
library flutter_switch; import 'package:flutter/material.dart'; class FlutterSwitch extends StatefulWidget { /// Creates a material design switch. /// /// The following arguments are required: /// /// * [value] determines whether this switch is on or off. /// * [onToggle] is called when the user toggles t...
15,737
https://github.com/AlphaBs/MinecraftLauncherLibrary/blob/master/CmlLib/Utils/ZipPatch.cs
Github Open Source
Open Source
MIT
2,021
MinecraftLauncherLibrary
AlphaBs
C#
Code
264
872
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Threading; using System.Net; using Ionic.Zip; namespace CmlLib.Utils { public class ZipPatch { public event DownloadProgressChangedEventHandler DownloadProg...
26,338
https://github.com/mrk-andreev/ClickHouse/blob/master/tools/clickhouse-diagnostics/internal/platform/manager_test.go
Github Open Source
Open Source
Apache-2.0
2,019
ClickHouse
mrk-andreev
Go
Code
216
905
package platform_test import ( "context" "fmt" "github.com/ClickHouse/clickhouse-diagnostics/internal/platform" "github.com/ClickHouse/clickhouse-diagnostics/internal/platform/test" "github.com/stretchr/testify/require" "github.com/testcontainers/testcontainers-go" "github.com/testcontainers/testcontainers-go/w...
19,412
https://github.com/pirog-spb/hazelcast-cpp-client/blob/master/hazelcast/include/hazelcast/client/serialization/PortableReader.h
Github Open Source
Open Source
Apache-2.0
null
hazelcast-cpp-client
pirog-spb
C
Code
767
1,927
/* * Copyright (c) 2008-2018, Hazelcast, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
35,463
https://github.com/Crazy-Ideas/za2021/blob/master/routes.py
Github Open Source
Open Source
MIT
null
za2021
Crazy-Ideas
Python
Code
440
1,773
from datetime import datetime from functools import wraps from typing import List, Tuple import pytz from flask import render_template, redirect, url_for, request, make_response, Response, current_app from flask_login import login_user, current_user, logout_user from werkzeug.urls import url_parse from app import app...
7,093
https://github.com/aliosmanyuksel/UrlHum/blob/master/app/Http/Middleware/VerifyCheck.php
Github Open Source
Open Source
MIT
2,022
UrlHum
aliosmanyuksel
PHP
Code
81
272
<?php /* * UrlHum (https://urlhum.com) * * @link https://github.com/urlhum/UrlHum * @copyright Copyright (c) 2019 Christian la Forgia * @license https://github.com/urlhum/UrlHum/blob/master/LICENSE.md (MIT License) */ namespace App\Http\Middleware; use Closure; use Illuminate\Support\Facades\Auth; use I...
15,918
https://github.com/Tamicer/PluginLoader/blob/master/PluginMain/src/com/example/pluginmain/PluginDBCallbackImpl.java
Github Open Source
Open Source
Apache-2.0
2,020
PluginLoader
Tamicer
Java
Code
84
388
package com.example.pluginmain; import android.content.Intent; import com.plugin.content.PluginDescriptor; import com.plugin.core.PluginLoader; import com.plugin.database.PluginDBCallback; import com.plugin.database.PluginDatabaseManager; import com.plugin.util.PaLog; import java.util.Hashtable; /** * Created by l...
31,555
https://github.com/upb-uc4/lagom-core/blob/master/product_code/operation_service/impl/src/main/scala/de/upb/cs/uc4/operation/impl/OperationLoader.scala
Github Open Source
Open Source
Apache-2.0
2,021
lagom-core
upb-uc4
Scala
Code
50
262
package de.upb.cs.uc4.operation.impl import com.lightbend.lagom.scaladsl.akka.discovery.AkkaDiscoveryComponents import com.lightbend.lagom.scaladsl.api.Descriptor import com.lightbend.lagom.scaladsl.broker.kafka.LagomKafkaClientComponents import com.lightbend.lagom.scaladsl.devmode.LagomDevModeComponents import com.li...
10,186
https://github.com/mnadareski/RVWorld/blob/master/Compress/SevenZip/SevenZipReadStream.cs
Github Open Source
Open Source
Apache-2.0
null
RVWorld
mnadareski
C#
Code
657
2,577
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.IO.Compression; using Compress.SevenZip.Compress.BZip2; using Compress.SevenZip.Compress.LZMA; using Compress.SevenZip.Compress.PPmd; using Compress.SevenZip.Compress.ZSTD; using Compress.SevenZip.Filters; using Com...
42,752
https://github.com/edrmonteiro/dio-java/blob/master/solid/src/com/github/git/solid/ocp/solution/Sport.java
Github Open Source
Open Source
MIT
null
dio-java
edrmonteiro
Java
Code
39
109
package com.github.git.solid.ocp.solution; public class Sport implements DrivingMode { private static final int POWER = 500; private static final int SUSPENSION_HEIGHT = 10; @Override public int getPower() { return POWER; } @Override public int getSuspensionHeight() { re...
44,647
https://github.com/ArturAlcoverro/spam-abp/blob/master/resources/lang/cat/createDonacio.php
Github Open Source
Open Source
MIT
2,019
spam-abp
ArturAlcoverro
PHP
Code
175
834
<?php return[ "titleDonant" =>"Selecciona un donant", "particular" =>"Particular", "empresa" =>"Empresa", "anonim" =>"Anònim", "nou" =>"Nou", "btnCertificat" =>"Certificat", "creaDonac...
25,616
https://github.com/davidedelvento/qc/blob/master/qc/__init__.py
Github Open Source
Open Source
ISC
2,014
qc
davidedelvento
Python
Code
956
2,832
# Copyright (c) 2009-2011, Dan Bravender <dan.bravender@gmail.com> # Copyright (c) 2012-2014, Davide Del Vento <davide.del.vento @ gmail> import random, math import os, sys, warnings import itertools, functools def integers(low=-sys.maxint-1, high=sys.maxint): '''Endlessly yields random integers between (inclusiv...
24,168
https://github.com/tqrg-bot/rubinius/blob/master/kernel/loader.rb
Github Open Source
Open Source
BSD-3-Clause
null
rubinius
tqrg-bot
Ruby
Code
617
1,746
# Contained first is the system startup code. begin Array.after_loaded Module.after_loaded Readline.after_loaded Class.after_loaded Hash.after_loaded Kernel.after_loaded Actor.after_loaded Math.after_loaded FileTest.after_loaded ENV = EnvironmentVariables.new # define a global "start time" to ...
27,941
https://github.com/Aeroglyphic/omega_h/blob/master/src/Omega_h_verify.hpp
Github Open Source
Open Source
BSD-2-Clause, BSD-2-Clause-Views
2,018
omega_h
Aeroglyphic
C++
Code
21
84
#ifndef OMEGA_H_VERIFY_HPP #define OMEGA_H_VERIFY_HPP namespace Omega_h { class Mesh; bool verify_down_verts(Mesh* mesh); void verify_class(Mesh* mesh); } // end namespace Omega_h #endif
49,727
https://github.com/WahyuSetiawan/project-web-penjualan/blob/master/public_html/assets/public/assets/less/base/base.less
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,019
project-web-penjualan
WahyuSetiawan
Less
Code
118
444
/*------------------------------------*\ #BASE \*------------------------------------*/ ::selection { background: @color-theme; color: @color-white; } ::-moz-selection { background: @color-theme; /* Firefox */ color: @color-white; } ::-webkit-selection { background: @color-theme; /* Safari */ color: @color...
23,679
https://github.com/IOT-DSA/dslink-scala-ignition/blob/master/src/main/scala/org/dsa/iot/ignition/Main.scala
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,016
dslink-scala-ignition
IOT-DSA
Scala
Code
434
1,361
package org.dsa.iot.ignition import scala.concurrent.ExecutionContext.Implicits.global import scala.util.control.NonFatal import org.apache.spark.sql.DataFrame import org.dsa.iot.dslink.node.Node import org.dsa.iot.dslink.node.actions.table.Table import org.dsa.iot.dslink.node.value.Value import org.dsa.iot.dslink.no...
45,817
https://github.com/pbollom/K-R/blob/master/Ch3/itob.c
Github Open Source
Open Source
MIT
null
K-R
pbollom
C
Code
313
650
/* Author: pbollom Date: 2020-05-23 Description: 3-5 Converts an integer to a character sequence in a given base. */ #include<stdio.h> #include<limits.h> #define MAXLEN 65 /* maximum length of the string, assuming 64 bits, with a base of 2 */ void printtest(int n, int b); void itob(int n, char s[], int b); void reve...
100
https://github.com/LashaJini/game-of-life/blob/master/www/src/components/main/logic.js
Github Open Source
Open Source
Apache-2.0, MIT
2,021
game-of-life
LashaJini
JavaScript
Code
723
2,124
import { isPositiveNumber, getIndex } from "../../utils/helpers"; import { memory } from "game-of-life/game_of_life_bg.wasm"; import { Universe, Cell } from "game-of-life"; const render = () => { const canvas = document.querySelector(".scene"); const animationSpeed = document.querySelector("#animation-speed"); c...
34,061
https://github.com/nicholas-b-carter/Semantic-UI-React/blob/master/docs/app/Components/Logo/Logo.js
Github Open Source
Open Source
MIT
null
Semantic-UI-React
nicholas-b-carter
JavaScript
Code
25
60
import React from 'react' import { Image } from 'src' const Logo = (props) => <Image {...props} src='/logo.png' /> Logo.propTypes = Image.propTypes export default Logo
1,611
https://github.com/Hchenn/netpoll/blob/master/sys_sockopt_linux.go
Github Open Source
Open Source
Apache-2.0
2,022
netpoll
Hchenn
Go
Code
115
288
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // // This file may have been modified by CloudWeGo authors. (“CloudWeGo Modifications”). // All CloudWeGo Modifications are Copyright 2021 CloudWeGo authors. p...
46,690
https://github.com/ZiOS-Repo/IU_RTImagePicker/blob/master/Example/Pods/DoraemonKit/iOS/DoraemonKit/Src/Core/Plugin/Platform/Health/Function/DoraemonHealthManager.h
Github Open Source
Open Source
MIT
2,021
IU_RTImagePicker
ZiOS-Repo
C
Code
87
440
// // DoraemonHealthManager.h // AFNetworking // // Created by didi on 2020/1/2. // #import <UIKit/UIKit.h> #import <Foundation/Foundation.h> #import "DoraemonNetFlowHttpModel.h" NS_ASSUME_NONNULL_BEGIN @interface DoraemonHealthManager : NSObject + (instancetype)sharedInstance; @property (nonatomic, assign) BOOL...
42,206
https://github.com/mccj/Hangfire.Dashboard.Management/blob/master/src/Hangfire.Dashboard.Management.Abstractions/Metadata/DisplayDataAttribute.cs
Github Open Source
Open Source
MIT
2,023
Hangfire.Dashboard.Management
mccj
C#
Code
150
347
using System; namespace Hangfire.Dashboard.Management.Metadata { [AttributeUsage(AttributeTargets.Method | AttributeTargets.Parameter)] public sealed class DisplayDataAttribute : Attribute { public string LabelText { get; set; } public string PlaceholderText { get; set; } public st...
5,929
https://github.com/kkrentz/libcoap-minimal/blob/master/client.cc
Github Open Source
Open Source
MIT
null
libcoap-minimal
kkrentz
C++
Code
298
1,075
/* minimal CoAP client * * Copyright (C) 2018-2021 Olaf Bergmann <bergmann@tzi.org> */ #include <cstring> #include <cstdlib> #include <cstdio> #include <coap3/oscore.h> #include "common.hh" static const oscore_keying_material_t oscore_keying_material = { 0 , 0 , { 0x0 , 0x1 , 0x2 , 0x3 , 0x4 , 0x5 , 0x6 , 0x7 , ...
11,973
https://github.com/xlj44400/kotlin-js-wrappers/blob/master/kotlin-moment/src/main/kotlin/moment/Constructor.kt
Github Open Source
Open Source
Apache-2.0
2,021
kotlin-js-wrappers
xlj44400
Kotlin
Code
56
189
package moment @JsModule("moment") @JsNonModule external fun moment( inp: MomentInput? = definedExternally, strict: Boolean? = definedExternally): Moment @JsModule("moment") @JsNonModule external fun moment( inp: MomentInput? = definedExternally, format: MomentFormatSpecification? = definedExternally,...
51,628
https://github.com/francois/simple_queues/blob/master/simple_queues.gemspec
Github Open Source
Open Source
MIT
2,011
simple_queues
francois
Ruby
Code
98
393
# -*- encoding: utf-8 -*- $:.push File.expand_path("../lib", __FILE__) require "simple_queues/version" Gem::Specification.new do |s| s.name = "simple_queues" s.version = SimpleQueues::VERSION s.platform = Gem::Platform::RUBY s.authors = ["François Beausoleil"] s.email = ["francois@tek...
23,535
https://github.com/HerrB92/obp/blob/master/OpenBeaconPackage/libraries/hibernate-release-4.2.7.SP1/project/hibernate-core/src/main/java/org/hibernate/type/descriptor/java/NClobTypeDescriptor.java
Github Open Source
Open Source
MIT
null
obp
HerrB92
Java
Code
577
1,503
/* * Hibernate, Relational Persistence for Idiomatic Java * * Copyright (c) 2013, Red Hat Inc. or third-party contributors as * indicated by the @author tags or express copyright attribution * statements applied by the authors. All third-party contributions are * distributed under license by Red Hat Inc. * * T...
29,331
https://github.com/mybios/tstolua/blob/master/tests/baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.d.ts
Github Open Source
Open Source
Apache-2.0
2,022
tstolua
mybios
TypeScript
Code
38
107
declare var m1_a1: number; declare class m1_c1 { m1_c1_p1: number; } declare var m1_instance1: m1_c1; declare function m1_f1(): m1_c1; declare var a1: number; declare class c1 { p1: number; } declare var instance1: c1; declare function f1(): c1;
20,832
https://github.com/Backendless/.NET-SDK/blob/master/Projects/Backendless.Test/UserService/SyncTests/TestsFrame.cs
Github Open Source
Open Source
Apache-2.0
2,023
.NET-SDK
Backendless
C#
Code
256
894
using System; using System.Collections.Generic; using Backendless.Test; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Web; using System.Net; using System.IO; namespace BackendlessAPI.Test.UserService.SyncTests { [Ignore] [TestClass] public class TestsFrame : ITest { public Random Random...
30,994
https://github.com/FreddyBL/Arduino-PWM-Generator/blob/master/react-client/src/Slider.js
Github Open Source
Open Source
MIT
null
Arduino-PWM-Generator
FreddyBL
JavaScript
Code
185
663
import React from "react"; import { makeStyles } from "@material-ui/core/styles"; import Grid from "@material-ui/core/Grid"; import Typography from "@material-ui/core/Typography"; import Slider from "@material-ui/core/Slider"; import Input from "@material-ui/core/Input"; import InputAdornment from '@material-ui/core/In...
42,479
https://github.com/goofy5752/Plant-A-Plant/blob/master/Web/Plant-A-Plant.Web/Views/Shared/_Layout.cshtml
Github Open Source
Open Source
MIT
null
Plant-A-Plant
goofy5752
C#
Code
431
2,336
@using Microsoft.AspNetCore.Identity @using Plant_A_Plant.Common @using Plant_A_Plant.Data.Models @inject SignInManager<PaPUser> SignInManager @inject UserManager<PaPUser> UserManager <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /...
47,805
https://github.com/kabilansakthivelu/portfolio/blob/master/src/components/ui/Banner/styles.ts
Github Open Source
Open Source
MIT
null
portfolio
kabilansakthivelu
TypeScript
Code
25
81
import styled from 'styled-components'; import tw from 'tailwind.macro'; export const Banner = styled.section` ${tw`bg-gray-100 border-b border-indigo-100 pb-10`}; `; export const Content = styled.p` ${tw`mb-5`}; `;
50,516
https://github.com/nguyentrn/metamon-client/blob/master/src/features/MetamonGame/layouts/BattleBox.jsx
Github Open Source
Open Source
ISC
2,022
metamon-client
nguyentrn
null
Spoken
96
351
import { Flex, Spinner, Text } from "@chakra-ui/react"; import { useSelector } from "react-redux"; import { selectBattleInfo, selectIsLoadingFighting, } from "../../../redux/gameSlice"; import BattleInfo from "../components/BattleInfo"; const BattleBox = () => { const battle = useSelector(selectBattleInfo); c...
19,527
https://github.com/consulo/consulo-java/blob/master/java-analysis-impl/test/com/siyeh/igtest/style/unqualified_method_access/UnqualifiedMethodAccess.java
Github Open Source
Open Source
Apache-2.0
2,023
consulo-java
consulo
Java
Code
52
158
package com.siyeh.igtest.style.unqualified_method_access; import javax.swing.*; public class UnqualifiedMethodAccess extends JPanel { public UnqualifiedMethodAccess(boolean isDoubleBuffered) { super(isDoubleBuffered); } void foo() {} void bar() { foo(); } void foo(String s) { this.foo(); }...
9,722
https://github.com/CaDatPitt/data-layers/blob/master/source-data/pitt-news/ocr/pitt_31735066027990_OCR.asc
Github Open Source
Open Source
MIT, CC-BY-NC-4.0, CC-BY-4.0
2,023
data-layers
CaDatPitt
AsciiDoc
Code
20,000
32,713
courtesy Semester c:tj,$e£_ij. . Steve Sega!/Céraptuzs‘.Eazr¢‘rii‘3-?:«: - or. r-.< IS IT LIVE, OR IS IT MEMOREX? Left: The S.S. Universe Explorer sails past the Australian coast. Right: The floating campus is rendered in ice at the Semester at Sea’s 15th anniversary bash. -.-. Pifl at sea: riding a I 5-year wave Benjami...
5,626
https://github.com/pulumi/pulumi-datadog/blob/master/sdk/dotnet/Inputs/DashboardWidgetHostmapDefinitionRequestSizeSecurityQueryArgs.cs
Github Open Source
Open Source
ECL-2.0, Apache-2.0
2,022
pulumi-datadog
pulumi
C#
Code
130
477
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; names...
35,138
https://github.com/gomayonqui/hello/blob/master/spec/routing/hello/registration_routing_spec.rb
Github Open Source
Open Source
MIT
2,014
hello
gomayonqui
Ruby
Code
160
879
require "spec_helper" module Hello module Classic describe RegistrationController do describe "routing" do routes { Hello::Engine.routes } it "routes to #sign_up" do get("/classic/sign_up").should route_to("hello/classic/registration#sign_up") end it "routes to #create" d...
48,008
https://github.com/statsmodels/statsmodels/blob/master/statsmodels/gam/smooth_basis.py
Github Open Source
Open Source
BSD-3-Clause
2,023
statsmodels
statsmodels
Python
Code
4,459
11,968
# -*- coding: utf-8 -*- """ Spline and other smoother classes for Generalized Additive Models Author: Luca Puggini Author: Josef Perktold Created on Fri Jun 5 16:32:00 2015 """ # import useful only for development from abc import ABCMeta, abstractmethod from statsmodels.compat.python import with_metaclass import n...
22,798
https://github.com/astappev/NURE/blob/master/2nd-course/T.net/SHLb_4_3/SHLb_4_3/Rectangle/Rectangle/Class1.cs
Github Open Source
Open Source
MIT
null
NURE
astappev
C#
Code
234
709
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MyClass { /// <summary> /// Класс для работы с прямоугольником /// </summary> public class Rectangle { protected int a; protected int b; /// <summ...
32,323
https://github.com/victor-stone/indicators/blob/master/build
Github Open Source
Open Source
MIT
2,018
indicators
victor-stone
Shell
Code
12
44
#!/bin/bash npx babel src/*.js --presets=env --plugins=transform-object-rest-spread > dist/index.js echo 'done with build'
15,240
https://github.com/pjcon/ral-ceph-tools/blob/master/echo-functional-test/echo-functional-test.py
Github Open Source
Open Source
Apache-2.0
null
ral-ceph-tools
pjcon
Python
Code
1,311
5,451
#!/bin/python import rados import time,sys,filecmp,os,copy import argparse,subprocess from random import randrange from ConfigParser import ConfigParser as CP DOC=""" A user script to run a basic analysis of echo through the three available transfer protocols. Each will be run after another to return a metrics objec...
6,448
https://github.com/tarekMohamedIT/MoneyAssistant/blob/master/app/src/main/java/com/r3tr0/moneyassistant/ui/activities/MainActivity.java
Github Open Source
Open Source
Apache-2.0
null
MoneyAssistant
tarekMohamedIT
Java
Code
313
1,240
package com.r3tr0.moneyassistant.ui.activities; /** * Copyright 2018 Tarek Mohamed * <p> * 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 * <p> * http://www.apache.org/licenses/LICENSE-2...
39,094
https://github.com/jodi-one/jod/blob/master/jodi_core/src/test/java/one/jodi/core/service/impl/TransformationFileVisitorTest.java
Github Open Source
Open Source
Apache-2.0
null
jod
jodi-one
Java
Code
403
1,595
package one.jodi.core.service.impl; import one.jodi.base.error.ErrorWarningMessageJodi; import one.jodi.base.error.ErrorWarningMessageJodiHelper; import org.junit.Before; import org.junit.Test; import java.io.File; import java.io.IOException; import java.nio.file.FileVisitResult; import java.nio.file.Path; import jav...
47,169
https://github.com/onlinejcc/clover-frontend/blob/master/src/components/Footer/index.tsx
Github Open Source
Open Source
MIT
null
clover-frontend
onlinejcc
TypeScript
Code
156
536
import Logo from './assets/logo.png'; import Facebook from './assets/facebook.png'; import Twitter from './assets/twitter.png'; import Pinterest from './assets/pinterest.png'; import Linkedin from './assets/linkedin.png'; import Thumbler from './assets/thumbler.png'; const Footer = () => { return ( <> <div...
9,513
https://github.com/KurtGokhan/UniRx/blob/master/Assets/Scripts/UnityTests/Rx/SubjectTest.cs
Github Open Source
Open Source
MIT
2,019
UniRx
KurtGokhan
C#
Code
920
4,337
using System; using NUnit.Framework; using System.Collections.Generic; using System.Threading; namespace UniRx.Tests { public class SubjectTests { [Test] public void Subject() { // OnCompletedPattern { var subject = new Subject<int>(); ...
32,066
https://github.com/issyzac/opensrp-client-native-form/blob/master/android-json-form-wizard/src/main/java/com/vijay/jsonwizard/validators/edittext/MinLengthValidator.java
Github Open Source
Open Source
Apache-2.0
2,021
opensrp-client-native-form
issyzac
Java
Code
29
112
package com.vijay.jsonwizard.validators.edittext; import com.vijay.jsonwizard.widgets.EditTextFactory; /** * Created by vijay.rawat01 on 7/21/15. */ public class MinLengthValidator extends LengthValidator { public MinLengthValidator(String errorMessage, int minLength) { super(errorMessage, minLength, E...
17,238
https://github.com/Eric-Juhel/4DPop-Git/blob/master/Project/Sources/Classes/jwt.4dm
Github Open Source
Open Source
MIT
2,020
4DPop-Git
Eric-Juhel
null
Spoken
501
3,157
/*———————————————————————————————————————————————————————— Construct a jwt object. cs.jwt.new( settings) -> jwt settings.type: "RSA" or "ECDSA" to generate new keys. "PEM" to load an existing key from settings.pem settings.size: size of RSA key to generate (2048 by default) settings.curve: curve of ECDSA to generate ...
30,764
https://github.com/jayvi/crowdify.club/blob/master/resources/views/subscriptions/includes/membership__box_cyclist.blade.php
Github Open Source
Open Source
MIT
2,018
crowdify.club
jayvi
PHP
Code
336
1,479
<div class="panel z1 membership-box"> <div class="panel-heading text-center"> <h4>Cyclist ($25/Month)</h4> <img src="{{url('assets/images/biker.png')}}"> <h6>Can progress and earn</h6> </div> <div class="panel-body"> <div class="row"> <div class="col-md-10"> ...
13,793
https://github.com/luyang1210/arx/blob/master/src/main/org/deidentifier/arx/risk/RiskModelSampleRisks.java
Github Open Source
Open Source
Apache-2.0
null
arx
luyang1210
Java
Code
511
1,174
/* * ARX: Powerful Data Anonymization * Copyright 2012 - 2016 Fabian Prasser, Florian Kohlmayer and contributors * * 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.apach...
8,445
https://github.com/IvanIndaia/php/blob/master/eds-www/aula16/01-printF.php
Github Open Source
Open Source
MIT
null
php
IvanIndaia
PHP
Code
66
196
<!DOCTYPE html> <html lang="" pt-br"> <head> <meta charset="UTF-8"> <title></title> </head> <body> <div> <?php $p = "Leite"; $pr = 4.5; /* Atual: echo "O $p custa R$ ".number_format($pr, 2); */ printf ("O %s custa R$ %.2f", $p, $pr); /* ...
15,969
https://github.com/hyperledger/caliper-benchmarks/blob/master/benchmarks/scenario/simple/utils/operation-base.js
Github Open Source
Open Source
Apache-2.0
2,022
caliper-benchmarks
hyperledger
JavaScript
Code
569
1,332
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the...
17,966
https://github.com/lbcb-sci/graphmap2/blob/master/src/containers/region.cc
Github Open Source
Open Source
MIT
2,020
graphmap2
lbcb-sci
C++
Code
502
1,578
/* * region.cc * * Created on: Dec 26, 2014 * Author: isovic */ #include "containers/region.h" //int CopyLinearRegion(const Index *index_reference, const Region *region, int8_t **ret_concatenated_data, int64_t *ret_data_length, int64_t *ret_start_offset) { // if (region->is_split == true) // return 1; ...
7,450
https://github.com/Sites-Groups/sites-front-end-pc/blob/master/src/pages/index/components/login/email.tsx
Github Open Source
Open Source
MIT
2,021
sites-front-end-pc
Sites-Groups
TSX
Code
179
552
import React, { useState, useEffect, useMemo, useCallback } from 'react'; import { IS_EMAIL } from '@/utils/regexp'; import Input from './input'; import { sendCodeToEmail } from './service'; // import { Button } import styles from './styles.less'; interface Props { email?: string; onChange?: Function; registerEm...
36,878
https://github.com/themesberg/flowbite-react/blob/master/src/lib/components/Tab/Tabs.stories.tsx
Github Open Source
Open Source
MIT
2,022
flowbite-react
themesberg
TypeScript
Code
275
1,094
import type { Meta } from '@storybook/react/types-6-0'; import { HiAdjustments, HiClipboardList, HiUserCircle } from 'react-icons/hi'; import { MdDashboard } from 'react-icons/md'; import type { TabsProps } from '.'; import { Tabs, TabsComponent } from '.'; export default { title: 'Components/Tabs', component: Tab...
14,305
https://github.com/ibrahimkakbar/ros-system_model/blob/master/include/system_model/example_system_model.hpp
Github Open Source
Open Source
MIT
null
ros-system_model
ibrahimkakbar
C++
Code
28
104
#include <system_model/system_model.hpp> namespace system_model { class example_system_model : protected system_model_t { protected: void state_transition(Eigen::VectorXd& xp, Eigen::VectorXd& x) const override; void observation(Eigen::VectorXd& x, Eigen::VectorXd& z) const override; }; }
12,069
https://github.com/JohannesHa/meet-up/blob/master/src/layouts/home/Home.js
Github Open Source
Open Source
MIT
2,019
meet-up
JohannesHa
JavaScript
Code
99
342
import React, { Component } from 'react' import GroupSelectContainer from '../../components/GroupSelect/GroupSelectContainer'; import JoinedGroupsListContainer from '../joinedGroupsList/JoinedGroupsListContainer'; import Nav from '../../components/Nav.js' import Header from '../../components/Header.js' import Subheade...
27,231
https://github.com/Mibew/mibew/blob/master/src/mibew/libs/classes/Mibew/Controller/LogoutController.php
Github Open Source
Open Source
Apache-2.0
2,023
mibew
Mibew
PHP
Code
184
351
<?php /* * This file is a part of Mibew Messenger. * * Copyright 2005-2023 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
13,927
https://github.com/JetAr/ZDoc/blob/master/code/VCSamples/VC2015Samples/Hilo/C++/Browser/CarouselAnimation.cpp
Github Open Source
Open Source
MIT
2,021
ZDoc
JetAr
C++
Code
390
1,360
//=================================================================================== // Copyright (c) Microsoft Corporation. All rights reserved. // // THIS CODE AND INFORMATION IS PROVIDED 'AS IS' WITHOUT WARRANTY // OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT // LIMITED TO THE IMPLIED WARRANTIES OF...
40,487
https://github.com/iluckin/blog-template/blob/master/public/js/app.js
Github Open Source
Open Source
MIT
null
blog-template
iluckin
JavaScript
Code
10
51
$(function () { feather.replace() $('.the-bears-design').click(function (e) { window.open("https://thebears.cn") }); })
7,886
https://github.com/santoloma/path-manager/blob/master/monitoring-manager/implementation/src/main/java/eu/virtuwind/monitoring/impl/graphstream/algorithm/AbstractSpanningTree.java
Github Open Source
Open Source
Apache-2.0
null
path-manager
santoloma
Java
Code
1,230
2,804
/* * Copyright 2006 - 2015 * Stefan Balev <stefan.balev@graphstream-project.org> * Julien Baudry <julien.baudry@graphstream-project.org> * Antoine Dutot <antoine.dutot@graphstream-project.org> * Yoann Pigné <yoann.pigne@graphstream-project.org> ...
33,885
https://github.com/FireBlade1999/serenity-js/blob/master/packages/rest/src/screenplay/interactions/index.ts
Github Open Source
Open Source
Apache-2.0, CC-BY-NC-SA-4.0
2,020
serenity-js
FireBlade1999
TypeScript
Code
8
17
export * from './ChangeApiUrl'; export * from './Send';
51,832
https://github.com/nagestx/MyLeetCode/blob/master/208-implement-trie-prefix-tree/implement-trie-prefix-tree.cpp
Github Open Source
Open Source
MIT
2,020
MyLeetCode
nagestx
C++
Code
196
433
// Implement a trie with insert, search, and startsWith methods. // // Example: // // // Trie trie = new Trie(); // // trie.insert("apple"); // trie.search("apple"); // returns true // trie.search("app"); // returns false // trie.startsWith("app"); // returns true // trie.insert("app"); // trie.search("app"); ...
22,857
https://github.com/aditya8100/grid-contrib/blob/master/track_and_trace/asset_client/src/views/add_agent_form.js
Github Open Source
Open Source
Apache-2.0
null
grid-contrib
aditya8100
JavaScript
Code
246
828
'use strict' const m = require('mithril') const { inputField } = require('../components/forms') const authService = require('../services/auth') const organizationService = require('../services/organizations') const agentService = require('../services/agents') // Form to add an agent to the organization. const AddAgen...
25,726
https://github.com/SilverSoulSun/han-tengry/blob/master/resources/js/site/show_more.js
Github Open Source
Open Source
MIT
null
han-tengry
SilverSoulSun
JavaScript
Code
63
227
/** * Created by han on 19/12/2017. */ // Hide the extra content initially, using JS so that if JS is disabled, no problemo: $('.read-more-content').addClass('hide') $('.read-more-show, .read-more-hide').removeClass('hide') // Set up the toggle effect: $('.read-more-show').on('click', function(e) { $(this).next(...
51,682
https://github.com/ThisIzATriumph/maggieappleton.com/blob/master/src/lib/colors.js
Github Open Source
Open Source
MIT
2,021
maggieappleton.com
ThisIzATriumph
JavaScript
Code
38
175
const colors = { black: '#233044', darkGrey: '#454963', white: '#FFFFFF', offWhite: '#F4F7FA', grey: '#686F94', lightGrey: '#C5C9DB', lightestGrey: '#E0E9F1', orange: '#ed7842', lightOrange: '#F98B3B', blue: '#00A1E3', lightBlue: '#22BEF7', darkBlue: '#2F73E6', lightGreen: '#AAC339', navy: '...
6,662
https://github.com/demos-europe/demosplan-addon/blob/master/src/Permission/Validation/PermissionFilterException.php
Github Open Source
Open Source
MIT
2,023
demosplan-addon
demos-europe
PHP
Code
12
51
<?php declare(strict_types=1); namespace DemosEurope\DemosplanAddon\Permission\Validation; use RuntimeException; class PermissionFilterException extends RuntimeException { }
29,011
https://github.com/LykkeCity/SolarCoinApi/blob/master/src/SolarCoinApi.CashInGrabberJobRunner/Dockerfile
Github Open Source
Open Source
MIT
2,017
SolarCoinApi
LykkeCity
Dockerfile
Code
10
50
FROM microsoft/dotnet:1.1.0-runtime WORKDIR /app COPY . . ENTRYPOINT ["dotnet", "SolarCoinApi.CashInGrabberJobRunner.dll"]
7,441
https://github.com/swdauer/poker-data-sets/blob/master/data.R
Github Open Source
Open Source
MIT
2,021
poker-data-sets
swdauer
R
Code
125
703
ranks <- as.array(c("2", "3", "4", "5", "6", "7", "8", "9", "T", "J", "Q", "K", "A")) handRanks <- Reduce(rbind, apply(ranks, c(1), function(x) { t(apply(as.array(ranks[match(x, ranks):length(ranks)]), c(1), function(y) { as.array(c(x, y)) })) })) allHands <- Reduce(rbind, apply(handRanks, c(1), function(x) {...
1,622
https://github.com/leanprover/lean2/blob/master/src/emacs/lean-settings.el
Github Open Source
Open Source
Apache-2.0
2,022
lean2
leanprover
null
Spoken
807
2,602
;; Copyright (c) 2014 Microsoft Corporation. All rights reserved. ;; Released under Apache 2.0 license as described in the file LICENSE. ;; ;; Author: Soonho Kong ;; (require 'cl-lib) (defgroup lean nil "Lean Theorem Prover" :prefix "lean-" :group 'languages :link '(url-link :tag "Website" "http://leanprover....
18,661
https://github.com/zorandir/CATemplates/blob/master/TemplateGeneration/TotalisticTemplate.wl
Github Open Source
Open Source
MIT
2,015
CATemplates
zorandir
Mathematica
Code
213
814
(* ::Package:: *) BeginPackage["CATemplates`TemplateGeneration`SymmetricTemplate`", "CATemplates`Basic`"]; TotalisticTemplate::usage="Returns a template that represents all of the totalistic rules in a given space (defined by k and r)."; OuterTotalisticTemplate::usage="Returns a template that represents all of the...
3,886
https://github.com/microsoft/FreeBSD-Test-Automation/blob/master/HyperV/WS2012R2/lisa/UtilLibs.psm1
Github Open Source
Open Source
Apache-2.0
2,020
FreeBSD-Test-Automation
microsoft
PowerShell
Code
1,073
4,008
<# JUnit XML Report Schema: http://windyroad.com.au/dl/Open%20Source/JUnit.xsd Example: Import-Module .\UtilLibs.psm1 -Force StartLogReport("$pwd/report.xml") $testsuite = StartLogTestSuite "CloudTesting" $testcase = StartLogTestCase $testsuite "BVT" "CloudTesting.BVT" FinishLogTestCase $testcase $testcase =...
37,322
https://github.com/martinharperlee/desktop-wallet/blob/master/__tests__/unit/components/Transaction/TransactionConfirm/TransactionConfirmMultiPayment.spec.js
Github Open Source
Open Source
MIT
null
desktop-wallet
martinharperlee
JavaScript
Code
233
857
import { createLocalVue, mount } from '@vue/test-utils' import installI18n from '../../../__utils__/i18n' import TransactionConfirmMultiPayment from '@/components/Transaction/TransactionConfirm/TransactionConfirmMultiPayment' const localVue = createLocalVue() const i18n = installI18n(localVue) let wrapper const creat...
29,568
https://github.com/KevinChen2005/BiTanDemo/blob/master/BT/UIModule/InformationModule/Post/AddPost/BTPostComposeViewController.h
Github Open Source
Open Source
MIT
2,019
BiTanDemo
KevinChen2005
Objective-C
Code
54
207
// // BTPostComposeViewController.h // BT // // Created by apple on 2018/9/10. // Copyright © 2018年 apple. All rights reserved. // #import <UIKit/UIKit.h> typedef NS_ENUM(NSUInteger, WBStatusComposeViewType) { WBStatusComposeViewTypeStatus, ///< 发微博 WBStatusComposeViewTypeRetweet, ///< 转发微博 WBStatusC...
48,030
https://github.com/RIConeorg/API-ClientLibrary-Java/blob/master/src/main/java/riconeapi/common/objects/GetLastPageObject.java
Github Open Source
Open Source
Apache-2.0
2,016
API-ClientLibrary-Java
RIConeorg
Java
Code
1,422
5,161
package riconeapi.common.objects; import org.springframework.web.client.HttpClientErrorException; import org.springframework.web.client.RestTemplate; import riconeapi.common.rest.RestHeader; import riconeapi.common.rest.RestProperties; import riconeapi.common.rest.RestQueryParameter; import riconeapi.common.rest.RestR...
21,239
https://github.com/Paras-code-007/paras007/blob/master/utils/repos.js
Github Open Source
Open Source
MIT
2,020
paras007
Paras-code-007
JavaScript
Code
114
466
const axios= require('axios') const apiUrl= 'https://api.github.com/users/Paras-code-007/repos?sort=updated' const {underline, dim,red, yellowBright,green,yellow, cyanBright}= require('chalk') const logSymbols = require('log-symbols') const ora= require('ora') const handleError= require('cli-handle-error') const to= re...
16,661
https://github.com/taurusgroup/frost-ed25519/blob/master/pkg/messages/keygen1.go
Github Open Source
Open Source
Apache-2.0
2,022
frost-ed25519
taurusgroup
Go
Code
206
691
package messages import ( "fmt" "github.com/taurusgroup/frost-ed25519/pkg/frost/party" "github.com/taurusgroup/frost-ed25519/pkg/internal/polynomial" "github.com/taurusgroup/frost-ed25519/pkg/internal/zk" ) type KeyGen1 struct { Proof *zk.Schnorr Commitments *polynomial.Exponent } func NewKeyGen1(from p...
6,702
https://github.com/VETER1309/marketplace-backend/blob/master/src/Marketplace.Db/Migrations/20210311095148_RenamedTablesToSingular.cs
Github Open Source
Open Source
Apache-2.0
2,021
marketplace-backend
VETER1309
C#
Code
436
2,785
using Microsoft.EntityFrameworkCore.Migrations; namespace Marketplace.Db.Migrations { public partial class RenamedTablesToSingular : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropForeignKey( name: "FK_NftIncomeTrans...
4,398
https://github.com/Unskilledcrab/Polysense/blob/master/PS.Web.API/Data/PolysenseContext.cs
Github Open Source
Open Source
Apache-2.0
null
Polysense
Unskilledcrab
C#
Code
123
379
using Microsoft.EntityFrameworkCore; using PS.Shared.Models; using System.Reflection; namespace PS.Web.API.Data { public class PolysenseContext : DbContext { public PolysenseContext(DbContextOptions<PolysenseContext> options) : base(options) { } public DbSet<Bill> ...
16,143
https://github.com/hhariri/kotlin-native/blob/master/samples/concurrent/Concurrent.kt
Github Open Source
Open Source
Apache-2.0
2,017
kotlin-native
hhariri
Kotlin
Code
376
1,050
/* * Copyright 2010-2017 JetBrains s.r.o. * * 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 agre...
21,941
https://github.com/Hajile-Haji/manga-frontend/blob/master/store/alerts.js
Github Open Source
Open Source
MIT
2,018
manga-frontend
Hajile-Haji
JavaScript
Code
201
581
export const state = () => ({ success: [], warn: [], error: [], info: [] }) export const mutations = { addAlert (state, alert) { if (typeof alert.alert === 'string') { state[alert.type].push({ text: alert.alert, remainingCount: 1, type: alert.type }) } else if (typ...
10,563
https://github.com/phetaduck/SqlViewGenerator/blob/master/models/asyncsqltablemodel.cpp
Github Open Source
Open Source
MIT
null
SqlViewGenerator
phetaduck
C++
Code
840
2,821
#include "asyncsqltablemodel.h" #include <QMessageBox> #include <QSqlQuery> #include <QSqlError> #include "utils/sqlsharedutils.h" AsyncSqlTableModel::~AsyncSqlTableModel() { watcher.disconnect(); if (future.isRunning()) { future.cancel(); /// @note необходимо дождаться завершения получения да...
49,085
https://github.com/jnha/music/blob/master/3Limit.jl
Github Open Source
Open Source
MIT
null
music
jnha
Julia
Code
1,871
7,117
### A Pluto.jl notebook ### # v0.14.7 using Markdown using InteractiveUtils # ╔═╡ c21d05c1-bd10-46cc-bc5a-d737d047131f using SampledSignals # ╔═╡ 99422a59-ffe4-4dc0-bb80-2245d41aaa74 include("definitions/NoteNames.jl") # ╔═╡ f3cf3e66-b414-11eb-129f-1f82995a6e8e md"# 3-Limit One measure of the harmonic complexity of...
22,388
https://github.com/Untanky/homepage/blob/master/frontend/src/routes/contact/+page.svelte
Github Open Source
Open Source
MIT
2,023
homepage
Untanky
null
Spoken
9
55
<svelte:head> <title>Contact</title> <meta name="description" content="Contact" /> </svelte:head> <h1 class="text-xl">Contact</h1>
45,273
https://github.com/Jonwod/SpaceGame/blob/master/SpaceGameHUD.cpp
Github Open Source
Open Source
MIT
null
SpaceGame
Jonwod
C++
Code
148
1,157
// // SpaceGameHUD.cpp // SpaceGame // // Created by Jonathan Wood on 13/09/2014. // Copyright (c) 2014 Jonathan Wood. All rights reserved. // #include "SpaceGameHUD.h" SpaceGameHUD::SpaceGameHUD(const PlayerSpaceCraft& ps){ static sf::Font arial; arial.loadFromFile("/Users/jonathanwood/Documents/...
13,358
https://github.com/azgs/quakedb/blob/master/static/quakedb/map/scripts/view-query.js
Github Open Source
Open Source
BSD-2-Clause
2,014
quakedb
azgs
JavaScript
Code
82
197
// Create a global object to store all logic in var root = this; root.app == null ? app = root.app = {} : app = root.app; app.views == null ? app.views = app.views = {} : app.views = app.views; app.views.QueryView = Backbone.View.extend({ initialize: function () { }, events: { "click": "drawQuery" }, dra...
38,969
https://github.com/JumpIntoSqueak/vivide/blob/master/repository/Vivide.package/ViInformationLink.class/class/argument.st
Github Open Source
Open Source
MIT
null
vivide
JumpIntoSqueak
null
Spoken
14
31
instance creation argument ^ self new color: (Color r: 69/255 g: 115/255 b: 213/255)
2,436
https://github.com/alexTrifonov/atrifonov/blob/master/chapter_005/src/main/java/ru/job4j/taskSet/FastSet.java
Github Open Source
Open Source
Apache-2.0
null
atrifonov
alexTrifonov
Java
Code
93
252
package ru.job4j.taskSet; import ru.job4j.taskList.SimpleArrayList; import java.util.Arrays; import java.util.Iterator; /** * Created by Alexandr on 02.09.2017. */ public class FastSet<E extends Comparable<? super E>> implements Iterable<E> { /** * List for store items. */ SimpleArrayList<E> li...
46,242