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/YouenZeng/LeetCode/blob/master/LeetCode/Leets/MergeTwoListsSln.cs
Github Open Source
Open Source
MIT
2,019
LeetCode
YouenZeng
C#
Code
65
215
using System; namespace LeetCode.Leets { class MergeTwoListsSln : ISolution { public ListNode MergeTwoLists(ListNode l1, ListNode l2) { if (l1 == null) { return l2; } if (l2 == null) { return l1; ...
25,905
https://github.com/toowoxx/caddy2-confidentiality-index/blob/master/test.sh
Github Open Source
Open Source
Apache-2.0
2,021
caddy2-confidentiality-index
toowoxx
Shell
Code
7
24
#!/bin/sh xcaddy run -config test/Caddyfile -adapter caddyfile
23,931
https://github.com/hramezani/django-axes/blob/master/axes/tests/test_logging.py
Github Open Source
Open Source
MIT
2,019
django-axes
hramezani
Python
Code
264
1,300
from unittest.mock import patch from django.contrib.auth import authenticate from django.http import HttpRequest from django.test import override_settings from django.urls import reverse from axes.apps import AppConfig from axes.models import AccessAttempt, AccessLog from axes.tests.base import AxesTestCase @patch(...
18,803
https://github.com/ops-trust/portal/blob/master/mycat.pl
Github Open Source
Open Source
Apache-2.0
2,021
portal
ops-trust
Perl
Code
203
443
#!/usr/bin/env perl # # This file is part of the Ops-T Portal. # # Copyright 2014 Operations Security Administration, 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 # # ht...
24,486
https://github.com/RoLiLab/tracking_microscope/blob/master/src/HDF5/hdf5replayer.h
Github Open Source
Open Source
MIT
2,017
tracking_microscope
RoLiLab
C++
Code
125
521
#ifndef HDF5REPLAYER_H #define HDF5REPLAYER_H #include <string> #include <H5Cpp.h> #include <H5Exception.h> #include "hdf5imagereader.h" #include "hdf5datareader.h" #include "hdf5.h" #include "hdf5_hl.h" using namespace std; using namespace H5; class HDF5Replayer { public: HDF5Replayer(); ~HDF5Replayer(); HDF5Ima...
44,165
https://github.com/seanastephens/ts-rust-bridge/blob/master/packages/ts-rust-bridge-codegen/examples/simple.schema.ts
Github Open Source
Open Source
MIT
null
ts-rust-bridge
seanastephens
TypeScript
Code
120
350
import { Type } from '../src/schema'; const { Alias, Enum, Tuple, Struct, Union, Newtype, Vec, Str, Bool, Option, F32, U8, U32 } = Type; export const MyEnum = Enum('ONE', 'TWO', 'THREE'); const MyTuple = Tuple(Option(Bool), Vec(Str)); const NormalStruct = Struct({ a: U8, tuple: MyTuple...
46,472
https://github.com/caralin3/review-site/blob/master/razzle/stories/react/SearchBar.stories.tsx
Github Open Source
Open Source
MIT
2,022
review-site
caralin3
TSX
Code
50
165
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { SearchBar } from '../../src/client/react/components'; storiesOf('Components|SearchBar', module) .add('without query', () => ( <SearchBar onChange={action('changed query')} ...
2,278
https://github.com/jpgagnebmc/kmp-ssh/blob/master/kmp-ssh/src/jsExternal/fs.fs.link.module_node.kt
Github Open Source
Open Source
Apache-2.0
null
kmp-ssh
jpgagnebmc
Kotlin
Code
76
297
@file:JsQualifier("fs.link") @file:Suppress("INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE", "CONFLICTING_OVERLOADS") package fs.link import kotlin.js.* import Buffer import url.URL external fun __promisify__(existingPath: String, newPath: String): Promise<Unit> external fu...
14,926
https://github.com/Mobile-Connect/.net_server_side_sdk/blob/master/mobile-connect-sdk/GSMA.MobileConnect/Cache/BaseCache.cs
Github Open Source
Open Source
MIT
2,019
.net_server_side_sdk
Mobile-Connect
C#
Code
604
1,834
using System; using System.Collections.Generic; using System.Threading.Tasks; using GSMA.MobileConnect.Discovery; using GSMA.MobileConnect.Constants; using GSMA.MobileConnect.Exceptions; namespace GSMA.MobileConnect.Cache { /// <summary> /// Base class for Discovery Caches that implements basic cache control ...
44,667
https://github.com/yanni4night/node-dns-window/blob/master/src/reducers/reverse.js
Github Open Source
Open Source
MIT
null
node-dns-window
yanni4night
JavaScript
Code
62
186
/** * Copyright (C) 2016 yanni4night.com * reverse.js * * changelog * 2016-10-11[15:54:14]:revised * * @author yanni4night@gmail.com * @version 0.1.0 * @since 0.1.0 */ 'use strict'; import * as T from '../action-types'; export function reversedAddress(state = [], action) { if (T.ACTION_REVERSE...
14,649
https://github.com/CaelestisZ/IrisCore/blob/master/drivers/usb/dwc3/dbm-1_4.c
Github Open Source
Open Source
MIT
2,021
IrisCore
CaelestisZ
C
Code
1,348
4,639
/* * Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in ...
6,138
https://github.com/gero3/tern/blob/master/plugin/requirejs/requirejs.js
Github Open Source
Open Source
MIT
null
tern
gero3
JavaScript
Code
342
995
(function() { var infer = typeof require == "undefined" ? window.tern : require("../../infer.js"); var tern = typeof require == "undefined" ? window.tern : require("../../tern.js"); function resolveName(name, data) { var opts = data.options; var base = opts.baseURL || ""; if (!opts.paths) return base...
39,954
https://github.com/PisalPrasad123/pachyderm/blob/master/etc/btrfs/btrfs-mount.sh
Github Open Source
Open Source
LicenseRef-scancode-generic-cla, Apache-2.0
2,015
pachyderm
PisalPrasad123
Shell
Code
39
136
#!/bin/sh set -Ee if [ -z "${BTRFS_DEVICE}" ]; then echo "error: BTRFS_DEVICE must be set" >&2 exit 1 fi sudo modprobe loop mkdir -p $(dirname "${BTRFS_DEVICE}") truncate "${BTRFS_DEVICE}" -s 10G mkfs.btrfs "${BTRFS_DEVICE}" mkdir -p "${PFS_DRIVER_ROOT}" mount "${BTRFS_DEVICE}" "${PFS_DRIVER_ROOT}" $@
23,860
https://github.com/JonathanWilbur/x500-ts/blob/master/source/modules/UsefulDefinitions/id.va.ts
Github Open Source
Open Source
MIT
2,019
x500-ts
JonathanWilbur
TypeScript
Code
86
237
/* eslint-disable */ import { joint_iso_itu_t, ObjectIdentifier as _OID } from "asn1-ts"; import { ID } from "../UsefulDefinitions/ID.ta"; export { ID, _decode_ID, _encode_ID } from "../UsefulDefinitions/ID.ta"; /* START_OF_SYMBOL_DEFINITION id */ /** * @summary id * @description * * ### ASN.1 Definition: * * ``...
22,069
https://github.com/jakec729/matheiken.com/blob/master/web/app/plugins/wp-migrate-db/template/wpmdb/progress-upgrade.php
Github Open Source
Open Source
MIT
2,020
matheiken.com
jakec729
PHP
Code
150
726
<div class="pro-version progress-overlay-container"> <div class="pro-version-content"> <h1><?php _e( 'Seen the PRO version yet?', 'wp-migrate-db' ); ?></h1> <ul> <li><span class="dashicons dashicons-yes"></span><?php _e( 'One-click in your WordPress dashboard to push your database up to staging/production or pu...
6,733
https://github.com/trailheadapps/apex-recipes/blob/master/force-app/tests/Async Apex Recipes/QueueableWithCalloutRecipes_Tests.cls
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, CC0-1.0
2,023
apex-recipes
trailheadapps
Apex
Code
135
513
@isTest private inherited sharing class QueueableWithCalloutRecipes_Tests { @TestSetup static void makeData() { TestFactory.createSObjectList(new Account(), 200, true); } @isTest static void testQueueableWithCalloutRecipesPositive() { HttpCalloutMockFactory httpMock = new HttpCallou...
2,507
https://github.com/ksu-lanceb/minwiki2-onedrive/blob/master/wiki.d
Github Open Source
Open Source
BSL-1.0
2,021
minwiki2-onedrive
ksu-lanceb
D
Code
698
2,247
import arsd.cgi; import minwiki.replacelinks, minwiki.staticsite; import dmarkdown.markdown; import std.file, std.path, std.process, std.regex, std.stdio; /* * Set the text editor used to edit/create pages. * The `-i` option tells Geany to open a new editor. * When you edit a page, the web server will wait until th...
23,565
https://github.com/leandrogaspar/microblog/blob/master/middleware/authenticate.js
Github Open Source
Open Source
MIT
2,018
microblog
leandrogaspar
JavaScript
Code
53
133
const { User } = require('./../models/user') async function authenticate (req, res, next) { try { const token = req.header('x-auth') if (!token) throw new Error('No auth header') const user = await User.findByToken(token) if (!user) throw new Error('Not authenticated') req.user = user next(...
40,826
https://github.com/vmichalak/kotlin/blob/master/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/linkModules.kt
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,022
kotlin
vmichalak
Kotlin
Code
136
383
/* * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ package org.jetbrains.kotlin.backend.konan.llvm import llvm.* import org.jetbrains.kotlin.backend.konan.Conte...
20,993
https://github.com/DORAdreamless/Dapper.AutoMigrate/blob/master/src/Tiantianquan.Common/Tiantianquan.Common/Extensions/DateTimeExtensions.cs
Github Open Source
Open Source
MIT
2,019
Dapper.AutoMigrate
DORAdreamless
C#
Code
103
282
using System; using Tiantianquan.Common.Utils; namespace Tiantianquan.Common.Extensions { /// <summary> /// Date time extension methods /// </summary> public static class DateTimeExtensions { /// <summary> /// Truncate datetime, only keep seconds /// </summary> /// <param name="time">The time</para...
26,727
https://github.com/ladaas99/WarframeMarketAnalyzer/blob/master/WarframeMarketAnalyzer/src/enums/comparable/interfaces/ComparableByValue.java
Github Open Source
Open Source
MIT
2,021
WarframeMarketAnalyzer
ladaas99
Java
Code
15
44
package enums.comparable.interfaces; public interface ComparableByValue<T>{ public abstract T getValue(); public abstract boolean valueEquals(T object); }
48,762
https://github.com/archerax/etp-devkit/blob/master/src/DevKit/WebSocket4Net/EtpClient.cs
Github Open Source
Open Source
Apache-2.0
null
etp-devkit
archerax
C#
Code
1,247
3,452
//----------------------------------------------------------------------- // ETP DevKit, 1.2 // // Copyright 2018 Energistics // // 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 // // ...
29,420
https://github.com/samdqa/crackingthecodinginterview/blob/master/src/main/java/chapter7_objectorienteddesign/Q7_04_Parking_Lot/Motorcycle.java
Github Open Source
Open Source
MIT
null
crackingthecodinginterview
samdqa
Java
Code
33
115
package chapter7_objectorienteddesign.Q7_04_Parking_Lot; public class Motorcycle extends Vehicle { public Motorcycle() { spotsNeeded = 1; size = VehicleSize.Motorcycle; } public boolean canFitInSpot(ParkingSpot spot) { return true; } public void print() { System.out.print("M"); } }
9,067
https://github.com/shadow-42/ring/blob/master/src/qt/hivedialog.cpp
Github Open Source
Open Source
MIT
2,021
ring
shadow-42
C++
Code
1,236
6,180
// Copyright (c) 2011-2017 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // Ring-fork: Hive #include <wallet/wallet.h> #include <wallet/fees.h> #include <qt/hivedialog.h> #include <qt/forms/ui_hiv...
49,910
https://github.com/P79N6A/qingxia/blob/master/.svn/pristine/45/459113de17a0569b069a230eb177304dff24aab6.svn-base
Github Open Source
Open Source
MIT
2,018
qingxia
P79N6A
Blade
Code
244
1,215
@extends('layouts.simple') @push('need_css') <link rel="stylesheet" href="{{ asset('adminlte') }}/plugins/daterangepicker/daterangepicker.css"> <link rel="stylesheet" href="/adminlte/plugins/autocompleter/jquery.autocompleter.css"> <link rel="stylesheet" href="/adminlte/plugins/select2/select2.min.css"> <style> .r...
47
https://github.com/sotola/jenkins/blob/master/test/src/test/java/hudson/security/csrf/DefaultCrumbIssuerTest.java
Github Open Source
Open Source
MIT
2,019
jenkins
sotola
Java
Code
245
945
/** * Copyright (c) 2008-2010 Yahoo! Inc. * All rights reserved. * The copyrights to the contents of this file are licensed under the MIT License (http://www.opensource.org/licenses/mit-license.php) */ package hudson.security.csrf; import com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException; import com.ga...
38,006
https://github.com/itsromiljain/DSTracker/blob/master/ds_tracker/src/main/java/com/tracker/demand/repository/ExtendedTrackerRepo.java
Github Open Source
Open Source
MIT
null
DSTracker
itsromiljain
Java
Code
18
86
package com.tracker.demand.repository; import java.util.List; import com.tracker.entity.DemandDetail; public interface ExtendedTrackerRepo{ public List<DemandDetail> getProjectsRepo(long id); //public List<DemandDetail> getDemandsRepo(long id); }
11,617
https://github.com/CtinfoShubham31/test/blob/master/tutorials/Laravel/Laravel/lavtut_storageClass/app/Http/Controllers/StudentController.php
Github Open Source
Open Source
MIT
2,020
test
CtinfoShubham31
PHP
Code
346
1,392
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Student; use Validator; use Illuminate\Support\Facades\Storage; class StudentController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index()...
18,269
https://github.com/Mu-L/JCTools/blob/master/jctools-core/src/main/java/org/jctools/queues/atomic/BaseLinkedAtomicQueue.java
Github Open Source
Open Source
Apache-2.0
2,022
JCTools
Mu-L
Java
Code
1,935
5,297
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed u...
45,609
https://github.com/beshoo/wit-php/blob/master/spec/Model/EntitySpec.php
Github Open Source
Open Source
MIT
2,016
wit-php
beshoo
PHP
Code
50
277
<?php namespace spec\Tgallice\Wit\Model; use PhpSpec\ObjectBehavior; use Prophecy\Argument; class EntitySpec extends ObjectBehavior { function let() { $this->beConstructedWith('id', [], 'description'); } function it_is_initializable() { $this->shouldHaveType('Tgallice\Wit\Model\E...
18,176
https://github.com/michaelalex1/travel/blob/master/resources/js/views/App.vue
Github Open Source
Open Source
Apache-2.0
null
travel
michaelalex1
Vue
Code
257
1,352
<template> <div> <div id="layoutSidenav"> <div id="layoutSidenav_nav"> <nav class="sb-sidenav accordion sb-sidenav-dark" id="sidenavAccordion"> <div class="sb-sidenav-menu"> <div class="nav"> ...
26,029
https://github.com/Wells4sure/stz/blob/master/app/Http/Controllers/Admin/RoutesController.php
Github Open Source
Open Source
MIT
null
stz
Wells4sure
PHP
Code
222
640
<?php namespace App\Http\Controllers\admin; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Route; use App\Http\Requests\Routes\CreateRoutesRequest; class RoutesController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response ...
33,939
https://github.com/uwegeercken/tweakflow/blob/master/src/main/java/com/twineworks/tweakflow/lang/interpreter/memory/MemorySpaceInspector.java
Github Open Source
Open Source
MIT
2,022
tweakflow
uwegeercken
Java
Code
459
1,171
/* * The MIT License (MIT) * * Copyright (c) 2019 Twineworks GmbH * * 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 restriction, including without limitation the rights * to u...
43,452
https://github.com/Nobledez/Spelunky2ls/blob/master/static/data.js
Github Open Source
Open Source
MIT
2,020
Spelunky2ls
Nobledez
JavaScript
Code
5,605
19,579
const blocks = { "chunk_ground": 1, "chunk_air": 2, "chunk_door": 3, "empty": 0, "floor": 4, "nonreplaceable_floor": 5, "bone_block": 6, "bush_block": 7, "surface_floor": 8, "surface_hidden_floor": 9, "jungle_floor": 10, "styled_floor": 11, "minewood_floor": 12, "minewood_floor_noreplace": 1...
43,866
https://github.com/kokoye2007/converter/blob/master/index.php
Github Open Source
Open Source
MIT
2,014
converter
kokoye2007
PHP
Code
1,129
4,201
<?php include_once('./view.php'); ?> <?php include_once('./header.php'); ?> <?php //var_dump($font_options); ?> <header role="banner"> <div class="container"> <h1 class="text-center gray-light">Myanmar Font Converter</h1> <nav class="navbar navbar-inverse" role="navigation"> <ul class="nav navbar-nav nav-pills...
50,776
https://github.com/dongdapeng110/SharpDevelopTest/blob/master/data/templates/project/VB/WPFAssemblyInfo.vb
Github Open Source
Open Source
MIT
2,021
SharpDevelopTest
dongdapeng110
Visual Basic
Code
131
269
#Region "Imports directives" Imports System.Resources Imports System.Windows #End Region ' In order to begin building localizable applications, set ' <UICulture>CultureYouAreCodingWith</UICulture> in your .vbproj file ' inside a <PropertyGroup>. For example, if you are using US english ' in your source files, se...
4,016
https://github.com/TecSecret/BrazilCustomerAttributes/blob/master/Config/Backend/Prefixoptions.php
Github Open Source
Open Source
MIT
2,021
BrazilCustomerAttributes
TecSecret
PHP
Code
209
682
<?php namespace TecSecret\BrazilCustomerAttributes\Config\Backend; use Magento\Framework\App\Cache\TypeListInterface; use Magento\Framework\App\Config\ScopeConfigInterface; use Magento\Framework\App\Config\Value as ConfigValue; use Magento\Framework\Data\Collection\AbstractDb; use Magento\Framework\Model\Context; use...
28,856
https://github.com/mjalaf/IgniteTheTour/blob/master/DEV - Building your Applications for the Cloud/DEV10/src/inventory-service/start-docker.sh
Github Open Source
Open Source
MIT
2,020
IgniteTheTour
mjalaf
Shell
Code
10
43
#!/bin/bash set -e dotnet user-secrets set 'ConnectionStrings:InventoryContext' '${SQLDB_CONNECTION_STRING}' dotnet run
8,450
https://github.com/ebptwllc/eXpand/blob/master/Xpand/Xpand.ExpressApp.Modules/Scheduler.Web/Controllers/WebDashboardRefreshController.cs
Github Open Source
Open Source
MS-PL
2,022
eXpand
ebptwllc
C#
Code
193
685
using System; using System.Linq; using DevExpress.Data.Filtering; using DevExpress.ExpressApp; using DevExpress.ExpressApp.Editors; using DevExpress.ExpressApp.Scheduler.Web; using DevExpress.ExpressApp.Web.Editors; using Xpand.Persistent.Base.General.Controllers.Dashboard; namespace Xpand.ExpressApp.Scheduler.Web.Co...
851
https://github.com/NovasomIndustries/Utils-2019.01/blob/master/rock/app/carmachine/music/middleWidget/musicitemgroupwidget.cpp
Github Open Source
Open Source
MIT
2,019
Utils-2019.01
NovasomIndustries
C++
Code
91
1,152
#include "musicitemgroupwidget.h" #include <QHBoxLayout> musicItemGroupWidget::musicItemGroupWidget(QWidget *parent):baseWidget(parent) { m_islove=false; QHBoxLayout *hlyout=new QHBoxLayout; m_btnLove=new flatButton(this); m_btnLove->setFixedSize(16,16); m_btnDel=new flatButton(this); m_btnDel...
15,343
https://github.com/EAxelGM/SchoolNotes-BackEnd/blob/master/resources/views/mails/notificar_multiplo_clips.blade.php
Github Open Source
Open Source
MIT
2,020
SchoolNotes-BackEnd
EAxelGM
Blade
Code
275
1,075
@extends('layouts.mailWarnBan') @section('asunto') ¡Felicidades {{$data['name']}}, por llegar a los {{$data['clips']}} clips! @endsection @section('cuerpo1') Estamos muy contentos de que estes usando de la plataforma SchoolNotes. @endsection @section('cuerpo2') Sin mas que decir gracias por ser un usuari...
28,011
https://github.com/ssokssok/metricbeat/blob/master/docs/modules/tlabasset/patch.asciidoc
Github Open Source
Open Source
Apache-2.0
2,019
metricbeat
ssokssok
AsciiDoc
Code
44
152
//// This file is generated! See scripts/docs_collector.py //// [[metricbeat-metricset-tlabasset-patch]] === tlabasset patch metricset experimental[] include::../../../module/tlabasset/patch/_meta/docs.asciidoc[] ==== Fields For a description of each field in the metricset, see the <<exported-fields-tlabasset,exp...
45,388
https://github.com/Munirahul/sample-001/blob/master/SnacksDetails.java
Github Open Source
Open Source
MIT
null
sample-001
Munirahul
Java
Code
70
248
import java.util.Scanner; public class SnacksDetails { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("Enter the no of pizzas bought:"); int p = input.nextInt(); System.out.println("Enter the no of puffs bought:"); in...
13,801
https://github.com/p4fpga/p4fpga/blob/master/src/bsv/library/SharedBuff.bsv
Github Open Source
Open Source
BSD-2-Clause
2,021
p4fpga
p4fpga
Bluespec
Code
590
2,085
// Copyright (c) 2015 Cornell University. // 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 // restriction, including without limitation the rights to use, copy, // modify, merge, p...
36,377
https://github.com/puzzlet/flask/blob/master/flask/testsuite/subclassing.py
Github Open Source
Open Source
BSD-3-Clause
2,021
flask
puzzlet
Python
Code
96
353
# -*- coding: utf-8 -*- """ flask.testsuite.subclassing ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Test that certain behavior of flask can be customized by subclasses. :copyright: (c) 2011 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ import flask import unittest from io import StringIO...
25,606
https://github.com/Getrajer/NugetUmbraco/blob/master/ActiveIS.UmbracoForms.Loqate/Helpers/GetFormHelper.cs
Github Open Source
Open Source
MIT
null
NugetUmbraco
Getrajer
C#
Code
60
220
using System; using System.Collections.Generic; using Umbraco.Core; using Umbraco.Core.Composing; using Umbraco.Forms.Core.Data.Storage; using Umbraco.Forms.Core.Models; namespace ActiveIS.UmbracoForms.Loqate.Helpers { public static class FormHelper { public static Form GetForm(Guid id) { ...
21,397
https://github.com/stokei-company/categories-service/blob/master/src/modules/categories/controllers/index.ts
Github Open Source
Open Source
MIT
null
categories-service
stokei-company
TypeScript
Code
13
27
import { CategoryController } from "./category.controller"; export const Controllers = [ CategoryController, ];
17,093
https://github.com/lulock/dota/blob/master/planner/elements/CompetenceElement.lua
Github Open Source
Open Source
MIT
null
dota
lulock
Lua
Code
166
371
-------------------------------------------------------------------------------------- -- NOTE: this class has not been tested yet -- -- -- -- this is the CompetenceElement class which extends PlanEl...
11,812
https://github.com/Steve-Tod/STFC3/blob/master/code/data/KineticsTVDataset.py
Github Open Source
Open Source
MIT
2,022
STFC3
Steve-Tod
Python
Code
381
1,768
import os import logging import numpy as np import torch from torchvision import transforms import kornia.augmentation as K from data.aug import RandomResizedCropHFilp, get_transform from data.aug_official import get_train_transforms, IMG_MEAN, IMG_STD from data.kinetics import Kinetics400 from data.utils import * l...
37,079
https://github.com/goodeggs/express-domain-middleware/blob/master/test/index.js
Github Open Source
Open Source
MIT
null
express-domain-middleware
goodeggs
JavaScript
Code
57
231
var assert = require('assert'); var omf = require('omf'); var app = require(__dirname + '/app'); var isValidResponse = function(statusCode) { return function(res) { res.has.statusCode(statusCode); res.is.json(); it('has id in body', function() { var body = JSON.parse(this.response.body); as...
12,315
https://github.com/ViolaPsch/MIQ/blob/master/tests/testthat/apps/MIQ_en_num-items-8/app.R
Github Open Source
Open Source
MIT
2,020
MIQ
ViolaPsch
R
Code
5
28
library(psychTestR) library(MIQ) MIQ_standalone(num_items = 8)
30,448
https://github.com/etcpwd1960/market/blob/master/src/components/molecules/Wallet/Network.tsx
Github Open Source
Open Source
Apache-2.0
2,021
market
etcpwd1960
TSX
Code
176
471
import React, { useState, useEffect, ReactElement } from 'react' import { useOcean } from '../../../providers/Ocean' import Status from '../../atoms/Status' import { ConfigHelper, ConfigHelperConfig } from '@oceanprotocol/lib' import styles from './Network.module.css' import Badge from '../../atoms/Badge' import Toolti...
30,617
https://github.com/github188/tunnel/blob/master/tunnel-core/src/main/java/dll/struct/hw/PU_PTZ_PRESET_FREEZE.java
Github Open Source
Open Source
Apache-2.0
null
tunnel
github188
Java
Code
137
584
package dll.struct; import com.sun.jna.NativeLong; import com.sun.jna.Pointer; import com.sun.jna.Structure; import java.util.Arrays; import java.util.List; /** * <i>native declaration : D:\HWPuSDK.h</i><br> * This file was autogenerated by <a href="http://jnaerator.googlecode.com/">JNAerator</a>,<br> * a tool writt...
44,086
https://github.com/linggao/anax/blob/master/agreementbot/persistence.go
Github Open Source
Open Source
Apache-2.0
null
anax
linggao
Go
Code
2,945
8,186
package agreementbot import ( "encoding/json" "errors" "fmt" "github.com/boltdb/bolt" "github.com/golang/glog" "github.com/open-horizon/anax/policy" "time" ) const AGREEMENTS = "agreements" type Agreement struct { CurrentAgreementId string `json:"current_agreement_id"` // unique O...
37,724
https://github.com/studiosok/Normal/blob/master/src/Components/Communication/Tail.tsx
Github Open Source
Open Source
MIT
null
Normal
studiosok
TypeScript
Code
47
141
import React from 'react'; import Quiz from '../Quiz/QuizBody'; const Tail = (props) => { return ( <div className="Container"> <div id="topBottomMargin"> <h2>Tail Talk</h2> <div> <p>~Summary text about body language specifically related to the tail~</p> </div> </div> ...
10,954
https://github.com/GIANTCRAB/dota-2-lua-abilities/blob/master/scripts/vscripts/lua_abilities/ogre_magi_ignite_lua/modifier_ogre_magi_ignite_lua.lua
Github Open Source
Open Source
MIT
2,022
dota-2-lua-abilities
GIANTCRAB
Lua
Code
214
875
-- Created by Elfansoer --[[ Ability checklist (erase if done/checked): - Scepter Upgrade - Break behavior - Linken/Reflect behavior - Spell Immune/Invulnerable/Invisible behavior - Illusion behavior - Stolen behavior ]] -------------------------------------------------------------------------------- modifier_ogre_magi...
1,088
https://github.com/jantunez14/merlin/blob/master/tools/festvox/src/st/build_st.scm
Github Open Source
Open Source
Apache-2.0
2,019
merlin
jantunez14
Scheme
Code
925
2,623
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; ;;; Carnegie Mellon University ;;; ;;; and Alan W Black and Kevin Lenzo ;;; ;;; ...
39,220
https://github.com/simonlovesyou/AutoRobot/blob/master/test/actions/index.js
Github Open Source
Open Source
MIT
2,021
AutoRobot
simonlovesyou
JavaScript
Code
16
35
import scripts from './scripts'; import app from './app'; module.exports = () => { app(); scripts(); }
50,604
https://github.com/mszpila/tachoserver/blob/master/src/user/domain/dto/UploadDocumentDto.ts
Github Open Source
Open Source
MIT
null
tachoserver
mszpila
TypeScript
Code
14
36
export class UploadDocumentDto { readonly frontUrl: string; readonly backUrl: string; readonly selfieUrl: string; }
16,613
https://github.com/waixxt3213/Brickjoon/blob/master/Brickjoon_Src/Bronze2/11721.cpp
Github Open Source
Open Source
MIT
2,021
Brickjoon
waixxt3213
C++
Code
41
100
#include <iostream> using namespace std; int main() { string str; cin >> str; for (int i = 0; i < str.length(); i++) { cout << str.at(i); if ((i + 1)%10 == 0) { cout << '\n'; } } } // solved
47,924
https://github.com/Ghislain1/zoe-fb-app/blob/master/src/app/shared/models/app-user.ts
Github Open Source
Open Source
MIT
2,018
zoe-fb-app
Ghislain1
TypeScript
Code
125
443
export interface User { name: string; email: string; firstname: String; lastname: String; id: Number; isAdmin: boolean; generateAvatar(): string; } export class AppUser { public email: String; public id: Number; public firstname: String; public lastname: String; public avatar?: string; public...
936
https://github.com/pulumi/pulumi-alicloud/blob/master/sdk/dotnet/ThreatDetection/Inputs/HoneypotProbeHoneypotBindListGetArgs.cs
Github Open Source
Open Source
Apache-2.0, MPL-2.0, BSD-3-Clause
2,023
pulumi-alicloud
pulumi
C#
Code
116
414
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; names...
47,243
https://github.com/y8gao/elapp/blob/master/main.js
Github Open Source
Open Source
MIT
null
elapp
y8gao
JavaScript
Code
198
720
const { app, BrowserWindow, ipcMain, dialog, nativeTheme } = require('electron') const { menu } = require('./menu') const Store = require('electron-store'); const store = new Store(); const isWindows = process.platform === "win32"; function createWindow() { nativeTheme.themeSource = store....
34,070
https://github.com/gamers4everlasting/efsolIntranceproject/blob/master/src/Domain/Enums/QuestionTypes.cs
Github Open Source
Open Source
MIT
2,021
efsolIntranceproject
gamers4everlasting
C#
Code
32
76
namespace CleanArchitecture.Domain.Enums { public enum QuestionTypes { SingleLineTextBox, // will render a textbox DateTimePicker, // will render a text area YesOrNo, //will render a checkbox SingleSelect, //will render a dropdownlist } }
49,726
https://github.com/ns7381/DAG_ML/blob/master/static/app/common/ui/datatables.js
Github Open Source
Open Source
MIT
2,019
DAG_ML
ns7381
JavaScript
Code
2,897
10,743
/** * 表格初始化 */ define([ 'App', 'jquery', 'jq/dataTables-bs3', 'jq/dataTables/addon/fixedColumns', 'bs/tooltip' ], function(App, $) { var window = window || this || {}, document = document || window.document || {}; var $doc = $(document); var CELL_WIDTH = { 'check': 16, 'opt'...
41,977
https://github.com/labeeb8/MyMedicationList/blob/master/MyMedicationList/UserListViewController.h
Github Open Source
Open Source
MIT
2,013
MyMedicationList
labeeb8
Objective-C
Code
56
201
// // UserListViewController.h // MyMedicationList // National Library of Medicine // Code available in the public domain // #import <UIKit/UIKit.h> #import "HomeScreenDelegate.h" #import "ImportViewController.h" @interface UserListViewController : UITableViewController @property (assign,nonatomic) id <HomeScreenD...
40,631
https://github.com/LK26/outline-client/blob/master/third_party/shadowsocks-libev/libcork/include/libcork/helpers/errors.h
Github Open Source
Open Source
Apache-2.0
2,022
outline-client
LK26
C
Code
491
1,254
/* -*- coding: utf-8 -*- * ---------------------------------------------------------------------- * Copyright © 2011-2012, RedJack, LLC. * All rights reserved. * * Please see the COPYING file in this distribution for license * details. * ---------------------------------------------------------------------- */ ...
4,382
https://github.com/Zycon42/ShadingMethods/blob/master/src/utils/ArrayRef.h
Github Open Source
Open Source
MIT
2,014
ShadingMethods
Zycon42
C++
Code
251
651
/** * @file ArrayRef.h * * @author Jan Dušek <xdusek17@stud.fit.vutbr.cz> * @date 2013 */ #ifndef ARRAY_REF_H #define ARRAY_REF_H #include <vector> #include <cstddef> #include <cassert> /** * Convenient class for passing non-const references to arrays. * Use this class to pass arrays to functions, it's intend...
11,294
https://github.com/padmaja-22/CP/blob/master/Data Structures/Linked List/detectAndCountLoop.cpp
Github Open Source
Open Source
MIT
null
CP
padmaja-22
C++
Code
115
513
#include <iostream> #include <algorithm> using namespace std; class Node{ public: Node* next; int data; }; void insertInto(Node** head_ref,int new_data){ Node* new_node=new Node(); Node* last=(*head_ref); new_node->data=new_data; new_node->next=NULL; if(*head_ref==NULL){ *head_re...
29,989
https://github.com/mobxtel/FinalProcurement/blob/master/src/AppBundle/Entity/BiznesFushaOperimi.php
Github Open Source
Open Source
MIT
null
FinalProcurement
mobxtel
PHP
Code
175
754
<?php namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * BiznesFushaOperimi * * @ORM\Table(name="biznes_fusha_operimi", indexes={@ORM\Index(name="IDX_A648114F8B3BE709", columns={"fusha_operimi_id"}), @ORM\Index(name="IDX_A648114F90860C3E", columns={"biznes_id"})}) * @ORM\Entity */ class BiznesFu...
41,847
https://github.com/zhangwei9757/xiaocaibao/blob/master/game6/guild/src/main/java/com/tumei/model/GroupBean.java
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, Apache-2.0
2,018
xiaocaibao
zhangwei9757
Java
Code
2,603
9,559
package com.tumei.model; import com.fasterxml.jackson.annotation.JsonIgnore; import com.google.common.base.Strings; import com.tumei.common.RemoteService; import com.tumei.common.fight.*; import com.tumei.common.group.GroupMessage; import com.tumei.common.group.GroupRoleMessage; import com.tumei.common.group.GroupScen...
1,099
https://github.com/Tory-Xu/TYNavBarStyle/blob/master/TYNavBarStyle/Classes/UINavigationController+TYNavBarStyle.h
Github Open Source
Open Source
MIT
null
TYNavBarStyle
Tory-Xu
C
Code
62
297
// // UINavigationController+TYNavBarStyle.h // Legend // // Created by yons on 17/6/8. // Copyright © 2017年 congacademy. All rights reserved. // #import <UIKit/UIKit.h> #import "TYNavBarTintEngine.h" @interface UINavigationController (TYNavBarStyle) /** * 导航栏颜色,并设置状态栏相应样色 * * @param style `TYNavBarStyle` ...
49,742
https://github.com/ipinfo/java/blob/master/src/main/java/io/ipinfo/api/model/ASN.java
Github Open Source
Open Source
Apache-2.0
2,023
java
ipinfo
Java
Code
136
318
package io.ipinfo.api.model; public class ASN { private final String asn; private final String name; private final String domain; private final String route; private final String type; public ASN( String asn, String name, String domain, String r...
14,030
https://github.com/kuriyummy/ITMO_ICT_WebDevelopment_2021-2022/blob/master/students/K33401/laboratory_works/Dorofeeva_Arina/Lr3 + Lr4/DjangoLr4/axolotols_back/axolotls_app/serializers.py
Github Open Source
Open Source
MIT
2,022
ITMO_ICT_WebDevelopment_2021-2022
kuriyummy
Python
Code
28
86
from rest_framework import serializers from .models import * class VideoSerializer(serializers.ModelSerializer): class Meta: model = VideoOfUser fields = "__all__" class LinkToVideoSerializer(serializers.ModelSerializer): class Meta: model = LinkToVideo fields = "__all__"
41,175
https://github.com/elafarge/opentelemetry-collector-contrib/blob/master/exporter/googlecloudpubsubexporter/watermark_test.go
Github Open Source
Open Source
Apache-2.0
2,022
opentelemetry-collector-contrib
elafarge
Go
Code
344
1,553
// Copyright The OpenTelemetry 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 agre...
13,227
https://github.com/nrs011/steady/blob/master/frontend-apps/src/main/webapp/helpers/transpiled/basePriorityQueueES5.js
Github Open Source
Open Source
BSD-3-Clause, Apache-2.0, MIT
2,020
steady
nrs011
JavaScript
Code
344
892
/* * This file is part of Eclipse Steady. * * 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 ...
19,655
https://github.com/jlahteen/juhta.net/blob/master/src/Juhta.Net.LibraryManagement/IConfigurableLibrary.cs
Github Open Source
Open Source
MIT
2,019
juhta.net
jlahteen
C#
Code
107
229
 // // Juhta.NET, Copyright (c) 2017 Juha Lähteenmäki // // This source code may be used, modified and distributed under the terms of // the MIT license. Please refer to the LICENSE.txt file for details. // using Microsoft.Extensions.Configuration; namespace Juhta.Net.LibraryManagement { /// <summary> /// De...
45,059
https://github.com/dac09/react-redux-weather/blob/master/src/routes.js
Github Open Source
Open Source
MIT
2,016
react-redux-weather
dac09
JavaScript
Code
32
103
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import CoreLayout from './layouts/CoreLayout/CoreLayout' import HomePage from './containers/HomePage/' export default ( <Route path="/" component={CoreLayout}> <IndexRoute component={HomePage}/> <Route path="home" ...
35,228
https://github.com/mleventh/compressive-sensing-page/blob/master/cs-intro-gh-pages 2/node_modules/mathlib/src/Screen3D/prototype/drawGrid.ts
Github Open Source
Open Source
MIT
2,015
compressive-sensing-page
mleventh
TypeScript
Code
219
760
/** * Draws the grid. * * @return {Screen3D} */ drawGrid() { if (!this.options.grid) { return this; } var _this = this, gridDrawer = function (opts, rotX, rotY) { var i, ii, tickX, tickY, lines, circles, rays, size = 10, grid = new THREE.Object3D(), color = new THREE.Color(opts.color)...
46,381
https://github.com/usgs-coupled/iriclib-test/blob/master/h5cgnsfile.h
Github Open Source
Open Source
MIT
2,021
iriclib-test
usgs-coupled
C++
Code
147
577
#ifndef H5CGNSFILE_H #define H5CGNSFILE_H #include "h5cgnsfilesolutionwriter.h" #include "iriclib_global.h" #include <string> namespace iRICLib { class H5CgnsBase; class H5CgnsFileSolutionReader; class H5CgnsFileSolutionWriter; class H5CgnsZone; class IRICLIBDLL H5CgnsFile { public: enum class Mode { Create, ...
21,776
https://github.com/Trazalog/traz-prod-assetplanner/blob/master/assets/props/gps.js
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, MIT
2,023
traz-prod-assetplanner
Trazalog
JavaScript
Code
117
320
navigator.geolocation.getCurrentPosition(success, error, options); function obtenerPosicion() { debugger; if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(success, error, options); return (lat && lon); } else { console.log('GSP | No Activado'); return fal...
10,769
https://github.com/jph/lumberg/blob/master/lib/lumberg/cpanel/zone_edit.rb
Github Open Source
Open Source
MIT
2,016
lumberg
jph
Ruby
Code
853
1,561
module Lumberg module Cpanel # Public: This module allows users to modify their domains class ZoneEdit < Base # Public: Retrieve a list of your account's zones and zone file contents. # # Returns Hash API Response def list perform_request({ api_function: 'fetchzones' }) e...
38,654
https://github.com/emaycn/emay-store/blob/master/src/test/java/cn/emay/store/file/FileMapTest.java
Github Open Source
Open Source
Apache-2.0
null
emay-store
emaycn
Java
Code
307
927
package cn.emay.store.file; import cn.emay.store.file.map.FileMap; import org.junit.After; import org.junit.Assert; import org.junit.Before; import org.junit.Test; /** * @author Frank */ public class FileMapTest { private FileMap map; @Before public void pre() { long time; map = new Fi...
10,588
https://github.com/ostertagi/chartflo/blob/master/lib/src/timeseries/timeseries.dart
Github Open Source
Open Source
MIT
2,019
chartflo
ostertagi
Dart
Code
326
1,027
import 'package:charts_flutter/flutter.dart' as charts; import 'package:flutter/material.dart'; import '../models/chart_datapoint.dart'; import '../models/resample.dart'; import 'build_tschart.dart'; import 'timeframe.dart'; class _TimeSerieChartState extends State<TimeSerieChart> { _TimeSerieChartState( {@re...
6,518
https://github.com/briangriffey/glass-full-activity/blob/master/build.gradle
Github Open Source
Open Source
Apache-2.0
2,014
glass-full-activity
briangriffey
Gradle
Code
49
196
buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.6.3' } } apply plugin: 'android' android { compileSdkVersion "Google Inc.:Glass Development Kit Sneak Peek:15" buildToolsVersion "18.0.1" sourceSets { main.java.src...
38,985
https://github.com/Xinerki/Story/blob/master/missions/marker_display.lua
Github Open Source
Open Source
MIT
2,017
Story
Xinerki
Lua
Code
277
2,481
missions = {} function missions.renderMissionMarkers() for i,v in ipairs(getElementsByType('marker')) do if getElementData(v,"story.isMissionMarker") then local x,y,z=getElementPosition(v) local isUsed=getElementData(v,"story.isMissionMarkerUsed") local usedBy=getElementData(v,"story.missionMarkerUsedBy") if getDist...
48,154
https://github.com/m0c1-us/PowerToys/blob/master/src/common/shared_constants.h
Github Open Source
Open Source
MIT
2,021
PowerToys
m0c1-us
C
Code
44
98
#pragma once #include "common.h" namespace CommonSharedConstants { // Flag that can be set on an input event so that it is ignored by Keyboard Manager const ULONG_PTR KEYBOARDMANAGER_INJECTED_FLAG = 0x1; // Fake key code to represent VK_WIN. inline const DWORD VK_WIN_BOTH = 0x104; }
37,430
https://github.com/damaki/SPARKNaCl/blob/master/tests/core3.adb
Github Open Source
Open Source
BSD-2-Clause, BSD-3-Clause
2,022
SPARKNaCl
damaki
Ada
Code
184
597
with SPARKNaCl; use SPARKNaCl; with SPARKNaCl.Core; use SPARKNaCl.Core; with SPARKNaCl.Debug; use SPARKNaCl.Debug; with SPARKNaCl.Hashing; use SPARKNaCl.Hashing; with Interfaces; use Interfaces; procedure Core3 is Second_Key : constant Salsa20_Key := Construct ((16#dc#, 16#90#, 16#8d#, ...
31,741
https://github.com/pooja-gera/TheWireUsChallenge/blob/master/Competitive Programming/Day 29/SourceCode.cpp
Github Open Source
Open Source
MIT
null
TheWireUsChallenge
pooja-gera
C++
Code
43
103
#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; long long int a[n] , s = 0 ; for( int i = 0 ; i < n ; i++ ) { cin>>a[i]; s += a[i] ; } cout<<s; return 0; }
8,854
https://github.com/Vrashq/BabylonJs_Rendu/blob/master/css/_base.scss
Github Open Source
Open Source
Apache-2.0
null
BabylonJs_Rendu
Vrashq
SCSS
Code
22
69
html, body { padding: 0; margin: 0; overflow: hidden; cursor: crosshair; color: white; font-family: airstrike_boldbold, Arial sans-serif; } button { cursor:pointer; }
13,484
https://github.com/awgur11/niceoptica/blob/master/resources/views/layouts/site/store/filters-checkboxes.blade.php
Github Open Source
Open Source
MIT
null
niceoptica
awgur11
PHP
Code
491
2,106
@if(isset($catalog) && $catalog->filters->where('active', 1)->count() > 0) <style type="text/css"> .form-check-label{ /* Base for label styling */ } [type="checkbox"]:not(:checked), [type="checkbox"]:checked { position: absolute; left: -9999px; } [type="checkbox"]:not(:checked) + label, [type="checkbox"]:checked...
26,222
https://github.com/kingsdigitallab/tvof-django/blob/master/tvof/cms/migrations/0010_auto_20180509_1800.py
Github Open Source
Open Source
MIT
null
tvof-django
kingsdigitallab
Python
Code
114
408
# -*- coding: utf-8 -*- # Generated by Django 1.11.10 on 2018-05-09 17:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cms', '0009_auto_20180509_1742'), ] operations = [ migrations.AddField( model_name='blogpost', ...
50,785
https://github.com/everlost/audio_miner/blob/master/frontend/lib/services/auth.service.js
Github Open Source
Open Source
Apache-2.0
null
audio_miner
everlost
JavaScript
Code
116
309
import { fetchWrapper } from "../network/fetch-wrapper"; import { store } from "../client_state/store"; import { setUser, clearUser } from "../client_state/user"; /** * contains methods related to user authentication. * some methods act as a middleware between components and the fetchWrapper to manage client-side us...
4,244
https://github.com/muyoumumumu/QuShuChe/blob/master/app/src/main/java/com/muyoumumumu/QuShuChe/ui/acitivity/Tongji_Shiju.java
Github Open Source
Open Source
Apache-2.0
2,020
QuShuChe
muyoumumumu
Java
Code
339
3,006
package com.muyoumumumu.QuShuChe.ui.acitivity; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.view.View.OnClickListener; import android.view.Window; import android.widget.Button; import android.widget.TextView; import ...
36,137
https://github.com/oozoofrog/swift/blob/master/test/multifile/batch-mode-llvmIRHash-consistency.swift
Github Open Source
Open Source
Apache-2.0
2,021
swift
oozoofrog
Swift
Code
131
336
// Ensure that the LLVMIR hash of the 2nd compilation in batch mode // is consistent no matter if the first one generates code or not. // This test fails in some configurations. // REQUIRES: rdar_62338337 // RUN: %empty-directory(%t) // RUN: echo 'public enum E: Error {}' >%t/main.swift // RUN: echo >%t/other.swift /...
9,564
https://github.com/MartinNovak83/omnius/blob/master/application/FSS.Omnius.Modules/Entitron/Service/ConditionalFilteringService.cs
Github Open Source
Open Source
MIT
2,019
omnius
MartinNovak83
C#
Code
286
949
using System; using System.Collections.Generic; using FSS.Omnius.Modules.Entitron.Entity.Tapestry; using FSS.Omnius.Modules.Tapestry; using FSS.Omnius.Modules.Entitron.DB; namespace FSS.Omnius.Modules.Entitron.Service { public class ConditionalFilteringService { public static bool MatchConditionSets(I...
4,797
https://github.com/PixelOfDeath/glCompact/blob/master/include/glCompact/SurfaceFormat.hpp
Github Open Source
Open Source
MIT
null
glCompact
PixelOfDeath
C++
Code
614
3,075
#pragma once #include <cstdint> //C++11 #include <glCompact/MemorySurfaceFormat.hpp> namespace glCompact { struct SurfaceFormatDetail; class SurfaceFormat { friend class SurfaceInterface; friend class TextureInterface; friend class Frame; friend class PipelineIn...
9,453
https://github.com/phanluong1997/pro_CI/blob/master/public/cpanel/vendor/apex/ecommerce-dashboard/by-device.js
Github Open Source
Open Source
MIT
null
pro_CI
phanluong1997
JavaScript
Code
64
213
var options = { chart: { height: 230, type: 'donut', }, labels: ['Desktop', 'Tablet', 'Mobile'], series: [60000, 45000, 15000], legend: { position: 'bottom', }, dataLabels: { enabled: false }, stroke: { width: 10, colors: ['#eceff3'], }, colors: ['#da9d46', '#f18024', '#af772b'], tooltip: { y:...
747
https://github.com/xavierfeltin/mark-code/blob/master/src/main/kotlin/com/hadihariri/markcode/Main.kt
Github Open Source
Open Source
MIT
2,017
mark-code
xavierfeltin
Kotlin
Code
72
243
package com.hadihariri.markcode import java.io.File fun main(args: Array<String>) { if (args.size < 2) { println("Usage: <doc_directory> <examples output directory> [-o]") return } val writeExpectedOutput = args.size > 2 && args[2] == "-o" val chapters = mutableListOf<Chapter>() F...
49,887
https://github.com/hpsworldwide/Quick/blob/master/src/main/scala/com/scalableQuality/quick/core/valueMapping/ValueMapper.scala
Github Open Source
Open Source
Apache-2.0
2,020
Quick
hpsworldwide
Scala
Code
172
708
package com.scalableQuality.quick.core.valueMapping import com.scalableQuality.quick.core.valueMapping.errorMessages.ValueMapperErrorMessages import com.scalableQuality.quick.mantle.constructFromXml._ import com.scalableQuality.quick.mantle.error.UnrecoverableError import scala.xml.MetaData class ValueMapper private...
48,672