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/SunnyApp/sunny_dart/blob/master/lib/is_x.dart
Github Open Source
Open Source
BSD-3-Clause
2,021
sunny_dart
SunnyApp
Dart
Code
81
254
library is_x; import 'xfo/info_x.dart'; import 'xfo/sunny_get.dart'; export 'xfo/info_x.dart'; /// Makes it easier to import class IsX {} @deprecated SunnyGet get Sunny => sunny; /// Use infoX.isIOS @deprecated bool get isIOS => infoX.isIOS; @deprecated bool get isAndroid => infoX.isAndroid; @deprecated bool get ...
26,853
https://github.com/kumarss20/superset-neo4j/blob/master/superset/assets/node_modules/@airbnb/lunar-icons/lib/interface/IconVisibility.js
Github Open Source
Open Source
Apache-2.0
null
superset-neo4j
kumarss20
JavaScript
Code
135
439
"use strict"; exports.__esModule = true; exports.default = void 0; var _react = _interopRequireDefault(require("react")); var _withIcon = _interopRequireDefault(require("../withIcon")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _extends() { _extends = ...
17,838
https://github.com/jup36/MatlabNeuralDataPipeline/blob/master/Anxiety_goal_directed_behavior/codefromPC/FDAfuns/fdaFunctions/eval_TP_fd.m
Github Open Source
Open Source
BSD-2-Clause
2,023
MatlabNeuralDataPipeline
jup36
MATLAB
Code
447
1,149
function surfarray = eval_TP_fd(Xvec, Yvec, fdobj, xderiv, yderiv) % EVAL_TP_FD evaluates the TP fd object at points (Xvec,Yvec) % % arguments: % FELSPLOBJ a FELspline object % XVEC ... an array of x-coordinates. % YVEC ... an array of y-coordinates. % XDERIV ... order of derivative with respect to x % YDERI...
15,500
https://github.com/jakllsch/openafs/blob/master/doc/man-pages/pod8/fssync-debug_attach.pod
Github Open Source
Open Source
BSD-3-Clause
2,022
openafs
jakllsch
null
Spoken
257
745
=head1 NAME fssync-debug_attach - Forces full volume attachment (FSYNC_VOL_ATTACH opcode) =head1 SYNOPSIS =for html <div class="synopsis"> B<fssync-debug attach> S<<< B<-volumeid> <I<volume ID>> >>> S<<< [B<-partition> <I<exact partition name>>] >>> S<<< [B<-reason> <I<sync protocol reason code>>] >>> S...
37,183
https://github.com/dhruvil-93/Terasology/blob/master/engine/src/main/java/org/terasology/engine/EngineTime.java
Github Open Source
Open Source
Apache-2.0
2,017
Terasology
dhruvil-93
Java
Code
215
366
/* * Copyright 2013 MovingBlocks * * 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 t...
53,174
https://github.com/Radhesh-Sarma/RelationalDBMS-Tools/blob/master/DBMS-Module1GUI/src/Relation.java
Github Open Source
Open Source
MIT
2,020
RelationalDBMS-Tools
Radhesh-Sarma
Java
Code
1,474
4,949
import java.util.*; import exceptions.*; public class Relation { public static String RName = "Relation"; public static int cnt = 0; public AlgoPack alg; static int count = 0; public String name; public Vector<String> atr_List; public Vector<String> keyAttr; public Vector<FunDep> funcs; public Vector<Vector<...
18,073
https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/recoveryservices/azure-resourcemanager-recoveryservices/src/test/java/com/azure/resourcemanager/recoveryservices/generated/CapabilitiesResponsePropertiesTests.java
Github Open Source
Open Source
LicenseRef-scancode-generic-cla, MIT, LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-unknown-license-reference, LGPL-2.1-or-later, CC0-1.0, BSD-3-Clause, UPL-1.0, Apache-2.0, LicenseRef-scancode-public-domain, BSD-2-Clause
2,023
azure-sdk-for-java
Azure
Java
Code
106
826
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.recoveryservices.generated; import com.azure.core.util.BinaryData; import com.azure.resourcemanager.recoveryservices.models.Capa...
6,905
https://github.com/winedepot/pinot/blob/master/thirdeye/thirdeye-hadoop/src/main/java/org/apache/pinot/thirdeye/hadoop/topk/DimensionValueMetricPair.java
Github Open Source
Open Source
Apache-2.0, BSD-3-Clause, LicenseRef-scancode-free-unknown, CC-PDDC, LGPL-2.1-only, LicenseRef-scancode-other-permissive, MIT, LicenseRef-scancode-public-domain, LicenseRef-scancode-unknown-license-reference, CPL-1.0, CDDL-1.1, EPL-1.0, BSD-2-Clause, EPL-2.0, CDDL-1.0
2,019
pinot
winedepot
Java
Code
232
488
/** * Copyright (C) 2014-2018 LinkedIn Corp. (pinot-core@linkedin.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unle...
6,046
https://github.com/blueprintmrk/algoliasearch-wordpress/blob/master/Makefile
Github Open Source
Open Source
MIT
2,015
algoliasearch-wordpress
blueprintmrk
Makefile
Code
41
143
TEMPDIR := $(shell mktemp -d -t XXXXX) PWD := $(shell pwd) all: @cp -R ./ $(TEMPDIR)/algoliasearch-wordpress @cd $(TEMPDIR)/algoliasearch-wordpress && rm -rf .git && cd .. && zip -qr algoliasearch-wordpress algoliasearch-wordpress && cp algoliasearch-wordpress.zip $(PWD) && rm -rf $(TEMPDIR) @echo "DONE: $(PWD)/alg...
50,999
https://github.com/shueja-personal/allwpilib/blob/master/wpiutil/src/main/native/cpp/uv/Timer.cpp
Github Open Source
Open Source
BSD-3-Clause
2,022
allwpilib
shueja-personal
C++
Code
122
378
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. #include "wpi/uv/Timer.h" #include "wpi/uv/Loop.h" namespace wpi::uv { std::shared_ptr<Timer> Timer::Create(Loop& loo...
31,375
https://github.com/camponsah/BivMixDist/blob/master/R/discrete_pareto.R
Github Open Source
Open Source
MIT
2,021
BivMixDist
camponsah
R
Code
1,463
4,113
#' The discrete Pareto distribution #' #' Random sample generating function for discrete Pareto distribution with parameters \eqn{\delta \ge 0} and p in (0,1). #' #' rdpareto generates random sample from discrete Pareto distribution. #' #' @param n size of sample. #' @param delta shape parameter which must be numeric ...
50,221
https://github.com/jferard/JxBase/blob/master/src/main/java/com/github/jferard/jxbase/dialect/vfoxpro/field/IntegerField.java
Github Open Source
Open Source
Apache-2.0
2,020
JxBase
jferard
Java
Code
275
708
/* * JxBase - Copyright (c) 2019-2021 Julien Férard * JDBF - Copyright (c) 2012-2018 Ivan Ryndin (https://github.com/iryndin) * * 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...
26,834
https://github.com/pedropaulofo/ProjetoSI1/blob/master/app/models/TipoNotificacao.java
Github Open Source
Open Source
Apache-2.0
2,016
ProjetoSI1
pedropaulofo
Java
Code
44
289
package models; import java.io.Serializable; import play.mvc.Controller; import sistemas.SistemaUsuarioLogin; import sistemas.mensagens.*; public enum TipoNotificacao implements Serializable{ ACEITACAO(MensagensSistema.ACEITACAO), REJEICAO(MensagensSistema.REJEICAO), CANCELAMENTO(MensagensSistema.CANCELAMENTO), ...
39,805
https://github.com/dgraph-io/ratel/blob/master/client/src/index.js
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,023
ratel
dgraph-io
JavaScript
Code
157
378
// Copyright 2017-2019 Dgraph Labs, Inc. 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.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
43,424
https://github.com/yoferzhang/QCloudCOSXML/blob/master/QCloudQuic/Classes/QCloudBase/TquicConnection.mm
Github Open Source
Open Source
Unlicense, MIT
null
QCloudCOSXML
yoferzhang
Objective-C++
Code
694
3,342
// // TquicNetRequest.m // TquicNet // // Created by karisli(李雪) on 2019/3/18. // Copyright © 2019 tencentyun.com. All rights reserved. // #import "TquicConnection.h" #import <Tquic/tnet_quic_request.h> #include <iostream> #include <fstream> #include <memory> #include <string> #include <vector> #include <chrono> #...
12,221
https://github.com/Rohit484/Distribution/blob/master/p/plotly_dot_js/src/main/scala/typings/plotlyJs/anon/PartialScatterLine.scala
Github Open Source
Open Source
MIT
2,020
Distribution
Rohit484
Scala
Code
259
1,049
package typings.plotlyJs.anon import typings.plotlyJs.mod.Dash import typings.plotlyJs.plotlyJsStrings.hv import typings.plotlyJs.plotlyJsStrings.hvh import typings.plotlyJs.plotlyJsStrings.linear import typings.plotlyJs.plotlyJsStrings.spline import typings.plotlyJs.plotlyJsStrings.vh import typings.plotlyJs.plotlyJs...
20,829
https://github.com/Xinghui-Wu/LeetCode/blob/master/problem_1143.cpp
Github Open Source
Open Source
MIT
2,022
LeetCode
Xinghui-Wu
C++
Code
257
542
/** * 1143. Longest Common Subsequence * * Given two strings text1 and text2, return the length of their longest common subsequence. * If there is no common subsequence, return 0. * A subsequence of a string is a new string generated from the original string with some characters (can be none) deleted without chan...
19,176
https://github.com/mharvin10/cms_api/blob/master/app/Http/Resources/announcements/AnnouncementPublicBasicResource.php
Github Open Source
Open Source
MIT
null
cms_api
mharvin10
PHP
Code
57
214
<?php namespace App\Http\Resources\announcements; use Illuminate\Http\Resources\Json\Resource; class AnnouncementPublicBasicResource extends Resource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array */ public function toArra...
6,576
https://github.com/google/skia/blob/master/src/base/SkThreadID.cpp
Github Open Source
Open Source
BSD-3-Clause, LicenseRef-scancode-unknown-license-reference
2,023
skia
google
C++
Code
51
143
/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "include/private/base/SkThreadID.h" #ifdef SK_BUILD_FOR_WIN #include "src/base/SkLeanWindows.h" SkThreadID SkGetThreadID() { return GetCurrentThreadId(); } #...
14,847
https://github.com/fb0801/MasterClasses/blob/master/book.php
Github Open Source
Open Source
MIT
null
MasterClasses
fb0801
PHP
Code
233
1,111
<?php require_once "dbutils1-bookings.php"; ?> <!DOCTYPE html> <html lang="en"><!--declare the language of the page--> <head> <title>MasterClasses</title><!--Display as site tab title--> <link rel="shortcut icon" type="image/x-icon" href="images/master.ico"> <!--adds a image to the title to display in the tab--> <li...
30,595
https://github.com/servicecatalog/oscm/blob/master/oscm-internalservices-unittests/javasrc/org/oscm/internal/trackingcode/TrackingCodeManagementServiceBeanTest.java
Github Open Source
Open Source
Apache-2.0
2,022
oscm
servicecatalog
Java
Code
284
1,408
/******************************************************************************* * Copyright FUJITSU LIMITED 2018 *******************************************************************************/ package org.oscm.internal.trackingcode; import static org.junit.Assert.assertEquals; import static org.mockito.Matchers....
4,939
https://github.com/summa-platform/summa-ui-stack-frontend/blob/master/src/resources/elements/keywords.js
Github Open Source
Open Source
MIT
2,018
summa-ui-stack-frontend
summa-platform
JavaScript
Code
61
205
import {bindable, observable, bindingMode, children} from 'aurelia-framework'; import log from 'logger'; export class Keywords { @bindable items; @children('span') spans; @bindable animate = false; constructor() { } attached() { // for(let span of this.spans) { // span.addClass('au-animate'); // } } ...
15,753
https://github.com/jousis9/network_pos_printer/blob/master/lib/src/style.dart
Github Open Source
Open Source
MIT
2,020
network_pos_printer
jousis9
Dart
Code
135
456
enum NetworkPOSPrinterUnderline { none, single, double } enum NetworkPOSPrinterJustification { left, center, right } enum NetworkPOSPrinterFont { fontA, fontB } class NetworkPOSPrinterTextSize { const NetworkPOSPrinterTextSize._internal(this.value); final int value; static const size1 = NetworkPOSPrinterTextSiz...
44,675
https://github.com/Eslam33/suggest/blob/master/resources/views/auth/register.blade.php
Github Open Source
Open Source
MIT
2,017
suggest
Eslam33
Blade
Code
277
1,270
@extends('layouts.app') @section('content') <div class="container"> <div class="row"> <div class="col-md-8 col-md-offset-2"> <div class="panel panel-default"> <div class="panel-heading">Register</div> <div class="panel-body"> <form class="form...
14,483
https://github.com/evgeniy-fitsner/riot/blob/master/common/src/org/riotfamily/common/util/FormatUtils.java
Github Open Source
Open Source
Apache-2.0
2,014
riot
evgeniy-fitsner
Java
Code
2,868
7,978
/* 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 ...
41,746
https://github.com/uk-gov-mirror/hmrc.api-documentation-frontend/blob/master/test/uk/gov/hmrc/apidocumentation/controllers/PageRenderVerification.scala
Github Open Source
Open Source
Apache-2.0
2,021
hmrc.api-documentation-frontend
uk-gov-mirror
Scala
Code
387
1,356
/* * Copyright 2021 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
39,704
https://github.com/voximplant/apiclient-dotnet/blob/master/apiclient.samples/ReorderRulesSample.cs
Github Open Source
Open Source
MIT
2,021
apiclient-dotnet
voximplant
C#
Code
72
238
using System; using Voximplant.API; using Voximplant.API.Response; using Xunit; using Xunit.Abstractions; namespace apiclient.samples { [Collection("Samples")] public class ReorderRulesSample { private ITestOutputHelper Console { get; } public ReorderRulesSample(ITestOutputHelper o...
15,545
https://github.com/tweag/opam-nix/blob/master/examples/0install/flake.nix
Github Open Source
Open Source
MIT
2,022
opam-nix
tweag
null
Spoken
87
275
{ description = "Build a package from opam-repository, using the non-system compiler"; inputs.opam-nix.url = "github:tweag/opam-nix"; inputs.flake-utils.url = "github:numtide/flake-utils"; outputs = { self, opam-nix, flake-utils }: flake-utils.lib.eachDefaultSystem (system: { legacyPackages = let ...
35,664
https://github.com/piantgrunger/tracer-study/blob/master/models/TracerStudy.php
Github Open Source
Open Source
BSD-3-Clause
null
tracer-study
piantgrunger
PHP
Code
228
851
<?php namespace app\models; use Yii; use mdm\behaviors\ar\RelationTrait; /** * This is the model class for table "tb_tracer_study". * * @property integer $id * @property string $nim * @property string $nama * @property string $alamat * @property string $no_telepon * @property string $email * @property strin...
28,500
https://github.com/VeegY/laue/blob/master/docs/_examples/line-gradient-color.vue
Github Open Source
Open Source
MIT
2,022
laue
VeegY
Vue
Code
100
333
<template> <la-cartesian :data="values"> <defs> <linearGradient id="color-id" x1="0" y1="0" x2="0" y2="1"> <stop offset="0" stop-color="#2c3e50"></stop> <stop offset="0.5" stop-color="#42b983"></stop> <stop offset="1" stop-color="#6fa8dc"></stop> </linearGradient> </defs> ...
31,801
https://github.com/snyk/snyk-docker-plugin/blob/master/lib/python-parser/common.ts
Github Open Source
Open Source
Apache-2.0
2,023
snyk-docker-plugin
snyk
TypeScript
Code
92
202
export function specifierValidRange( specifier: string, version: string, ): string { specifier = specifier === "==" || specifier === "===" || specifier === "~=" ? specifier.charAt(0) : specifier; if (specifier !== "~") { return specifier; } // the tilde specifier in a requirements file m...
43,376
https://github.com/WORK90873/todo-app/blob/master/src/components/404.js
Github Open Source
Open Source
MIT
2,021
todo-app
WORK90873
JavaScript
Code
35
107
import { Component } from "react"; export class NotFound extends Component { render() { return ( <div id="not-found-wrapper"> <h1 id="not-found-header">404 ⊙︿⊙</h1> <h3 id="not-found-subheader">Oops, seems like you are in the wrong place.</h3> </div> ...
47,815
https://github.com/Harry-Chen/rust-mips/blob/master/src/tlb.rs
Github Open Source
Open Source
MIT
2,020
rust-mips
Harry-Chen
Rust
Code
230
958
//! read & write TLB items #![allow(deprecated)] use crate::instructions; use crate::registers::cp0; /// refers to one TLB entry pub struct TLBEntry { pub entry_lo0: cp0::entry_lo::EntryLo, pub entry_lo1: cp0::entry_lo::EntryLo, pub entry_hi: cp0::entry_hi::EntryHi, pub page_mask: cp0::page_mask::Pag...
53,870
https://github.com/kangxiaoning/algorithm-rust/blob/master/src/heap/heap.rs
Github Open Source
Open Source
MIT
2,020
algorithm-rust
kangxiaoning
Rust
Code
1,134
3,548
use rand::{self, Rng}; use std::cmp::min; #[allow(dead_code)] pub struct MaxHeap<T> { data: Vec<Option<T>>, count: usize, capacity: usize, } // 放在impl外面方便heapify重用 fn shift_up<T>(vector: &mut Vec<T>, k: usize) where T: Ord + Clone, { let mut k = k; while k > 1 && vector[k / 2] < vector[k] { ...
43,629
https://github.com/vozhyk96/BankSystem/blob/master/BankSystem/Models/IdentityModels.cs
Github Open Source
Open Source
MIT
null
BankSystem
vozhyk96
C#
Code
183
528
using System.Data.Entity; using System.Security.Claims; using System.Threading.Tasks; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using BankSystem.Models.DbModels; namespace BankSystem.Models { // Чтобы добавить данные профиля для пользователя, можно добавить дополнительные с...
8,520
https://github.com/aerosox/D-Bot/blob/master/plugins/help.php
Github Open Source
Open Source
Apache-2.0
2,016
D-Bot
aerosox
PHP
Code
26
101
<?php PluginSet("Show help",null,false); $plugin_list = HELP_BEGIN."\n"; foreach ($plugins as $value) { if ($value['visible'] == True) { $plugin_list .= "\n".$value['desc']; } } $plugin_list .= "\n\n".HELP_END; $BOT->msg($from, $plugin_list);
45,692
https://github.com/ZPVIP/clipboard-auto-processor/blob/master/bin/Debug/scripts/convert_esp8266_pdf_text.php
Github Open Source
Open Source
MIT
2,020
clipboard-auto-processor
ZPVIP
PHP
Code
157
706
<?php // 读取输入 $input = base64_decode(file_get_contents('php://stdin')); // 处理 $text = trim($input); $text = str_replace("\r\n", "\n", $text); $text = str_replace("\n", "", $text); $text = remove_illegal_characters($text); $text = adjust_spaces($text); $output = trim($text); // 输出结果 echo base64_encode($output); ...
109
https://github.com/igiu1988/iOS13.4.1-Runtime-Headers/blob/master/PrivateFrameworks/Home.framework/HFControlItem.h
Github Open Source
Open Source
MIT
2,020
iOS13.4.1-Runtime-Headers
igiu1988
Objective-C
Code
197
1,054
/* Generated by EzioChiu Image: /System/Library/PrivateFrameworks/Home.framework/Home */ @interface HFControlItem : HFItem <NAIdentifiable, NSCopying> { HFControlItemCharacteristicOptions * _characteristicOptions; NSDictionary * _displayResults; <HFAggregatedCharacteristicValueSource> * _valueSource; }...
22,281
https://github.com/simplebam/JavaDesignPatterns/blob/master/src/observer/delegation/Boss.java
Github Open Source
Open Source
Apache-2.0
2,018
JavaDesignPatterns
simplebam
Java
Code
46
132
package observer.delegation; public class Boss extends Notifier { private String action; //通知者发现的情况 //老板发现的情况 public void setAction(String action) { this.action = action; } public void Notify(Object object) { if (Update != null) { try { Update....
2,067
https://github.com/collinwright/nixpkgs/blob/master/pkgs/development/python-modules/heudiconv/default.nix
Github Open Source
Open Source
MIT
2,022
nixpkgs
collinwright
null
Spoken
144
456
{ lib , buildPythonPackage , fetchPypi , isPy27 , pytest , mock , dcm2niix , nibabel , pydicom , nipype , dcmstack , etelemetry , filelock }: buildPythonPackage rec { version = "0.8.0"; pname = "heudiconv"; disabled = isPy27; src = fetchPypi { inherit pname version; #sha256 = "0gzqqa4pzhywdbvks2qjniw...
28,128
https://github.com/Willjobs94/mvc-toastr-flash/blob/master/MvcToastrFlash/Models/MessageManager.cs
Github Open Source
Open Source
MIT
2,021
mvc-toastr-flash
Willjobs94
C#
Code
281
836
using System; using System.Collections; using System.Collections.Generic; using System.Web.Mvc; namespace RedWillow.MvcToastrFlash.Models { /// <summary> /// Manager used for storing <see cref="FlashMessage"/> messages in the Controller's /// <see cref="TempDataDictionary"/> and for providing access to th...
24,402
https://github.com/khbmedia/KSOFT/blob/master/app/Tour.php
Github Open Source
Open Source
MIT
null
KSOFT
khbmedia
PHP
Code
28
95
<?php namespace App; use Illuminate\Database\Eloquent\Model; use App\Gallery; use App\Destination; class Tour extends Model { public function gallery() { return $this->hasMany('App\Gallery'); } public function destination(){ return $this->belongTo('App\Destination'); } }
39,139
https://github.com/CS2103JUN2017-T3/main/blob/master/src/main/java/teamthree/twodo/ui/CategoryListPanel.java
Github Open Source
Open Source
MIT
2,017
main
CS2103JUN2017-T3
Java
Code
96
357
package teamthree.twodo.ui; import javafx.collections.ObservableList; import javafx.fxml.FXML; import javafx.scene.control.ListCell; import javafx.scene.control.ListView; import javafx.scene.layout.Region; import teamthree.twodo.model.category.Category; //@@author A0124399W /** * Panel containing the list of categor...
36,215
https://github.com/Pilen/ubertex/blob/master/worker/hash.h
Github Open Source
Open Source
Beerware
2,017
ubertex
Pilen
C
Code
103
316
#ifndef W_HASH_H #define W_HASH_H #define HASH_DEFAULT_SIZE 64 #define HASH_EXPANSION_FACTOR 2 #define HASH_EXPAND_LIMIT 0.8 #define HASH_CONTRACT_LIMIT 0.2 typedef enum { HASH_EMPTY, HASH_OCCUPIED, HASH_DELETED, } Hash_status; typedef struct { Hash_status status; Unt key_hash1; /*Store the entir...
13,442
https://github.com/auperes/ityl-character-manager/blob/master/src/Ityl.DataModel/config/app_config.cpp
Github Open Source
Open Source
MIT
2,022
ityl-character-manager
auperes
C++
Code
36
170
#include "app_config.h" #include <QDir> #include <QFile> #include <QString> #include <QJsonDocument> #include <QJsonValue> #include <QJsonObject> #include <QJsonArray> #include <iostream> namespace Ityl::DataModel { QString AppConfig::_charactersFolderPath; QString AppConfig::_avatarsFolderPath; QString ...
6,625
https://github.com/reedts/jackal/blob/master/src/config.rs
Github Open Source
Open Source
MIT
2,021
jackal
reedts
Rust
Code
63
265
use crate::cmds; use cmds::Cmd; use std::collections::HashMap; use std::time::Duration; use termion::event::Key; pub type KeyMap = HashMap<Key, Cmd>; #[derive(Debug, Clone)] pub struct Config { pub key_map: KeyMap, pub tick_rate: Duration, } impl Default for Config { fn default() -> Config { let...
11,945
https://github.com/ekov1/TelerikAcademy-Exercises/blob/master/regular/C#/C# - 1/00. Exams/04. Exam 09.11.2016/01. Mythical numbers/01. Mythical numbers.cs
Github Open Source
Open Source
MIT
null
TelerikAcademy-Exercises
ekov1
C#
Code
108
297
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _01.Mythical_numbers { class Program { static void Main(string[] args) { int number = int.Parse(Console.ReadLine()); int firstDigit = number / ...
27,776
https://github.com/viirak/Stream-Framework/blob/master/feedly/tests/utils/__init__.py
Github Open Source
Open Source
BSD-3-Clause
2,015
Stream-Framework
viirak
Python
Code
17
77
from feedly.activity import Activity, AggregatedActivity class FakeActivity(Activity): pass class FakeAggregatedActivity(AggregatedActivity): pass class Pin(object): def __init__(self, **kwargs): self.__dict__.update(kwargs)
34,199
https://github.com/saanakorhonen/exoview/blob/master/exoview-backend/src/db.js
Github Open Source
Open Source
MIT
null
exoview
saanakorhonen
JavaScript
Code
248
769
const { resolveCname } = require('dns'); const fs = require('fs'); const Collection = require('./collection'); const FILENAME = 'db.json' //Tietokantaluokka var Db = class { constructor(path = './') { this._collections = {}; this._path = path+FILENAME; } fileExists() { return ...
28,690
https://github.com/jmesyan/nano/blob/master/application/models/structure/game_audit.go
Github Open Source
Open Source
MIT
null
nano
jmesyan
Go
Code
31
89
package structure type GameAudit struct { Platform string `xorm:"not null pk default '' comment('平台') VARCHAR(20)" json:"platform" form:"platform" csv:"platform"` Version string `xorm:"not null pk default '' comment('版本') VARCHAR(10)" json:"version" form:"version" csv:"version"` }
10,952
https://github.com/CSS-Electronics/cancloud/blob/master/src/browser/js/uploads/__tests__/AbortConfirmModal.test.js
Github Open Source
Open Source
Apache-2.0
2,023
cancloud
CSS-Electronics
JavaScript
Code
205
516
/* * MinIO Cloud Storage (C) 2016, 2018 MinIO, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
43,824
https://github.com/kolyaventuri/everyoneisjohn/blob/master/server/socket/actions/start-game.js
Github Open Source
Open Source
MIT
2,022
everyoneisjohn
kolyaventuri
JavaScript
Code
35
99
// @flow import startBidding from './start-bidding'; import type {SocketType} from '..'; const startGame = (socket: SocketType) => { const {game} = socket; for (const p of game.players) { p.stats.freeze(); } startBidding(socket); }; export default startGame;
9,814
https://github.com/gamejolt/gamejolt/blob/master/src/_common/modal/confirm/confirm-service.ts
Github Open Source
Open Source
MIT
2,023
gamejolt
gamejolt
TypeScript
Code
48
134
import { defineAsyncComponent } from 'vue'; import { showModal } from '../modal.service'; export async function showModalConfirm( message: string, title = 'Confirm...', buttonType: 'ok' | 'yes' = 'yes' ) { return await showModal<boolean>({ modalId: 'Confirm', size: 'sm', component: defineAsyncComponent(() =>...
30,931
https://github.com/Kenndly/3dShooter/blob/master/Assets/Scripts/Slot3.cs
Github Open Source
Open Source
MIT
null
3dShooter
Kenndly
C#
Code
55
205
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Slot3 : MonoBehaviour { private Inventory inventory; public void Start() { inventory = GameObject.FindGameObjectWithTag("Player").GetComponent<Inventory>(); } public void DropItem() { fo...
25,732
https://github.com/DontJar/js-advanced-scope-closures-lab-dc-web-071618/blob/master/index.js
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain
2,018
js-advanced-scope-closures-lab-dc-web-071618
DontJar
JavaScript
Code
76
206
function createDriver(){ let DriverId = 0 return class { constructor(name){ this.name = name this.id = ++DriverId } } } function produceDrivingRange(blockRange){ return function(a, b) { let pickup = parseInt(a); let dropoff = parseInt(b); let rideTotal = Math.abs(dropoff - picku...
23,446
https://github.com/TLouf/OSLOM2/blob/master/src/visualSources/main_pajek_directed.cpp
Github Open Source
Open Source
CC-BY-3.0
null
OSLOM2
TLouf
C++
Code
628
2,067
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as publishe...
23,023
https://github.com/moli-php/dev-moli-zf2/blob/master/public/samples/order-entry/js/js.js
Github Open Source
Open Source
BSD-3-Clause
null
dev-moli-zf2
moli-php
JavaScript
Code
58
284
$(function(){ // Monitor ajax requests, show or hide loader image $(document).ajaxStart(function() { $('#img_con').removeClass('hide'); }); $(document).ajaxComplete(function() { $('#img_con').addClass('hide'); }); }); var helper = { format_decimal : function(num) { ret...
13,183
https://github.com/lananh265/social-network/blob/master/node_modules/react-icons-kit/ionicons/iosCompose.js
Github Open Source
Open Source
MIT
2,021
social-network
lananh265
JavaScript
Code
122
758
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.iosCompose = void 0; var iosCompose = { "viewBox": "0 0 512 512", "children": [{ "name": "g", "attribs": {}, "children": [{ "name": "polygon", "attribs": { "points": "256,320 192,320 192,256 320,1...
26,221
https://github.com/codebutler/homebrew/blob/master/Library/Formula/pdfgrep.rb
Github Open Source
Open Source
BSD-2-Clause
2,013
homebrew
codebutler
Ruby
Code
37
214
require 'formula' class Pdfgrep < Formula homepage 'http://pdfgrep.sourceforge.net/' url 'http://downloads.sourceforge.net/project/pdfgrep/1.3.0/pdfgrep-1.3.0.tar.gz' sha1 'cac20afdea7aee1602b2c33c3d8d36ec171c30bc' head 'https://git.gitorious.org/pdfgrep/pdfgrep.git' depends_on 'pkg-config' => :build dep...
23,391
https://github.com/tmarrec/M2-IGAI-Neural-Importance-Sampling/blob/master/src/integrators/PracticalPathGuiding/sdtree.cpp
Github Open Source
Open Source
BSD-2-Clause, BSD-3-Clause
2,021
M2-IGAI-Neural-Importance-Sampling
tmarrec
C++
Code
2,364
6,923
// // Created by hrens on 5/4/18. // #include "stats.h" #include "sdtree.h" #include "samplers/random.h" #include <stack> #include <random> #include <iostream> #include <cmath> #include <ctime> using namespace pbrt; using namespace std; Point2f mapping::DirToPlane(const pbrt::Vector3f &d) { if (!isfinite(d.x)...
38,122
https://github.com/faizzul95/WadahCIS5/blob/master/application/controllers/Assets.php
Github Open Source
Open Source
MIT
null
WadahCIS5
faizzul95
PHP
Code
275
1,602
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Assets extends CI_Controller { function __construct() { parent::__construct(); $this->load->database(); $this->load->model('Assets_model'); } public function index() { $data['records'] = $this->db->get_...
6,081
https://github.com/romanhaa/Cerebro/blob/master/source/macOS/R-Portable-Mac/library/Rcpp/tinytest/test_na.R
Github Open Source
Open Source
MIT, CC-BY-3.0, GPL-2.0-only
2,021
Cerebro
romanhaa
R
Code
166
464
## Copyright (C) 2014 Kevin Ushey ## ## This file is part of Rcpp. ## ## Rcpp is free software: you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 2 of the License, or ## (at your option) any later version...
5,006
https://github.com/Ever4engel/joal/blob/master/src/main/java/org/araymond/joal/core/ttorrent/client/announcer/request/SuccessAnnounceResponse.java
Github Open Source
Open Source
Apache-2.0
2,022
joal
Ever4engel
Java
Code
61
179
package org.araymond.joal.core.ttorrent.client.announcer.request; public class SuccessAnnounceResponse { private final int interval; private final int seeders; private final int leechers; public SuccessAnnounceResponse(final int interval, final int seeders, final int leechers) { this.interval...
44,550
https://github.com/StavreskiBojan/webtrekk-email-service/blob/master/src/test/java/com/webtrekk/email/service/subscriber/EmailSubscriberTest.java
Github Open Source
Open Source
Apache-2.0
2,019
webtrekk-email-service
StavreskiBojan
Java
Code
182
804
package com.webtrekk.email.service.subscriber; import com.webtrekk.email.service.avro.Email; import org.junit.Before; import org.junit.ClassRule; import org.junit.Test; import org.junit.runner.RunWith; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowire...
4,178
https://github.com/yemengs/Magic-Desktop-Adventure/blob/master/Assets/Scripts/StickyNotePickable.cs
Github Open Source
Open Source
MIT
null
Magic-Desktop-Adventure
yemengs
C#
Code
139
541
using System.Collections; using System.Collections.Generic; using UnityEngine; using DG.Tweening; [ExecuteInEditMode] public class StickyNotePickable : MonoBehaviour { public Vector3 rotateSpeed; public Vector3 rotateSpeed1; public bool random; public StickyNote stickyNote; public float animDurat...
29,657
https://github.com/qqchen123/laravelapi/blob/master/app/Http/Controllers/ArticlesController.php
Github Open Source
Open Source
MIT
null
laravelapi
qqchen123
PHP
Code
73
285
<?php namespace App\Http\Controllers; use App\Articles; use App\Http\Requests\CreateArticleRequest; use Carbon\Carbon; class ArticlesController extends Controller { // public function index() { $articles = Articles::latest()->published()->get(); return view('articles.index', compact('articles')); } public...
38,263
https://github.com/OscarZacarias0106/Parcial-virtual-I/blob/master/routes/web.php
Github Open Source
Open Source
MIT
null
Parcial-virtual-I
OscarZacarias0106
PHP
Code
101
379
<?php use App\Http\Controllers\CategoriaController; use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your appli...
33,012
https://github.com/Jerr-z/please/blob/master/CrossMod/Rendering/RTexture.cs
Github Open Source
Open Source
MIT
null
please
Jerr-z
C#
Code
85
230
using SFGraphics.Cameras; using SFGraphics.GLObjects.Textures; namespace CrossMod.Rendering { public class RTexture : IRenderable { private static ScreenTriangle triangle = null; public Texture renderTexture = null; public bool IsSrgb { get; set; } = false; public void Rende...
6,986
https://github.com/Clivern/Kraven/blob/master/app/modules/service/docker/low_level/image.py
Github Open Source
Open Source
Apache-2.0
2,019
Kraven
Clivern
Python
Code
72
223
""" Image Module """ import json # local Django from app.modules.service.docker.auth import Auth class Image(Auth): def __init__(self, host_id=None): Auth.__init__(self, host_id) def pull(self, repository, tag="latest", stream=True): return self._client.pull("%s:%s" % (repository, tag), st...
39,902
https://github.com/andy-parinas/sales-lead-manager/blob/master/tests/Feature/LeadFinanceFeatureTest.php
Github Open Source
Open Source
MIT
2,021
sales-lead-manager
andy-parinas
PHP
Code
202
937
<?php namespace Tests\Feature; use App\Contract; use App\Finance; use App\Lead; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Foundation\Testing\WithFaker; use Symfony\Component\HttpFoundation\Response; use Tests\TestCase; use Tests\TestHelper; class LeadFinanceFeatureTest extends TestCase { ...
13,511
https://github.com/hemal7735/CS739-p2/blob/master/pythonfiles/benchmark.py
Github Open Source
Open Source
MIT
null
CS739-p2
hemal7735
Python
Code
229
1,236
import os import datetime import time mountdir="/home/hemalkumar/kalpit/mount_dir/" todo=24 def makefiles(f): x=1024 name='a' buff="" for i in range(2048): buff=buff+"a" count=1 for i in range(1,todo): if i == todo-1: break x=x*2 time.sleep(2*i) ...
43,148
https://github.com/git-thinh/clinq/blob/master/sourceCode/ContinuousLinq2/ContinuousLinq.UnitTests/ContinuousSumTest.cs
Github Open Source
Open Source
BSD-3-Clause-Clear
null
clinq
git-thinh
C#
Code
209
873
using System; using System.Collections.Generic; //using System.Linq; using System.Text; using NUnit.Framework; using ContinuousLinq.Aggregates; using System.Collections.ObjectModel; using System.ComponentModel; using ContinuousLinq.WeakEvents; namespace ContinuousLinq.UnitTests { [TestFixture] public class Co...
585
https://github.com/josiahsrc/bazel_playground/blob/master/06_multiple_go_workspaces/project1/BUILD.bazel
Github Open Source
Open Source
MIT
2,021
bazel_playground
josiahsrc
Starlark
Code
39
188
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") load("@bazel_gazelle//:def.bzl", "gazelle") # gazelle:prefix github.com/example/project1 gazelle(name = "gazelle") go_library( name = "project1_lib", srcs = ["main.go"], importpath = "github.com/example/project1", visibility = ["//visib...
42,825
https://github.com/PureClarity/pureclarity-x-cart/blob/master/classes/XLite/Module/PureClarity/Personalization/Core/Feeds/Order/Runner.php
Github Open Source
Open Source
MIT
null
pureclarity-x-cart
PureClarity
PHP
Code
102
438
<?php /** * Copyright © PureClarity. All rights reserved. * See LICENSE for license details. */ namespace XLite\Module\PureClarity\Personalization\Core\Feeds\Order; use XLite\Base\Singleton; use PureClarity\Api\Feed\Type\Order as OrderFeed; use XLite\Module\PureClarity\Personalization\Core\Feeds\Order\Data\Row; us...
15,624
https://github.com/baking-bad/better-call-dev/blob/master/src/views/contract/TransfersTab/TransfersTab.vue
Github Open Source
Open Source
MIT
2,021
better-call-dev
baking-bad
Vue
Code
81
365
<template> <v-container class="canvas fill-canvas pa-8 ma-0" fluid> <v-row no-gutters> <v-col cols="8" class="pa-2"> <TransferList v-if="selectedToken" :address="address" :network="network" :token="selectedToken" :contract="selectedToken.contract" ...
12,745
https://github.com/Glepooek/ant-design-charts-blazor/blob/master/src/AntDesign.Charts/Components/Plots/Waterfall/Waterfall.razor.cs
Github Open Source
Open Source
Apache-2.0
2,022
ant-design-charts-blazor
Glepooek
C#
Code
28
101
using System.Text.Json.Serialization; using Microsoft.AspNetCore.Components; using Microsoft.JSInterop; using System.Collections.Generic; using System.Threading.Tasks; namespace AntDesign.Charts { public partial class Waterfall : ChartComponentBase<WaterfallConfig> { public Waterfall() : base("Waterfal...
25,910
https://github.com/platisd/dialectic-ball/blob/master/firmware/Magic_8_ball/Magic_8_ball.ino
Github Open Source
Open Source
MIT
2,022
dialectic-ball
platisd
null
Spoken
1,322
3,376
#include <Nokia_LCD.h> #include <avr/sleep.h> #include <avr/power.h> #include <avr/wdt.h> #include <avr/interrupt.h> #include <avr/pgmspace.h> #include <stdint.h> #include "bitmaps.hpp" #include "tips.hpp" enum WatchDogTimeout { WDT_16ms = 0, WDT_32ms, WDT_64ms, WDT_128ms, WDT_250ms, WDT_500ms, WDT_1sec,...
32,918
https://github.com/AY2021S2-CS2103T-W13-2/tp/blob/master/src/main/java/seedu/smartlib/model/book/Author.java
Github Open Source
Open Source
LicenseRef-scancode-other-permissive, MIT
2,021
tp
AY2021S2-CS2103T-W13-2
Java
Code
232
471
package seedu.smartlib.model.book; import seedu.smartlib.commons.core.name.Name; /** * Represents an author in SmartLib. */ public class Author { public static final String MESSAGE_CONSTRAINTS = "Author's names should only contain alphanumeric characters and spaces, and it should not be blank"; ...
52,676
https://github.com/City-of-Helsinki/berth-reservations-ui/blob/master/src/features/berthSwitchOffer/BerthSwitchOfferPageContainer.tsx
Github Open Source
Open Source
MIT
2,021
berth-reservations-ui
City-of-Helsinki
TypeScript
Code
159
562
import { useMutation } from '@apollo/react-hooks'; import { compose } from 'recompose'; import { LocalePush, withMatchParamsHandlers } from '../../common/utils/container'; import { getAccept, getOfferNumber } from '../../common/utils/urls'; import { AcceptBerthSwitchOffer, AcceptBerthSwitchOfferVariables } from '../__...
20,116
https://github.com/rishbhh/enigma-webs/blob/master/assets/resources/styles/less/core/_fonts.less
Github Open Source
Open Source
MIT
null
enigma-webs
rishbhh
Less
Code
202
1,390
@import url('https://fonts.googleapis.com/css2?family=Sarabun:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap'); // Freight-Disp-Pro @font-face { font-family: "Beatrice-Display-Light"; src: url(/fonts/BeatriceDisplay-Light.woff); } @font-f...
29,658
https://github.com/resibots/tsid/blob/master/exercizes/talos_conf.py
Github Open Source
Open Source
BSD-2-Clause, BSD-3-Clause
2,021
tsid
resibots
Python
Code
432
1,072
import os import pinocchio as pin import numpy as np from example_robot_data.robots_loader import getModelPath np.set_printoptions(precision=3, linewidth=200, suppress=True) LINE_WIDTH = 60 N_SIMULATION = 4000 # number of time steps simulated dt = 0.002 # controller time step lxp = 0.10 ...
16,193
https://github.com/fossabot/cubik3/blob/master/resources/js/components/AppNav.vue
Github Open Source
Open Source
MIT
null
cubik3
fossabot
Vue
Code
631
2,698
<template> <div> <nav class="sticky top-0 bg-gray-800 dark:bg-ngray-800"> <div class="container"> <div class="relative flex items-center justify-between h-16"> <div class="flex items-center"> <router-link to="/" class="flex-shrink-0 tex...
9,031
https://github.com/elados93/trex-core/blob/master/src/pal/common/common_mbuf.cpp
Github Open Source
Open Source
Apache-2.0, GPL-1.0-or-later, GPL-2.0-or-later, GPL-2.0-only
2,019
trex-core
elados93
C++
Code
160
459
/* Copyright (c) 2016-2016 Cisco Systems, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writ...
35,023
https://github.com/ruthmadeline2022/sdpa/blob/master/application/controllers/Program.php
Github Open Source
Open Source
MIT
null
sdpa
ruthmadeline2022
PHP
Code
202
1,254
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class program extends CI_Controller { public function __construct(){ parent::__construct(); $this->load->library('template'); $this->load->model('m_program'); $this->load->model('m_bidang'); $this->load->model('m_anggota'); date_default...
2,068
https://github.com/olivierthas/Programming-Essentials-2/blob/master/Werkcollege2/src/oefening3/Joke.java
Github Open Source
Open Source
MIT
2,022
Programming-Essentials-2
olivierthas
Java
Code
20
53
package oefening3; public class Joke { private String type; private JokeSub value; public JokeSub getValue() { return value; } }
18,927
https://github.com/KnyazkovAlexey/instagram/blob/master/views/instagram-posts/index.php
Github Open Source
Open Source
BSD-3-Clause
null
instagram
KnyazkovAlexey
PHP
Code
189
769
<?php use yii\web\View; use InstagramScraper\Model\Media; use yii\widgets\ActiveForm; use app\models\search\InstagramPostsSearch; use yii\widgets\Pjax; use yii\helpers\Html; /** * @var Media[] $posts * @var InstagramPostsSearch $search * @var $this View */ $this->title = Yii::t('app', 'Посты Instagram'); ?> <h1...
44,450
https://github.com/lifeng777/qinglong/blob/master/src/version.ts
Github Open Source
Open Source
MIT
2,021
qinglong
lifeng777
TypeScript
Code
22
86
export const version = '2.10.2'; export const changeLogLink = 'https://t.me/jiao_long/193'; export const changeLog = `2.10.2 版本说明 1. 修复openapi跳转 2. 修复基础镜像依赖 pip3 `;
43,496
https://github.com/google/vr180/blob/master/cpp/sensor_fusion/delayed_low_pass_filter_test.cc
Github Open Source
Open Source
Apache-2.0
2,022
vr180
google
C++
Code
262
933
// Copyright 2018 Google LLC // // 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 ...
43,676
https://github.com/GulajavaMinistudio/fastjson/blob/master/src/test/java/com/alibaba/json/bvt/serializer/JSONFieldTest_unwrapped_7.java
Github Open Source
Open Source
Apache-2.0
2,023
fastjson
GulajavaMinistudio
Java
Code
67
262
package com.alibaba.json.bvt.serializer; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.annotation.JSONField; import junit.framework.TestCase; import org.junit.Assert; import java.util.ArrayList; import java.util.List; public class JSONFieldTest_unwrapped_7 extends TestCase { public void test_jso...
32,181
https://github.com/Keneral/apackages/blob/master/providers/ContactsProvider/src/com/android/providers/contacts/util/PropertyUtils.java
Github Open Source
Open Source
Unlicense
2,019
apackages
Keneral
Java
Code
285
641
/* * Copyright (C) 2015 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
3,420
https://github.com/nyzeairs/modio-unity/blob/master/Runtime/API Objects/ModEvent.cs
Github Open Source
Open Source
MIT
2,021
modio-unity
nyzeairs
C#
Code
207
767
using System.Runtime.Serialization; using Newtonsoft.Json; namespace ModIO { [System.Serializable] public class ModEvent { // ---------[ FIELDS ]--------- /// <summary> /// Unique id of the event object. /// </summary> [JsonProperty("id")] public int id; ...
49,234
https://github.com/Xzya/CodeAbbeySolutions/blob/master/TicTacToe.py
Github Open Source
Open Source
MIT
2,022
CodeAbbeySolutions
Xzya
Python
Code
317
694
#input # 15 # 2 4 3 6 7 9 1 5 8 # 9 3 7 8 6 1 5 2 4 # 1 4 9 5 6 3 2 8 7 # 1 6 8 3 4 2 9 7 5 # 7 4 6 5 1 9 3 8 2 # 8 1 7 5 6 3 9 2 4 # 2 4 3 9 7 8 5 1 6 # 6 3 1 9 2 7 4 5 8 # 1 4 7 6 8 9 5 3 2 # 7 9 1 8 5 6 3 2 4 # 1 3 9 6 8 2 5 7 4 # 8 5 4 6 3 7 2 1 9 # 7 2 4 5 8 1 9 3 6 # 5 2 6 1 8 4 9 3 7 # 4 8 5 3 2 6 1 7 9 class G...
52,711
https://github.com/paketo-community/passenger/blob/master/build_test.go
Github Open Source
Open Source
Apache-2.0
null
passenger
paketo-community
Go
Code
417
2,522
package passenger_test import ( "bytes" "errors" "fmt" "os" "path/filepath" "testing" "time" "github.com/paketo-buildpacks/packit/v2" "github.com/paketo-buildpacks/packit/v2/chronos" "github.com/paketo-buildpacks/packit/v2/postal" "github.com/paketo-buildpacks/packit/v2/sbom" "github.com/paketo-buildpacks...
1,510
https://github.com/sahwar/pxlart/blob/master/pxlart.c
Github Open Source
Open Source
MIT
2,019
pxlart
sahwar
C
Code
367
1,445
#include <curses.h> #include <locale.h> #include <stdlib.h> #include <string.h> char *brush; int x, y; int maxy, maxx; int fg; int bg; int count = 2; WINDOW *draw_win; WINDOW *status_win; /* Creates a new window with dimensions `height` and `width` starting at `starty` and `startx` */ WINDOW *create_newwin(int he...
51,465
https://github.com/cholakadev/Exclu-CV/blob/master/front-end/exclu-cv/src/interfaces/work-experience.ts
Github Open Source
Open Source
MIT
null
Exclu-CV
cholakadev
TypeScript
Code
17
50
export interface IWorkExperience { company: string, start_date: Date, end_date: Date, position: string, project: string, skill: string, }
36,422
https://github.com/SkygearIO/skygear-server/blob/master/migrations/controller/1551252439_remove_record_gear.down.sql
Github Open Source
Open Source
Apache-2.0
2,022
skygear-server
SkygearIO
SQL
Code
18
28
ALTER TABLE app ADD record_version text NOT NULL; ALTER TABLE plan ADD record_enabled boolean NOT NULL DEFAULT FALSE;
39,284
https://github.com/kirjavascript/nibblrjr/blob/master/web/modules/styles/typography.scss
Github Open Source
Open Source
Unlicense
2,022
nibblrjr
kirjavascript
SCSS
Code
51
270
// ttf-hack https://github.com/source-foundry/Hack/blob/master/LICENSE.md @font-face { font-family: 'Hack'; src: url('/hack-regular-subset.woff2') format('woff2'); font-weight: 400; font-style: normal; } @font-face { font-family: 'Hack'; src: url('/hack-bold-subset.woff2') format('woff2'); font-weight: ...
32,235
https://github.com/liufeigit/IntelliJ-EmmyLua/blob/master/debugger/attach/windows/src/Debugger/DebugEvent.cpp
Github Open Source
Open Source
Apache-2.0
2,017
IntelliJ-EmmyLua
liufeigit
C++
Code
273
731
/* Decoda Copyright (C) 2007-2013 Unknown Worlds Entertainment, Inc. This file is part of Decoda. Decoda is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any...
52,844
https://github.com/wittywacker/edXPython/blob/master/pset3fingerex.py
Github Open Source
Open Source
Giftware
2,012
edXPython
wittywacker
Python
Code
411
980
def iterPower (base, exp): ''' base: int or float. exp: int >= 0 returns: int or float, base^exp ''' result = 1 if exp == 0: return result while exp > 0: result = result*base exp = exp - 1 return result def recurPower(base, exp): ''' base: int or float....
17,486
https://github.com/leonardkekang/awratest/blob/master/backend/lumen/app/Models/Log.php
Github Open Source
Open Source
MIT
2,021
awratest
leonardkekang
PHP
Code
57
187
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Log extends Model { /** * The attributes that are mass assignable * * @var array */ protected $fillable = [ 'table', 'action', 'old_value', 'new_value', 'created_by', 'updated_by', ]; public functio...
43,024