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/leapframework/framework/blob/master/data/orm/src/test/resources/test/sqls/parse/mysql/mysql-03.sql | Github Open Source | Open Source | Apache-2.0 | 2,021 | framework | leapframework | SQL | Code | 268 | 574 | -- copy from druid test resources, see https://github.com/alibaba/druid
SELECT COUNT(*) FROM (SELECT COUNT(*) FROM m_web_uri_m5
WHERE monitor_item_id = ? AND app_num = ? AND inst_num = ? AND service_tag = ? AND monitor_item_id = ?
AND collect_date >= ? AND collect_date < ?
AND (1=0 OR c_URI in (0, 1, 2, 3, 4, 5, 6, ... | 53,188 |
https://github.com/vladdou/CsConsoleFormat/blob/master/Alba.CsConsoleFormat.Sample.ProcessManager/View.cs | Github Open Source | Open Source | Apache-2.0, MIT | 2,018 | CsConsoleFormat | vladdou | C# | Code | 501 | 1,219 | using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using CommandLine;
using static System.ConsoleColor;
// ReSharper disable AnnotateCanBeNullParameter
// ReSharper disable AnnotateNotNullParameter
namespace Alba.CsConsoleFormat.Sample.ProcessManager
{
internal static class View
{
... | 24,362 |
https://github.com/jdxj/rss/blob/master/main_test.go | Github Open Source | Open Source | MIT | null | rss | jdxj | Go | Code | 281 | 940 | package main
import (
"fmt"
"io/ioutil"
"os"
"sync"
"testing"
)
func TestPart(t *testing.T) {
length := 167895
partLen := 400
// 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
for start, end := 0, 0; start < length; start += partLen {
if length-start >= partLen {
end = start + partLen - 1
} else {
end = length ... | 51,085 |
https://github.com/peap/arzeit/blob/master/angular_client/models/TimerModel.js | Github Open Source | Open Source | MIT | null | arzeit | peap | JavaScript | Code | 77 | 297 | 'use strict';
ArZeit.service('TimerModel',
function($http){
var _timer = [];
var _timer_list = [];
var _api_url_base = 'http://127.0.0.1/api/'
var _timer_url = 'timers/:id/';
var _timer_list_url = 'timers/';
function loadTimer(data, status, headers, config){
... | 42,420 |
https://github.com/kylelin47/virtual-reality/blob/master/.gitattributes | Github Open Source | Open Source | MIT | 2,016 | virtual-reality | kylelin47 | null | Spoken | 25 | 89 | *.mp3 filter=lfs diff=lfs merge=lfs -text
*.skp filter=lfs diff=lfs merge=lfs -text
*.wav filter=lfs diff=lfs merge=lfs -text
*.mat filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
| 43,764 |
https://github.com/omaralvarez/JuliaFEM.jl/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,015 | JuliaFEM.jl | omaralvarez | Ignore List | Code | 5 | 27 | *~
.DS_Store
.ipynb_checkpoints
docs/build/html
*.swp
| 51,494 |
https://github.com/c3sr/go-echarts/blob/master/charts/map.go | Github Open Source | Open Source | MIT | 2,020 | go-echarts | c3sr | Go | Code | 168 | 522 | package charts
import (
"github.com/go-echarts/go-echarts/datatypes"
"io"
"github.com/go-echarts/go-echarts/datasets"
)
// Map represents a map chart.
type Map struct {
BaseOpts
Series
mapType string
}
func (Map) chartType() string { return ChartType.Map }
// NewMap creates a new map chart.
func NewMap(mapT... | 50,689 |
https://github.com/bzc220/HopsofFaith/blob/master/core/src/edu/lehigh/cse/lol/LoseScene.java | Github Open Source | Open Source | Unlicense | 2,018 | HopsofFaith | bzc220 | Java | Code | 540 | 1,020 | /**
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or non-commercial, and by any
* means.
*
* In jurisdicti... | 41,760 |
https://github.com/DavidOsp/Proyecto-Panther/blob/master/j4panther/frontend_panther/src/app/login/login.component.ts | Github Open Source | Open Source | Apache-2.0 | 2,019 | Proyecto-Panther | DavidOsp | TypeScript | Code | 73 | 271 | import { Component, OnInit } from '@angular/core';
import {Router} from '@angular/router';
import { routerTransition } from '../router.animations';
import { Docente} from '../entities/docente';
import { AppService } from '../app.service';
@Component({
selector: 'app-login',
templateUrl: './login.component.htm... | 20,738 |
https://github.com/billwert/azure-sdk-for-java/blob/master/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/InputFile.java | Github Open Source | Open Source | MIT | 2,022 | azure-sdk-for-java | billwert | Java | Code | 198 | 500 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.mediaservices.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.... | 18,949 |
https://github.com/MrChriZ/ember-material-components/blob/master/tests/dummy/app/templates/snippets/menu.hbs | Github Open Source | Open Source | MIT | 2,018 | ember-material-components | MrChriZ | null | Spoken | 226 | 1,250 | {{!-- BEGIN-SNIPPET mdc-menu__default --}}
{{#mdc-menu
isOpened=isShowingMenu
cancel=(action (mut isShowingMenu) false)
select=(action (mut isShowingMenu) false) as |menu|}}
{{#menu.list}}
{{#menu.item}}A Menu Item{{/menu.item}}
{{#menu.item}}Another Menu Item{{/menu.item}}
{{/menu.list}}
{{/m... | 36,046 |
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev/blob/master/CoreUpdates/5402-KeepMenuTarget-HernanWilkinson-2022Jul28-18h05m-HAW.001.cs.st | Github Open Source | Open Source | MIT | 2,023 | Cuis-Smalltalk-Dev | Cuis-Smalltalk | null | Spoken | 58 | 148 | 'From Cuis 6.0 [latest update: #5401] on 28 July 2022 at 6:05:47 pm'!
!DynamicMenuBuilder methodsFor: 'building - private' stamp: 'HAW 7/28/2022 18:05:11'!
addSubMenuTo: aMenuItem from: subMenuDefinition
| subMenu |
subMenu := MenuMorph new.
subMenu defaultTarget: defaultTarget.
"Add the menu items recursively t... | 43,345 |
https://github.com/ps-mr/LinqOnSteroids/blob/master/src/main/scala/ivm/optimization/BugReport.scala | Github Open Source | Open Source | BSD-3-Clause | 2,022 | LinqOnSteroids | ps-mr | Scala | Code | 98 | 220 | /*
class BugReport {
trait Exp[+T]
case class Foo[T](v: Exp[T]) extends Exp[T]
def bugReports() {
val conds: Set[Exp[Boolean]] = null
//Both the following expressions must be present to trigger the bug. Commented out are variations I tried - when no
// explanation is present, it means that either va... | 20,462 |
https://github.com/zpam310/MandatoryChat2/blob/master/client/src/app/new-user/new-user.js | Github Open Source | Open Source | Unlicense | null | MandatoryChat2 | zpam310 | JavaScript | Code | 29 | 70 | "use strict";
/**
* Created by Tobias on 27-04-2017.
*/
var NewUser = (function () {
function NewUser(username) {
this.username = username;
}
return NewUser;
}());
exports.NewUser = NewUser;
| 25,491 |
https://github.com/The-Politico/django-slackchat-serializer/blob/master/slackchat/staticapp/webpack.config.dev.js | Github Open Source | Open Source | MIT | 2,020 | django-slackchat-serializer | The-Politico | JavaScript | Code | 221 | 834 | const path = require('path');
const glob = require('glob');
const _ = require('lodash');
const portfinder = require('portfinder');
const args = require('yargs').default('proxy', '8000').argv;
portfinder.basePort = 3000;
const config = (env, argv, port) => ({
mode: 'development',
devtool: 'cheap-eval-source-map',
... | 47,226 |
https://github.com/JasonHutton/QWTA/blob/master/source/game/anim/Anim_Testmodel.cpp | Github Open Source | Open Source | MIT | 2,021 | QWTA | JasonHutton | C++ | Code | 3,189 | 9,798 | // Copyright (C) 2007 Id Software, Inc.
//
/*
=============================================================================
MODEL TESTING
Model viewing can begin with either "testmodel <modelname>"
The names must be the full pathname after the basedir, like
"models/weapons/v_launch/tris.md3" or "players/male/tris... | 44,169 |
https://github.com/vavasthi/stm/blob/master/RoadBuddy/app/src/main/java/com/avasthi/roadcompanion/StatisticsException.java | Github Open Source | Open Source | Apache-2.0 | null | stm | vavasthi | Java | Code | 23 | 62 | package com.avasthi.roadcompanion;
/**
* Created by vavasthi on 31/3/15.
*/
public class StatisticsException extends Exception {
public StatisticsException(String message) {
super(message);
}
}
| 52,387 |
https://github.com/bradyjoestar/kvproto/blob/master/pkg/kvrpcpb/kvrpcpb.pb.go | Github Open Source | Open Source | Apache-2.0 | null | kvproto | bradyjoestar | Go | Code | 20,000 | 54,312 | // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: kvrpcpb.proto package kvrpcpb import ( "fmt" "io" "math" proto "github.com/golang/protobuf/proto" _ "github.com/gogo/protobuf/gogoproto" errorpb "github.com/pingcap/kvproto/pkg/errorpb" metapb "github.com/pingcap/kvproto/pkg/metapb" ) // Reference imports to... | 44,328 |
https://github.com/mhaya/hackedWEKO/blob/master/repository/logreport/Logreport.class.php | Github Open Source | Open Source | BSD-2-Clause | 2,016 | hackedWEKO | mhaya | PHP | Code | 4,715 | 21,377 | <?php
/**
* Fixed logging action class
* 定型ログ作成アクションクラス
*
* @package WEKO
*/
// --------------------------------------------------------------------
//
// $Id: Logreport.class.php 68946 2016-06-16 09:47:19Z tatsuya_koyasu $
//
// Copyright (c) 2007 - 2008, National Institute of Informatics,
// Research and Deve... | 53,256 |
https://github.com/LoganYue/TheProfessionals/blob/master/app/src/test/java/professional/team17/com/professional/TaskTest.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | TheProfessionals | LoganYue | Java | Code | 557 | 1,800 | package professional.team17.com.professional;
import android.test.ActivityInstrumentationTestCase2;
import com.google.android.gms.maps.model.LatLng;
import java.util.ArrayList;
import java.util.Date;
import professional.team17.com.professional.Entity.Bid;
import professional.team17.com.professional.Entity.Task;
pub... | 4,809 |
https://github.com/kaosko/playmate/blob/master/sources/src/de/m6c7l/playmate/main/io/CONVERT.java | Github Open Source | Open Source | MIT | 2,019 | playmate | kaosko | Java | Code | 193 | 712 | /*
* Copyright (c) 2017, Manfred Constapel
* This file is licensed under the terms of the MIT license.
*/
package de.m6c7l.playmate.main.io;
import java.awt.Color;
import java.awt.Point;
import java.util.Locale;
import de.m6c7l.lib.util.geo.Position;
import de.m6c7l.lib.util.xml.XMLElement;
public class CONVERT... | 2,147 |
https://github.com/iindy/darksideofrainbow/blob/master/src/main/java/com/darksideofrainbow/repository/ApplicationUserRepository.java | Github Open Source | Open Source | MIT | null | darksideofrainbow | iindy | Java | Code | 37 | 144 | package com.darksideofrainbow.repository;
import com.darksideofrainbow.models.ApplicationUser;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import java.util.List;
@RepositoryRestResource(exported = false)
public interface ApplicationUserRepository {
Boolean create(ApplicationUser ... | 16,227 |
https://github.com/branJakJak/FaaaassstttPeiPeiAyyyy/blob/master/models/PPILead.php | Github Open Source | Open Source | BSD-3-Clause | null | FaaaassstttPeiPeiAyyyy | branJakJak | PHP | Code | 271 | 760 | <?php
namespace app\models;
use Yii;
use yii\behaviors\TimestampBehavior;
use yii\db\Expression;
/**
* This is the model class for table "ppilead".
*
* @property int $id
* @property string $title
* @property string $firstName
* @property string $lastName
* @property string $houseNumber
* @property string $ho... | 24,896 |
https://github.com/winkidney/PickTrue/blob/master/src/picktrue/gui/__main__.py | Github Open Source | Open Source | MIT | 2,023 | PickTrue | winkidney | Python | Code | 99 | 527 | import tkinter as tk
import webbrowser
from tkinter import ttk
from picktrue import version
from picktrue.gui.downloader import downloaders
from picktrue.gui.toolkit import info
class App(tk.Tk):
def __init__(self, *args, **kwargs):
super(App, self).__init__(*args, **kwargs)
self.tabs = ttk.Note... | 39,764 |
https://github.com/grindjs/http/blob/master/src/Middleware/CompressionMiddlewareBuilder.js | Github Open Source | Open Source | MIT | null | http | grindjs | JavaScript | Code | 33 | 96 | import { MissingPackageError } from 'grind-framework'
export function CompressionMiddlewareBuilder(app) {
let compression = null
try {
compression = require('compression')
} catch(err) {
throw new MissingPackageError('compression')
}
return compression({ ...app.config.get('compression', { }) })
}
| 14,527 |
https://github.com/duongbadu/Fighter/blob/master/Classes/GameSceneController.h | Github Open Source | Open Source | MIT | 2,014 | Fighter | duongbadu | C++ | Code | 90 | 343 | //
// GameSceneController.h
// Fighter
//
// Created by zhouyizirui on 9/1/14.
//
//
#ifndef __Fighter__GameSceneController__
#define __Fighter__GameSceneController__
#include <iostream>
#include "GameSceneView.h"
#include "GameOverView.h"
#include "Protocols.h"
#include "Player.h"
#include "SmallEnemys.h"
#includ... | 10,179 |
https://github.com/mwatts/lumen/blob/master/liblumen_core/src/locks.rs | Github Open Source | Open Source | Apache-2.0 | 2,022 | lumen | mwatts | Rust | Code | 339 | 938 | use core::hint::spin_loop;
use core::sync::atomic::{AtomicBool, Ordering};
use lock_api::{GuardSend, RawMutex};
/// A standard mutex
/// See docs for `parking_lot::Mutex<T>` for details
pub type Mutex<T> = parking_lot::Mutex<T>;
pub type MutexGuard<'a, T> = parking_lot::MutexGuard<'a, T>;
/// A re-entrant mutex.
///... | 42,446 |
https://github.com/janslow/qlab-ruby/blob/master/lib/qlab-ruby/reply.rb | Github Open Source | Open Source | MIT | 2,014 | qlab-ruby | janslow | Ruby | Code | 79 | 260 | require 'json'
module QLab
# QLab OSC reply unpacker.
class Reply < Struct.new(:osc_message)
def address
@address ||= json['address']
end
def data
@data ||= json['data']
end
def status
@status ||= json['status']
end
def has_data?
!data.nil?
end
def ha... | 22,553 |
https://github.com/quincycs/aws-cdk-q-starter/blob/master/cdk-app/src/utils.ts | Github Open Source | Open Source | 2,023 | aws-cdk-q-starter | quincycs | TypeScript | Code | 58 | 203 | import { StringParameter } from "aws-cdk-lib/aws-ssm";
import { Construct } from "constructs";
import config from './config';
import { getContext } from './contextConfig';
const { APP_NAME, SSM_R53_PRIV_ZONE_NAME } = config;
export function genComputeDNS(scope: Construct) {
const { envName, computeName } = getConte... | 6,433 | |
https://github.com/biomassives/vue-seo-friendly-spa-template/blob/master/src/assets/style/base/generic.scss | Github Open Source | Open Source | MIT | null | vue-seo-friendly-spa-template | biomassives | SCSS | Code | 179 | 717 | @use './variables.scss' as *;
body {
will-change: background-color;
background-color: $theme-primary-body-bg-color;
transition: background-color 0.2s ease-out;
&.secondary-theme {
background-color: $theme-secondary-body-bg-color;
}
}
svg {
max-width: 100%;
}
.title {
font-weight: 700;
color: $c... | 19,918 |
https://github.com/mbathadavid/LMS/blob/master/app/Imports/TeacherImport.php | Github Open Source | Open Source | MIT | null | LMS | mbathadavid | PHP | Code | 59 | 234 | <?php
namespace App\Imports;
use App\Models\Teacher;
use Maatwebsite\Excel\Concerns\ToModel;
use Maatwebsite\Excel\Concerns\WithHeadingRow;
class TeacherImport implements ToModel,WithHeadingRow
{
/**
* @param array $row
*
* @return \Illuminate\Database\Eloquent\Model|null
*/
public function m... | 26,997 |
https://github.com/theHazzard/phplrvl/blob/master/index.php | Github Open Source | Open Source | MIT | 2,013 | phplrvl | theHazzard | PHP | Code | 32 | 170 | <html>
<link rel="icon" type="image/ico" href="favicon.ico"/>
<head>
<title>Welcome to Wnmp!</title>
</head>
<body>
<center><h2>Welcome to Wnmp 2.0.2.6!</h2></center>
<center><h2>by <a href="https://www.x64Architecture.com/">Kurt Cancemi</a></h2></center>
<center>Click <a href="https://localhost/phpmyadmin/">here</a> t... | 42,449 |
https://github.com/be-engineer/RTIMULib-Arduino/blob/master/ArduinoMagCal/ArduinoMagCal.ino | Github Open Source | Open Source | MIT | 2,022 | RTIMULib-Arduino | be-engineer | null | Spoken | 426 | 1,075 | ////////////////////////////////////////////////////////////////////////////
//
// This file is part of RTIMULib-Arduino
//
// Copyright (c) 2014-2015, richards-tech
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Softw... | 8,295 |
https://github.com/slingr-stack/slack-user-endpoint/blob/master/scripts/functions.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | slack-user-endpoint | slingr-stack | JavaScript | Code | 1,171 | 4,529 |
var genericSlackFunction = function(options) {
options = options || {};
return endpoint._post(options);
};
var slackFunction = function(path, options) {
options = options || {};
return genericSlackFunction({
path: path,
params: options
});
};
var downloadFile = function(options,... | 35,662 |
https://github.com/BastiaanOlij/godot/blob/master/modules/gdscript/tests/scripts/analyzer/errors/local_const_as_type_use_not_type.gd | Github Open Source | Open Source | MIT, CC-BY-4.0, OFL-1.1, Bison-exception-2.2, CC0-1.0, LicenseRef-scancode-nvidia-2002, LicenseRef-scancode-other-permissive, GPL-3.0-only, LicenseRef-scancode-unknown-license-reference, Unlicense, BSL-1.0, Apache-2.0, BSD-3-Clause, LicenseRef-scancode-public-domain, LicenseRef-scancode-unicode, BSD-2-Clause, FTL, GPL-... | 2,023 | godot | BastiaanOlij | GDScript | Code | 12 | 28 | enum MyEnum {A}
func test():
const E = MyEnum.A
var e: E
| 5,682 |
https://github.com/w1001766/SCALE-MAMBA/blob/master/Programs/addition/addition-0.asm | Github Open Source | Open Source | BSD-2-Clause | null | SCALE-MAMBA | w1001766 | Assembly | Code | 180 | 444 | # addition-0--0
print_char4 1027423549 # 0
print_char4 1027423549 # 1
print_char4 1027423549 # 2
print_char4 1027423549 # 3
print_char4 540884285 # 4
print_char4 1229407554 # 5
print_char4 1380982862 # 6
print_char4 1095911247 # 7
print_char4 1027416141 # 8
print_char4 1027423549 # 9
print_char4 1027423549 # 10
print_c... | 11,149 |
https://github.com/Zabadam/shadows/blob/master/lib/src/elevation.dart | Github Open Source | Open Source | BSD-3-Clause | null | shadows | Zabadam | Dart | Code | 850 | 2,402 | /// ## 🕴 Elevation
/// Provides abstract class [Elevation] with static decoration methods.
/// These methods specialize in handling Flutter top-level
/// `Map<int, List<BoxShadow>>` [kElevationToShadow].
///
/// Provides [ElevationUtils] which utilize [BoxShadowsUtils] with
/// Material elevation in mind.
///
/// ### ... | 22,438 |
https://github.com/kikimo/nebula/blob/master/src/common/conf/Configuration.h | Github Open Source | Open Source | Apache-2.0 | 2,020 | nebula | kikimo | C | Code | 264 | 760 | /* Copyright (c) 2018 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License,
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
*/
#ifndef COMMON_CONF_CONFIGURATION_H_
#define COMMON_CONF_CONFIGURATION_H_
#include "common/base/Base.h"
#include "common... | 39,574 |
https://github.com/fernando457829/moodle-todo/blob/master/internal/scripts/clean.js | Github Open Source | Open Source | MIT | null | moodle-todo | fernando457829 | JavaScript | Code | 60 | 226 | const rimraf = require('rimraf');
const path = require('path');
const {
distPath,
buildPath,
dllPath,
srcPreloadPath,
} = require('../utils/paths');
const argumentMap = {
dist: distPath,
release: path.join(buildPath, 'release'),
dll: dllPath,
preload: path.join(srcPreloadPath, 'preload.js'),
};
let... | 12,901 |
https://github.com/motech-implementations/mots/blob/master/src/webapp/js/components/locations.js | Github Open Source | Open Source | Apache-2.0 | 2,020 | mots | motech-implementations | JavaScript | Code | 454 | 2,053 | import React, { Component } from 'react';
import { connect } from 'react-redux';
import {
Tab, Tabs, TabList, TabPanel,
} from 'react-tabs';
import { Link } from 'react-router-dom';
import PropTypes from 'prop-types';
import 'react-tabs/style/react-tabs.scss';
import { resetLogoutCounter } from '../actions/index';
... | 13,537 |
https://github.com/vmahuli/tempest/blob/master/tempest/api_schema/compute/hypervisors.py | Github Open Source | Open Source | Apache-2.0 | null | tempest | vmahuli | Python | Code | 500 | 1,940 | # Copyright 2014 NEC Corporation. All rights reserved.
#
# 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 ... | 10,651 |
https://github.com/Dapp-Collections/flash-arbitrage-watcher/blob/master/src/App.js | Github Open Source | Open Source | Unlicense | 2,020 | flash-arbitrage-watcher | Dapp-Collections | JavaScript | Code | 90 | 261 | import React from 'react';
import { Box, Grommet, Main } from 'grommet';
import Stats from './components/Stats';
import TxQueue from './components/TxQueue';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import ConnexionForm from './components/ConnexionForm';
const App = ({ isInitialized })... | 31,864 |
https://github.com/ornladios/ADIOS2-Examples/blob/master/source/cpp/gray-scott-struct/analysis/isosurface.cpp | Github Open Source | Open Source | Apache-2.0 | 2,023 | ADIOS2-Examples | ornladios | C++ | Code | 943 | 3,588 | /*
* Analysis code for the Gray-Scott simulation.
* Reads variable U and and extracts the iso-surface using VTK.
* Writes the extracted iso-surface using ADIOS.
*
* Keichi Takahashi <keichi@is.naist.jp>
*
*/
#include <iostream>
#include <sstream>
#include <adios2.h>
#include <vtkAppendPolyData.h>
#include <vt... | 52,577 |
https://github.com/Talend/ui/blob/master/packages/components/src/Datalist/Datalist.module.scss | Github Open Source | Open Source | Apache-2.0 | 2,023 | ui | Talend | SCSS | Code | 85 | 403 | @use '~@talend/bootstrap-theme/src/theme/guidelines' as *;
@use '~@talend/design-tokens/lib/tokens';
$tc-datalist-items-max-height: 32rem !default;
$tc-datalist-item-height: 4rem !default;
.tc-datalist-form {
width: 100%;
}
.container {
width: 100%;
> div {
width: 100%;
}
}
.items-container {
max-height: $t... | 18,730 |
https://github.com/mydatakeeper/qcacld-2.0-imx/blob/master/CORE/SERVICES/HIF/PCIe/copy_engine.c | Github Open Source | Open Source | 0BSD | null | qcacld-2.0-imx | mydatakeeper | C | Code | 6,109 | 22,784 | /*
* Copyright (c) 2013-2014,2016-2017 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
* above copy... | 19,920 |
https://github.com/janhartmann/cake/blob/master/src/Cake/Scripting/Roslyn/Stable/DefaultRoslynScriptSessionFactory.cs | Github Open Source | Open Source | MIT | 2,021 | cake | janhartmann | C# | Code | 96 | 247 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#if !NETCORE
using Cake.Core;
using Cake.Core.Configuration;
using Cake.Core.Diagnostics;
using Cake.Core.IO;
using... | 31,669 |
https://github.com/maciek-27/Rgp/blob/master/extra/xftp/libxftp/client.h++ | Github Open Source | Open Source | MIT | null | Rgp | maciek-27 | C++ | Code | 192 | 876 | #ifndef _CLIENT_H_
#define _CLIENT_H_
#include <map>
#include "libstreamcon/connection.h++"
#include <libxftp/servercontrol.h++>
#include <libxftp/xftpserver.h++>
namespace xftp {
class ClientBase
{
public:
virtual ~ClientBase() {;}
virtual ControlThread& CreateControl()
throw(Connection::NoStreamsAvailabl... | 17,915 |
https://github.com/dotnet/wpf/blob/master/src/Microsoft.DotNet.Wpf/src/WpfGfx/core/av/util.inl | Github Open Source | Open Source | MIT | 2,023 | wpf | dotnet | C++ | Code | 186 | 502 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//+-----------------------------------------------------------------------------
//
//
// $TAG ENGR
// $Mod... | 12,867 |
https://github.com/savegame/oxygine-framework/blob/master/oxygine/src/oxygine/core/android/jniHelper.cpp | Github Open Source | Open Source | MIT | 2,022 | oxygine-framework | savegame | C++ | Code | 116 | 459 | #include "jniHelper.h"
extern "C"
{
JNIEnv* Android_JNI_GetEnv(void);
}
namespace oxygine
{
JNIEnv* jniGetEnv(void)
{
return Android_JNI_GetEnv();
}
std::string jniGetString(JNIEnv* env, jstring jstr)
{
if (!jstr)
return "";
const char* cstr = env->GetStrin... | 45,044 |
https://github.com/doc22940/ghuser.io/blob/master/reframe/views/utils/RichText.js | Github Open Source | Open Source | MIT | 2,019 | ghuser.io | doc22940 | JavaScript | Code | 68 | 266 | import {XmlEntities} from 'html-entities';
import * as Autolinker from 'autolinker';
import * as emoji from 'node-emoji';
import * as Parser from 'html-react-parser';
import * as ghEmojis from '../thirdparty/github-emojis';
export {RichText};
function RichText(text) {
return (
Parser(emoji.emojify(
Autoli... | 9,943 |
https://github.com/NightOfTwelve/iOS-Cracked-Apps/blob/master/DumpedClasses/TencentLive/MidasIAPInputView.h | Github Open Source | Open Source | MIT | 2,018 | iOS-Cracked-Apps | NightOfTwelve | Objective-C | Code | 139 | 612 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "UIView.h"
#import "UITextFieldDelegate.h"
@class NSString, UIButton, UITextField;
@interface MidasIAPInputView : UIView <UITextFieldDelegate>
{
UIView *_content;
... | 27,004 |
https://github.com/felipecotta/tcc-app/blob/master/node_modules/ionic-angular/components/toolbar/toolbar-base.js | Github Open Source | Open Source | Apache-2.0 | 2,019 | tcc-app | felipecotta | JavaScript | Code | 158 | 391 | var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
ext... | 15,549 |
https://github.com/AdrielBento/BEIBE-SAC/blob/master/BeibeProject/WebContent/js/atendimentos.js | Github Open Source | Open Source | MIT | null | BEIBE-SAC | AdrielBento | JavaScript | Code | 109 | 364 | /**
* @description Abre um dialog para confirmar a exclusao de um atendimento
*/
$(document).on("click", ".atendimento-remove", function (e) {
let idAtendimento = $(this).data("id");
let tr = $(this).parents("tr");
swal({
title: "Excluir Atendimento?",
text: "Esse atendimento não podera ... | 42,247 |
https://github.com/MitziChan/Fruteria/blob/master/Fruteria/src/fruteria/Producto.java | Github Open Source | Open Source | Apache-2.0 | null | Fruteria | MitziChan | Java | Code | 85 | 360 |
package fruteria;
import javax.swing.JOptionPane;
public class Producto {
public void Imprimir (){
int precio,precio2;
int i=0;
int suma=0;
int cambio;
int resta, resultado;
//----------------------------------------------------------------------------------//
precio=Integer.parseInt(JOptionPane.showInputDialog... | 48,249 |
https://github.com/nkylstad/altinn-studio/blob/master/src/react-apps/ux-editor/src/actions/thirdPartyComponentsActions/thirdPartyComponentsActionTypes.ts | Github Open Source | Open Source | BSD-3-Clause | null | altinn-studio | nkylstad | TypeScript | Code | 23 | 145 | const moduleName: string = 'THIRD_PARTY_COMPONENTS';
export const FETCH_THIRD_PARTY_COMPONENTS: string = `${moduleName}.FETCH_THIRD_PARTY_COMPONENTS`;
export const FETCH_THIRD_PARTY_COMPONENTS_FULFILLED: string = `${moduleName}.FETCH_THIRD_PARTY_COMPONENTS_FULFILLED`;
export const FETCH_THIRD_PARTY_COMPONENTS_REJECTED... | 24,337 |
https://github.com/dartsim/dart/blob/master/cmake/DARTFindBullet.cmake | Github Open Source | Open Source | BSD-2-Clause | 2,023 | dart | dartsim | CMake | Code | 93 | 242 | # Copyright (c) 2011-2023, The DART development contributors
# All rights reserved.
#
# The list of contributors can be found at:
# https://github.com/dartsim/dart/blob/master/LICENSE
#
# This file is provided under the "BSD-style" License
# Bullet. Force MODULE mode to use the FindBullet.cmake file distributed with... | 5,769 |
https://github.com/microsoft/msquic/blob/master/src/generated/linux/crypt.c.clog.h.lttng.h | Github Open Source | Open Source | MIT | 2,023 | msquic | microsoft | C | Code | 131 | 433 |
/*----------------------------------------------------------
// Decoder Ring for TlsLogSecret
// [ tls] %s[%u]: %s
// QuicTraceLogVerbose(
TlsLogSecret,
"[ tls] %s[%u]: %s",
Prefix,
Length,
SecretStr);
// arg2 = arg2 = Prefix = arg2
// arg3 = arg3 = Length = arg3
// arg4 = arg... | 9,562 |
https://github.com/DomT602/Altis_Scriptorium/blob/master/Modded_Framework/Dom_Server/Functions/Vehicles/fn_soldVehicle.sqf | Github Open Source | Open Source | MIT | 2,021 | Altis_Scriptorium | DomT602 | SQF | Code | 28 | 87 | /*
File: fn_soldVehicle.sqf
Author: Dom
Description: Sells a vehicle and deletes it from DB
*/
params [
["_plate","",[""]]
];
if (_plate isEqualTo "") exitWith {};
[format["deleteVehicle:%1",_plate],1] call MySQL_fnc_DBasync; | 7,840 |
https://github.com/Adarshmihir/DevWebUQAC/blob/master/FnacLaravel/app/Http/Controllers/UploadController.php | Github Open Source | Open Source | MIT | 2,019 | DevWebUQAC | Adarshmihir | PHP | Code | 34 | 194 | <?php
namespace App\Http\Controllers;
class UploadController extends Controller
{
public static function img_upload($request,$var,$pathP,$width=480,$height=480){
if($request->img){
do{
$imageName = str_random(40).'.'.$request->img->getClientOriginalExtension();
$pa... | 51,068 |
https://github.com/andcan/tex/blob/master/func.go | Github Open Source | Open Source | Apache-2.0 | 2,019 | tex | andcan | Go | Code | 665 | 2,062 | package tex
import (
"strings"
"text/template"
"unicode"
)
// DefaultFuncMap is automatically added to available template functions
func DefaultFuncMap() template.FuncMap {
return template.FuncMap{
"go": ToGo,
"goPrivate": ToGoPrivate,
"lcFirst": LcFirst,
"ucFirst": UcFirst,
}
}
// ToGo retur... | 53,789 |
https://github.com/bmy880/nxtframework/blob/master/src/main/java/com/newxton/nxtframework/controller/api/admin/NxtApiAdminAclRoleListController.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | nxtframework | bmy880 | Java | Code | 71 | 329 | package com.newxton.nxtframework.controller.api.admin;
import com.newxton.nxtframework.entity.NxtAclRole;
import com.newxton.nxtframework.service.NxtAclRoleService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.we... | 17,744 |
https://github.com/ChocolateLoverRaj/canvideo/blob/master/server/router/resources.js | Github Open Source | Open Source | MIT | 2,020 | canvideo | ChocolateLoverRaj | JavaScript | Code | 203 | 797 | //Serve resources like papercss and json editor.
//Dependencies
import { join, dirname } from 'path';
import options from "./options.js";
//Promise that gets resource paths
const resPaths = (async () => {
const paperCss = import.meta.resolve('papercss/dist/paper.min.css');
const jsonEditor = import.meta.resol... | 29,410 |
https://github.com/najmaweb/koperasi/blob/master/assets/padi/loginhandler.js | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,016 | koperasi | najmaweb | JavaScript | Code | 58 | 396 | var hostname = "http://koperasi/";
$.ajax({
url:hostname+"shop/checklogin",
type:"post"
})
.done(function(res){
console.log("RES check ligin",res);
if(res==='haslogin'){
console.log("return true");
$("#btnlogout").show();
$("#btnlogin").hide();
$("#logger").hide();
};
if(res==='hasnotlogin'){
$("#btnlog... | 14,871 |
https://github.com/eskatos/swing-on-steroids/blob/master/wizard/src/test/java/org/swing/on/steroids/wizard/views/swing/WelcomePanel.java | Github Open Source | Open Source | Apache-2.0 | 2,012 | swing-on-steroids | eskatos | Java | Code | 141 | 283 | /*
* Copyright (c) 2009, Paul Merlin. All Rights Reserved.
*
* 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... | 46,215 |
https://github.com/DmitryNyshchyi/NodeJs/blob/master/TaskForLesson4/controllers/auth.controller.js | Github Open Source | Open Source | MIT | null | NodeJs | DmitryNyshchyi | JavaScript | Code | 78 | 196 | const { CREATED } = require('../../configs/statusCodes.enum');
const { User } = require('../dataBase');
module.exports = {
postAuth: (req, res, next) => {
try {
const { locals: { user } } = req;
res.render('greeting', { title: `Hi, ${user.email}` });
} catch (err) {
... | 49,495 |
https://github.com/Rdecoster/open-prediction-service-hub/blob/master/ops-implementations/ads-ml-service/app/crud/crud_user.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | open-prediction-service-hub | Rdecoster | Python | Code | 238 | 723 | #!/usr/bin/env python3
#
# Copyright 2020 IBM
# 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... | 20,560 |
https://github.com/nstdio/assertj-core/blob/master/assertj-core/src/main/java/org/assertj/core/api/AbstractStringAssert.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | assertj-core | nstdio | Java | Code | 1,914 | 5,369 | /*
* 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 under t... | 949 |
https://github.com/sibelly/softplan-desafio-fullstack-sibelly-cavalcante/blob/master/api-gerenciar-processos/src/main/java/com/softplan/apigerenciarprocessos/modules/processos/services/ListarProcessosService.java | Github Open Source | Open Source | MIT | null | softplan-desafio-fullstack-sibelly-cavalcante | sibelly | Java | Code | 48 | 254 | package com.softplan.apigerenciarprocessos.modules.processos.services;
import java.util.List;
import java.util.Optional;
import com.softplan.apigerenciarprocessos.modules.processos.entities.Processo;
import com.softplan.apigerenciarprocessos.modules.processos.repositories.ProcessosRepository;
import org.springframew... | 10,403 |
https://github.com/Lugriz/pdfmake-wrapper/blob/master/src/lib/definitions/content-definition.ts | Github Open Source | Open Source | MIT | 2,022 | pdfmake-wrapper | Lugriz | TypeScript | Code | 213 | 423 | /**
* The main generic class that defines the main properties of the class, T: defines the TYPE to use and I defined the interface that of "content" property will use
*/
export abstract class ContentDefinition<T extends ContentDefinition<T, I>, I> {
/**
* The content that is shaped on every called method
... | 7,606 |
https://github.com/senandsonar/sonarbot/blob/master/node_modules/evt/tools/typeSafety/index.js | Github Open Source | Open Source | MIT | 2,021 | sonarbot | senandsonar | TypeScript | Code | 100 | 319 | "use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... | 12,796 |
https://github.com/vivekmsit/CarND-Path-Planning-Project/blob/master/src/Vehicle.hpp | Github Open Source | Open Source | MIT | 2,019 | CarND-Path-Planning-Project | vivekmsit | C++ | Code | 48 | 127 | #ifndef VEHICLE_HPP
#define VEHICLE_HPP
#include <iostream>
using namespace std;
class Vehicle {
public:
Vehicle();
Vehicle(double x, double y, double s, double d, double yaw, double speed);
void print();
double x_;
double y_;
double s_;
double d_;
double yaw_;
double speed_;
... | 11,313 |
https://github.com/charliewilkins/nq/blob/master/lib/nq.rb | Github Open Source | Open Source | MIT | 2,015 | nq | charliewilkins | Ruby | Code | 32 | 110 |
require "nq/version"
require "nq/cli"
module Nq
def self.configure
yield self
end
def self.region=(v)
@region = v
end
def self.region
@region
end
def self.credentials=(v)
@credentials = v
end
def self.credentials
@credentials
end
end
| 4,553 |
https://github.com/christophmeyer/stylegan2-tf2/blob/master/preprocessing/dataset.py | Github Open Source | Open Source | MIT | 2,021 | stylegan2-tf2 | christophmeyer | Python | Code | 578 | 2,781 | import os
from os.path import isfile, join
import PIL
from PIL import Image
import tensorflow as tf
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
from model.utils import ModelConfig
from preprocessing.utils import plot_batch
def crop_to_rectangular(image):
""" Crops longer dimension to ma... | 37,839 |
https://github.com/dhold/Matlab_code/blob/master/Collaboration_Elizabetta/Untitled_stuff.m | Github Open Source | Open Source | BSD-3-Clause | 2,015 | Matlab_code | dhold | MATLAB | Code | 318 | 1,214 | %this code was written to be used for calculate the state of a density
%matrix after a pump pulse needs parameters
% tstart, polvec, mu,R, L0,
% L0 = -1i*(kron(eye(length(Htot)),Htot)-kron(Htot.',eye(length(Htot))));
kk = sym('k','real'); %pump mean wavevector
kvec = kk*[sin(pu_angle),0,cos(pu_angle)];
t=sym('t','re... | 5,098 |
https://github.com/ringgaard/sling/blob/master/case/app/search.js | Github Open Source | Open Source | Apache-2.0 | 2,023 | sling | ringgaard | JavaScript | Code | 832 | 2,244 | // Copyright 2020 Ringgaard Research ApS
// Licensed under the Apache License, Version 2
import {Component} from "/common/lib/component.js";
import {MdSearchResult} from "/common/lib/material.js";
import {store, frame, settings} from "/common/lib/global.js";
const n_name = frame("name");
const n_alias = frame("alias"... | 46,158 |
https://github.com/Charlee1904/CMS-style-blog-site/blob/master/models/index.js | Github Open Source | Open Source | ADSL | null | CMS-style-blog-site | Charlee1904 | JavaScript | Code | 42 | 146 | const User = require('./User');
const Post = require('./Post');
// Post.hasOne(User,{
// foreignKey:'user_id',
// onDelete:'CASCADE',
// });
// User.belongsTo(Post,{
// foreignKey:'user_id',
// });
// User.hasMany(Post, {
// foreignKey:'user_id',
// onDelete:'CASCADE',
// });
// Post.belongsTo(... | 27,151 |
https://github.com/kohrongying/twu-biblioteca-rongying/blob/master/src/com/twu/biblioteca/PromptBuilder.java | Github Open Source | Open Source | Apache-2.0 | null | twu-biblioteca-rongying | kohrongying | Java | Code | 234 | 631 | package com.twu.biblioteca;
public class PromptBuilder {
private String header;
private Loanable[] resources;
private String[] actionMenu;
private String[] menu;
@Override
public String toString() {
StringBuilder strBuilder = new StringBuilder("");
strBuilder.append(this.buildH... | 24,988 |
https://github.com/perminder-klair/cms-core/blob/master/cron.php | Github Open Source | Open Source | MIT | 2,017 | cms-core | perminder-klair | PHP | Code | 25 | 129 | <?php
date_default_timezone_set('UTC');
defined('YII_DEBUG') or define('YII_DEBUG',true);
// include Yii
$yii=dirname(__FILE__).'/vendor/yiisoft/yii/framework/yii.php';
require_once($yii);
// we'll use a separate config file
$configFile=dirname(__FILE__).'/protected/config/console.php';
// creating and running c... | 4,953 |
https://github.com/goeran/ODiff/blob/master/ODiff.Tests/Diff_complex_object_graphs.cs | Github Open Source | Open Source | MIT | 2,018 | ODiff | goeran | C# | Code | 868 | 3,021 | using System;
using System.Collections.Generic;
using System.Linq;
using NUnit.Framework;
using ODiff.Tests.Fakes;
using ODiff.Tests.Utils;
namespace ODiff.Tests
{
public class Diff_complex_object_graphs
{
[TestFixture]
public class When_diff_uneqal_objects
{
[Test]
... | 45,005 |
https://github.com/youngbeom-shin/Gatsby-test.github.io/blob/master/src/@narative/gatsby-theme-novela/components/Navigation/language/homepage.tsx | Github Open Source | Open Source | MIT | null | Gatsby-test.github.io | youngbeom-shin | TypeScript | Code | 39 | 480 | import React from "react";
const FrenchIcon = ({ fill = "#7D7D7D", ...props }) => (
<svg
width="32"
height="24"
viewBox="0 0 32.6 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path d="M23.2,13.1L9,10.1l-4-4C4.8,5.8,4.8,5.4,5,5.2l3.8-3.9c0.1-0.1,0.3-0.2,0.4-0.2L28.7,0c... | 18,097 |
https://github.com/gospotcheck/chamber/blob/master/cmd/root.go | Github Open Source | Open Source | MIT | 2,018 | chamber | gospotcheck | Go | Code | 225 | 587 | package cmd
import (
"fmt"
"os"
"regexp"
"github.com/spf13/cobra"
)
// Regex's used to validate service and key names
var (
validKeyFormat = regexp.MustCompile(`^[A-Za-z0-9-_]+$`)
validServiceFormat = regexp.MustCompile(`^[A-Za-z0-9-_]+$`)
numRetries int
)
const (
// ShortTimeFormat is a short format f... | 20,833 |
https://github.com/GSA/sam-design-system/blob/master/libs/documentation/src/lib/storybook/formly/formly-search/formly-search-label/formly-search-label.component.ts | Github Open Source | Open Source | CC0-1.0, MIT, LicenseRef-scancode-public-domain-disclaimer, LicenseRef-scancode-public-domain | 2,023 | sam-design-system | GSA | TypeScript | Code | 63 | 190 | import { Component } from '@angular/core';
import { FormGroup } from '@angular/forms';
import { FormlyFormOptions, FormlyFieldConfig } from '@ngx-formly/core';
@Component({
selector: 'sds-formly-search-label',
templateUrl: './formly-search-label.component.html',
})
export class FormlySearchLabelComponent {
form ... | 19,720 |
https://github.com/M4Gn1T/Brooklyn/blob/master/Brooklyn/Contexts/Screen Saver/BrooklynView.swift | Github Open Source | Open Source | MIT | null | Brooklyn | M4Gn1T | Swift | Code | 236 | 647 | //
// BrooklynView.swift
// Brooklyn
//
// Created by Pedro Carrasco on 30/10/2018.
// Copyright © 2018 Pedro Carrasco. All rights reserved.
//
import Foundation
import ScreenSaver
import AVKit
// MARK: - BrooklynView
final class BrooklynView: ScreenSaverView {
// MARK: Local Typealias
typealias Static =... | 25,212 |
https://github.com/pacoferre/Dosconf/blob/master/Frontend/PROT/Edit/Notas.ascx | Github Open Source | Open Source | MIT | 2,019 | Dosconf | pacoferre | null | Spoken | 24 | 158 | <%@ Control Language="C#" AutoEventWireup="true" Inherits="LCC.WebGestion.presupuestos.presupuestos_Notas" Codebehind="Notas.ascx.cs" %>
<%@ Register Src="../elementos/Notas.ascx" TagName="Notas" TagPrefix="uc1" %>
<ele:CajaEdicion id="C3" runat="server" Titulo="Notas">
<uc1:Notas ID="n" runat="server" Coleccion="C... | 17,326 |
https://github.com/mano7onam/kotlin-native/blob/master/backend.native/tests/external/codegen/boxInline/defaultValues/kt11479InlinedDefaultParameter.kt | Github Open Source | Open Source | Apache-2.0 | 2,018 | kotlin-native | mano7onam | Kotlin | Code | 65 | 138 | // FILE: 1.kt
package test
inline fun log(lazyMessage: () -> Any?) {
lazyMessage()
}
inline fun z(): Boolean {
"zzz"
return true
}
// FILE: 2.kt
import test.*
inline fun getOrCreate(
z : Boolean = z(),
s: () -> String
) {
log { s() }
}
fun box(): String {
var z = "fail"
ge... | 6,991 |
https://github.com/Juvo360/LiTr/blob/master/litr/src/test/java/com/linkedin/android/litr/io/MediaMuxerMediaTargetShould.java | Github Open Source | Open Source | BSD-2-Clause | null | LiTr | Juvo360 | Java | Code | 274 | 1,295 | /*
* Copyright 2019 LinkedIn Corporation
* All Rights Reserved.
*
* Licensed under the BSD 2-Clause License (the "License"). See License in the project root for
* license information.
*/
package com.linkedin.android.litr.io;
import android.media.MediaCodec;
import android.media.MediaFormat;
import android.media... | 38,696 |
https://github.com/ottodevs/dapps-learning/blob/master/.gitmodules | Github Open Source | Open Source | MIT | 2,017 | dapps-learning | ottodevs | Git Config | Code | 8 | 64 | [submodule "006-full-erc20-token-from-scratch/src/erc20"]
path = 006-full-erc20-token-from-scratch/src/erc20
url = https://github.com/dapphub/erc20
| 11,206 |
https://github.com/ryanloney/openvino-1/blob/master/src/tests/functional/plugin/gpu/dynamic_tests/gpu_dyn_batch_shape_tests.cpp | Github Open Source | Open Source | Apache-2.0 | 2,020 | openvino-1 | ryanloney | C++ | Code | 314 | 1,270 | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "openvino/runtime/core.hpp"
#include <common_test_utils/test_common.hpp>
#include "common_test_utils/common_utils.hpp"
#include "functional_test_utils/skip_tests_config.hpp"
#include "ngraph_functions/subgraph_builders.hpp"... | 33,856 |
https://github.com/billymfl/emailer/blob/master/modules/services/MailGun.js | Github Open Source | Open Source | MIT | null | emailer | billymfl | JavaScript | Code | 265 | 742 | /*
* @module MailGun
*/
const Emailer = require('./Emailer');
const qs = require('qs');
// reference to us
let instance;
// the response from the api signifying success
const success = {
message: 'Queued. Thank you.',
};
/** Class representing the MailGun API using Emailer interface. */
class MailGun extends Email... | 49,743 |
https://github.com/hckim-kornic/mbed_edge_kornic/blob/master/build/blept-example/CMakeFiles/blept-example.dir/cmake_clean.cmake | Github Open Source | Open Source | Apache-2.0 | null | mbed_edge_kornic | hckim-kornic | CMake | Code | 24 | 290 | file(REMOVE_RECURSE
"CMakeFiles/blept-example.dir/devices.c.o"
"CMakeFiles/blept-example.dir/main.c.o"
"CMakeFiles/blept-example.dir/pt_ble.c.o"
"CMakeFiles/blept-example.dir/pt_ble_supported_translations.c.o"
"CMakeFiles/blept-example.dir/pt_ble_translations.c.o"
"CMakeFiles/blept-example.dir/pt_edge.c.o"
... | 2,683 |
https://github.com/medmin/ipapp/blob/master/views/site/contact.php | Github Open Source | Open Source | BSD-3-Clause | 2,018 | ipapp | medmin | PHP | Code | 132 | 627 | <?php
/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model app\models\ContactForm */
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\captcha\Captcha;
$this->title = '反馈';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="site-contact">
<div class="box box... | 11,340 |
https://github.com/finos/waltz/blob/master/waltz-data/src/main/java/org/finos/waltz/data/app_group/AppGroupEntryDao.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-generic-cla, CC0-1.0 | 2,023 | waltz | finos | Java | Code | 527 | 2,668 | /*
* Waltz - Enterprise Architecture
* Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project
* See README.md for more information
*
* 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 ... | 34,770 |
https://github.com/Innoactive/Creator/blob/master/Editor/Serialization/JsonEditorConfigurationSerializer.cs | Github Open Source | Open Source | MIT, Apache-2.0 | 2,021 | Creator | Innoactive | C# | Code | 106 | 385 | using System.Collections.Generic;
using Innoactive.CreatorEditor.Configuration;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Innoactive.CreatorEditor.Serialization
{
public static class JsonEditorConfigurationSerializer
{
private const int version = 0;
/// <summary>
//... | 13,909 |
https://github.com/Build-Week-secretfamilyrecipes-2020/front-end/blob/master/new-user-onboarding/src/components/Protected/index.js | Github Open Source | Open Source | MIT | null | front-end | Build-Week-secretfamilyrecipes-2020 | JavaScript | Code | 47 | 118 | import React from "react";
import { Route, Redirect } from "react-router-dom";
const Protected = ({ component: Component, ...props }) => {
return (
<Route
{...props}
render={(props) =>
localStorage.getItem("Token") ? (
<Component props={props} />
) : (
<Redirect to... | 17,173 |
https://github.com/RusaDrako/project_start/blob/master/app/controller/default_page.php | Github Open Source | Open Source | MIT | null | project_start | RusaDrako | PHP | Code | 119 | 542 | <?php
namespace app\controller;
/**/
class default_page {
/**/
public function __construct() {}
/**/
public function default() {
$this->page_404();
exit;
}
/** Выводит: Страница не найдена */
public function page_404() {
\view_project::call()->page('__error/404');
exit;
// echo '404 - Стран... | 1,345 |
https://github.com/arc03/30-DaysOfCode-March-2021/blob/master/answers/ShreyanshSh31/Day3/Question2.java | Github Open Source | Open Source | MIT | 2,021 | 30-DaysOfCode-March-2021 | arc03 | Java | Code | 61 | 226 | import java.util.*;
class unique_number
{
public static void main(String args[])
{
Scanner sc = new Scanner (System.in);
System.out.println("Enter the number you want to check");
int n=sc.nextInt();
String a=Integer.toString(n);
int len=a.length();
int flag=0;
... | 8,142 |
https://github.com/hflexgrig/CSharpMath/blob/master/CSharpMath/Atoms/Atom/Inner.cs | Github Open Source | Open Source | MIT, LicenseRef-scancode-gust-font-1.0 | 2,019 | CSharpMath | hflexgrig | C# | Code | 211 | 735 | using CSharpMath.Enumerations;
using CSharpMath.Interfaces;
using System;
using System.Collections.Generic;
using System.Text;
namespace CSharpMath.Atoms {
public class Inner : MathAtom,IMathInner {
public Inner(): base(MathAtomType.Inner, string.Empty) {
}
private IMathAtom _LeftBoundary;
private I... | 34,295 |
https://github.com/jvdillon/probability/blob/master/tensorflow_probability/python/layers/__init__.py | Github Open Source | Open Source | Apache-2.0 | 2,018 | probability | jvdillon | Python | Code | 224 | 919 | # Copyright 2018 The TensorFlow Probability 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 o... | 19,271 |
https://github.com/ndexbio/ndex-common/blob/master/src/main/java/org/ndexbio/xbel/splitter/AnnotationDefinitionGroupSplitter.java | Github Open Source | Open Source | BSD-3-Clause | 2,016 | ndex-common | ndexbio | Java | Code | 694 | 1,843 | /**
* Copyright (c) 2013, 2016, The Regents of the University of California, The Cytoscape Consortium
* All rights reserved.
*
* 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 code m... | 15,183 |
https://github.com/tsingdao-Tp/Indigo/blob/master/core/indigo-core/layout/src/layout_pattern_holder.cpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | Indigo | tsingdao-Tp | C++ | Code | 247 | 941 | #include "layout/layout_pattern_holder.h"
using namespace indigo;
IMPL_ERROR(LayoutPatternHolder, "layout_pattern_holder");
LayoutPatternHolder::LayoutPatternHolder()
{
_initPatterns();
}
ObjArray<PatternLayout>& LayoutPatternHolder::getPatterns()
{
return _patterns;
}
int LayoutPatternHolder::_pattern_cmp... | 33,654 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.