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/galyalina/Calendar/blob/master/app/src/test/java/com/iotta/mydays/MathHelperUnitTest.java | Github Open Source | Open Source | Apache-2.0, CC-BY-3.0 | 2,022 | Calendar | galyalina | Java | Code | 52 | 179 | package com.iotta.mydays;
import com.iotta.mydays.viewpresenter.view.MathHelper;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public c... | 25,624 |
https://github.com/BorgwardtLab/WWL/blob/master/data/ENZYMES/506.gml | Github Open Source | Open Source | BSD-3-Clause | 2,022 | WWL | BorgwardtLab | null | Spoken | 566 | 1,356 | graph [
directed 0
node [
id 16029
label "1"
]
node [
id 16038
label "2"
]
node [
id 16018
label "1"
]
node [
id 16024
label "1"
]
node [
id 16025
label "1"
]
node [
id 16028
label "1"
]
node [
id 16030
label "2"
]
node [
id 160... | 21,361 |
https://github.com/wongzigii/Nest/blob/master/Nest/Components/LaunchTask+Internal.h | Github Open Source | Open Source | MIT | 2,016 | Nest | wongzigii | Objective-C | Code | 43 | 195 | //
// LaunchTask+Internal.h
// Nest
//
// Created by Manfred on 12/5/15.
//
//
@import Foundation;
#if TARGET_OS_IOS
#import "LaunchTask-iOS.h"
#elif TARGET_OS_TV
#import "LaunchTask-tvOS.h"
#elif TARGET_OS_WATCH
#import "LaunchTask-watchOS.h"
#elif TARGET_OS_MAC
#import "LaunchTask-macOS.h"
#endif
FOUNDATION_EXP... | 52,930 |
https://github.com/TeamSPoon/CYC_JRTL_with_CommonLisp_OLD/blob/master/merging/main/server-4q/com/cyc/cycjava/cycl/rkf_mumbler.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | CYC_JRTL_with_CommonLisp_OLD | TeamSPoon | Java | Code | 692 | 3,252 | /**
* Copyright (c) 1995 - 2019 Cycorp, Inc. All rights reserved.
*/
package com.cyc.cycjava.cycl;
import static com.cyc.tool.subl.jrtl.nativeCode.subLisp.ConsesLow.append;
import static com.cyc.tool.subl.jrtl.nativeCode.subLisp.ConsesLow.list;
import static com.cyc.tool.subl.jrtl.nativeCode.subLisp.ConsesLow.list... | 1,916 |
https://github.com/Mactaivsh/rollup-legacy/blob/master/test/function/samples/shadowed-variables/_config.js | Github Open Source | Open Source | MIT | 2,022 | rollup-legacy | Mactaivsh | JavaScript | Code | 14 | 59 | module.exports = {
description: 'renames shadowed variables correctly'
};
// test copied from https://github.com/esnext/es6-module-transpiler/tree/master/test/examples/named-function-expression
| 48,027 |
https://github.com/lordjoe/ChemSpark/blob/master/src/main/java/com/lordjoe/distributed/hydra/SimpleLoadTest.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | ChemSpark | lordjoe | Java | Code | 177 | 679 | package com.lordjoe.distributed.hydra;
import com.lordjoe.distributed.*;
import com.lordjoe.distributed.util.*;
import com.lordjoe.distributed.wordcount.*;
import org.apache.spark.api.java.*;
import org.apache.spark.api.java.function.*;
import org.apache.spark.examples.*;
import org.systemsbiology.xtandem.hadoop.*;
im... | 7,775 |
https://github.com/igloo15/block-drop/blob/master/config/update-version-file.js | Github Open Source | Open Source | MIT | null | block-drop | igloo15 | JavaScript | Code | 47 | 143 | const replace = require("replace-in-file");
let oldVersion = require("../package.json").oldVersion;
const version = require("../package.json").version;
if (!oldVersion) {
oldVersion = "##VersionReplace";
}
const options = {
files: "src/lib/version.ts",
from: oldVersion,
to: version
};
try {
const results =... | 3,820 |
https://github.com/radtek/FlyDCstat/blob/master/src/reg/util/dc/flydcstat/logging.properties | Github Open Source | Open Source | Apache-2.0 | 2,016 | FlyDCstat | radtek | null | Spoken | 202 | 423 | #/*
# * Copyright (C) 2013 Developed by reg <entry.reg@gmail.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/LICE... | 16,288 |
https://github.com/ashutoshcipher/oozie/blob/master/fluent-job/fluent-job-api/src/main/java/org/apache/oozie/fluentjob/api/dag/ExplicitNode.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | oozie | ashutoshcipher | Java | Code | 606 | 1,243 | /**
* 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... | 13,151 |
https://github.com/gokoukotori/GithubInfo/blob/master/Libs/GKsWpfPrismLib.Module.Base/PluginInfo.cs | Github Open Source | Open Source | MIT | null | GithubInfo | gokoukotori | C# | Code | 53 | 195 | using GKsWpfLib.Plugins;
using GKsWpfPrismLib.Module.Base.ViewModels;
using GKsWpfPrismLib.Module.Base.Views;
using System;
using System.Collections.Generic;
using System.Text;
namespace GKsWpfPrismLib.Module.Base
{
public class PluginInfo : IVisualPlugin
{
public string Name => "ベースモジュール";
public string MainV... | 20,518 |
https://github.com/cckmit/htd/blob/master/mes-service/src/main/java/com/skeqi/mes/controller/qh/CMesDeciveController.java | Github Open Source | Open Source | MIT | 2,021 | htd | cckmit | Java | Code | 834 | 3,340 | package com.skeqi.mes.controller.qh;
import java.io.UnsupportedEncodingException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import javax.ws.rs.core.MediaType;
import org.springframework.beans.factory.annotation.... | 14,915 |
https://github.com/chiaruey/family/blob/master/src/test/java/com/family/test/service/CalendarServiceTest.java | Github Open Source | Open Source | MIT | null | family | chiaruey | Java | Code | 131 | 547 | package com.family.test.service;
import java.util.Calendar;
import org.apache.log4j.Logger;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit... | 49,751 |
https://github.com/meesokim/z88dk/blob/master/libsrc/_DEVELOPMENT/adt/p_list/c/sccz80/p_list_remove_callee.asm | Github Open Source | Open Source | ClArtistic | null | z88dk | meesokim | Assembly | Code | 21 | 100 |
; void *p_list_remove(p_list_t *list, void *item)
SECTION code_adt_p_list
PUBLIC p_list_remove_callee
p_list_remove_callee:
pop af
pop hl
pop bc
push af
INCLUDE "adt/p_list/z80/asm_p_list_remove.asm"
| 35,335 |
https://github.com/qq2588258/floweers/blob/master/libs/extensions/CCArmature/utils/CCArmatureDataManager.cpp | Github Open Source | Open Source | MIT | 2,021 | floweers | qq2588258 | C++ | Code | 489 | 1,719 | /****************************************************************************
Copyright (c) 2013 cocos2d-x.org
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without res... | 17,318 |
https://github.com/sx-aug-18/nasa/blob/master/src/js/main.js | Github Open Source | Open Source | MIT | null | nasa | sx-aug-18 | JavaScript | Code | 178 | 835 | var apod = {
randomDate: function(start, end){
var date = new Date(
start.getTime() + Math.random() *
(end.getTime() - start.getTime())
);
var d = date.getDate();
var m = date.getMonth() + 1;
var y = date.getFullYear();
if(m<10){
... | 23,521 |
https://github.com/Neon2848/Ver/blob/master/src/modules/events/guildMemberAdd.js | Github Open Source | Open Source | MIT | null | Ver | Neon2848 | JavaScript | Code | 31 | 81 | const Discord = require('discord.js') // eslint-disable-line no-unused-vars
const { basicLookup } = require('../functions/general')
/**
* @param {Discord.Client} client bot client
*/
module.exports = async (client, member) => {
await basicLookup(member)
}
| 29,314 |
https://github.com/jimbok8/gwty-leaflet/blob/master/src/main/java/com/gwidgets/api/leaflet/Evented.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | gwty-leaflet | jimbok8 | Java | Code | 314 | 663 | package com.gwidgets.api.leaflet;
import com.gwidgets.api.leaflet.events.EventCallback;
import jsinterop.annotations.JsType;
/**
* <p>Evented interface.</p>
*
* @author zakaria
* @version $Id: $Id
*/
@JsType(isNative = true)
public interface Evented {
/**
* Clear all event listeners.
*
* @return the L c... | 6,419 |
https://github.com/zholeh/nestjs/blob/master/src/shared/config/config.service.ts | Github Open Source | Open Source | MIT | null | nestjs | zholeh | TypeScript | Code | 66 | 193 | import { Injectable } from '@nestjs/common';
import * as dotenv from 'dotenv';
import * as fs from 'fs';
import * as Path from 'path';
@Injectable()
export class ConfigService {
private readonly envConfig: Record<string, string>;
constructor() {
const filePath = `${process.env.NODE_ENV || 'development'}.env`;... | 18,642 |
https://github.com/nageshlop/webpack-stats-plugin/blob/master/test/packages/webpack3/index.js | Github Open Source | Open Source | MIT | 2,022 | webpack-stats-plugin | nageshlop | JavaScript | Code | 8 | 38 | "use strict";
// eslint-disable-next-line import/no-unresolved
module.exports = require("webpack/bin/webpack");
| 7,477 |
https://github.com/programmfabrik/easydb-custom-data-type-dante/blob/master/src/webfrontend/CustomDataTypeDante.coffee | Github Open Source | Open Source | Unlicense | null | easydb-custom-data-type-dante | programmfabrik | CoffeeScript | Code | 3,027 | 10,745 | class CustomDataTypeDANTE extends CustomDataTypeWithCommons
#######################################################################
# return name of plugin
getCustomDataTypeName: ->
"custom:base.custom-data-type-dante.dante"
#######################################################################
# overw... | 17,390 |
https://github.com/Gruenstreifen-eV/BSFrance-stm32/blob/master/stm32/system/STM32F3/stm32_chip/stm32_STM32F358RC.h | Github Open Source | Open Source | MIT | 2,019 | BSFrance-stm32 | Gruenstreifen-eV | C | Code | 31 | 231 | //Autogenerated file
//MCU name: STM32F358RC
//MCU xml: STM32F358RCTx.xml
//GPIO remap/alternate function xml: GPIO-STM32F303_gpio_v1_0_Modes.xml
#include "stm32_GPIO_variant_15.h"
#include "stm32_REMAP_variant_1.h"
#include "stm32_I2C_variant_4.h"
#include "stm32_I2S_variant_5.h"
#include "stm32_SPI_variant_5.h... | 18,646 |
https://github.com/dillonbrosnan/javawebserver/blob/master/Exceptions/UnauthorizedException.java | Github Open Source | Open Source | MIT | null | javawebserver | dillonbrosnan | Java | Code | 15 | 41 | package Exceptions;
public class UnauthorizedException extends ServerException{
public UnauthorizedException(){
super( 401, "Unauthorized" );
}
} | 35,649 |
https://github.com/wjeon/soothsayer/blob/master/soothsayer.Tests/Infrastructure/NameTests.cs | Github Open Source | Open Source | Apache-2.0 | 2,015 | soothsayer | wjeon | C# | Code | 55 | 208 | using NUnit.Framework;
using soothsayer.Infrastructure;
namespace soothsayer.Tests.Infrastructure
{
[TestFixture]
public class NameTests
{
[Test]
public void name_of_variable_can_be_read()
{
var someValue = Some.Value<int>();
var propertyName = Name.For(() =... | 42,370 |
https://github.com/Jon-Peppinck/r2vr-2020/blob/master/typescript/shared/models/AnnotationData.d.ts | Github Open Source | Open Source | MIT | 2,019 | r2vr-2020 | Jon-Peppinck | TypeScript | Code | 26 | 78 | declare namespace Shared {
export interface AnnotationData {
image_file?: string;
image_id: string;
is_coral?: CoralBinary;
observation_number: number;
observer?: string;
site: number;
x?: number;
y?: number;
}
}
| 41,161 |
https://github.com/Raynard87645/bookkeeping/blob/master/resources/views/invoices/testform.blade.php | Github Open Source | Open Source | MIT | null | bookkeeping | Raynard87645 | PHP | Code | 166 | 697 | <div>
{{ Form::open(['route' => 'invoices.create', 'id' => 'testForm']) }}
<div class="form-group row">
{{ Form::label('field1',
'Field 1',
['class' => 'col-xs-2']
) }}
<div class="col-xs-10">
<?= Form::text('field1', null, ['class' => 'col-xs-12 requi... | 17,570 |
https://github.com/Devolon/sms/blob/master/tests/Unit/DTO/SentSMSMessageDTO/ConstructorTest.php | Github Open Source | Open Source | MIT | null | sms | Devolon | PHP | Code | 62 | 335 | <?php
namespace Devolon\Sms\Tests\Unit\DTO\SentSMSMessageDTO;
use Illuminate\Foundation\Testing\WithFaker;
use Devolon\Sms\Tests\SmsTestCase;
use Devolon\Sms\DTOs\SentSMSMessageDTO;
class ConstructorTest extends SmsTestCase
{
use WithFaker;
public function testItHasExpectedProperties()
{
// Arra... | 47,268 |
https://github.com/wix-playground/rules_node/blob/master/node/tools/npm/BUILD | Github Open Source | Open Source | Apache-2.0 | 2,018 | rules_node | wix-playground | Starlark | Code | 48 | 181 | package(default_visibility = ['//visibility:public'])
py_library(
name = 'utils',
srcs = ['utils.py', 'runfiles.py'],
data = [
'@nodejs//:node',
'@nodejs//:npm',
],
)
py_binary(
name = 'gen_build_npm',
srcs = [
'gen_build_npm.py',
],
main = 'gen_build_npm.py',
... | 31,616 |
https://github.com/actors315/actors315.github.io/blob/master/bin/cli.php | Github Open Source | Open Source | MIT | 2,020 | actors315.github.io | actors315 | PHP | Code | 34 | 173 | <?php
/**
* Created by PhpStorm.
* User: xiehuanjin
* Date: 2019/2/27
* Time: 10:05
*/
define('ROOT_PATH', dirname(__DIR__));
define('YOUDAO_SECRET', isset($_SERVER['YOUDAO_SECRET']) ? $_SERVER['YOUDAO_SECRET'] : '');
define('BAIDU_TOKEN',isset($_SERVER['BAIDU_TOKEN']) ? $_SERVER['BAIDU_TOKEN'] : '');
define('BLOG... | 22,628 |
https://github.com/ralscha/eds-starter6-mongodb/blob/master/client/app/model/PersistentLogin.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | eds-starter6-mongodb | ralscha | JavaScript | Code | 113 | 299 | Ext.define("Starter.model.PersistentLogin",
{
extend : "Ext.data.Model",
requires : [ "Ext.data.proxy.Direct", "Ext.data.validator.Length" ],
idProperty : "series",
fields : [ {
name : "series",
type : "string"
}, {
name : "userId",
type : "string"
}, {
name : "lastUsed",
type : "dat... | 41,318 |
https://github.com/Chief0-0/Localizacion_ERP_V12/blob/master/base_report_to_printer/tests/test_printing_printer_wizard.py | Github Open Source | Open Source | Apache-2.0 | null | Localizacion_ERP_V12 | Chief0-0 | Python | Code | 233 | 1,128 | # Copyright 2016 LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import mock
from odoo.tests.common import TransactionCase
from odoo.exceptions import UserError
model = 'odoo.addons.base_report_to_printer.models.printing_server'
class StopTest(Exception):
pass
class TestPri... | 44,473 |
https://github.com/Yunierhg/trabajocsharp/blob/master/prueba_lector_huellas/prueba_lector_huellas/RegistrarForm.cs | Github Open Source | Open Source | MIT | null | trabajocsharp | Yunierhg | C# | Code | 418 | 1,369 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using DPFP;
using DPFP.Capture;
using prueba_lector_huellas.Clases;
namespace prueba_lector_huellas
{
... | 7,657 |
https://github.com/Rotron/tienda_juegos/blob/master/resources/views/store/show.blade.php | Github Open Source | Open Source | MIT | 2,016 | tienda_juegos | Rotron | Blade | Code | 84 | 389 | @extends('store.template')
@section('content')
<div class="container text-center">
<div class="page-header">
<h1><i class="fa fa-shopping-cart"></i> Detalle del producto</h1>
</div>
<div class="row">
<div class="col-md-6">
<div class="product-block">
<img src="{{ $product->image }}">
</div>
</div... | 12,168 |
https://github.com/olliechick/ebay-api/blob/master/src/api/index.ts | Github Open Source | Open Source | MIT | 2,022 | ebay-api | olliechick | TypeScript | Code | 55 | 130 | import Auth from '../auth';
import {IEBayApiRequest} from '../request';
import {AppConfig} from '../types';
import Base from './base';
/**
* Superclass with Auth container.
*/
export default abstract class Api extends Base {
public readonly auth: Auth;
constructor(
config: AppConfig,
req?: IEBayApiReque... | 23,541 |
https://github.com/cldmnky/teamcity-rest-client-go/blob/master/client/build_type/set_v_c_s_labeling_options_parameters.go | Github Open Source | Open Source | Apache-2.0 | null | teamcity-rest-client-go | cldmnky | Go | Code | 545 | 1,458 | // Code generated by go-swagger; DO NOT EDIT.
package build_type
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"context"
"net/http"
"time"
"github.com/go-openapi/errors"
"github.com/go-openapi/runtime"
cr "github.c... | 40,922 |
https://github.com/Glost/db_nets_renew_plugin/blob/master/root/prj/sol/projects/renew2.5source/renew2.5/src/Loader/src/de/renew/plugin/command/InfoCommand.java | Github Open Source | Open Source | BSD-4-Clause-UC | null | db_nets_renew_plugin | Glost | Java | Code | 348 | 1,298 | package de.renew.plugin.command;
import de.renew.plugin.CollectionLister;
import de.renew.plugin.IPlugin;
import de.renew.plugin.PluginManager;
import de.renew.plugin.PluginProperties;
import java.io.PrintStream;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Vector;... | 13,867 |
https://github.com/d9767192/react-flowchart/blob/master/src/views/Decision/style.less | Github Open Source | Open Source | MIT | null | react-flowchart | d9767192 | Less | Code | 80 | 288 | .decision-widget-style {
position: relative;
.shape-outside-left {
width: 50%;
height: 100%;
float: left;
shape-outside: polygon(0 0,0 100%,100% 100%,0 50%,100% 0);
}
.shape-outside-right {
width: 50%;
height: 100%;
float: right;
shape-outside: polygon(100% 0,100% 100%,0% 100%,10... | 28,740 |
https://github.com/alifahfathonah/administrasi-desa/blob/master/application/models/model_provinsi.php | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,020 | administrasi-desa | alifahfathonah | PHP | Code | 122 | 701 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class model_provinsi extends CI_Model {
public function get_data($id = null)
{
if ($id == null) {
$this->db->order_by('id_provinsi','DESC');
return $this->db->get('provinsi')->result();
}else{
... | 34,392 |
https://github.com/pydawan/zircon/blob/master/zircon.jvm.swing/src/test/kotlin/org/hexworks/zircon/internal/integration/GraphicTilesTest.kt | Github Open Source | Open Source | MIT | 2,019 | zircon | pydawan | Kotlin | Code | 61 | 342 | @file:Suppress("UNCHECKED_CAST")
package org.hexworks.zircon.internal.integration
import org.hexworks.cobalt.logging.api.LoggerFactory
import org.hexworks.zircon.api.*
object GraphicTilesTest {
private val logger = LoggerFactory.getLogger(javaClass)
private val theme = ColorThemes.arc()
private val tile... | 11,289 |
https://github.com/sergiotorresperez/gameengine/blob/master/src/com/garrapeta/gameengine/GameWorld.java | Github Open Source | Open Source | Apache-2.0 | 2,014 | gameengine | sergiotorresperez | Java | Code | 1,664 | 4,536 | package com.garrapeta.gameengine;
import java.util.ArrayList;
import java.util.List;
import java.util.Vector;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import android.content.Context;
import android.graphics.Canvas;
import an... | 33,664 |
https://github.com/IngwiePhoenix/IceTea_old/blob/master/src/functions/functiondownload.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,015 | IceTea_old | IngwiePhoenix | C++ | Code | 162 | 445 | /*
* Copyright (C) 2007-2014 Xagasoft, All rights reserved.
*
* This file is part of the Xagasoft Build and is released under the
* terms of the license contained in the file LICENSE.
*/
#include "FunctionDownload.h"
#include "helper_macros.h"
#include <bu/plugger.h>
#include <stdlib.h>
#include <bu/sio.h>
extern... | 26,147 |
https://github.com/Gigio212/Proyecto_Doctores/blob/master/servidor/controllers/Pacientes.js | Github Open Source | Open Source | Apache-2.0 | null | Proyecto_Doctores | Gigio212 | JavaScript | Code | 168 | 618 | const Pacientes = require('../models/Pacientes')
const mongoose = require("mongoose")
//insertar nuevos elementos a la BD
exports.postAgregarPacientes = async (req,res)=>{
const pacientes = new Pacientes(req.body)
pacientes._id = new mongoose.Types.ObjectId() //se le asigna un id al objeto
try{
... | 1,142 |
https://github.com/OmenApps/django-poly-dag/blob/master/django_poly_dag/templatetags/dag_tags.py | Github Open Source | Open Source | MIT | null | django-poly-dag | OmenApps | Python | Code | 187 | 711 | # dict recurse template tag for django
# from http://djangosnippets.org/snippets/1974/
from django import template
register = template.Library()
class RecurseDictNode(template.Node):
def __init__(self, var, nodeList):
self.var = var
self.nodeList = nodeList
def __repr__(self):
retur... | 10,577 |
https://github.com/deathknight0718/foliage/blob/master/foliage-commons/foliage-common-core/src/main/java/page/foliage/common/ioc/InstanceGuice.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | foliage | deathknight0718 | Java | Code | 163 | 391 | /*******************************************************************************
* Copyright 2022 CEC Data 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.apac... | 25,808 |
https://github.com/SEPIA-Framework/sepia-websocket-server-java/blob/master/src/main/java/net/b07z/sepia/websockets/database/ChatsElasticsearchDb.java | Github Open Source | Open Source | MIT | 2,022 | sepia-websocket-server-java | SEPIA-Framework | Java | Code | 602 | 2,404 | package net.b07z.sepia.websockets.database;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import net.b07z.sepia.server.core.database.Elasti... | 54,491 |
https://github.com/cholojuanito/free_flutter_widgets/blob/master/packages/free_flutter_charts/lib/src/funnel_chart/renderer/funnel_series.dart | Github Open Source | Open Source | MIT | 2,021 | free_flutter_widgets | cholojuanito | Dart | Code | 3,014 | 8,772 | part of charts;
class _FunnelSeriesBase<T, D> extends ChartSeries<T, D>
implements TriangularChartEmptyPointBehavior {
_FunnelSeriesBase({
this.key,
this.onCreateRenderer,
this.onRendererCreated,
this.dataSource,
this.xValueMapper,
this.yValueMapper,
this.pointColorMapper,
this.te... | 978 |
https://github.com/carlosaguiar/AssetChecker/blob/master/Example/Pods/Target Support Files/Pods-AssetChecker_Tests/Pods-AssetChecker_Tests-dummy.m | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,020 | AssetChecker | carlosaguiar | Objective-C | Code | 10 | 54 | #import <Foundation/Foundation.h>
@interface PodsDummy_Pods_AssetChecker_Tests : NSObject
@end
@implementation PodsDummy_Pods_AssetChecker_Tests
@end
| 40,898 |
https://github.com/skoike/RobotCarAI/blob/master/level5_demo_streaming/car_client/lib/__init__.py | Github Open Source | Open Source | Apache-2.0 | 2,018 | RobotCarAI | skoike | Python | Code | 4 | 8 | from .spi import SPI
| 31,945 |
https://github.com/maurizioabba/rose/blob/master/tests/CompileTests/Fortran_tests/gfortranTestSuite/gfortran.dg/namelist_63.f90 | Github Open Source | Open Source | BSD-3-Clause | 2,022 | rose | maurizioabba | null | Spoken | 79 | 180 | ! { dg-do compile }
!
! PR fortran/45530
!
! Contributed by david.sagan@gmail.com
!
program test
implicit none
type c_struct
type (g_struct), pointer :: g
end type
type g_struct
type (p_struct), pointer :: p
end type
type p_struct
type (region_struct), pointer :: r
end type
type region_struct
type (p_struct... | 27,181 |
https://github.com/naveenkkunder/SMH/blob/master/Source/SmartHotel.Clients/SmartHotel.Clients/Models/User.cs | Github Open Source | Open Source | MIT | 2,018 | SMH | naveenkkunder | C# | Code | 58 | 120 | namespace SmartHotel.Clients.Core.Models
{
public class User
{
public string Id { get; set; }
public string Token { get; set; }
public string Name { get; set; }
public string LastName { get; set; }
public string Email { get; set; }
public string AvatarUrl { ... | 48,989 |
https://github.com/sunny5156/ArduionTest/blob/master/libraries/ArduinoJson/include/ArduinoJson/Internals/Comments.hpp | Github Open Source | Open Source | Apache-2.0 | null | ArduionTest | sunny5156 | C++ | Code | 30 | 79 | // Copyright Benoit Blanchon 2014-2015
// MIT License
//
// Arduino JSON library
// https://github.com/bblanchon/ArduinoJson
#pragma once
namespace ArduinoJson {
namespace Internals {
const char *skipSpacesAndComments(const char *ptr);
}
}
| 2,333 |
https://github.com/robmclarty/task-herbs/blob/master/tests/scripts/admin/containers/UserPage.js | Github Open Source | Open Source | MIT | 2,018 | task-herbs | robmclarty | JavaScript | Code | 227 | 611 | import React, { PropTypes } from 'react'
import { connect } from 'react-redux'
import { push } from 'react-router-redux'
import { updateUser, addUser, removeUser } from '../actions'
import UserForm from '../components/UserForm'
import Page from '../components/Page'
const UserPageComponent = ({
user,
isPending,
r... | 52,826 |
https://github.com/harmonic-analytics/geonz/blob/master/tests/testthat/test-get_areas.R | Github Open Source | Open Source | MIT | 2,021 | geonz | harmonic-analytics | R | Code | 149 | 574 | context("Testing get_areas function")
test_that("area_type is provided", {
expect_error(get_areas(area_type = NULL))
})
test_that("Invalid area types rejected", {
expect_error(get_areas(area_type = 1234))
expect_error(get_areas(area_type = "Not an Area Type"))
})
test_that("clipped parameter is TRUE or FALSE o... | 15,521 |
https://github.com/lgierth/promise.rb/blob/master/lib/promise/group.rb | Github Open Source | Open Source | Unlicense, LicenseRef-scancode-public-domain | 2,022 | promise.rb | lgierth | Ruby | Code | 128 | 438 | class Promise
class Group
include Promise::Observer
attr_accessor :source
attr_reader :promise
def initialize(result_promise, inputs)
@promise = result_promise
@inputs = inputs
@remaining = count_promises
if @remaining.zero?
promise.fulfill(inputs)
else
... | 21,865 |
https://github.com/PANFACTORY/PANSLBM2/blob/master/test/varray.cpp | Github Open Source | Open Source | MIT | null | PANSLBM2 | PANFACTORY | C++ | Code | 56 | 146 | #include <iostream>
#include "../src/utility/varray.h"
using namespace PANSLBM2;
int main() {
const long n = 100000UL*141*161*8;
VArray<double> a(n);
// Write values
for (long i = 0; i < n; ++i) {
a[i] = i + 1;
}
// Read values
for (long i = 0; i < n; ++i) {
std::co... | 21,871 |
https://github.com/Abdelazeem777/Post.v2-Flutter/blob/master/lib/style/appColors.dart | Github Open Source | Open Source | MIT | 2,021 | Post.v2-Flutter | Abdelazeem777 | Dart | Code | 24 | 73 | import 'package:flutter/material.dart';
class AppColors {
static const Color PRIMARY_COLOR = Color(0xFF389187);
static const Color SECONDARY_COLOR = Color(0xFFAFE782);
static const Color ACCENT_COLOR = Color(0xFFFFFFFF);
}
| 39,695 |
https://github.com/confine-sandbox/simplewasm-confine-runtime/blob/master/test/programs/fizzbuzz.wat | Github Open Source | Open Source | MIT | 2,021 | simplewasm-confine-runtime | confine-sandbox | null | Spoken | 280 | 849 | ;; https://github.com/rhmoller/wasm-by-hand/blob/master/src/wat/fizzbuzz.wat
;; MIT license (Copyright Rene Hangstrup Møller)
(module
(import "js" "memory" (memory 1))
(import "js" "println" (func $println (param i32 i32)))
(data (i32.const 0) "Fizz")
(data (i32.const 4) "Buzz")
(data (i32.const 8) "FizzBuzz... | 34,682 |
https://github.com/argylelabcoat/gog-backup/blob/master/Makefile | Github Open Source | Open Source | MIT | 2,020 | gog-backup | argylelabcoat | Makefile | Code | 24 | 87 | libs := $(shell find internal pkg -type f -name '*.go')
default: gog-backup
all: gog-backup
.PHONY: all
gog-backup: cmd/gog-backup/*.go $(libs)
go build -o gog-backup cmd/gog-backup/main.go
| 38,099 |
https://github.com/ArcticWarriors/scouting-app/blob/master/ScoutingWebsite/Scouting2017/api_scraper/PopulateRegionalResultsMixin.py | Github Open Source | Open Source | MIT | 2,018 | scouting-app | ArcticWarriors | Python | Code | 139 | 857 | '''
Created on Mar 5, 2017
@author: PJ
'''
class PopulateRegionalResultsMixin():
# def parse_score_breakdown(self, score_breakdown, red_official_sr, blue_official_sr):
# self._populate_official_sr(red_official_sr, score_breakdown["red"], "R")
# self._populate_official_sr(blue_official_sr, score_... | 6,016 |
https://github.com/TEGUS/2bm/blob/master/src/CoreBundle/Controller/ApiElementController.php | Github Open Source | Open Source | MIT | 2,017 | 2bm | TEGUS | PHP | Code | 466 | 2,465 | <?php
namespace CoreBundle\Controller;
use CoreBundle\Entity\Element;
use CoreBundle\Entity\Picture;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use FOS\RestBundle\Controller\Annotations as Rest;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfon... | 38,483 |
https://github.com/kamal-kant-jangir/sd/blob/master/yii_1.sql | Github Open Source | Open Source | BSD-3-Clause | null | sd | kamal-kant-jangir | SQL | Code | 973 | 3,472 | -- phpMyAdmin SQL Dump
-- version 4.5.4.1deb2ubuntu2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Mar 12, 2018 at 05:07 PM
-- Server version: 5.7.21-0ubuntu0.16.04.1
-- PHP Version: 7.0.25-0ubuntu0.16.04.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_C... | 30,713 |
https://github.com/ThundR67/Velocity/blob/master/services/email-verification-srv/verification/code_generation.go | Github Open Source | Open Source | MIT | 2,019 | Velocity | ThundR67 | Go | Code | 27 | 65 | package verification
import (
"github.com/google/uuid"
)
//GenerateCode is used to generate a code for email verification
func GenerateCode() string {
code, _ := uuid.NewRandom()
return code.String()
}
| 9,079 |
https://github.com/wenghan2012/Happy-water/blob/master/test/demo-zull/src/main/java/com/wh/demozull/accessfilter/ReceptionFilter.java | Github Open Source | Open Source | MIT | null | Happy-water | wenghan2012 | Java | Code | 178 | 1,166 | package com.wh.demozull.accessfilter;
import com.netflix.zuul.ZuulFilter;
import com.netflix.zuul.context.RequestContext;
import com.netflix.zuul.exception.ZuulException;
import com.wh.demozull.utils.JwtUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.A... | 45,269 |
https://github.com/lucaorio/flacopus/blob/master/convert/get-files.js | Github Open Source | Open Source | MIT | null | flacopus | lucaorio | JavaScript | Code | 48 | 155 | const untildify = require('untildify')
const output = require('../package.json').config.output
// get a clean list of files to convert or copy
module.exports = artists =>
artists.map(artist =>
artist.children.map(album =>
album.children.map(file => {
if (file.extension) {
return {
... | 8,482 |
https://github.com/Daasin/tpc_llvm/blob/master/clang/test/RC99/regression/gaudi-2.c | Github Open Source | Open Source | Apache-2.0, LLVM-exception, NCSA | 2,021 | tpc_llvm | Daasin | C | Code | 22 | 60 | // RUN: %clang_cc1 -S -triple tpc-none-none -std=rc99 -O1 %s -o -
int Global_Var = 777;
void main() {
Global_Var = 1;
} | 27,919 |
https://github.com/lehh/webrtc-demo/blob/master/webrtc.js | Github Open Source | Open Source | MIT | null | webrtc-demo | lehh | JavaScript | Code | 564 | 2,439 | //Must have adapter.js before this file.
'use strict';
/**
* @param {object} signalingData object containing a service MessageService object property
* and a channel string property
* @param {object} streamConstrants object containing the getUserMedia streamConstrants
* @param {object} DOMVideoElements localVideo... | 9,770 |
https://github.com/sztomi/dotpup/blob/master/dotpup/commands/link.py | Github Open Source | Open Source | MIT | null | dotpup | sztomi | Python | Code | 78 | 296 | from dotpup.utils import symlink, save_operation
from pathlib import Path
from .base import BaseCommand
def do_link(repo_file: Path, target_file: Path):
if target_file.is_dir():
target_file = target_file / repo_file.name
if not target_file.parent.exists():
target_file.parent.mkdir(parents=True, exist_ok... | 23,216 |
https://github.com/root-kings/tron-trading/blob/master/src/utils/logger.js | Github Open Source | Open Source | MIT | null | tron-trading | root-kings | JavaScript | Code | 93 | 300 | const winston = require('winston');
const path = require('path');
const { transports } = winston;
const options = {
combined: {
level: 'info',
filename: 'logs/combined.log',
handleExceptions: true,
json: true,
maxsize: 5242880,
colorize: false
},
error: {
level: 'error',
filename... | 27,783 |
https://github.com/d0scoo1/naga_contracts/blob/master/mainnet/contracts/0x694c544491Cd4F265e5A67295F3f2F7Cd5728C9F_PoolManager/contracts/OracleAdapter.sol | Github Open Source | Open Source | MIT | 2,023 | naga_contracts | d0scoo1 | Gerber Image | Code | 998 | 2,456 | // SPDX-License-Identifier: UNLICENSED
pragma solidity 0.6.11;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface.sol";
import "./interfaces/I... | 16,996 |
https://github.com/mercury199/Space-Gen-Modification/blob/master/src/com/zarkonnen/spacegen/Plague.java | Github Open Source | Open Source | Apache-2.0 | null | Space-Gen-Modification | mercury199 | Java | Code | 225 | 580 | /**
Copyright 2012 David Stark
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 writi... | 26,091 |
https://github.com/Zha0Chan/windows-kernel-rs/blob/master/windows-kernel-sys/src/wrapper.h | Github Open Source | Open Source | MIT | 2,021 | windows-kernel-rs | Zha0Chan | C | Code | 168 | 474 | #define _AMD64_
#include "ntdef.h"
#include "ntstatus.h"
typedef ULONG_PTR _EX_PUSH_LOCK;
typedef ULONG_PTR EX_PUSH_LOCK;
typedef ULONG_PTR *PEX_PUSH_LOCK;
typedef union _KGDTENTRY64
{
struct
{
unsigned short LimitLow;
unsigned short BaseLow;
union
{
struct
{
unsigned char BaseMiddle;
unsigne... | 39,486 |
https://github.com/callemein/slim3-skeleton/blob/master/app/ServiceProviders/Plates.php | Github Open Source | Open Source | MIT | 2,021 | slim3-skeleton | callemein | PHP | Code | 53 | 172 | <?php
namespace App\ServiceProviders;
use League\Plates\Engine;
class Plates implements ProviderInterface
{
public static function register()
{
app()->getContainer()['view'] = function ($c) {
return function($directory = null, $fileExtension = 'php') {
$plates = new Engine($directory, $fileExtension);
... | 501 |
https://github.com/yami03/frontend-components/blob/master/src/_packages/@lunit/heatmap/hooks/useHeatmapScaleImageURI.ts | Github Open Source | Open Source | MIT | null | frontend-components | yami03 | TypeScript | Code | 143 | 418 | import { useMemo } from 'react';
import { getRGBAArray } from '../draw/getRGBAArray';
interface UseHeatmapScaleImageURIParameters {
width: number;
height: number;
threshold: number;
}
/**
* `width x height` 사이즈의 Reactangle Image를 만들어준다. Image는 Data URI 형태로 전달되기 때문에 `<img src={uri}/>`나 `<image xlink:href={uri}/... | 12,494 |
https://github.com/dereuromark/cakephp-math/blob/master/Lib/GravityLib.php | Github Open Source | Open Source | MIT | 2,014 | cakephp-math | dereuromark | PHP | Code | 227 | 531 | <?php
/*
* Class : Gravity
* Version : 0.1 Beta
* Author : Abdellah BEN RAHMOUN
* Date : 20 October 2010
* Copyright : Abdellah BEN RAHMOUN
* License : GNU LESSER GENERAL PUBLIC LICENSE
* This Class Is Programmed For Gravity Calculs
* PhpVersion > Php 5 (Supported Php6)
*/
/**
* refactored and ... | 44,395 |
https://github.com/Torof/dev_eth/blob/master/CrowdSale/Token.sol | Github Open Source | Open Source | MIT | null | dev_eth | Torof | Solidity | Code | 21 | 118 | //SPDX-License-Identifier: MIT
pragma solidity 0.6.11;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol";
contract BruteToken is ERC20 {
constructor(uint _initialSupply) public ERC20("BruteToken", "BrT"){
_mint(msg.sender, _initialSupply... | 45,479 |
https://github.com/Drul1337/DigitalRune/blob/master/Source/DigitalRune.Windows/Interop/SystemCommands.cs | Github Open Source | Open Source | CC-BY-4.0, MS-PL | 2,022 | DigitalRune | Drul1337 | C# | Code | 418 | 1,043 | // DigitalRune Engine - Copyright (C) DigitalRune GmbH
// This file is subject to the terms and conditions defined in
// file 'LICENSE.TXT', which is part of this source code package.
using System;
namespace DigitalRune.Windows.Interop
{
// ReSharper disable InconsistentNaming
/// <summary>
/// The sys... | 14,180 |
https://github.com/jbxplan/GMLToolbox-src/blob/master/Sonst/col/wrapio.hpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | GMLToolbox-src | jbxplan | C++ | Code | 52 | 156 | #pragma once
#include <ostream>
namespace col
{
inline std::ostream& operator<<(std::ostream& out, Wrap wrap)
{
switch (wrap)
{
case WRAP:
out << "WRAP";
break;
case CLAMP:
out << "CLAMP";
break;
case MIRROR:
o... | 25,922 |
https://github.com/popor/PoporPopNC/blob/master/Example/Pods/PoporFoundation/PoporFoundation/Classes/NSString/NSString+email.m | Github Open Source | Open Source | MIT | 2,018 | PoporPopNC | popor | Objective-C | Code | 86 | 360 | //
// NSString+email.m
// WanziTG
//
// Created by popor on 2017/1/9.
// Copyright © 2017年 popor. All rights reserved.
//
#import "NSString+email.h"
// ---- 原因https://blog.csdn.net/wxs0124/article/details/50148873
//自定义的打印日志宏 如:
//#define TWLOGPRINT(xx, …) NSLog(@”%s(%d): ” xx, PRETTY_FUNCTION, LINE, ##VA_ARGS)
/... | 30,498 |
https://github.com/dez-php/file-storage/blob/master/app/models/Categories.php | Github Open Source | Open Source | MIT | 2,016 | file-storage | dez-php | PHP | Code | 299 | 1,023 | <?php
namespace FileStorage\Models;
use Dez\ORM\Model\QueryBuilder;
use Dez\ORM\Model\Table;
class Categories extends Table {
const STATUS_ACTIVE = 'active';
const STATUS_DELETED = 'deleted';
protected static $table = 'stored_file_categories';
/**
* @return Files[]
* @throws \Dez\ORM\Ex... | 41,865 |
https://github.com/ni/dldt/blob/master/tools/accuracy_checker/accuracy_checker/launcher/__init__.py | Github Open Source | Open Source | Apache-2.0 | 2,019 | dldt | ni | Python | Code | 149 | 378 | """
Copyright (c) 2019 Intel Corporation
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,... | 53,270 |
https://github.com/Liu2er/JJDemos/blob/master/JJLocalizationDemo/JJLocalizationDemo/ViewController.m | Github Open Source | Open Source | MIT | 2,019 | JJDemos | Liu2er | Objective-C | Code | 203 | 917 | //
// ViewController.m
// JJLocalizationDemo
//
// Created by Liu on 2019/2/18.
// Copyright © 2019年 Liu. All rights reserved.
//
#import "ViewController.h"
@interface ViewController ()
@property (nonatomic, strong) UIImageView *imageView;
@property (nonatomic, strong) UIButton *switchBtn;
@property (nonatomic, ... | 10,020 |
https://github.com/JonathanPrecise/FloatingWindows/blob/master/app/src/main/java/com/jpos/desktopmode/ext/fw/BrainRecognition.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | FloatingWindows | JonathanPrecise | Java | Code | 112 | 340 | package com.jpos.desktopmode.ext.fw;
import android.content.Context;
import android.support.annotation.StringRes;
/**
* Project: FloatingWindows.
* Created by jonos on 7/31/2016.
*/
@SuppressWarnings("WeakerAccess")
public class BrainRecognition {
private static BrainRecognition brInstance;
private String... | 23,726 |
https://github.com/realRoyHsu/reactDemo/blob/master/src/typings/IMatterCenter.d.ts | Github Open Source | Open Source | MIT | 2,020 | reactDemo | realRoyHsu | TypeScript | Code | 70 | 243 | export interface IMatterSearchValue {
area: string;
matterType: string;
number: string;
}
export interface IGetMatterData {
add_time: string;
area_id: string;
cid: string;
deal_type: string;
dept_ql_id: string;
dept_type: string;
dept_yw_id: string;
dept_yw_num: string;
id: string;
name: stri... | 28,045 |
https://github.com/iquanzhan/ant-design-generate-crud/blob/master/AntDesignGenerateCode/AntDesignGenerateCode/template/crudv2/Add.js | Github Open Source | Open Source | MIT | 2,019 | ant-design-generate-crud | iquanzhan | JavaScript | Code | 196 | 571 | import React, { Component } from 'react';
import { connect } from 'dva';
import { message } from 'antd';
import BaseForm from "@/components/BaseForm";
const formItemLayout = {
labelCol: {
xs: { span: 24 },
sm: { span: 10 },
md: { span: 7 },
lg: { span: 7 }
},
wrapperCol: {
... | 44,596 |
https://github.com/rgaidot/rails-async/blob/master/test/rails_root/config/boot.rb | Github Open Source | Open Source | MIT | 2,010 | rails-async | rgaidot | Ruby | Code | 66 | 192 | require 'rubygems'
# Set up gems listed in the Gemfile.
if File.exist?(File.expand_path('../../Gemfile', __FILE__))
require 'bundler'
Bundler.setup
end
# require 'rubygems'
#
# # Set up gems listed in the Gemfile.
# gemfile = File.expand_path('../../Gemfile', __FILE__)
# begin
# ENV['BUNDLE_GEMFILE'] = gemfile
... | 38,184 |
https://github.com/mttcrsp/fosdem/blob/master/App/Sources/Models/Tables/Event+Table.swift | Github Open Source | Open Source | MIT | 2,023 | fosdem | mttcrsp | Swift | Code | 303 | 900 | import Foundation
import GRDB
extension Event: PersistableRecord, FetchableRecord {
static var databaseTableName: String {
"events"
}
static var searchDatabaseTableName: String {
"\(databaseTableName)_search"
}
enum Columns: String, CaseIterable, ColumnExpression {
case id, room, track, date, s... | 10,447 |
https://github.com/ramonwirsch/glass_snippets/blob/master/nodding/libs/GlassVoice/com/x/google/masf/services/Event.java | Github Open Source | Open Source | BSD-3-Clause | 2,014 | glass_snippets | ramonwirsch | Java | Code | 146 | 346 | package com.x.google.masf.services;
public abstract interface Event
{
public static final int ANALYTICS_IMPRESSION = 24;
public static final int CARRIER_COUNTRY = 7;
public static final int CARRIER_NAME = 6;
public static final int CLIENT_PARAM = 13;
public static final int COUNTRY = 4;
public static final... | 54,467 |
https://github.com/Leooo/ember-commons-2/blob/master/blueprints/ember-commons-2/files/__root__/models/__modelname__/model.js | Github Open Source | Open Source | MIT | null | ember-commons-2 | Leooo | JavaScript | Code | 33 | 102 | // var myModel = require('ember-commons/models/premise');
//export default {a: <%= copycode %>};
//
// export default {a: "b"}
import { JSONAPISerializer } from 'ember-cli-mirage';
export default JSONAPISerializer.extend({
tutut2: <%= copycode %>,
tutut: "popo"
});
| 16,806 |
https://github.com/voflo/Search/blob/master/lab/davisWiki/Campus_Events_%26_Visitor_Services.f | Github Open Source | Open Source | MIT | null | Search | voflo | null | Spoken | 5 | 8 | #redirect Conference and Event Services
| 51,853 |
https://github.com/STiiTCHDev/SWRA/blob/master/src/app/services/runes-container.service.ts | Github Open Source | Open Source | MIT | null | SWRA | STiiTCHDev | TypeScript | Code | 81 | 241 | import { Injectable } from '@angular/core';
import { Rune } from '../models/Rune';
import { Monster } from '../models/Monster';
@Injectable()
export class RunesContainerService {
private runes: Rune[];
constructor() { }
public importData(data: SWPlayerData) {
this.runes = [];
for (const ... | 18,190 |
https://github.com/mateuszespl/myNation/blob/master/src/features/modal/ModalButton.styled.ts | Github Open Source | Open Source | MIT | null | myNation | mateuszespl | TypeScript | Code | 46 | 121 | import { makeStyles } from "@material-ui/core";
interface propsInterface {
selectRegionValue: string | undefined;
selectSortValue: string | undefined;
}
export const ModalButtonStyles = makeStyles({
button: (props: propsInterface) => ({
background:
props.selectSortValue === "None" && props.selectRegio... | 27,732 |
https://github.com/nicholastmosher/atsam4s16b-embedded-hal/blob/master/src/prelude.rs | Github Open Source | Open Source | Apache-2.0, MIT | 2,018 | atsam4s16b-embedded-hal | nicholastmosher | Rust | Code | 8 | 41 | pub use embedded_hal::prelude::*;
pub use crate::gpio::GpioExt as _atsam4s16b_hal_gpio_GpioExt; | 37,282 |
https://github.com/kummahiih/python-domain-equations/blob/master/domain_equations/naming.py | Github Open Source | Open Source | MIT | 2,021 | python-domain-equations | kummahiih | Python | Code | 469 | 1,684 |
"""
@copyright: 2018-2019 by Pauli Rikula <pauli.rikula@gmail.com>
@license: MIT <http://www.opensource.org/licenses/mit-license.php>
"""
import re
class TypeDescriptor:
def __init__(self, class_name: str = None, module_name: str = None):
self._module_name = module_name
self._class_name = c... | 10,035 |
https://github.com/skkskine/ng-zorro-antd/blob/master/components/table/demo/ellipsis.ts | Github Open Source | Open Source | MIT | 2,022 | ng-zorro-antd | skkskine | TypeScript | Code | 108 | 400 | import { Component, OnInit } from '@angular/core';
@Component({
selector: 'nz-demo-table-ellipsis',
template: `
<nz-table #fixedTable [nzData]="listOfData" nzTableLayout="fixed">
<thead>
<tr>
<th>Full Name</th>
<th>Age</th>
<th>Column 1</th>
<th>Column 2</t... | 26,353 |
https://github.com/dahelg/mkr/blob/master/src/configs/env.ts | Github Open Source | Open Source | MIT | 2,021 | mkr | dahelg | TypeScript | Code | 16 | 40 | import { IDotEnv } from '@/interfaces';
// @ts-ignore
export const __env__: IDotEnv = process.env as IDotEnv;
| 14,851 |
https://github.com/collinwright/nixpkgs/blob/master/pkgs/development/libraries/csfml/default.nix | Github Open Source | Open Source | MIT | 2,021 | nixpkgs | collinwright | null | Spoken | 119 | 341 | { lib, stdenv, fetchFromGitHub, cmake, sfml }:
let
version = "2.5";
in
stdenv.mkDerivation {
pname = "csfml";
inherit version;
src = fetchFromGitHub {
owner = "SFML";
repo = "CSFML";
rev = version;
sha256 = "071magxif5nrdddzk2z34czqmz1dfws4d7dqynb2zpn7cwhwxcpm";
};
nativeBuildInputs = [... | 31,990 |
https://github.com/ivk1800/diff/blob/master/feature/repos_list/repos_list_data/lib/src/repos_entity.dart | Github Open Source | Open Source | Apache-2.0 | null | diff | ivk1800 | Dart | Code | 55 | 182 | import 'package:json_annotation/json_annotation.dart';
import 'repo_entity.dart';
part 'repos_entity.g.dart';
@JsonSerializable()
class ReposEntity {
ReposEntity({
required this.repos,
});
List<RepoEntity> repos;
factory ReposEntity.fromJson(Map<String, dynamic> json) =>
_$ReposEntityFromJson(jso... | 13,203 |
https://github.com/kubernetes/enhancements/blob/master/pkg/repo/write.go | Github Open Source | Open Source | Apache-2.0 | 2,023 | enhancements | kubernetes | Go | Code | 196 | 533 | /*
Copyright 2021 The Kubernetes 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 applicable law or agreed to in writing, ... | 50,901 |
https://github.com/CS2103AUG2017-T11-B3/main/blob/master/src/test/java/seedu/address/logic/commands/FindTaskCommandTest.java | Github Open Source | Open Source | MIT | 2,017 | main | CS2103AUG2017-T11-B3 | Java | Code | 341 | 1,347 | package seedu.address.logic.commands;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static seedu.address.commons.core.Messages.MESSAGE_TASK_LISTED_OVERVIEW;
import static seedu.address.testutil.TypicalAddressBook.getTypicalAdd... | 19,993 |
https://github.com/samouri/remark/blob/master/packages/remark-stringify/types/test.ts | Github Open Source | Open Source | MIT | null | remark | samouri | TypeScript | Code | 134 | 394 | import remarkStringify = require('remark-stringify')
import unified = require('unified')
import {Node, Parent} from 'unist'
const inferredStringifyOptions = {
gfm: true,
fences: true,
incrementListMarker: false
}
unified().use(remarkStringify)
unified().use(remarkStringify, inferredStringifyOptions)
// These c... | 7,299 |
https://github.com/Pixelgamix/MuplonenServer/blob/master/Muplonen/GameSystems/OutgoingMessages.cs | Github Open Source | Open Source | MIT | 2,020 | MuplonenServer | Pixelgamix | C# | Code | 76 | 156 | namespace Muplonen.GameSystems
{
public static class OutgoingMessages
{
public const ushort AccountRegistration = 1;
public const ushort AccountLogin = 2;
public const ushort Chat = 3;
public const ushort CharacterList = 4;
public const ushort CharacterCreation = 5;
... | 15,861 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.