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/staticfloat/BinaryBuilderRepos/blob/master/C/casacore/bundled/patches/0001-Fix-compilation-of-RefTable-on-i386-platform-1129.patch
Github Open Source
Open Source
MIT
null
BinaryBuilderRepos
staticfloat
null
Spoken
129
428
From 6f4d5783453e5e3516a134bda3b55e0a50a27aa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Offringa?= <offringa@gmail.com> Date: Mon, 8 Nov 2021 22:12:31 +0100 Subject: [PATCH] Fix compilation of RefTable on i386 platform (#1129) Fixes #1123. I've tested compilation on a i386 virtual machine, and it's fixed. ...
4,634
https://github.com/niederha/BeatTheCurve/blob/master/djBeatTheCurve/main/views.py
Github Open Source
Open Source
MIT
null
BeatTheCurve
niederha
Python
Code
758
2,730
from django.shortcuts import HttpResponse from django.shortcuts import render from django.http import QueryDict from django.http import HttpResponseRedirect, JsonResponse from django.contrib.auth.models import User from django.contrib.auth.forms import UserCreationForm, AuthenticationForm from django.contrib.auth impor...
8,010
https://github.com/lookio/avro-schema-registry/blob/master/test/registry.test.js
Github Open Source
Open Source
MIT
null
avro-schema-registry
lookio
JavaScript
Code
199
795
'use strict'; const chai = require('chai'); const expect = require('chai').expect; const nock = require('nock'); const sinon = require('sinon'); const chaiAsPromised = require('chai-as-promised'); chai.use(chaiAsPromised); const registry = require('./../registry'); describe('registry', () => { afterEach(() => { ...
45,168
https://github.com/cash2one/xai/blob/master/xai/brain/wordbase/adjectives/_silly.py
Github Open Source
Open Source
MIT
2,017
xai
cash2one
Python
Code
59
191
#calss header class _SILLY(): def __init__(self,): self.name = "SILLY" self.definitions = [u'showing little thought or judgment: ', u'embarrassed; afraid that people will laugh at you: ', u'not important, serious, or practical: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata =...
47,240
https://github.com/bububa/opentaobao/blob/master/model/ascp/AlibabaDchainAoxiangWmsOrderCancelAPIRequest.go
Github Open Source
Open Source
Apache-2.0
2,023
opentaobao
bububa
Go
Code
128
639
package ascp import ( "net/url" "github.com/bububa/opentaobao/model" ) // AlibabaDchainAoxiangWmsOrderCancelAPIRequest 回传发货单取消通知 API请求 // alibaba.dchain.aoxiang.wms.order.cancel // // 回传发货单取消通知 type AlibabaDchainAoxiangWmsOrderCancelAPIRequest struct { model.Params // 单据取消回传上报请求 _orderCancelReportRequest *Order...
14,784
https://github.com/qisibajie/gildedrosekata/blob/master/src/main/java/com/refactor/bootcamp/switch_statement/example_2/SwitchStatementExample2.java
Github Open Source
Open Source
MIT
null
gildedrosekata
qisibajie
Java
Code
41
170
package com.refactor.bootcamp.switch_statement.example_2; class SwitchStatementExample2 { private Engineer engineer; public SwitchStatementExample2() { engineer = new Engineer(); } double getFrontendBillableAmount(double unit) { engineer.toFrontend(); return engineer.getBilla...
46,486
https://github.com/JohnWhite80/SocialLabelServer/blob/master/src/main/java/com/github/sociallabel/repository/UserRepository.java
Github Open Source
Open Source
MIT
2,014
SocialLabelServer
JohnWhite80
Java
Code
90
318
package com.github.sociallabel.repository; import java.util.List; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaSpecificationExecutor; import org.springframework.data.jpa.repository.Query; import com.github.sociallabel.entity.User; public interface...
3,007
https://github.com/DoctorpcDevNic/magecsa/blob/master/app/controllers/CandidatosController.php
Github Open Source
Open Source
MIT
2,015
magecsa
DoctorpcDevNic
PHP
Code
1,869
8,878
<?php class CandidatosController extends BaseController { /** * [viewPerfil description] * @param [type] $username [description] * @return [type] [description] */ public function viewPerfil($username){ $user = User::where('username', $username)->first(); return View::make('usuario.perfil')->w...
16,512
https://github.com/kyoya-p/samples/blob/master/2022/programming/AtCoder/220402_ABC246/src/main/kotlin/E.kt
Github Open Source
Open Source
Apache-2.0
2,023
samples
kyoya-p
Kotlin
Code
667
1,949
@file:Suppress("unused", "EXPERIMENTAL_IS_NOT_ENABLED") package main.e import testenv.stdioEmulatiors import testenv.testEnv // Debugging val <T> T.p get() = also { System.err.print(it) } val <T> T.pl get() = also { System.err.println(it) } val <T> T.ppl get() = also { println(it) } fun <T> p(v: T) = System.err.prin...
47,784
https://github.com/wuwayne/MiniBlog/blob/master/app/social/__init__.py
Github Open Source
Open Source
MIT
2,018
MiniBlog
wuwayne
Python
Code
11
36
from flask import Blueprint bp = Blueprint('social',__name__,template_folder='templates') from app.social import forms,views
43,741
https://github.com/simotek/scripts-config/blob/master/config.fish
Github Open Source
Open Source
BSD-2-Clause
2,020
scripts-config
simotek
Fish
Code
31
90
# My default fish config that just loads tacklebox. set tacklebox_path ~/src/config/tackle set tacklebox_modules virtualfish virtualhooks set tacklebox_plugins python extract find-in colors grc devel set tacklebox_theme simotek #initialise tacklebox source ~/src/config/tacklebox/tacklebox.fish
10,241
https://github.com/alanfalloon/gnulib/blob/master/lib/wcscmp-impl.h
Github Open Source
Open Source
Vim
2,016
gnulib
alanfalloon
C
Code
190
363
/* Compare two wide strings. Copyright (C) 1999, 2011-2012 Free Software Foundation, Inc. Written by Bruno Haible <bruno@clisp.org>, 1999. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundatio...
16,786
https://github.com/swayangjit/sunbird-android-sdk/blob/master/genie-services/src/main/java/org/ekstep/genieservices/GenieService.java
Github Open Source
Open Source
MIT
2,020
sunbird-android-sdk
swayangjit
Java
Code
1,392
4,475
package org.ekstep.genieservices; import android.content.Context; import org.ekstep.genieservices.async.GenieAsyncService; import org.ekstep.genieservices.auth.AuthServiceImpl; import org.ekstep.genieservices.commons.AndroidAppContext; import org.ekstep.genieservices.commons.AndroidLogger; import org.ekstep.genieserv...
37,982
https://github.com/QtOpenGL/vgc/blob/master/libs/vgc/geometry/curve.cpp
Github Open Source
Open Source
ECL-2.0, Apache-2.0
2,022
vgc
QtOpenGL
C++
Code
1,568
4,146
// Copyright 2021 The VGC Developers // See the COPYRIGHT file at the top-level directory of this distribution // and at https://github.com/vgc/vgc/blob/master/COPYRIGHT // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may o...
41,179
https://github.com/captain-Krook/astro-naute-eleven/blob/master/my-app/src/components/Modal/Popin.styles.ts
Github Open Source
Open Source
MIT
2,021
astro-naute-eleven
captain-Krook
TypeScript
Code
48
130
import { makeStyles, createStyles } from "@material-ui/core" export const useStyles = makeStyles(() => { return createStyles({ content: { position: "absolute", width: 700, height: "auto", backgroundColor: "white", padding: "1em", "& p": { fontWeight: 300, fontSize: "1.2em" }, ...
2,760
https://github.com/openshift/openshift-azure/blob/master/vendor/github.com/kubernetes-incubator/service-catalog/pkg/controller/parameters.go
Github Open Source
Open Source
Apache-2.0
2,021
openshift-azure
openshift
Go
Code
844
2,007
/* Copyright 2017 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, ...
16,298
https://github.com/henrichg/PhoneProfiles/blob/master/phoneProfiles/src/main/java/sk/henrichg/phoneprofiles/WifiStateChangedBroadcastReceiver.java
Github Open Source
Open Source
Apache-2.0
2,020
PhoneProfiles
henrichg
Java
Code
200
827
package sk.henrichg.phoneprofiles; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.net.wifi.WifiConfiguration; import android.net.wifi.WifiManager; import android.os.Handler; import android.os.PowerManager; import java.util.List; import static a...
21,448
https://github.com/grupo4s2j/boscoFP53/blob/master/resources/views/tag/index.blade.php
Github Open Source
Open Source
MIT
2,017
boscoFP53
grupo4s2j
Blade
Code
172
673
@extends('scaffold-interface.layouts.app') @section('title','Index') @section('content') <?php // number of rows per page $rowperpage = 5; if (isset($_POST['num_rows'])) { $rowperpage = $_POST['num_rows']; }?> <section class="content"> <h1> Llistat tags </h1> <form class = '...
30,068
https://github.com/leveny7/site/blob/master/app/Http/Controllers/SearchController.php
Github Open Source
Open Source
MIT
null
site
leveny7
PHP
Code
71
464
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use DB; use App\Student; use App\Tutor; class SearchController extends Controller { public function getStudentsResults(Request $request) { $search_students = $request -> input('search_students'); if (!$search_students) { return redirect()-...
30,678
https://github.com/nilayparikh/mongo-csharp-driver/blob/master/Driver/Internal/MongoInsertMessage.cs
Github Open Source
Open Source
Apache-2.0
2,019
mongo-csharp-driver
nilayparikh
C#
Code
260
731
/* Copyright 2010-2012 10gen Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing...
17,590
https://github.com/AbdelrahmanBl/teachers-app/blob/master/app/Models/PaymentRepo.php
Github Open Source
Open Source
MIT
null
teachers-app
AbdelrahmanBl
PHP
Code
97
416
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use App\Models\Appointment; class PaymentRepo extends Model { protected $fillable = ["name","desc","teacher_id","year","appointment_ids"]; public function getAppointmentsArrAttribute() { $all = json_decode($this->appointment_ids...
30,018
https://github.com/btovar/cvmfs/blob/master/cvmfs/monitor.cc
Github Open Source
Open Source
FSFUL
2,013
cvmfs
btovar
C++
Code
1,583
4,643
/** * This file is part of the CernVM File System. * * This module forks a watchdog process that listens on * a pipe and prints a stackstrace into syslog, when cvmfs * fails. * * Also, it handles getting and setting the maximum number of file descriptors. */ #include "cvmfs_config.h" #include "monitor.h" #inc...
18,730
https://github.com/linmuxi/ttw/blob/master/.svn/pristine/d1/d15cf5de5ca91bfd175b010a965046202c598ddd.svn-base
Github Open Source
Open Source
MIT
2,016
ttw
linmuxi
JavaScript
Code
290
1,027
/** * flexigrid list */ $(function() { //供应商列表数据加载 $("#flexsupplierlist").flexigrid({ url : webRoot + '/page/ttw/manage/supplier/supplier', dataType : 'json', cache : false, colModel : [ { display : '供应商编号', name : 'supNo', width :160, sortable : true, align : 'center' }, { display : '合同...
49,716
https://github.com/NathanHogan16/Project-3/blob/master/db/schema.sql
Github Open Source
Open Source
Unlicense
null
Project-3
NathanHogan16
SQL
Code
8
19
DROP DATABASE IF EXISTS recipes; CREATE DATABASE recipes;
50,032
https://github.com/einse/respire/blob/master/calendar.js
Github Open Source
Open Source
Apache-2.0
2,016
respire
einse
JavaScript
Code
1,209
2,819
/** * Calendar is a part of Respire: * https://github.com/einse/respire */ var Calendar = { /** * today(format); * * Returns the present day in various formats. * * The date used in all examples for this function * is October 1, 2016. */ today: function (format) { var d = new Date(); ...
14,905
https://github.com/envhyf/SplitR/blob/master/man/disp_stats_particle_heights.Rd
Github Open Source
Open Source
MIT
2,015
SplitR
envhyf
R
Code
92
248
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/disp_stats_particle_heights.R \name{disp_stats_particle_heights} \alias{disp_stats_particle_heights} \title{Get statistics for dispersed particle heights} \usage{ disp_stats_particle_heights(dispersion_df, stats) } \arguments{ \item{d...
11,208
https://github.com/bitcrystal/edk/blob/master/Sample/Bus/Pci/Ehci/Dxe/EhciUrb.h
Github Open Source
Open Source
BSD-3-Clause
2,021
edk
bitcrystal
C
Code
1,221
3,312
/*++ Copyright (c) 2007, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php...
49,045
https://github.com/shikhanair/TeachersPetBot/blob/master/test/test_office_hours.py
Github Open Source
Open Source
MIT
null
TeachersPetBot
shikhanair
Python
Code
74
294
from utils import wait_for_msg, wait_for_channel_create async def get_queue(testing_bot, oh_channel): bot_queue_resp = await wait_for_msg(testing_bot, oh_channel, 'Queue') return bot_queue_resp.content.split('\n')[2:] async def test_oh_queue_individ(testing_bot, oh_channel): await oh_channel.send('!oh en...
14,017
https://github.com/honorforlee/heartrack/blob/master/modules/ANC/ANC_persistent.m
Github Open Source
Open Source
MIT
2,016
heartrack
honorforlee
MATLAB
Code
49
143
function hrsig = ANC_persistent(ppg,acc,order,mu) persistent ha; if nargin < 4 if nargin < 3 if nargin < 2 disp('Not enough arguments for ANC!'); return; else order = 32; end else mu = 0.008; % LMS step size. en...
5,847
https://github.com/yetao0707/PFinance/blob/master/out/artifacts/PFinance_war_exploded/WebContent/resources/js/admin/manager.js
Github Open Source
Open Source
MIT
2,017
PFinance
yetao0707
JavaScript
Code
281
1,212
$(document).ready(function(){ $(".updateuserbutton").click(function(){ var string="#"+$(this).attr("id"); $.ajax({ type : "post", url : "editUser", data : { id : $(string+"id").val(), name : $(string+"name").val(), userCode : $(string+"userCode").val(), password : $(string+"password").v...
31,595
https://github.com/jainvikas8/OpenCL-CTS/blob/master/test_conformance/device_execution/main.cpp
Github Open Source
Open Source
Apache-2.0
2,022
OpenCL-CTS
jainvikas8
C++
Code
327
984
// // Copyright (c) 2017 The Khronos Group Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable la...
17,864
https://github.com/EPIC448/oo-kickstarter-v-000/blob/master/lib/project.rb
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain
2,018
oo-kickstarter-v-000
EPIC448
Ruby
Code
61
134
#note: Kickstarter is a website that random people support your project class Project attr_accessor :title, :backers def initialize(title) @title = title @backers =[] end def add_backer(backers) #stores project in a back_project array @backers << backers backers.backed_projects << self...
1,523
https://github.com/SamuelJohnson2022/Spell-Selection-Interface/blob/master/Assets/Spell_SOs/Nature's Gift.asset
Github Open Source
Open Source
CC0-1.0
2,021
Spell-Selection-Interface
SamuelJohnson2022
Unity3D Asset
Code
71
281
%YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!114 &11400000 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 0} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 778e0801c79ce...
25,860
https://github.com/ik314/.emacs.d/blob/master/elpa/zetteldeft-20210801.1647/zetteldeft.el
Github Open Source
Open Source
MIT
null
.emacs.d
ik314
null
Spoken
4,361
14,549
;;; zetteldeft.el --- Turn deft into a zettelkasten system -*- lexical-binding: t -*- ;; Copyright (C) 2018-2021 EFLS ;; Author: EFLS <Elias Storms> ;; URL: https://efls.github.io/zetteldeft/ ;; Keywords: deft zettelkasten zetteldeft wp files ;; Version: 0.3 ;; Package-Requires: ((emacs "25.1") (deft "0.8") (ace-win...
16,774
https://github.com/felixarpa/CAP-Apunts/blob/master/smalltalk/Examples-SnakesAndLadders.package/MetaclassHierarchyTest.class/instance/testHierarchy.st
Github Open Source
Open Source
Apache-2.0
2,018
CAP-Apunts
felixarpa
null
Spoken
138
294
running testHierarchy "The class hierarchy" self assert: SnakeSquare superclass = BoardSquare. self assert: BoardSquare superclass = Object. self assert: Object superclass superclass = nil. "The parallel metaclass hierarchy" self assert: SnakeSquare class name = 'SnakeSquare class'. self assert: SnakeSquare clas...
10,076
https://github.com/Business-model-canvas/fridolean/blob/master/src/frontend/src/Views/Home/index.js
Github Open Source
Open Source
MIT
2,019
fridolean
Business-model-canvas
JavaScript
Code
190
664
import React, {Component} from 'react'; import { Container, Header, Segment, Grid, Divider, Image} from 'semantic-ui-react'; import Auth from '../../modules/Auth'; class Home extends Component { componentDidMount() { this.props.toggleAuthenticationStatus(); } render(){ return( ...
14,333
https://github.com/philippe-levan/udemy-react-redux-tuto/blob/master/src/Section5Middleware/src/reducers/reducer_weather.js
Github Open Source
Open Source
MIT
2,018
udemy-react-redux-tuto
philippe-levan
JavaScript
Code
72
161
import { FETCH_WEATHER } from '../actions/index'; export default function (state=[], action) { switch (action.type) { case FETCH_WEATHER: // warning : don't use push that mutates the state // we have to returns a new array // **NO ! mutates the state ** return state.push...
924
https://github.com/vigejolla/sailjail/blob/master/src/jail_conf.c
Github Open Source
Open Source
BSD-2-Clause
2,021
sailjail
vigejolla
C
Code
664
1,990
/* * Copyright (c) 2020 Open Mobile Platform LLC. * * You may use this file under the terms of the BSD license as follows: * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source co...
35,647
https://github.com/esironal/Riki/blob/master/config.js
Github Open Source
Open Source
MIT
2,014
Riki
esironal
JavaScript
Code
37
127
/** * * config * * @description * @author Fantasy <fantasyshao@icloud.com> * @create 2014-10-13 * @update 2014-10-13 */ var config = { db: 'mongodb://127.0.0.1/riki', db_name: 'riki', cookie_name: 'riki', session_secret: 'riki' }; module.exports = config; module.exports.config = config;
15,697
https://github.com/pangkeji/warp3d/blob/master/linux_packages/source/hypre-2.9.0b/src/babel/bHYPREClient-F90/sidl_RuntimeException_fAbbrev.h
Github Open Source
Open Source
NCSA
2,022
warp3d
pangkeji
C
Code
414
4,730
#define sidl_RuntimeException_deleteRef_m RuntimeEx_deleteRef847jg_am0s_m #define sidl_runtimeexception_deleteref_m runtimeex_deleteref847jg_am0s_m #define SIDL_RUNTIMEEXCEPTION_DELETEREF_M RUNTIMEEX_DELETEREF847JG_AM0S_M #define sidl_RuntimeException_getClassInfo_m Runtim_getClassInfooytno7l621_m #define sidl_runtimee...
12,385
https://github.com/factor-50-devops-bot/group-service/blob/master/GroupService/GroupService.Repo/Migrations/20200630075113_SetDefaultGroup.cs
Github Open Source
Open Source
MIT
null
group-service
factor-50-devops-bot
C#
Code
57
179
using Microsoft.EntityFrameworkCore.Migrations; namespace GroupService.Repo.Migrations { public partial class SetDefaultGroup : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.InsertData( schema: "Group", ...
15,531
https://github.com/SopTHN/backery-project2/blob/master/storage/framework/views/181d484fb90ed1897117d5b16884b1bef6e19ccf.php
Github Open Source
Open Source
MIT
null
backery-project2
SopTHN
PHP
Code
313
1,068
<?php $__env->startSection('Title_name'); ?> Login <?php $__env->stopSection(); ?> <?php $__env->startSection('cssLink'); ?> <link rel = 'stylesheet' href = '/css/Messages.css'/> <?php $__env->stopSection(); ?> <?php $__env->startSection('form'); ?> <form action = '<?php echo e(url("/")); ?>' method = ...
29,569
https://github.com/narenderwaraich/billpay/blob/master/resources/views/ex-view/show-delete-invoice.blade.php
Github Open Source
Open Source
MIT
null
billpay
narenderwaraich
PHP
Code
378
2,067
@extends('layouts.app') @section('content') <div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12" style="padding-top: 15px;"> <h5>Recent Delete Invoices</h5> </div> <div class="search-bar"> <form action="/delete/invoice/search" method="POST" id="SearchData" role="search"> ...
39,541
https://github.com/qaz734913414/talent-pool/blob/master/src/containers/layouts/Sidebar/index.js
Github Open Source
Open Source
WTFPL
2,017
talent-pool
qaz734913414
JavaScript
Code
58
192
import './Sidebar.less' import React, { Component } from 'react' import classNames from 'classnames' import autoBind from 'react-autobind' import SidebarItem from './SidebarItem' class Sidebar extends Component { render() { return ( <div className='core-sidebar'> <div className='core-sidebar__titl...
49,588
https://github.com/Akarin-project/AkarinModEdition/blob/master/src/main/java/net/minecraft/network/play/server/SPacketDisplayObjective.java
Github Open Source
Open Source
MIT
2,018
AkarinModEdition
Akarin-project
Java
Code
84
408
package net.minecraft.network.play.server; import java.io.IOException; import net.minecraft.network.Packet; import net.minecraft.network.PacketBuffer; import net.minecraft.network.play.INetHandlerPlayClient; import net.minecraft.scoreboard.ScoreObjective; public class SPacketDisplayObjective implements Packet<INetHa...
27,666
https://github.com/vigbalu/flang/blob/master/lib/scutil/host-fp-folding.c
Github Open Source
Open Source
Apache-2.0
null
flang
vigbalu
C
Code
2,052
9,556
/* * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. * See https://llvm.org/LICENSE.txt for license information. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception * */ /** \file * \brief Implement floating-point folding with host arithmetic * * Implements the compile-time ...
11,230
https://github.com/mhagander/pgadmin3/blob/master/pgadmin/include/pgscript/expressions/pgsNot.h
Github Open Source
Open Source
PostgreSQL, BSD-3-Clause
2,010
pgadmin3
mhagander
C++
Code
79
232
////////////////////////////////////////////////////////////////////////// // // pgScript - PostgreSQL Tools // // Copyright (C) 2002 - 2010, The pgAdmin Development Team // This software is released under the PostgreSQL Licence // ////////////////////////////////////////////////////////////////////////// #ifndef PG...
5,428
https://github.com/MasterCloudApps/3.4.Aplicaciones-nativas-de-la-nube.T2-Serverless/blob/master/sections/7-UsersManagement/frontend-react-aws-cognito/src/components/ActivationMessage.js
Github Open Source
Open Source
Apache-2.0
2,020
3.4.Aplicaciones-nativas-de-la-nube.T2-Serverless
MasterCloudApps
JavaScript
Code
94
293
import { connect } from 'react-redux'; import React, { Component } from 'react'; import { Link as LinkRouter } from 'react-router-dom'; import Grid from '@material-ui/core/Grid'; import CssBaseline from '@material-ui/core/CssBaseline'; import Container from '@material-ui/core/Container'; class ActivationMessage exten...
32,122
https://github.com/fireho/nfe-ruby/blob/master/lib/entidades/cliente.rb
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, MIT
2,011
nfe-ruby
fireho
Ruby
Code
167
651
require 'configuracao/parametros' require 'active_model' class Cliente include ActiveModel::Serializers::JSON include ActiveModel::Serializers::Xml # - Nome/Razão Social (obrigatorio) attr_accessor :razao_social # - Tipo de Documento (obrigatorio) - default CNPJ - TIPOS_DOCUMENTO attr_access...
36,491
https://github.com/hanyudeye/dianweipan/blob/master/common/modules/wizard/views/migrate/previewSql.php
Github Open Source
Open Source
BSD-3-Clause
2,021
dianweipan
hanyudeye
PHP
Code
6
45
<pre><code><?= $sql ?></code></pre> <script> $("code").html(hljs.highlightAuto($("code").html()).value); </script>
15,301
https://github.com/kurylo/openvino/blob/master/src/plugins/intel_cpu/src/utils/shape_inference/static_shape.hpp
Github Open Source
Open Source
Apache-2.0
2,020
openvino
kurylo
C++
Code
221
697
// Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #pragma once #include <cstddef> #include "ngraph/op/util/attr_types.hpp" #include "openvino/core/attribute_adapter.hpp" #include "static_dimension.hpp" #include "openvino/core/rank.hpp" #include "openvino/core/shape.hpp" #include ...
17,817
https://github.com/AzureMentor/MobileKidsIdApp/blob/master/src/MobileKidsIdApp/MobileKidsIdApp.Models/Family.cs
Github Open Source
Open Source
Apache-2.0
2,018
MobileKidsIdApp
AzureMentor
C#
Code
75
248
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Csla; namespace MobileKidsIdApp.Models { [Serializable] public class Family : BusinessListBase<Family, Child> { private async Task DataPortal_Fetch() { var ...
21,880
https://github.com/DevopsArtFactory/klocust/blob/master/pkg/klocust/constant.go
Github Open Source
Open Source
Apache-2.0
2,022
klocust
DevopsArtFactory
Go
Code
259
815
/* Copyright 2020 The klocust 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, soft...
45,064
https://github.com/zyfjeff/utils_code/blob/master/lambda_func2.cpp
Github Open Source
Open Source
Apache-2.0
null
utils_code
zyfjeff
C++
Code
40
159
#include <iostream> #include <array> #include <cstdint> #include <typeinfo> #include <algorithm> int main() { using MyArray = std::array<uint32_t,5>; MyArray myArray{1,2,3,4,5}; auto MyClosure = [](uint32_t number) { std::cout << number << std::endl; }; std::cout << typeid(MyClosure).name() << std::endl; std...
27,473
https://github.com/skarik/1Engine/blob/master/oneEngine/oneGame/.res-1/shaders/sys/black_p.glsl
Github Open Source
Open Source
FTL, BSD-3-Clause
2,023
1Engine
skarik
GLSL
Code
81
251
// sys/black // Draws a purely black object. #version 430 // Inputs from vertex shader layout(location = 0) in vec2 v2f_texcoord0; // Samplers layout(binding = 0, location = 20) uniform sampler2D textureSampler0; // Outputs layout(location = 0) out vec4 FragDiffuse; // External constants layout(binding = 1, std140)...
32,771
https://github.com/data61/MP-SPDZ/blob/master/Tools/Lock.cpp
Github Open Source
Open Source
MIT, BSD-3-Clause, BSD-2-Clause
2,023
MP-SPDZ
data61
C++
Code
26
114
/* * Lock.cpp * */ #include <Tools/Lock.h> Lock::Lock() { pthread_mutex_init(&mutex, 0); } Lock::~Lock() { pthread_mutex_destroy(&mutex); } void Lock::lock() { pthread_mutex_lock(&mutex); } void Lock::unlock() { pthread_mutex_unlock(&mutex); }
20,766
https://github.com/afadhinc/halogadai/blob/master/application/models/M_user.php
Github Open Source
Open Source
MIT
null
halogadai
afadhinc
PHP
Code
202
802
<?php defined('BASEPATH') OR exit('No direct script access allowed'); date_default_timezone_set('Asia/Jakarta'); class M_user extends CI_Model { public function select_all($columns='',$requestData='') { $sql = "SELECT * FROM tbl_user WHERE id_role = 2 "; if ($columns != '') { $search = array(); foreach ($co...
32,396
https://github.com/csllc/cs-modbus/blob/master/test/errors.js
Github Open Source
Open Source
MIT
2,022
cs-modbus
csllc
JavaScript
Code
134
638
/*jshint maxlen:999*/ /*global describe:false,it:false*/ 'use strict'; var should = require('should'); var errors = require((process.env.LIB_FOR_TESTS_DIR || '../lib') + '/errors'); describe("errors", function() { describe("ResponseTimeoutError", function() { it("should exist", function() { should....
31,617
https://github.com/Mr-OMD/Rent-a-car-project/blob/master/src/main/java/com/omertdemirel/rentacar/business/dtos/CorporateCustomerDto.java
Github Open Source
Open Source
MIT
2,022
Rent-a-car-project
Mr-OMD
Java
Code
36
122
package com.omertdemirel.rentacar.business.dtos; import java.time.LocalDate; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @AllArgsConstructor @NoArgsConstructor public class CorporateCustomerDto { //private int id; private String corporateName; private String taxNo...
1,615
https://github.com/fossabot/SharpPad/blob/master/SharpPad.VSCode/src/parsers/TypeNameParser.ts
Github Open Source
Open Source
MIT
2,020
SharpPad
fossabot
TypeScript
Code
232
664
/* Ported and Adapted from a CodeProject article written by Christophe Bertrand. Utilized under MS-PL. Many, many thanks! https://www.codeproject.com/Tips/624300/AssemblyQualifiedName-Parser */ import TypeName from './TypeName' export default class TypeNameParser { //static typeNameParser: P.Parser ...
36,670
https://github.com/STEMLab/InFactory-IMDF/blob/master/igml-feature/src/main/java/edu/pnu/stem/dao/BuildingStateDAO.java
Github Open Source
Open Source
MIT
2,021
InFactory-IMDF
STEMLab
Java
Code
656
2,470
package edu.pnu.stem.dao; import java.util.ArrayList; import java.util.List; import java.util.UUID; import org.locationtech.jts.geom.Geometry; import org.locationtech.jts.geom.Point; import org.locationtech.jts.io.ParseException; import org.locationtech.jts.io.WKTReader; import edu.pnu.stem.binder.IndoorGMLMap; impo...
45,368
https://github.com/slowli/webgl-player/blob/master/src/lake/Firefly.js
Github Open Source
Open Source
MIT
2,020
webgl-player
slowli
JavaScript
Code
340
1,193
/** * Firefly shader and corresponding mesh. * @author Alex Ostrovski */ (function(namespace) { // Imports var MathUtils = namespace.MathUtils; function Firefly() { } var Firefly_Shader = { uniforms: { diffuseColor: { type: 'c', value: new THREE.Color(0xaaaaaa) }, specularColor: { type: 'c', value: new T...
36,519
https://github.com/ianasjl/real-chat/blob/master/symfony/src/AppBundle/DTO/SymfonyFormDTO.php
Github Open Source
Open Source
MIT
null
real-chat
ianasjl
PHP
Code
27
72
<?php /** * Created by PhpStorm. * User: ianas * Date: 09.05.2018 * Time: 16:39 */ namespace AppBundle\DTO; interface SymfonyFormDTO extends \JSONSerializable { public function getDataClass(); }
28,677
https://github.com/cthiel42/StatsAgg/blob/master/src/main/java/com/pearson/statsagg/utilities/web_utils/HttpRequest.java
Github Open Source
Open Source
Apache-2.0
2,022
StatsAgg
cthiel42
Java
Code
915
2,932
package com.pearson.statsagg.utilities.web_utils; import com.google.common.io.CharStreams; import com.pearson.statsagg.utilities.core_utils.StackTrace; import com.pearson.statsagg.utilities.string_utils.StringUtilities; import java.io.BufferedReader; import java.io.DataOutputStream; import java.io.InputStreamReader; i...
49,677
https://github.com/alextolstov/chicago-apt/blob/master/chicago-web/src/api/FetchApi.js
Github Open Source
Open Source
MIT
2,019
chicago-apt
alextolstov
JavaScript
Code
121
380
export default class FetchApi { restCrud = (url, dataObject, deserializer, errorHandler) => { let serialized_object = dataObject.serializeBinary(); return this.defaultFetch(url, serialized_object, deserializer, errorHandler); } defaultFetch = (url, serialized_obj, deserializer, errorHa...
27,068
https://github.com/r-lyeh/wave/blob/master/deps/musepack/libmpcpsy/fft4g.c
Github Open Source
Open Source
Zlib
2,017
wave
r-lyeh
C
Code
2,877
7,316
/* * Musepack audio compression * Copyright (c) 2005-2009, The Musepack Development Team * Copyright (C) 1999-2004 Buschmann/Klemm/Piecha/Wolf * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software...
51,105
https://github.com/Pandinosaurus/EdgeML/blob/master/tools/SeeDot/seedot/compiler/codegen/dlx/src/dlx.h
Github Open Source
Open Source
MIT
2,022
EdgeML
Pandinosaurus
C++
Code
788
2,063
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. /** Dancing links implementation to solve exact cover problem */ #include <cstdlib> #include <iostream> #include <list> #include <vector> #include <string> using namespace std; #define LOOP_RIGHT(element, head) \ f...
36,987
https://github.com/Adherentman/dictc/blob/master/core/src/ts/components/public/CodeExample.tsx
Github Open Source
Open Source
MIT
2,018
dictc
Adherentman
TSX
Code
148
495
import { Tooltip } from 'antd'; import ReactMarkdown from 'react-markdown'; import { LiveProvider, LiveEditor, LiveError, LivePreview, } from 'react-live'; interface ICodeExampleProps { title: string; scope?: {[index: string]: any}; sourceCode: string; } interface ICodeExampleState { showSource: boole...
38,788
https://github.com/DrPizza/awkawk/blob/master/awkawk/include/d3d_renderer.h
Github Open Source
Open Source
Zlib
2,012
awkawk
DrPizza
C++
Code
412
1,383
// Copyright (C) 2012 Peter Bright // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // // Permission is granted to anyone to use this software for any purpose, // includin...
6,073
https://github.com/rintcius/sbt-trickle/blob/master/src/main/scala/sbttrickle/TrickleKeys.scala
Github Open Source
Open Source
Apache-2.0
2,020
sbt-trickle
rintcius
Scala
Code
447
1,085
/* * Copyright 2020 Daniel Sobral * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
23,423
https://github.com/abuSalehMatul/Marketplace-bogor-Ecommerce/blob/master/resources/views/buyer/profile.blade.php
Github Open Source
Open Source
MIT
2,019
Marketplace-bogor-Ecommerce
abuSalehMatul
Blade
Code
494
2,527
@extends('layout.app') @push('headerscript') <link rel="stylesheet" type="text/css" href="{{ asset('webtheme/css/sidebar.css') }}"> @endpush @section('content') @php $user=Auth::user(); $buyer=$user->buyer; @endphp <div class="tp-dashboard-head"> <!-- page header --> <div class="container"> <div class=...
28,286
https://github.com/xAleXXX007x/misca/blob/master/src/main/java/msifeed/misca/tweaks/MiscaCrashInfo.java
Github Open Source
Open Source
MIT
2,021
misca
xAleXXX007x
Java
Code
86
305
package msifeed.misca.tweaks; import net.minecraftforge.fml.common.ICrashCallable; public class MiscaCrashInfo implements ICrashCallable { private static final int MIN_STACK_LENGTH = 10; @Override public String getLabel() { return "Misca"; } @Override public String call() throws Exce...
37,798
https://github.com/Kalinin-Andrey/rti-testing/blob/master/internal/domain/user/entity.go
Github Open Source
Open Source
MIT
null
rti-testing
Kalinin-Andrey
Go
Code
82
293
package user import ( "time" "github.com/go-ozzo/ozzo-validation/v4" "github.com/go-ozzo/ozzo-validation/v4/is" ) const TableName = "user" // User is the user entity type User struct { ID uint `gorm:"PRIMARY_KEY" json:"id"` Name string `gorm:"type:varchar(100);UNIQUE;INDEX" json:"username"` Passhash s...
45,741
https://github.com/uurtamo/ipool/blob/master/ipool.go
Github Open Source
Open Source
BSD-2-Clause
null
ipool
uurtamo
Go
Code
448
1,410
// Copyright 2020 Steve Uurtamo. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ipool import ( "fmt" "os" "sync" "sync/atomic" ) type Pool struct { Value sync.Map size uint64 queue *twoLockQueue pmux sync.Mutex } type In...
26,689
https://github.com/Kingzoey/AnimalsOlympics/blob/master/src/main/java/com/olympics/visitor/Equipment.java
Github Open Source
Open Source
MIT
2,020
AnimalsOlympics
Kingzoey
Java
Code
144
395
package com.olympics.visitor; import java.util.Calendar; /** * 运动器材类 */ public class Equipment extends Supply implements Element { private String brandName; private boolean inUse = false; private boolean isBroken = false; private int quality = -1; public Equipment(String name, Calendar product...
21,263
https://github.com/asiniy/atom-turbo-javascript/blob/master/snippets/bdd.cson
Github Open Source
Open Source
MIT
2,022
atom-turbo-javascript
asiniy
CoffeeScript
Code
115
414
".source.js, .source.ts, .source.tsx, .source.js-semantic": "describe": prefix: "desc" body: """ describe('${1:description}', function () { \t${0} }); """ "context": prefix: "cont" body: """ context('${1:description}', function () { \t${0} }); """ "it": prefix: ...
33,751
https://github.com/garakutanokiseki/Join.NET/blob/master/JoinNET/bot/Core/Util.cs
Github Open Source
Open Source
MIT
null
Join.NET
garakutanokiseki
C#
Code
617
1,529
using System; using System.Linq; using System.Threading; using System.Diagnostics; #if CONTRACTS_FULL using System.Diagnostics.Contracts; #else using PixelLab.Contracts; #endif namespace PixelLab.Common { /// <summary> /// Contains general helper methods. /// </summary> public static class Util ...
10,046
https://github.com/noki917/freemarket_sample_59a-master/blob/master/spec/controllers/purchase_controller_spec.rb
Github Open Source
Open Source
MIT
2,021
freemarket_sample_59a-master
noki917
Ruby
Code
38
116
require 'rails_helper' RSpec.describe PurchaseController, type: :controller do describe 'GET #index' do it 'returns http success' do get :index expect(response).to have_http_status(:success) end end describe 'GET #done' do it 'returns http success' do get :done expect(respon...
25,096
https://github.com/jdcomador/webdevexam/blob/master/application/views/index.php
Github Open Source
Open Source
MIT
null
webdevexam
jdcomador
PHP
Code
413
1,991
<div class="text-center"> <h1>Juan's Auto Paint</h1> </div> <ul class="nav nav-tabs" id="myTab" role="tablist"> <li class="nav-item"> <a class="nav-link active" id="new_paint_tab" data-toggle="tab" href="#new_paint" role="tab" aria-controls="new_paint" aria-selected="true">New Paint Jobs</a> </li> <li cla...
49,023
https://github.com/btbamman989/.dot-config/blob/master/.shell/env.d/python-breakpoint.sh
Github Open Source
Open Source
MIT
2,019
.dot-config
btbamman989
Shell
Code
19
58
#!/bin/sh if command -v ipdb > /dev/null 2>&1 || command -v ipdb3 > /dev/null 2>&1; then export PYTHONBREAKPOINT=ipdb.set_trace fi
10,931
https://github.com/iOSTestApps/OCiney-iOS/blob/master/ociney/src/View/ViewPager.h
Github Open Source
Open Source
BSD-2-Clause
2,016
OCiney-iOS
iOSTestApps
Objective-C
Code
37
135
// // ViewPager.h // ociney // // Created by florent champigny on 24/12/2014. // Copyright (c) 2014 bdc. All rights reserved. // #import <UIKit/UIKit.h> #import "SwipeView.h" @interface ViewPager : UIView<SwipeViewDataSource,SwipeViewDelegate> @property (strong, nonatomic) SwipeView *swipeView; -(void)reloadDat...
13,572
https://github.com/freezedev/lyria-template/blob/master/grunt/watch.coffee
Github Open Source
Open Source
Unlicense
null
lyria-template
freezedev
CoffeeScript
Code
19
110
module.exports = options: livereload: true all: files: ['assets/**/*', 'stylus/**/*.styl', 'template/**/*.html', 'src/**/*.js', 'bower_components/*/**/*.js', 'bower_components/*/**/*.css'] tasks: ['build:debug'] grunt: files: ['gruntfile.coffee', 'grunt/*.coffee']
24,390
https://github.com/hernanmd/pharo/blob/master/src/Compiler.package/AssignmentNode.class/instance/emitCodeForEffect.encoder..st
Github Open Source
Open Source
MIT
2,019
pharo
hernanmd
null
Spoken
39
82
code generation emitCodeForEffect: stack encoder: encoder variable emitCodeForLoad: stack encoder: encoder. value emitCodeForValue: stack encoder: encoder. pc := encoder methodStreamPosition + 1. "debug pc is first byte of the store, i.e. the next byte". variable emitCodeForStorePop: stack encoder: encoder
27,943
https://github.com/Surendrajat/Omega/blob/master/tests/src/com/android/launcher3/ui/DefaultLayoutProviderTest.java
Github Open Source
Open Source
Apache-2.0
2,020
Omega
Surendrajat
Java
Code
342
1,227
/** * Copyright (C) 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
22,581
https://github.com/jdb19937/makemore/blob/master/outi_to_ini_wi.hh
Github Open Source
Open Source
MIT
null
makemore
jdb19937
C++
Code
620
1,377
{ switch (head->type) { case Supertron::Layer::TYPE_FULL: if (i < 0 || i >= head->inn + 1) { *inip = -1; *wip = -1; return false; } if (i == head->inn) { *inip = -1; } else { *inip = i; } *wip = i * head->outn + outi; return true; case Supertron::Layer:...
43,111
https://github.com/shouze/parkedLife/blob/master/src/Domain/Location.php
Github Open Source
Open Source
MIT
2,016
parkedLife
shouze
PHP
Code
91
321
<?php declare(strict_types=1); namespace Shouze\ParkedLife\Domain; class Location implements \JsonSerializable { private $latitude; private $longitude; public function __construct(float $latitude, float $longitude) { $this->latitude = $latitude; $this->longitude = $longitude; } ...
11,179
https://github.com/joaofxp/webdev/blob/master/TypeScript-Babel-Starter/app/main.ts
Github Open Source
Open Source
MIT
null
webdev
joaofxp
TypeScript
Code
115
300
interface cachorro { cor: string; peso: number; readonly viraLata: boolean; } let readOnlyArray: number[] = [1, 2, 3]; const doguinho: cachorro = { cor: "caramelo", peso: 50, viraLata: false, }; console.log(doguinho); doguinho.peso = 55; console.log(doguinho.peso); export class C { priv...
33,406
https://github.com/Wellvergton/ja-todo-list/blob/master/src/ToolBar/SignButtons/index.js
Github Open Source
Open Source
MIT
null
ja-todo-list
Wellvergton
JavaScript
Code
151
551
import React, { useState } from "react"; import Button from "react-bootstrap/Button"; import ButtonGroup from "react-bootstrap/ButtonGroup"; import RegisterModal from "../RegisterModal"; import { SessionContext } from "../../SessionContext"; export default function SignButtons() { const [signModalIsVisible, setSi...
43,008
https://github.com/akangasr/cogsciabc/blob/master/cogsciabc/learningmodel/actr6/extras/parallel-execution/parallel-chunks.lisp
Github Open Source
Open Source
MIT
2,022
cogsciabc
akangasr
Common Lisp
Code
4,707
14,106
;;; -*- mode: LISP; Syntax: COMMON-LISP; Base: 10 -*- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Author : Dan Bothell ;;; Copyright : (c) 2013 Dan Bothell ;;; Availability: Covered by the GNU LGPL, see LGPL.txt ;;; Address : Department of Psychology ;;; ...
48,904
https://github.com/sbawale/comps/blob/master/fontpair-webapp/backend/scripts/build_knn_recommender.py
Github Open Source
Open Source
MIT
2,021
comps
sbawale
Python
Code
227
814
import os import numpy as np import pandas as pd from sklearn.neighbors import NearestNeighbors from sklearn.externals import joblib # from preprocess_data_gf import * # def get_font_combinations(font,fonts,vectors,knn,num_recs): # # Get font object and find corresponding vector # font_obj = fonts.loc[font] # ...
13,282
https://github.com/ColinQiyangLi/spaghetti/blob/master/tests/test_load.py
Github Open Source
Open Source
MIT
2,019
spaghetti
ColinQiyangLi
Python
Code
56
181
import spaghettini from spaghettini import load, quick_register @quick_register class Composite: def __init__(self, a, b): self.a = a self.b = b(-3, 2) def __call__(self, x): return self.b(self.a(x)) @quick_register class Linear: def __init__(self, w, b): self.w = w ...
43,058
https://github.com/eva5covergence/EVA5_AI_Projects/blob/master/MultiObjectiveModel_YMPNet_Pavan/genrate_3dmodel/place.py
Github Open Source
Open Source
MIT
null
EVA5_AI_Projects
eva5covergence
Python
Code
681
1,991
import math import cv2 import numpy as np def rotate_image(image, angle): """ Rotates an OpenCV 2 / NumPy image about it's centre by the given angle (in degrees). The returned image will be large enough to hold the entire new image, with a black background """ # Get the image size # No t...
18,599
https://github.com/Thanhktm/getgreen/blob/master/src/vn/getgreen/common/BaseActivity.java
Github Open Source
Open Source
Apache-2.0
2,014
getgreen
Thanhktm
Java
Code
236
828
package vn.getgreen.common; import org.json.JSONObject; import vn.getgreen.R; import vn.getgreen.enties.User; import vn.getgreen.imagecache.ImageCache; import vn.getgreen.imagecache.ImageFetcher; import vn.getgreen.network.GClient; import vn.getgreen.network.ResponseListener; import android.os.Build; import android.o...
5,340
https://github.com/hiroshima-t1/Nomikai/blob/master/vendor/gems/ri_cal-0.8.7/spec/ri_cal_spec.rb
Github Open Source
Open Source
MIT
2,011
Nomikai
hiroshima-t1
Ruby
Code
117
442
#- ©2009 Rick DeNatale, All rights reserved. Refer to the file README.txt for the license require File.join(File.dirname(__FILE__), %w[spec_helper]) describe RiCal do describe "#parse" do before(:each) do @mock_parser = mock("parser", :parse => []) RiCal::Parser.stub!(:new).and_return(@mock...
23,537
https://github.com/OpenStack-mobile/summit-app-ios/blob/master/OpenStack Summit/CoreSummit/AttendeeManagedObject.swift
Github Open Source
Open Source
Apache-2.0
2,019
summit-app-ios
OpenStack-mobile
Swift
Code
95
292
// // AttendeeManagedObject.swift // OpenStack Summit // // Created by Alsey Coleman Miller on 11/2/16. // Copyright © 2016 OpenStack. All rights reserved. // import Foundation import CoreData public final class AttendeeManagedObject: Entity { @NSManaged public var member: MemberManagedObject @N...
1,476
https://github.com/numpy/numpy/blob/master/numpy/f2py/tests/src/string/string.f
Github Open Source
Open Source
Zlib, BSD-3-Clause, MIT, Apache-2.0
2,023
numpy
numpy
null
Spoken
34
129
C FILE: STRING.F SUBROUTINE FOO(A,B,C,D) CHARACTER*5 A, B CHARACTER*(*) C,D Cf2py intent(in) a,c Cf2py intent(inout) b,d A(1:1) = 'A' B(1:1) = 'B' C(1:1) = 'C' D(1:1) = 'D' END C END OF FILE STRING.F
32,432
https://github.com/c3rebro/EventMessenger/blob/master/EventMessenger/View/MainWindow.xaml.cs
Github Open Source
Open Source
MIT
2,021
EventMessenger
c3rebro
C#
Code
73
216
using System; using System.ComponentModel; using System.Windows; using System.Windows.Controls; using System.Windows.Input; namespace EventMessenger { // public delegate void TreeViewNodeMouseAction(object sender, TreeNodeMouseClickEventArgs e); /// <summary> /// Description of MainForm. /// </summary> ...
27,368
https://github.com/royriojas/fontello/blob/master/support/font-templates/LICENSE.jade
Github Open Source
Open Source
MIT
2,022
fontello
royriojas
null
Spoken
40
149
| Font license info != '\n\n\n' - var i, f - for (i in used_fonts) - f = used_fonts[i] | ## #{f.font.fullname} != '\n\n' | #{f.font.copyright} != '\n\n' | Author: #{f.meta.author} | License: #{f.meta.license} (#{f.meta.license_url}) | Homepage: #{f.meta.homepage} != '\n\n\n'
25,226
https://github.com/VoR0220/rotki/blob/master/rotkehlchen/chain/ethereum/trades.py
Github Open Source
Open Source
BSD-3-Clause
2,020
rotki
VoR0220
Python
Code
722
2,930
from typing import Any, Dict, List, NamedTuple, Tuple, Union from rotkehlchen.assets.asset import EthereumToken from rotkehlchen.assets.unknown_asset import UNKNOWN_TOKEN_KEYS, UnknownEthereumToken from rotkehlchen.constants.assets import A_DAI from rotkehlchen.constants.misc import ZERO from rotkehlchen.serialization...
44,378
https://github.com/rcbops/FleetDeploymentReporting/blob/master/web/neo4jdriver/tests/test_connection.py
Github Open Source
Open Source
Apache-2.0
2,019
FleetDeploymentReporting
rcbops
Python
Code
151
711
import mock import time from django.test import tag from django.test import TestCase from neo4jdriver.connection import Connection fake_neo4j_settings = { 'uri': 'testuri', 'username': 'testusername', 'password': 'testpassword', 'max_connection_lifetime': 1, 'max_connection_pool_size': 2, 'ma...
19,372