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/NattyNarwhal/N400/blob/master/N400/Packets/DataQueueClearRequest.cs | Github Open Source | Open Source | MIT | 2,018 | N400 | NattyNarwhal | C# | Code | 105 | 288 | using N400.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace N400.Packets
{
internal class DataQueueClearRequest : DataQueueRequestBase
{
const ushort ID = 0x0006;
const ushort KEY = 0x5002;
public b... | 27,700 |
https://github.com/shwaka/ZpdicShaleian/blob/master/renderer/module/dictionary/saver/old-shaleian-saver.ts | Github Open Source | Open Source | MIT | null | ZpdicShaleian | shwaka | TypeScript | Code | 439 | 1,568 | //
import fs from "fs";
import {
WriteStream
} from "fs";
import {
Dictionary
} from "../dictionary";
import {
DictionarySettings
} from "../dictionary-settings";
import {
InformationKindUtil
} from "../information-kind";
import {
ParsedWord
} from "../parsed-word";
import {
MarkupResolver,
Parser
} from... | 9,952 |
https://github.com/LisandroGuerra/lauchbase/blob/master/challenges/challenge-1/challenge1-1/bmi.js | Github Open Source | Open Source | MIT | 2,020 | lauchbase | LisandroGuerra | JavaScript | Code | 43 | 96 | // Body Mass Index (BMI)
const name = 'Lisandro';
const weight = 90;
const height = 1.82;
const bmi = weight / (height * height);
if (bmi >= 30) {
console.log(`${name}, you are overweight.`);
}
else {
console.log(`${name}, you are not overweight.`);
}
| 40,092 |
https://github.com/marcelhesse1337/npmflashbang/blob/master/client/src/actions/attacks.js | Github Open Source | Open Source | BSD-3-Clause | 2,018 | npmflashbang | marcelhesse1337 | JavaScript | Code | 90 | 266 | import * as types from './types';
export const showAttack = (attackId) => {
return {
type: types.SHOW_ATTACK,
attackId
};
}
export const setAttacks = (attacks) => {
return {
type: types.SET_ATTACKS,
attacks
};
}
export const setPendingAttackEdits = (attack) => {
return {
type: types.SET... | 35,363 |
https://github.com/nathankleyn/advent-of-code-2015/blob/master/ruby/lib/adventofcode/day_20/part_2.rb | Github Open Source | Open Source | MIT | 2,015 | advent-of-code-2015 | nathankleyn | Ruby | Code | 64 | 182 | module AdventOfCode
module Day20
# Solution to the exercise from Day 20 (http://adventofcode.com/day/20).
# This is part 2.
class Part2
def run(input)
houses(input).take_while { |presents| presents < input }.length + 1
end
private
def houses(max_score)
1.upto(max_... | 51,531 |
https://github.com/gyaikhom/monte-carlo-particle-simulator/blob/master/csg.w | Github Open Source | Open Source | MIT | 2,018 | monte-carlo-particle-simulator | gyaikhom | C | Code | 14,788 | 32,237 | @q This file is part of the Monte Carlo Simulator (c) G. Yaikhom, Cardiff University 2011, 2012 @>
@** Constructive Solid Geometry.
During a simulation event, the tracking of a particle's trajectory
happens inside a closed three-dimensional simulation world composed of
solids. Each of these solids is defined by a {\sl... | 34,575 |
https://github.com/emptyland/nyaa/blob/master/src/base/arenas.cc | Github Open Source | Open Source | BSD-2-Clause | null | nyaa | emptyland | C++ | Code | 361 | 1,288 | #include "base/arenas.h"
#include "base/slice.h"
namespace nyaa {
namespace base {
/*static*/ StandaloneArena::PageHead *const StandaloneArena::kBusyFlag =
reinterpret_cast<StandaloneArena::PageHead *>(0x1);
/*virtual*/ StandaloneArena::~StandaloneArena() { Purge(false); }
/*virtual*/ void *StandaloneArena::Al... | 9,054 |
https://github.com/xzoert/dedalus/blob/master/dedalus/TagCloud.py | Github Open Source | Open Source | MIT | null | dedalus | xzoert | Python | Code | 56 | 305 | from .Tag import Tag
class TagCloud:
def __init__(self,cloudData):
self.tags=[]
minw=None
maxw=None
for tagData in cloudData:
tag=TagCloudTag(self,tagData)
self.tags.append(tag)
if minw is None or tag.weight<minw:
minw=tag.weight
if maxw is None or tag.weight>maxw:
maxw=tag.weight
if ma... | 48,538 |
https://github.com/muradmikayilzadeh/Fitness-Backend/blob/master/app/Models/Classroom.php | Github Open Source | Open Source | MIT | null | Fitness-Backend | muradmikayilzadeh | PHP | Code | 43 | 184 | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Classroom extends Model
{
use HasFactory;
protected $fillable = ['title','description','class_code','cover_photo','trainer_id'];
public function assignments()
{
r... | 40,696 |
https://github.com/mwaggett/deckofcards/blob/master/src/test/java/DeckTest.java | Github Open Source | Open Source | MIT, Unlicense | null | deckofcards | mwaggett | Java | Code | 138 | 521 | import org.junit.*;
import static org.junit.Assert.*;
public class DeckTest {
@Test
public void deck_initializesCorrectly_true() {
Deck testDeck = new Deck();
assertEquals(true, testDeck instanceof Deck);
}
@Test
public void getTopCard_isAceOfSpades_true() {
Deck testDeck = new Deck();
Card... | 47,629 |
https://github.com/luotianwen/akec/blob/master/src/main/java/com/thinkgem/jeesite/modules/akec/entity/Dealer.java | Github Open Source | Open Source | Apache-2.0 | null | akec | luotianwen | Java | Code | 415 | 1,544 | /**
* Copyright © 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.thinkgem.jeesite.modules.akec.entity;
import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.common.persistence.DataEntity;
/**
* 经销商信息Entity
* @author 经销商信息
* @... | 2,344 |
https://github.com/migueldeicaza/corefx/blob/master/src/System.Net.NetworkInformation/src/System/Net/NetworkInformation/LinuxTcpStatistics.cs | Github Open Source | Open Source | MIT | 2,016 | corefx | migueldeicaza | C# | Code | 231 | 585 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace System.Net.NetworkInformation
{
internal class LinuxTcpStatistics : TcpStatistics
{
private readonly TcpGlobalStatisticsTable _table;
... | 49,489 |
https://github.com/mtbnoob/SLIM/blob/master/resources/views/player/create.blade.php | Github Open Source | Open Source | MIT | null | SLIM | mtbnoob | PHP | Code | 74 | 381 | @extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-10 col-md-offset-1">
<div class="panel panel-default">
<div class="panel-heading">
<a href="{{ url('/league') }}">Leagues</a>\
<a href... | 43,946 |
https://github.com/danieldyachenko/formio.js/blob/master/lib/providers/address/AddressProvider.js | Github Open Source | Open Source | MIT | null | formio.js | danieldyachenko | JavaScript | Code | 658 | 1,975 | "use strict";
require("core-js/modules/es.symbol.js");
require("core-js/modules/es.symbol.description.js");
require("core-js/modules/es.object.to-string.js");
require("core-js/modules/es.symbol.iterator.js");
require("core-js/modules/es.array.iterator.js");
require("core-js/modules/es.string.iterator.js");
requi... | 38,227 |
https://github.com/theronaldostar/boteasy-dom/blob/master/index.d.ts | Github Open Source | Open Source | MIT | 2,021 | boteasy-dom | theronaldostar | TypeScript | Code | 778 | 1,316 | /**
* @license BoteasyDOM
* @file index.d.ts
*
* @copyright (c) since 2020 Boteasy, all rights reserved.
*/
export as namespace BoteasyDOM;
/**
* @description a boteasy-dom version
*/
export declare const version: String;
/**
* @description Fragment for components
*/
export declare const Fragment: Number;
/*... | 30,162 |
https://github.com/pjt1988/Elemental/blob/master/include/El/core.h | Github Open Source | Open Source | Apache-2.0 | 2,022 | Elemental | pjt1988 | C | Code | 107 | 445 | /*
Copyright (c) 2009-2016, Jack Poulson
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
#ifndef EL_CORE_C_H
#define EL_CORE_C_H
#include <mpi.... | 31,936 |
https://github.com/MyPureCloud/platform-client-sdk-ios/blob/master/build/src/Models/DocumentArticle.swift | Github Open Source | Open Source | MIT | null | platform-client-sdk-ios | MyPureCloud | Swift | Code | 85 | 187 | //
// DocumentArticle.swift
//
// Generated by swagger-codegen
// https://github.com/swagger-api/swagger-codegen
//
import Foundation
public class DocumentArticle: Codable {
/** The title of the Article. */
public var title: String?
/** The content of the Article. */
public var content: ArticleCont... | 41,168 |
https://github.com/Lostelle/AdvancedSong/blob/master/old/ASong/AboutDialog.cs | Github Open Source | Open Source | MIT | 2,020 | AdvancedSong | Lostelle | C# | Code | 55 | 168 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace ASong
{
public partial class AboutDialog : Form
{
public AboutDialog()
{
InitializeCompo... | 31,022 |
https://github.com/mendol1033/AppProfil/blob/master/application/models/login_model.php | Github Open Source | Open Source | MIT | null | AppProfil | mendol1033 | PHP | Code | 251 | 1,011 | <?php
if(!defined('BASEPATH'))exit('No direct script access allowed');
class Login_model extends CI_Model {
public function __construct(){
parent::__construct();
$this->load->database('default',true);
$this->load->library('Jquery_validation');
$this->load->database();
}
public function cek_user(){
$user... | 16,672 |
https://github.com/ljcollins25/Codeground/blob/master/src/UnoApp/UnoDecompile/Uno.UI/Uno.UI/ResourceResolver.cs | Github Open Source | Open Source | MIT | null | Codeground | ljcollins25 | C# | Code | 1,033 | 3,760 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using Uno.Diagnostics.Eventing;
using Uno.Extensions;
using Uno.Foundation.Logging;
using Uno.UI.DataBinding;
using Uno.UI.Xaml;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Re... | 41,339 |
https://github.com/shndrs/Generic-Tutorial/blob/master/CalendarView/CalendarView/AppDelegate.swift | Github Open Source | Open Source | MIT | 2,019 | Generic-Tutorial | shndrs | Swift | Code | 299 | 880 | //
// AppDelegate.swift
// CalendarView
//
// Created by shndrs on 2/16/21.
//
import UIKit
import UserNotifications
@main
class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate {
private lazy var center: UNUserNotificationCenter = {
let temp = UNUserNotificationCenter... | 20,828 |
https://github.com/tanhimislam/graph4nlp/blob/master/examples/pytorch/text_classification/data/trec/data_preparation.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | graph4nlp | tanhimislam | Python | Code | 36 | 145 | import sys
import chardet
fin = open(sys.argv[1], 'rb')
fout = open(sys.argv[2], 'w')
for line in fin:
try:
line = line.decode('utf-8')
except:
line = line.decode(chardet.detect(line)['encoding'])
data = line.strip().split()
text = ' '.join(data[1:])
label = data[0].split(':')[0]
... | 19,442 |
https://github.com/trueparallels/cfb-guide-frontend/blob/master/src/components/final.js | Github Open Source | Open Source | MIT | null | cfb-guide-frontend | trueparallels | JavaScript | Code | 123 | 431 | import React from 'react'
import TeamImage from './teamimage';
import {
visitorWinner,
homeWinner,
visitorFinalScore,
homeFinalScore,
getVisitorTeamLocation,
getHomeTeamLocation
} from '../utils/game-utils'
const Final = (props) => {
const { game } = props
const { homeTeam, visitorTeam } = game
con... | 21,438 |
https://github.com/tksuoran/renderstack_net/blob/master/examples/RenderStack/example.Renderer/IPhysicsObject.cs | Github Open Source | Open Source | MIT | 2,020 | renderstack_net | tksuoran | C# | Code | 85 | 182 | using RenderStack.Scene;
using RenderStack.Physics;
namespace example.Renderer
{
// \brief Interface to allow Models to act as physics objects
// \note This will probably be removed from example.Renderer namespace eventually
public interface IPhysicsObject
{
Frame Frame { get; ... | 20,962 |
https://github.com/dude719/OOLua/blob/master/docs/oolua__registration__fwd_8h.js | Github Open Source | Open Source | MIT | 2,021 | OOLua | dude719 | JavaScript | Code | 15 | 112 | var oolua__registration__fwd_8h =
[
[ "register_class", "oolua__registration__fwd_8h.html#aa2ebc6bf25edab43f017d83b0a98f730", null ],
[ "register_class_static", "oolua__registration__fwd_8h.html#ab2bce269db5f5705f105ca70c0c20705", null ]
]; | 3,412 |
https://github.com/tmmatt/-/blob/master/src/BaseCodeBuilder.php | Github Open Source | Open Source | BSD-3-Clause | null | - | tmmatt | PHP | Code | 1,220 | 3,046 | <?hh // strict
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
... | 17,356 |
https://github.com/marlorodrigues/SpaceThing/blob/master/src/models/tags.js | Github Open Source | Open Source | MIT | null | SpaceThing | marlorodrigues | JavaScript | Code | 32 | 95 | const mongoose = require('../database/index');
const tagSchema = new mongoose.Schema({
name: {
type: String,
require: true
},
createAt: {
type: Date,
default: Date.now
}
})
const Tags = mongoose.model('Tags', tagSchema);
module.exports = Tags;
| 12,925 |
https://github.com/jackgoldsmith4/hail/blob/master/src/main/scala/is/hail/expr/CompilationHelp.scala | Github Open Source | Open Source | MIT | 2,018 | hail | jackgoldsmith4 | Scala | Code | 141 | 683 | package is.hail.expr
import is.hail.asm4s._
import is.hail.expr.types._
import org.objectweb.asm.Opcodes._
import org.objectweb.asm.tree.{AbstractInsnNode, InsnNode}
import scala.collection.generic.Growable
import scala.collection.mutable
import scala.reflect.ClassTag
// Without this, we can't use invokeStatic with ... | 40,244 |
https://github.com/GatlinR/javascript-challenge/blob/master/UFO-level-2/static/js/app.js | Github Open Source | Open Source | ADSL | null | javascript-challenge | GatlinR | JavaScript | Code | 7 | 14 | // from data.js
var tableData = data;
| 33,523 |
https://github.com/seclerp/resharper-fsharp/blob/master/ReSharper.FSharp/src/FSharp.TypeProviders.Protocol/src/Cache/DependentProvidedTypesCache.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | resharper-fsharp | seclerp | C# | Code | 92 | 366 | using JetBrains.Rd.Tasks;
using JetBrains.ReSharper.Plugins.FSharp.TypeProviders.Protocol.Exceptions;
using static FSharp.Compiler.ExtensionTyping;
namespace JetBrains.ReSharper.Plugins.FSharp.TypeProviders.Protocol.Cache
{
public class DependentProvidedTypesCache<TKey, TArg> : ProvidedEntitiesCacheBase<ProvidedType... | 6,742 |
https://github.com/postmanlabs/postman-code-generators/blob/master/codegens/shell-httpie/scripts/test-unit.sh | Github Open Source | Open Source | Apache-2.0 | 2,023 | postman-code-generators | postmanlabs | Shell | Code | 148 | 406 | #!/bin/bash
# ----------------------------------------------------------------------------------------------------------------------
# This script is intended to execute all app and repository unit and integration tests.
# -------------------------------------------------------------------------------------------------... | 18,416 |
https://github.com/wukuili/myCinema/blob/master/src/constents/Constonts.js | Github Open Source | Open Source | MIT | null | myCinema | wukuili | JavaScript | Code | 9 | 43 | export const HOST_URL='http://www.pupudy.com';
export const NAVIGATE_DETAIL='Detail';
export const NAVIGATE_PLAY='Play'; | 43,039 |
https://github.com/mgm1338/jentry/blob/master/core/src/main/java/core/NumberUtil.java | Github Open Source | Open Source | MIT | 2,018 | jentry | mgm1338 | Java | Code | 331 | 548 | package core;
/**
* Copyright 1/27/13
* All rights reserved.
* <p/>
* User: Max Miller
* Created: 1/27/13
*/
public class NumberUtil
{
/**
* Mask used for right, for when inserting need to cast as long. This will convert the right
* to a long in twos complement. This viewed as hex is 0000 0000 FFF... | 48,103 |
https://github.com/hemantmurthy/mdgen/blob/master/mdgen/src/hamy/mdgen/api/generator/format/aseXML/NetworkInvoiceData.java | Github Open Source | Open Source | MIT | null | mdgen | hemantmurthy | Java | Code | 922 | 2,746 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2020.03.... | 46,676 |
https://github.com/pvnetto/Kanban-Gaming-Board-React/blob/master/react-ui/src/components/dispatchers/tasks/backlog/backlog-reducer.js | Github Open Source | Open Source | MIT | null | Kanban-Gaming-Board-React | pvnetto | JavaScript | Code | 125 | 488 | import { FETCH_BACKLOG_TASKS_SUCCESS, ADD_TASK_BACKLOG_SUCCESS, BACKLOG_PENDING, BACKLOG_ERROR, REMOVE_TASK_BACKLOG_SUCCESS, UPDATE_TASKS_BACKLOG_SUCCESS } from './backlog-types';
const defaultState = { tasks: {}, isPending: false, };
const backlogTasksReducer = (state = defaultState, action) => {
switch (action.t... | 596 |
https://github.com/lauracristinaes/aula-java/blob/master/hibernate-release-5.3.7.Final/project/hibernate-envers/src/main/java/org/hibernate/envers/NotAudited.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | aula-java | lauracristinaes | Java | Code | 72 | 210 | /*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.envers;
import java.lang.annotation.ElementType;
import java... | 24,983 |
https://github.com/jsdelivrbot/P7.Core-2.0/blob/master/src/A.OIDC/Views/_ViewImports.cshtml | Github Open Source | Open Source | MIT | 2,017 | P7.Core-2.0 | jsdelivrbot | C# | Code | 13 | 76 | @using Microsoft.AspNetCore.Identity
@using A.OIDC
@using A.OIDC.Models
@using A.OIDC.Models.AccountViewModels
@using A.OIDC.Models.ManageViewModels
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
| 36,533 |
https://github.com/Zeta-Project/zeta/blob/master/api/server/app/de/htwg/zeta/server/routing/RouteController.scala | Github Open Source | Open Source | BSD-2-Clause | 2,020 | zeta | Zeta-Project | Scala | Code | 931 | 4,388 | package de.htwg.zeta.server.routing
import java.util.UUID
import controllers.Assets
import de.htwg.zeta.server.routing.authentication.AbstractAction
import de.htwg.zeta.server.routing.authentication.AbstractWebSocket
import de.htwg.zeta.server.routing.authentication.AuthenticatedAction
import de.htwg.zeta.server.rout... | 4,052 |
https://github.com/SundownEffect/HSFL_LatestNewsNotification/blob/master/setup_sqlite3.py | Github Open Source | Open Source | MIT | 2,020 | HSFL_LatestNewsNotification | SundownEffect | Python | Code | 129 | 395 | import sqlite3
from sqlite3 import Error
db_file = 'hsfl_lnn.db'
sql_setup = [['CREATE TABLE "latestGrades" ( `id` INTEGER PRIMARY KEY AUTOINCREMENT, `courseid` INTEGER UNIQUE, `course` TEXT NOT NULL, `study_course` TEXT, `study_course_id` TEXT, `file` BLOB, `timestamp` TEXT )'],
['CREATE TABLE "latestNews" (... | 16,300 |
https://github.com/ffanez/SI4735/blob/master/extras/apidoc/html/search/variables_7.js | Github Open Source | Open Source | MIT | 2,020 | SI4735 | ffanez | JavaScript | Code | 6 | 129 | var searchData=
[
['maxdelayafterpouwerup_663',['maxDelayAfterPouwerUp',['../class_s_i4735.html#a7ce25193b7f254c75967568967ba4d85',1,'SI4735']]],
['maxdelaysetfrequency_664',['maxDelaySetFrequency',['../class_s_i4735.html#a5f101b95b6fc5127b9e9d92a21f44ab6',1,'SI4735']]]
];
| 36,659 |
https://github.com/davidpirogov/entitystorage/blob/master/entitystorage/src/main/java/com/davidcalculli/entitystorage/Domain.java | Github Open Source | Open Source | MIT | 2,019 | entitystorage | davidpirogov | Java | Code | 421 | 1,102 | package com.davidcalculli.entitystorage;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.URI;
import java.util.HashMap;
import java.util.Set;
import org.apac... | 25,099 |
https://github.com/Tedowski/mailer/blob/master/server/src/tests/getInboxTest.test.js | Github Open Source | Open Source | MIT | null | mailer | Tedowski | JavaScript | Code | 57 | 164 | const request = require('../routes');
const app = require('../app');
describe('getInbox', () => {
it('succeeds with retrieved inbox', async () => {
const response = await get('inbox')
.expect(200);
})
});
// a helper function to make a GET request.
function get(url){
const httpReques... | 9,822 |
https://github.com/PocketSwift/JinsokuTemplates/blob/master/Templates/Viper/module/FirstModuleInjection.swift | Github Open Source | Open Source | MIT | null | JinsokuTemplates | PocketSwift | Swift | Code | 108 | 405 | //
// FirstModuleInjection.swift
// ViperStudies
//
// Created by omar megdadi on 2/9/17.
// Copyright © 2017 NSStudent. All rights reserved.
//
import Foundation
class FirstModuleInjection {
func setup(container: Swinject.Container)
container.register(FirstModuleInteractorProtocol.self){ _ in
... | 43,889 |
https://github.com/hpi-swa-teaching/SWA-Course-Management/blob/master/packages/Project15-Core.package/CMSDeadline.class/instance/renderDateInputOn..st | Github Open Source | Open Source | MIT | null | SWA-Course-Management | hpi-swa-teaching | null | Spoken | 12 | 40 | rendering
renderDateInputOn: html
self renderDayInputOn: html.
self renderMonthInputOn: html.
self renderYearInputOn: html | 4,884 |
https://github.com/plainpicture/spelling/blob/master/src/main/java/com/flakks/spelling/Sonnex.java | Github Open Source | Open Source | MIT | 2,018 | spelling | plainpicture | Java | Code | 297 | 1,284 |
package com.flakks.spelling;
import java.util.HashMap;
import java.util.Map;
class SonnexTrieNode {
public Map<Character, SonnexTrieNode> children;
public String output;
public SonnexTrieNode() {
children = new HashMap<Character, SonnexTrieNode>();
}
public void insert(String input, String output) {
Son... | 48,761 |
https://github.com/stjordanis/lightning-1/blob/master/lnd_methods/peers/index.js | Github Open Source | Open Source | MIT | 2,020 | lightning-1 | stjordanis | JavaScript | Code | 12 | 39 | const addPeer = require('./add_peer');
const getPeers = require('./get_peers');
module.exports = {addPeer, getPeers};
| 41,416 |
https://github.com/anikethsaha/style-perfectionist/blob/master/src/prefixedDecls.js | Github Open Source | Open Source | MIT | 2,020 | style-perfectionist | anikethsaha | JavaScript | Code | 30 | 88 | import vendors from "vendors";
const prefixes = vendors.map((vendor) => `-${vendor}-`);
export default function prefixedDeclarations({ nodes }) {
const prefix = (node) =>
prefixes.some((p) => node.prop && !node.prop.indexOf(p));
return nodes.filter(prefix);
}
| 4,667 |
https://github.com/YaguangZhang/CellCoverageMapperForDronesMatlabWorkspace/blob/master/5_SimulationForExtendedTipp/simulateChannelForExtendedTipp.m | Github Open Source | Open Source | MIT | 2,023 | CellCoverageMapperForDronesMatlabWorkspace | YaguangZhang | MATLAB | Code | 1,857 | 5,169 | % SIMULATECHANNELFOREXTENDEDTIPP Generate the coverage and blockage maps
% for area around Tippecanoe County, Indiana. We will consider counties in
% the Wabash Heartland Innovation Network, with an extended area to
% consider cellular towers around.
%
% This simulator has configuration presets available for carrying o... | 11,931 |
https://github.com/not-kmahone/microsoft-ui-xaml/blob/master/dev/PullToRefresh/RefreshContainer/TestUI/ImageIRefreshInfoProviderAdapter.cs | Github Open Source | Open Source | MIT | 2,020 | microsoft-ui-xaml | not-kmahone | C# | Code | 729 | 2,882 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using System.Numerics;
using Windows.Devices.Input;
using Windows.Foundation;
using Windows.UI.Composition;
using Windows.UI.Composition.Interactions;
... | 18,981 |
https://github.com/facebook/hhvm/blob/master/hphp/hack/test/decl/inout.php | Github Open Source | Open Source | PHP-3.01, Zend-2.0, MIT | 2,023 | hhvm | facebook | Hack | Code | 10 | 24 | <?hh // strict
function f((function(inout int): void) $f): void {}
| 2,949 |
https://github.com/faceyspacey/transition-group/blob/master/__tests__/components.js | Github Open Source | Open Source | MIT | 2,017 | transition-group | faceyspacey | JavaScript | Code | 508 | 1,839 | import createApp from '../__test-helpers__/createApp'
import allProps from '../__test-helpers__/allProps'
jest.mock('../src/dom-utils', () => ({
addClass: (component, className, name) => {
const log = { method: 'addClass', className, name }
console.log(log)
expect(log).toMatchSnapshot()
},
removeAni... | 27,592 |
https://github.com/vascofazza/computer_graphics-Pathtrace/blob/master/src/pathtrace.cpp | Github Open Source | Open Source | MIT | 2,021 | computer_graphics-Pathtrace | vascofazza | C++ | Code | 3,308 | 11,661 | #include "scene.h"
#include "intersect.h"
#include "montecarlo.h"
#include "tesselation.h"
#include "animation.h"
#include "yocto_obj.h"
#include <thread>
using std::thread;
static const vec3f half3f = one3f/2.f;
static float russian_th = 0.1f;
vec3f get_random_point_triangle(Mesh* mesh, vec3i tri, std::minstd_rand... | 37,362 |
https://github.com/bitia-ru/melq/blob/master/frontend/src/v1/components/icon_buttons/SmallCloseButton/SmallCloseButtonLayout.jsx | Github Open Source | Open Source | MIT | 2,022 | melq | bitia-ru | null | Spoken | 121 | 438 | import React from 'react';
import PropTypes from 'prop-types';
import { StyleSheet } from '../../../aphrodite';
import { errorColor, bgColor } from '@/v1/theme';
import Icon from '@/v1/components/Icon/Icon';
const styles = StyleSheet.create({
smallCloseIcon: {
width: 17,
height: 17,
backgroundColor: erro... | 10,698 |
https://github.com/peteryang2016/peterTest/blob/master/typescriptDemo/modules/dbs.js | Github Open Source | Open Source | MIT | null | peterTest | peteryang2016 | JavaScript | Code | 39 | 113 | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var dbUrl = 'xxxx';
function getData() {
console.log('获取数据库的数据');
return [
{ title: '123' },
{ title: '456' },
];
}
exports.getData = getData;
function save() {
console.log('保存数据成功');
}
exports.save = save;
| 50,115 |
https://github.com/medismailben/llvm-project/blob/master/llvm/test/Other/available-externally-lto.ll | Github Open Source | Open Source | Apache-2.0 | 2,022 | llvm-project | medismailben | LLVM | Code | 109 | 257 | ; Ensure that we don't emit available_externally functions at -O2, unless
; -flto is present in which case we should preserve them for link-time inlining
; decisions.
; RUN: opt < %s -S -passes='default<O2>' | FileCheck %s
; RUN: opt < %s -S -passes='lto-pre-link<O2>' | FileCheck %s --check-prefix=LTO
@x = common loca... | 42,029 |
https://github.com/kevinlq/Qt-Creator-Opensource-Study/blob/master/qt-creator-opensource-src-4.6.1/src/plugins/clangcodemodel/clangcompletionassistprovider.cpp | Github Open Source | Open Source | MIT | 2,022 | Qt-Creator-Opensource-Study | kevinlq | C++ | Code | 256 | 753 | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance w... | 13,824 |
https://github.com/alrazamc/MatchMaker/blob/master/client/src/store/actions/memberActions.js | Github Open Source | Open Source | 2,023 | MatchMaker | alrazamc | JavaScript | Code | 113 | 359 | import axios from 'axios';
export const actionTypes = {
MEMBER_LOADING: 'memberLoading',
MEMBER_LOADING_SUCCESS: 'memberLoadingSuccess',
MEMBER_LOADING_ERROR: 'memberLoadingError'
}
export const loadMemberProfile = (profileId) => {
return async (dispatch, getState) => {
const state = getState();
let ... | 49,914 | |
https://github.com/marius1092/test/blob/master/src/Mba/UserBundle/Entity/User.php | Github Open Source | Open Source | MIT | 2,012 | test | marius1092 | PHP | Code | 147 | 456 | <?php
namespace Mba\UserBundle\Entity;
use Gedmo\Mapping\Annotation as Gedmo;
use FOS\UserBundle\Entity\User as BaseUser;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="users")
*/
class User extends BaseUser
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedVa... | 27,724 |
https://github.com/milochristiansen/rubble8/blob/master/std_lib/addons/User/Vanilla/Powered/Decorator/user_powered_decorator.pre.lua | Github Open Source | Open Source | MIT | 2,021 | rubble8 | milochristiansen | Lua | Code | 12 | 92 |
local wshop = require("libs_powered").NewWShop("DFHACK_POWERED_DECORATOR", "Powered Decorator")
wshop.ExtraItems = [[
[BUILD_ITEM:2:TRAPCOMP:ITEM_TRAPCOMP_MECHANICAL_ARM:NONE:NONE]
[CAN_USE_ARTIFACT]
]]
| 6,982 |
https://github.com/schnelle14/hoys2/blob/master/themes/pixelgreen/templates/Includes/Navigation.ss | Github Open Source | Open Source | BSD-3-Clause | 2,014 | hoys2 | schnelle14 | Scheme | Code | 23 | 94 | <!-- Menu Tabs -->
<ul class="navtext">
<% control Menu(1) %>
<li class="navtext"><span><a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode">$MenuTitle</a></span></li>
<% end_control %>
</ul> | 8,112 |
https://github.com/camunda/camunda-bpm-platform/blob/master/webapps/frontend/ui/cockpit/client/scripts/repository/deployments/plugins/actions/delete/modals/unit-tests/cam-cockpit-delete-deployment-modal-ctrl.spec.js | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-generic-cla, LicenseRef-scancode-unknown-license-reference | 2,023 | camunda-bpm-platform | camunda | JavaScript | Code | 381 | 996 | /*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
* Version 2.0; y... | 39,297 |
https://github.com/Sid8519/ortelius/blob/master/services/rewards/rewards_handler.go | Github Open Source | Open Source | BSD-3-Clause | null | ortelius | Sid8519 | Go | Code | 439 | 1,852 | package rewards
import (
"context"
"fmt"
"time"
"github.com/ava-labs/avalanchego/api"
"github.com/ava-labs/avalanchego/ids"
"github.com/ava-labs/avalanchego/utils/formatting"
avalancheGoAvax "github.com/ava-labs/avalanchego/vms/components/avax"
"github.com/ava-labs/avalanchego/vms/platformvm"
"github.com/ava... | 6,078 |
https://github.com/bienhuynh/MENU-GAME-CONTROL/blob/master/Source Code/Tool_Client_Control/SGP.HCBBOOK.GameMenu.UI/SGP.HCBBOOK.GameMenu.UI/FormPartial/MenuUserManage.Designer.cs | Github Open Source | Open Source | MIT | null | MENU-GAME-CONTROL | bienhuynh | C# | Code | 1,334 | 9,571 | namespace SGP.HCBBOOK.GameMenu.UI.FormPartial
{
partial class MenuUserManage
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
... | 10,872 |
https://github.com/huozhi/bunchee/blob/master/test/integration/multi-entries/src/client.ts | Github Open Source | Open Source | MIT | 2,023 | bunchee | huozhi | TypeScript | Code | 11 | 22 | export default function client(c: string) {
return 'client' + c
}
| 10,679 |
https://github.com/z-van-baars/IronWarden/blob/master/.import/3.png-20a917d835278572f0ab3a6eeac932f3.md5 | Github Open Source | Open Source | MIT | 2,021 | IronWarden | z-van-baars | null | Spoken | 2 | 53 | source_md5="e7732354975e4e05d288cb419a0c8bb8"
dest_md5="f7f0546c8502127281d9cca279abe47f"
| 13,028 |
https://github.com/garrizaldy/ubraa/blob/master/application/Bootstrap.php | Github Open Source | Open Source | Apache-2.0 | 2,017 | ubraa | garrizaldy | PHP | Code | 65 | 242 | <?php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
/**
* Initilizes Ubraa autoloading
*/
protected function _initUbraaAutoload()
{
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader->registerNamespace('Ubraa_');
}
protected function _initView()
{
// Init... | 20,823 |
https://github.com/hushilin/iOS1351Headers/blob/master/System/Library/PrivateFrameworks/SMBClientEngine.framework/SMBShare.h | Github Open Source | Open Source | MIT | 2,021 | iOS1351Headers | hushilin | Objective-C | Code | 488 | 1,791 | /*
* This header is generated by classdump-dyld 1.5
* on Wednesday, October 27, 2021 at 3:22:52 PM Mountain Standard Time
* Operating System: Version 13.5.1 (Build 17F80)
* Image Source: /System/Library/PrivateFrameworks/SMBClie... | 33,853 |
https://github.com/capyloon/api-daemon/blob/master/third-party/windows-sys/src/Windows/Win32/System/Diagnostics/Debug/mod.rs | Github Open Source | Open Source | Apache-2.0 | 2,022 | api-daemon | capyloon | Rust | Code | 20,000 | 83,909 | #[cfg(feature = "Win32_System_Diagnostics_Debug_WebApp")] pub mod WebApp; #[link(name = "windows")] extern "system" { #[doc = "*Required features: `\"Win32_System_Diagnostics_Debug\"`, `\"Win32_Foundation\"`, `\"Win32_System_Kernel\"`*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Kernel"))] pub fn ... | 27,349 |
https://github.com/DJMcoder/ctf-2019-problem-DiffEq/blob/master/server.js | Github Open Source | Open Source | MIT | null | ctf-2019-problem-DiffEq | DJMcoder | JavaScript | Code | 308 | 902 | "use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in m... | 3,217 |
https://github.com/njoy/interpolation/blob/master/src/interpolation/Interpolant/LinearLinear/test/LinearLinear.test.cpp | Github Open Source | Open Source | BSD-2-Clause | 2,020 | interpolation | njoy | C++ | Code | 230 | 592 | #define CATCH_CONFIG_MAIN
#include "catch.hpp"
#include "interpolation.hpp"
#include "dimwits.hpp"
using namespace njoy::interpolation;
using namespace dimwits;
SCENARIO("The LinearLinear interpolant computes the correct value",
"[interpolant], [LinearLinear]"){
double xLeft = 0.0, xRight = 1.0;
auto f... | 937 |
https://github.com/perbaltzar/photoify/blob/master/app/posts/edit.php | Github Open Source | Open Source | MIT | null | photoify | perbaltzar | PHP | Code | 107 | 439 | <?php
declare(strict_types=1);
require __DIR__.'/../autoload.php';
// Check if user is logged in
if (!is_logged_in()) {
$_SESSION['error'] = "Please log in and try again!";
redirect('/');
}
if (isset($_GET['post_id'], $_POST['description'])) {
$post_id = (int) filter_var($_GET['post_id'], FILTER_VALIDAT... | 5,288 |
https://github.com/impedimentToProgress/UCI-BlueChip/blob/master/snapgear_linux/lib/libldap/libraries/libldap/sbind.c | Github Open Source | Open Source | MIT | null | UCI-BlueChip | impedimentToProgress | C | Code | 403 | 1,130 | /* $OpenLDAP: pkg/ldap/libraries/libldap/sbind.c,v 1.16.2.3 2003/03/03 17:10:05 kurt Exp $ */
/*
* Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
*/
/* Portions
* Copyright (c) 1993 Regents of the University of Michigan.
* All rights reserved.
... | 29,039 |
https://github.com/p47t/sourcegraph/blob/master/web/src/search/FilterChip.scss | Github Open Source | Open Source | Apache-2.0 | 2,019 | sourcegraph | p47t | SCSS | Code | 121 | 511 | .filter-chip {
padding: 0 0.25rem;
border-radius: 2px;
margin: 0.25rem 0.5rem 0.25rem 0;
.theme-dark & {
background: $color-bg-2;
border-color: $color-border;
color: $color-text-1;
}
.theme-light & {
color: $color-light-text-1;
background: transparent;
... | 52,378 |
https://github.com/varijkapil13/atlaskit/blob/master/packages/core/flag/src/components/AutoDismissFlag/index.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | atlaskit | varijkapil13 | JavaScript | Code | 158 | 635 | // @flow
import React, { Component } from 'react';
import Flag from '../Flag';
import type { AutoDismissFlagProps } from '../../types';
export const AUTO_DISMISS_SECONDS = 8;
export default class AutoDismissFlag extends Component<
AutoDismissFlagProps,
{},
> {
props: AutoDismissFlagProps; // eslint-disable-line... | 8,454 |
https://github.com/blackoo00/my-store2.0/blob/master/client/common/store/configureStore.dev.js | Github Open Source | Open Source | MIT | null | my-store2.0 | blackoo00 | JavaScript | Code | 59 | 214 | import {applyMiddleware, compose, createStore} from 'redux'
import thunk from 'redux-thunk'
import rootReducer from '../reducers'
// import DevTools from '../containers/DevTools'
import { composeWithDevTools } from 'redux-devtools-extension';//devToolsEnhancer,
export default function configureStore(preloadedState) {
... | 22,088 |
https://github.com/mvitale1989/mattermost-mattermod/blob/master/store/sql_store_test.go | Github Open Source | Open Source | Apache-2.0 | null | mattermost-mattermod | mvitale1989 | Go | Code | 215 | 850 | package store
import (
"database/sql"
"fmt"
"os"
"testing"
"github.com/go-sql-driver/mysql"
)
const (
defaultMysqlDSN = "mattermod:mattermod@tcp(mysql:3306)/mattermost_mattermod_test?charset=utf8mb4,utf8&readTimeout=30s&writeTimeout=30s&parseTime=true&multiStatements=true"
defaultMysqlRootUser = "r... | 44,972 |
https://github.com/jensmcatanho/iris/blob/master/docs/dir_4cbbb18f7ed060035a6dd9155080e669.js | Github Open Source | Open Source | MIT | 2,020 | iris | jensmcatanho | JavaScript | Code | 20 | 101 | var dir_4cbbb18f7ed060035a6dd9155080e669 =
[
[ "BRDF.h", "_b_r_d_f_8h.html", null ],
[ "GlossySpecular.h", "_glossy_specular_8h.html", null ],
[ "Lambertian.h", "_lambertian_8h.html", null ]
]; | 22,546 |
https://github.com/Joschi87/KrakenChat/blob/master/function/NewGroupChat.php | Github Open Source | Open Source | MIT | 2,019 | KrakenChat | Joschi87 | PHP | Code | 519 | 2,729 | <!DOCTYPE html>
<html>
<head>
<title>Projekt 360°</title>
<meta charset="utf-8" />
<link href="../style.css" type="text/css" rel="stylesheet" />
<?php require_once("connection.php");?>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<?php
$User = $_GET["U... | 46,000 |
https://github.com/Dismaaal/Capstone/blob/master/KerrimoV2/Kerrimo/frmSalesLog.Designer.cs | Github Open Source | Open Source | MIT | 2,016 | Capstone | Dismaaal | C# | Code | 981 | 4,654 | namespace Kerrimo
{
partial class frmSalesLog
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <para... | 4,554 |
https://github.com/tvdijen/OpenConext-engineblock/blob/master/src/OpenConext/EngineBlockFunctionalTestingBundle/Validator/SsoRequestValidator.php | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | OpenConext-engineblock | tvdijen | PHP | Code | 160 | 340 | <?php
/**
* Copyright 2010 SURFnet B.V.
*
* 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... | 48,401 |
https://github.com/janelznic/insights-frontend-components/blob/master/src/SmartComponents/Inventory/applications/compliance/SystemPolicyCard.js | Github Open Source | Open Source | Apache-2.0 | null | insights-frontend-components | janelznic | JavaScript | Code | 184 | 591 | import React from 'react';
import { CheckCircleIcon, ExclamationCircleIcon } from '@patternfly/react-icons';
import {
Card,
CardBody,
CardFooter,
Text,
TextContent,
TextVariants
} from '@patternfly/react-core';
import PropTypes from 'prop-types';
class SystemPolicyCard extends React.Component {... | 11,357 |
https://github.com/ZachHembree/BuildVision2/blob/master/BuildVision2/Data/Scripts/BuildVision2/Terminal/ScrollMenu/BvScrollMenu.cs | Github Open Source | Open Source | MIT | 2,022 | BuildVision2 | ZachHembree | C# | Code | 1,673 | 4,952 | using RichHudFramework;
using RichHudFramework.UI;
using RichHudFramework.UI.Client;
using RichHudFramework.UI.Rendering;
using Sandbox.ModAPI;
using System;
using System.Diagnostics;
using VRage.Game.ModAPI;
using VRageMath;
namespace DarkHelmet.BuildVision2
{
/// <summary>
/// Scrollable list menu; the selec... | 43,758 |
https://github.com/hanleijun/search-admin-ik/blob/master/src/main/java/org/elasticsearch/index/analysis/IkAnalyzerProvider.java | Github Open Source | Open Source | Apache-2.0 | null | search-admin-ik | hanleijun | Java | Code | 64 | 281 | package org.elasticsearch.index.analysis;
import org.elasticsearch.common.inject.Inject;
import org.elasticsearch.common.inject.assistedinject.Assisted;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.env.Environment;
import org.elasticsearch.index.Index;
import org.elasticsearch.index.sett... | 13,306 |
https://github.com/infrastructure-components/infrastructure-components/blob/master/src/components/attach-request.tsx | Github Open Source | Open Source | MIT | 2,020 | infrastructure-components | infrastructure-components | TSX | Code | 167 | 415 | declare var require: any;
import * as React from 'react';
// create empty context as default
const RequestContext = React.createContext({});
interface AttachRequestProps {
request?: any,
response?: any
}
/**
* This HOC attaches the req sent to the server down to the Components - on server side only, of cours... | 40,229 |
https://github.com/fynmanoj/fineract-cn-customer/blob/master/service/src/main/resources/db/migrations/postgresql/V7__documents.sql | Github Open Source | Open Source | Apache-2.0 | 2,021 | fineract-cn-customer | fynmanoj | SQL | Code | 223 | 468 | --
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you ... | 6,552 |
https://github.com/abrauchli/camshift/blob/master/CMakeLists.txt | Github Open Source | Open Source | MIT | 2,013 | camshift | abrauchli | CMake | Code | 17 | 66 | cmake_minimum_required(VERSION 2.8)
project( curvetrack )
find_package( OpenCV REQUIRED )
add_executable( curvetrack curvetrack.cpp )
target_link_libraries( curvetrack ${OpenCV_LIBS} )
| 13,308 |
https://github.com/efueger/salama/blob/master/test/typed/parfait/test_frame.rb | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,016 | salama | efueger | Ruby | Code | 33 | 130 | require_relative "../helper"
class TestFrames < MiniTest::Test
def setup
@frame = Register.machine.boot.space.first_message.frame
@type = @frame.get_type
end
def test_frame_get_type
assert_equal Parfait::Type , @type.class
end
def test_frame_next_set
@frame.next_frame = :next_frame
ass... | 31,551 |
https://github.com/ytaa/simplos/blob/master/kernel/src/tty.c | Github Open Source | Open Source | Zlib | null | simplos | ytaa | C | Code | 571 | 2,150 | #include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include <kernel/tty.h>
#include <sys/io.h>
static size_t tty_vga_row;
static size_t tty_vga_column;
static uint8_t tty_vga_color;
static uint16_t* tty_vga_buffer;
static uint16_t tty_buffer[TTY_WIDTH * TTY_HEIGHT];
static vga_color tty... | 30,617 |
https://github.com/sonataruby/vsmart-crypto/blob/master/public/game/js/classes/shots/Laser.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | vsmart-crypto | sonataruby | JavaScript | Code | 24 | 81 | var Laser = function(x, y, type, damage) {
Shot.call(this, x, y, type, damage, 'shots/laser');
this.vsp = 30;
}
Laser.prototype = Object.create(Shot.prototype);
Laser.prototype.constructor = Laser;
| 37,923 |
https://github.com/exteranto/framework/blob/master/lib/utils/src/cache/index.ts | Github Open Source | Open Source | MIT | 2,021 | framework | exteranto | TypeScript | Code | 22 | 40 |
/**
* Export package services.
*/
export { Cache } from './Cache'
/**
* Export package annotations.
*/
export * from './annotations'
| 23,057 |
https://github.com/CapOM/ChromiumGStreamerBackend/blob/master/components/mus/focus_controller.h | Github Open Source | Open Source | BSD-3-Clause | 2,015 | ChromiumGStreamerBackend | CapOM | C++ | Code | 155 | 474 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_MUS_FOCUS_CONTROLLER_H_
#define COMPONENTS_MUS_FOCUS_CONTROLLER_H_
#include "base/memory/scoped_ptr.h"
#include "components/mus/server... | 49,665 |
https://github.com/mmichal9/Animal_Vision_Simulator/blob/master/app/src/main/java/com/michal/animalvision/filter/Test.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | Animal_Vision_Simulator | mmichal9 | Java | Code | 91 | 320 | /*
* Created by Michal on 06/03/2017.
*/
package com.michal.animalvision.filter;
import android.content.Context;
import android.opengl.GLES20;
import com.michal.animalvision.MyGLUtils;
import com.michal.animalvision.R;
/**
* Created by Michal on 06/03/2017.
*/
public class Test extends CameraFilter {
privat... | 28,666 |
https://github.com/Anonym0uz/TZFinam/blob/master/TZFinam/TZFinam/InfoViewController.m | Github Open Source | Open Source | MIT | 2,019 | TZFinam | Anonym0uz | Objective-C | Code | 79 | 316 | //
// InfoViewController.m
// TZFinam
//
// Created by Alexander Orlov on 06.06.2019.
// Copyright © 2019 Alexander Orlov. All rights reserved.
//
#import "InfoViewController.h"
#import "UIMaker.h"
@interface InfoViewController ()
@end
@implementation InfoViewController
- (void)viewDidLoad {
[super viewDid... | 38,369 |
https://github.com/cquiroz/ocs/blob/master/bundle/edu.gemini.obslog/src/main/java/edu/gemini/obslog/obslog/TAConfigMap.java | Github Open Source | Open Source | BSD-3-Clause | 2,020 | ocs | cquiroz | Java | Code | 164 | 574 | package edu.gemini.obslog.obslog;
import edu.gemini.obslog.config.model.OlLogItem;
import edu.gemini.obslog.transfer.EChargeObslogVisit;
import edu.gemini.spModel.config2.Config;
import edu.gemini.spModel.config2.ItemKey;
import edu.gemini.spModel.dataset.DatasetRecord;
import java.util.List;
/**
* Gemini Observato... | 20,482 |
https://github.com/ThyagoRibeiro/bootcamp-01-template-casa-do-codigo/blob/master/src/main/java/br/com/thyagoribeiro/casadocodigo/domain/Estado.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | bootcamp-01-template-casa-do-codigo | ThyagoRibeiro | Java | Code | 117 | 367 | package br.com.thyagoribeiro.casadocodigo.domain;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
// CDD - Total 0
@Entity
public ... | 28,015 |
https://github.com/freeKotlin/exposed-content-service/blob/master/src/main/kotlin/kjkrol/eshop/exposedcontent/person/PersonCreator.kt | Github Open Source | Open Source | MIT | 2,017 | exposed-content-service | freeKotlin | Kotlin | Code | 40 | 158 | package kjkrol.eshop.exposedcontent.person
import kjkrol.eshop.exposedcontent.model.Person
import kjkrol.eshop.exposedcontent.model.PersonRole
import org.springframework.stereotype.Service
import java.util.UUID
@Service
internal class PersonCreator(val personRepository: PersonRepository) {
fun create(name: Strin... | 39,841 |
https://github.com/jklaw90/exposure-notifications-server/blob/master/migrations/000070_ImportFilePublicKeyTypes.down.sql | Github Open Source | Open Source | Apache-2.0 | 2,022 | exposure-notifications-server | jklaw90 | SQL | Code | 143 | 305 | -- Copyright 2021 the Exposure Notification Server 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.org/licenses/LICENSE-2.0
--
-- Unless required by a... | 25,050 |
https://github.com/oddin-gg/netcoresdk/blob/master/src/Oddin.OddsFeedSdk/Oddin.OddsFeedSdk/Managers/ReplayManager.cs | Github Open Source | Open Source | BSD-3-Clause | 2,022 | netcoresdk | oddin-gg | C# | Code | 380 | 1,352 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Oddin.OddsFeedSdk.API.Abstractions;
using Oddin.OddsFeedSdk.API.Entities.Abstractions;
using Oddin.OddsFeedSdk.Common;
using Oddin.OddsFeedSdk.Configuration.Abstractions;
using Oddi... | 45,738 |
https://github.com/thunder913/BulgarianPlacesAPI/blob/master/BulgarianPlacesAPI/Controllers/UserController.cs | Github Open Source | Open Source | MIT | null | BulgarianPlacesAPI | thunder913 | C# | Code | 266 | 980 | using BulgarianPlacesAPI.Dtos;
using BulgarianPlacesAPI.Models;
using BulgarianPlacesAPI.Models.Enums;
using BulgarianPlacesAPI.Services.Interfaces;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Threading.Tasks;
namespace BulgarianPlacesAPI.Controllers
{
[ApiController]
[Route("[controller]")]
... | 20,906 |
https://github.com/skinnydoo/FlowBinding/blob/master/testing-infra/build.gradle | Github Open Source | Open Source | Apache-2.0 | 2,021 | FlowBinding | skinnydoo | Gradle | Code | 46 | 409 | plugins {
id 'flowbinding-plugin'
id 'com.android.library'
id 'kotlin-android'
}
android {
lintOptions {
disable 'FragmentGradleConfiguration'
}
}
dependencies {
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:${versions.kotlinx.coroutines}"
implementation "com.google... | 47,246 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.