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/guatemarmol/canterasoft/blob/master/public/statics/funciones/bodegas/ingreso-suministro/cargar-bodega.php | Github Open Source | Open Source | MIT | null | canterasoft | guatemarmol | PHP | Code | 302 | 755 | <?php
//Vamos a hacer un Get de los codigos de Bodega
/*$sql = "SELECT * FROM bodega;"; //BODEGAS
$resultado = $con->query($sql);
$arraybodega = [];
$i = 0;
while ($fila = $resultado->fetch_assoc()) {
//Imprimimos los valores del select
echo '<option value=' . $fila['codigo'] . ' >' . $fila['nombre']... | 35,549 |
https://github.com/shef-er/icr-php/blob/master/backend/bootstrap.php | Github Open Source | Open Source | MIT | null | icr-php | shef-er | PHP | Code | 174 | 595 | <?php
declare(strict_types=1);
use App\Handler\HttpErrorHandler;
use DI\ContainerBuilder;
use Slim\App;
// require_once __DIR__ . '/config/defines.php';
require_once __DIR__ . '/vendor/autoload.php';
define('ROOT_DIR', dirname(realpath(__FILE__)));
if (is_readable(__DIR__ . '/.env')) {
$dotenv = \Dotenv\Dotenv:... | 33,573 |
https://github.com/i-gaven/Just_a_dumper/blob/master/all_headers/优酷视频-这!就是街舞全网独播-7.2.1(越狱应用)_headers/VIPCMSComponentBox.h | Github Open Source | Open Source | MIT | 2,018 | Just_a_dumper | i-gaven | Objective-C | Code | 43 | 144 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import "CMSComponentBox.h"
@interface VIPCMSComponentBox : CMSComponentBox
{
}
- (void)refreshComponent;
- (id)makeBoxCardWithItems:... | 12,590 |
https://github.com/dineshannayya/ycr4c/blob/master/src/includes/ycr_tapc.svh | Github Open Source | Open Source | Apache-2.0 | 2,022 | ycr4c | dineshannayya | null | Spoken | 338 | 1,337 | //////////////////////////////////////////////////////////////////////////////
// SPDX-FileCopyrightText: 2021, Dinesh Annayya ////
// ////
// Licensed under the Apache License, Version 2.0 (the "License"); ////
// y... | 14,983 |
https://github.com/nicolasruscher/Artemis/blob/master/src/main/webapp/app/guided-tour/guided-tour.constants.ts | Github Open Source | Open Source | MIT | 2,022 | Artemis | nicolasruscher | TypeScript | Code | 193 | 439 | export interface OrientationConfiguration {
/** Where the tour step will appear next to the selected element */
orientationDirection: Orientation;
/** When this orientation configuration starts in pixels */
maximumSize?: number;
}
/* Orientation of the tour step position next to the highlighted element... | 35,528 |
https://github.com/Ajinkya-Sonawane/College-Drive/blob/master/client/FinalGUI/Homepage.java | Github Open Source | Open Source | MIT | 2,022 | College-Drive | Ajinkya-Sonawane | Java | Code | 1,027 | 5,435 | package FinalGUI;
import java.io.File;
import javax.swing.JFileChooser;
import javax.swing.JTextField;
import FinalGUI.FileChooser1;
import Login_Register.GetDetails;
import java.awt.Color;
import javax.swing.JOptionPane;
import java.awt.Toolkit;
import java.util.List;
//import javax.swing.Homepage.file_table.DefaultTa... | 43,432 |
https://github.com/xu362726904/WS/blob/master/src/main/java/cc/sc/modules/info/service/MerchantImageService.java | Github Open Source | Open Source | Apache-2.0 | null | WS | xu362726904 | Java | Code | 118 | 483 | /**
* Copyright © 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package cc.sc.modules.info.service;
import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import cc.sc.common.persisten... | 53,113 |
https://github.com/BreakerOfThings/o3de/blob/master/Gems/Atom/RHI/Vulkan/Code/Source/RHI/Vulkan.h | Github Open Source | Open Source | Apache-2.0, MIT | 2,022 | o3de | BreakerOfThings | C | Code | 406 | 1,207 | /*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#pragma once
#include <AzCore/Math/Color.h>
#include <AzCore/std/containers/vector.h>
#include <A... | 3,806 |
https://github.com/laevandus/SwiftUIStateObject/blob/master/Shared/SwiftUIStateObjectApp.swift | Github Open Source | Open Source | MIT | 2,021 | SwiftUIStateObject | laevandus | Swift | Code | 37 | 108 | //
// SwiftUIStateObjectApp.swift
// Shared
//
// Created by Toomas Vahter on 23.07.2020.
//
import SwiftUI
@main
struct SwiftUIStateObjectApp: App {
@State var dependencyContainer = DependencyContainer()
var body: some Scene {
WindowGroup {
ContentView().environmentObject(dependen... | 39,995 |
https://github.com/ylck/rancher/blob/master/vendor/github.com/rancher/kontainer-engine/types/rpc_client.go | Github Open Source | Open Source | Apache-2.0 | null | rancher | ylck | Go | Code | 355 | 1,088 | package types
import (
"context"
"errors"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
// NewClient creates a grpc client for a driver plugin
func NewClient(driverName string, addr string) (Driver, error) {
conn, err := grpc.Dial(addr, grpc.WithInsecure())
if err ... | 11,971 |
https://github.com/ntcho/Sunrin2017/blob/master/Software/Programming/Java16/ex01/Inheritance01.java | Github Open Source | Open Source | MIT | 2,017 | Sunrin2017 | ntcho | Java | Code | 105 | 480 | package ex01;
public class Inheritance01 {
public static void main(String[] args) {
System.out.print("시계 브랜드 이름 입력 : ");
// Scanner는 java.util.패키지에 있는 클래스임.
// 패키지는 클래스가 모인 라이버러리임.
// java.lang.패키지만 별도 명시 없이 클래스를 호출해 쓸 수 있으므로
// 첫번째, java.util.패키지에 속한 클래스는 import로 미리 선언해주고나,
// 두번째, 아래와 같이 쓸때 마다 j... | 20,196 |
https://github.com/slackhq/EitherNet/blob/master/src/testFixtures/java/com/slack/eithernet/test/EitherNetControllers.kt | Github Open Source | Open Source | Apache-2.0 | 2,023 | EitherNet | slackhq | Kotlin | Code | 540 | 1,465 | /*
* Copyright (C) 2021 Slack Technologies, LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 32,844 |
https://github.com/backspace/web-clone/blob/master/app/models/cron.js | Github Open Source | Open Source | MIT | null | web-clone | backspace | JavaScript | Code | 34 | 117 | import Model from 'ember-data/model';
import attr from 'ember-data/attr';
import { belongsTo } from 'ember-data/relationships';
export default Model.extend({
branch: belongsTo('branch', { async: true }),
interval: attr('string'),
dont_run_if_recent_build_exists: attr('boolean'),
created_at: attr('string'),
l... | 29,561 |
https://github.com/j5ik2o/scala-ddd-base/blob/master/jdbc/skinny/src/main/scala/com/github/j5ik2o/dddbase/skinny/AggregateBaseReadFeature.scala | Github Open Source | Open Source | MIT | 2,020 | scala-ddd-base | j5ik2o | Scala | Code | 32 | 124 | package com.github.j5ik2o.dddbase.skinny
import cats.data.ReaderT
import monix.eval.Task
import scalikejdbc._
trait AggregateBaseReadFeature extends AggregateIOBaseFeature {
protected def convertToAggregate: RecordType => ReaderT[Task, DBSession, AggregateType]
protected def byCondition(id: IdType): SQLSyntax
... | 28,315 |
https://github.com/zhangtanlin/zhong/blob/master/src/user/user.entity.ts | Github Open Source | Open Source | MIT | null | zhong | zhangtanlin | TypeScript | Code | 347 | 1,558 | /**
* @requires [Entity] - typeorm导出的entity模块
* @requires [Column] - typeorm导出的Column模块
* @requires [PrimaryGeneratedColumn] - typeorm导出的PrimaryGeneratedColumn模块
*/
import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm'
import * as Moment from 'moment'
import { Exclude } fr... | 10,818 |
https://github.com/xuefenfei712/sheepclock/blob/master/Fig2_SheepClocks.R | Github Open Source | Open Source | MIT | 2,021 | sheepclock | xuefenfei712 | R | Code | 324 | 1,314 | library(ggplot2)
library("cowplot")
setwd("/Users/victoriasugrue/Dropbox/N18.2018-9300-1SheepSkinBloodTimHoreRussellSnell/Subset_Sheep_PredictionResultsJosephZoller/")
#figure A: sheep pan tissue, sheep clock
sheepA <- read.csv("datPredictedAgeN18FinalJosephZoller.csv")
#figure B: sheep blood
sheepB <- read.csv("datP... | 53,263 |
https://github.com/BiyuHuang/scala-for-the-Impatient/blob/master/src/Chapter02/exercise10.scala | Github Open Source | Open Source | MIT | 2,015 | scala-for-the-Impatient | BiyuHuang | Scala | Code | 62 | 149 | /**
* Created by vernonzheng on 15/1/20.
*/
/**
* 编写函数计算x^n, 其中n为整数。
*/
def getPower(x:Double, n:Int):Double = {
if (n == 0 ) 1
else if ( n>0 && n % 2 != 0 ) x * getPower(x, n-1)
else if (n >0 && n % 2 == 0 ) getPower (x, n/2) * getPower (x, n/2)
else 1/getPower( x, -n)
} | 3,721 |
https://github.com/linxcat/CMPT406-VR/blob/master/Assets/Prefabs.meta | Github Open Source | Open Source | MIT | 2,017 | CMPT406-VR | linxcat | Unity3D Asset | Code | 14 | 71 | fileFormatVersion: 2
guid: 7d3ab2aae5ac3b74a8efec44766b7326
folderAsset: yes
timeCreated: 1487213668
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
| 18,356 |
https://github.com/gkalpak/angularjs.org/blob/master/src/scss/angular.scss | Github Open Source | Open Source | MIT | 2,022 | angularjs.org | gkalpak | SCSS | Code | 22 | 88 | // BASE
@import 'base/defaults';
@import 'base/colors';
@import 'base/typograhpy';
// MODULES
@import 'modules/announcement-bar';
@import 'modules/buttons';
@import 'modules/hero';
@import 'modules/top-nav';
// MOBILE
@import 'mobile'; | 51,896 |
https://github.com/qytz/qytz-notes/blob/master/source/tech/dbus/_source/dbus/method_call.c | Github Open Source | Open Source | MIT | 2,019 | qytz-notes | qytz | C | Code | 351 | 1,361 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dbus/dbus-glib.h>
#include <dbus/dbus.h>
#include <unistd.h>
//建立与session D-Bus daemo的连接,并设定连接的名字,相关的代码已经多次使用过了
DBusConnection * connect_dbus()
{
DBusError err;
DBusConnection * connection;
int ret;
//Step 1: connecting session bus
... | 51,201 |
https://github.com/RafaelMoid/ms-strateegia-user-analysis/blob/master/ms_tagcloud_rails/app/controllers/tag_cloud_controller.rb | Github Open Source | Open Source | MIT | 2,021 | ms-strateegia-user-analysis | RafaelMoid | Ruby | Code | 183 | 688 | require "uri"
require "net/http"
require 'json'
class TagCloudController < ApplicationController
def get_cloud
url = "https://api.strateegia.digital/projects/v1/content/" + params[:id] + "/comment/report"
auth = request.headers["Authorization"]
#begin
responseStrateegia = getStrate... | 1,335 |
https://github.com/perlatex/tidy_easyuse/blob/master/bookdown/bookdown_Elegant/R/barplot.R | Github Open Source | Open Source | CC-BY-4.0 | 2,021 | tidy_easyuse | perlatex | R | Code | 136 | 447 | ######################################################################
# usage
# df_four_degree %>% bar_plot(vars = t4) +
# df_four_degree %>% bar_plot(vars = t5, xjust = TRUE)
bar_plot <- function(vars, var_name) {
labels <- questionnaire_labels %>%
filter(index == var_name) %>%
select(option, ssn) %>... | 42,233 |
https://github.com/Marvin-peng/decorated_flutter/blob/master/lib/src/ui/widget/visual/decorated/decorated_flex.widget.dart | Github Open Source | Open Source | Apache-2.0 | null | decorated_flutter | Marvin-peng | Dart | Code | 1,214 | 4,040 | import 'package:decorated_flutter/decorated_flutter.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
typedef void PressedCallback(BuildContext context);
class DecoratedRow extends DecoratedFlex {
const DecoratedRow({
Key key,
EdgeInsets padding,
EdgeInsets margin,
... | 54,270 |
https://github.com/jonathangaldino/portfolio/blob/master/src/components/Home/index.tsx | Github Open Source | Open Source | MIT | 2,019 | portfolio | jonathangaldino | TypeScript | Code | 31 | 101 | import * as Styled from './styles';
const Home = () => {
return (
<Styled.Container>
<Styled.Me>
<h1>Jonathan Galdino</h1>
<strong>Node.js Software Developer & Fullstack aspiring</strong>
</Styled.Me>
</Styled.Container>
)
}
export default Home; | 41,469 |
https://github.com/srally/CS350/blob/master/kernel.asm | Github Open Source | Open Source | MIT-0 | null | CS350 | srally | Assembly | Code | 20,000 | 54,681 | kernel: file format elf32-i386 Disassembly of section .text: 80100000 <multiboot_header>: 80100000: 02 b0 ad 1b 00 00 add 0x1bad(%eax),%dh 80100006: 00 00 add %al,(%eax) 80100008: fe 4f 52 decb 0x52(%edi) 8010000b: e4 .byte 0xe4 8010000c <entry>: # Entering xv6 on boot processor, with paging off. .globl entry entry: # ... | 3,245 |
https://github.com/shisheng-1/themoviedbapi/blob/master/src/main/java/info/movito/themoviedbapi/model/people/PersonCredits.java | Github Open Source | Open Source | BSD-2-Clause-FreeBSD | 2,022 | themoviedbapi | shisheng-1 | Java | Code | 55 | 221 | package info.movito.themoviedbapi.model.people;
import com.fasterxml.jackson.annotation.JsonProperty;
import info.movito.themoviedbapi.model.core.AbstractJsonMapping;
import java.util.List;
public class PersonCredits extends AbstractJsonMapping {
@JsonProperty("cast")
private List<PersonCredit> cast;
@... | 38,431 |
https://github.com/jshyun/incubating/blob/master/dns-types/src/main/java/org/typelibrary/dns/records/APLRecord.java | Github Open Source | Open Source | Apache-2.0 | null | incubating | jshyun | Java | Code | 533 | 1,584 | /*
* Copyright (C) 2015 John Hyun
*
* 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 ... | 42,554 |
https://github.com/PacktPublishing/DotNET-Standard-2-Cookbook/blob/master/Chapter03/Chapter3.LogFile/Chapter3.LogFile.sln | Github Open Source | Open Source | MIT | 2,021 | DotNET-Standard-2-Cookbook | PacktPublishing | null | Spoken | 157 | 1,350 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26124.0
MinimumVisualStudioVersion = 15.0.26124.0
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Chapter3.LogFile.LogLib", "Chapter3.LogFile.LogLib\Chapter3.LogFile.LogLib.csproj", "{D79E7738-239E-412D-9049-... | 11,040 |
https://github.com/jasongutierrez1989/sinatra-logging-in-and-out-online-web-pt-031119/blob/master/app/models/user.rb | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain | 2,019 | sinatra-logging-in-and-out-online-web-pt-031119 | jasongutierrez1989 | Ruby | Code | 35 | 95 | class User
attr_accessor :username, :password, :balance
def initialize(username, password, balance)
@username = username
@password = password
@balance = balance
end
def save
self.class.all << self
end
def self.create
user = self.new
user.save
user
e... | 41,182 |
https://github.com/TharindaNimnajith/peters_place/blob/master/vendor/nesbot/carbon/src/Carbon/Lang/zu_ZA.php | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,022 | peters_place | TharindaNimnajith | PHP | Code | 209 | 752 | <?php
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Authors:
* - Zuza Software Foundation (Translate.org.za) Dwayne Bailey dwayne@t... | 34,119 |
https://github.com/sparkcube/site-kit-wp/blob/master/assets/js/components/wp-dashboard/WPDashboardIdeaHub.js | Github Open Source | Open Source | Apache-2.0 | null | site-kit-wp | sparkcube | JavaScript | Code | 308 | 867 | /**
* Idea Hub notice component.
*
* Site Kit by Google, Copyright 2021 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0... | 47,111 |
https://github.com/codeabovelab/haven-platform/blob/master/common/common-utils/src/main/java/com/codeabovelab/dm/common/utils/AddressUtils.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | haven-platform | codeabovelab | Java | Code | 592 | 1,444 | /*
* Copyright 2017 Code Above Lab LLC
*
* 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 agr... | 20,241 |
https://github.com/meelgroup/meelgroup-website/blob/master/content/publication/CP22/cite.bib | Github Open Source | Open Source | MIT | 2,023 | meelgroup-website | meelgroup | null | Spoken | 26 | 76 | @inproceedings{SGCM22,
author={Soos, Mate and Priyanka, Golia and Sourav, Chakraborty and Meel, Kuldeep S.},
title={On Quantitative Testing of Samplers},
booktitle={Principles and Practice of Constraint Programming},
year={2022}
}
| 31,103 |
https://github.com/bitseer/macroverse/blob/master/test/TestMRVToken.js | Github Open Source | Open Source | MIT | 2,017 | macroverse | bitseer | JavaScript | Code | 1,347 | 3,909 | var MRVToken = artifacts.require("MRVToken");
// We need a function to advance time
function advanceTime(minutes) {
return new Promise(function (resolve, reject) {
web3.currentProvider.sendAsync({
jsonrpc: "2.0",
method: "evm_increaseTime",
params: [60 * minutes],
id: new Date().getTime()... | 25,138 |
https://github.com/youtube/cobalt/blob/master/third_party/skia/bench/CTConvertBench.cpp | Github Open Source | Open Source | BSD-3-Clause, GPL-1.0-or-later, LGPL-2.0-or-later, Apache-2.0, MIT | 2,023 | cobalt | youtube | C++ | Code | 235 | 974 | /*
* Copyright 2019 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "bench/Benchmark.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkImage.h"
#include "include/core/SkString.h"
#include "include/core/SkSurface.h"
#inclu... | 42,274 |
https://github.com/KreischerPanoptic/net-ipfs-engine/blob/master/src/RandomWalk.cs | Github Open Source | Open Source | MIT | 2,020 | net-ipfs-engine | KreischerPanoptic | C# | Code | 322 | 888 | using Common.Logging;
using Ipfs.CoreApi;
using PeerTalk;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Ipfs.Engine
{
/// <summary>
/// Periodically queries the DHT to discover new peers.
/// </summar... | 9,474 |
https://github.com/Brest-Java-Course-2020/kkarpesh-department-management/blob/master/department-management-service-api/src/main/java/DepartmentService.java | Github Open Source | Open Source | Apache-2.0 | null | kkarpesh-department-management | Brest-Java-Course-2020 | Java | Code | 107 | 263 | import com.epam.brest.courses.model.Department;
import java.util.List;
import java.util.Optional;
public interface DepartmentService {
/**
* Find all departments.
*
* @return departments list.
*/
List<Department> findAll();
/**
* Find department by id.
*
* @param depar... | 37,922 |
https://github.com/bnied/alamo-movies-rust/blob/master/src/alamo_movies/cinema.rs | Github Open Source | Open Source | MIT | 2,019 | alamo-movies-rust | bnied | Rust | Code | 932 | 3,949 | use std::fs;
use std::error::Error;
use std::path::PathBuf;
use reqwest;
use regex::Regex;
use super::market::Market;
use super::film::Film;
use super::db;
use super::error::{InvalidCinemaData};
use serde::{Serialize};
#[derive(Clone, Serialize)]
pub struct Cinema {
pub id: String,
pub name: String,
pub... | 23,086 |
https://github.com/jinghaomiao/apollo/blob/master/modules/dreamview/frontend/src/components/TeleopMonitor/AudioControl.js | Github Open Source | Open Source | Apache-2.0 | 2,020 | apollo | jinghaomiao | JavaScript | Code | 301 | 1,418 | import React from 'react';
import CheckboxItem from 'components/common/CheckboxItem';
import MonitorSection from 'components/TeleopMonitor/MonitorSection';
import itemIcon from 'assets/images/icons/teleop_item.png';
function MicIcon(props) {
const color = props.isOn ? '#30A5FF' : '#999999';
return (
<svg... | 12,470 |
https://github.com/navikt/sendsoknad/blob/master/web/src/test/resources/readme/forFaktum.hbs | Github Open Source | Open Source | MIT | null | sendsoknad | navikt | null | Spoken | 29 | 85 | {{#forFaktum "faktumNavn"}}
Faktum med key {{key}} finnes og kan aksesseres. {{value}} skriver f.eks ut verdien på faktumet. se Faktum klassen.
{{else}}
faktum med key "faktumNavn" er ikke satt
{{/forFaktum}} | 48,858 |
https://github.com/nerdstein/acquia-search-proxy/blob/master/src/AppEvents.php | Github Open Source | Open Source | MIT | null | acquia-search-proxy | nerdstein | PHP | Code | 36 | 81 | <?php
namespace Acquia\Search\Proxy;
final class AppEvents
{
/**
* Event fired during the bootstrap phase.
*
* This is used to initialize the application and add additional service
* providers.
*/
const BOOTSTRAP = 'acquia.search.proxy.bootstrap';
}
| 42,085 |
https://github.com/asgerfv/ai_boggle/blob/master/src/boggle_gamelib.test/main.test.cpp | Github Open Source | Open Source | MIT | null | ai_boggle | asgerfv | C++ | Code | 555 | 1,883 | #include "../common/utils.hpp"
#include <include/iruntime.hpp>
#include <include/runtimefactory.hpp>
#include <cassert>
#include <chrono>
#include <cstdint>
#include <fstream>
#include <iostream>
#include <thread>
#include <set>
#include <string>
#include <vector>
// ------------------------------------------------... | 24,780 |
https://github.com/avidspartan1/puppetlabs-image_build/blob/master/spec/spec_helper.rb | Github Open Source | Open Source | Apache-2.0 | 2,019 | puppetlabs-image_build | avidspartan1 | Ruby | Code | 39 | 165 | require 'puppetlabs_spec_helper/module_spec_helper'
require 'simplecov'
require 'simplecov-console'
require 'coveralls'
# automatically load any shared examples or contexts
Dir['./spec/support/**/*.rb'].sort.each { |f| require f }
SimpleCov.start do
add_filter '/spec'
formatter SimpleCov::Formatter::MultiFormatte... | 3,564 |
https://github.com/jrutila/django-cms/blob/master/cms/test_utils/project/sampleapp/urls_extra.py | Github Open Source | Open Source | BSD-3-Clause | 2,019 | django-cms | jrutila | Python | Code | 21 | 88 | from django.conf.urls.defaults import *
"""
Also used in cms.tests.ApphooksTestCase
"""
urlpatterns = patterns('cms.test_utils.project.sampleapp.views',
url(r'extra_2/$', 'extra_view', {'message': 'test included urlconf'}, name='extra_second'),
)
| 47,775 |
https://github.com/vhryME/Save-App/blob/master/src/main/java/com/example/entity/News.java | Github Open Source | Open Source | MIT | 2,020 | Save-App | vhryME | Java | Code | 85 | 275 | package com.example.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.util.List;
@Data
@Entity
//@Table(name = "news")
@NoArgsConstructor
@AllArgsConstructor
public class News {
@Id
@GeneratedValue(strategy = GenerationTyp... | 30,540 |
https://github.com/Songtech-0912/InstantCalc/blob/master/Calculator/src/main/Activity/MainActivity.cpp | Github Open Source | Open Source | MIT | 2,020 | InstantCalc | Songtech-0912 | C++ | Code | 212 | 965 | #ifndef TEST
#include "MainActivity.h"
#include "../Any/Activity.h"
#include "../Any/App.h"
#include <SDL.h>
#include <SDL_image.h>
#include "../Struct/Rect.h"
#include "../Struct/Point.h"
#include "../Struct/Size.h"
#include "../Struct/Pair.h"
#include "../Struct/Message.h"
#include "../Any/Enums.h"
#include "../Func... | 2,471 |
https://github.com/zjzsliyang/OnionBook/blob/master/OnionBookOnline/OnionBookOnline/Models/CityModel.cs | Github Open Source | Open Source | MIT | 2,020 | OnionBook | zjzsliyang | C# | Code | 69 | 218 | using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace OnionBookOnline.Models
{
public class CITY
{
[Key]
[MaxLength(128)]
[Column(Order = 1, TypeName = "varchar2")]
public string COUNTRYID { get; set; }
[Key]
... | 31,199 |
https://github.com/afitzek/andix-os/blob/master/include/trusted/userspace/tee_runtime/types/tee_basic_types.h | Github Open Source | Open Source | BSD-3-Clause | null | andix-os | afitzek | C | Code | 361 | 741 | /**
* Copyright (c) Andreas Fitzek <andreas[dot]fitzek[at]gmail[dot]com>
* All rights reserved.
*
* Redistribution and use in source and binary forms,
* with or without modification, are permitted provided
* that the following conditions are met:
* Redistributions of source code must retain the above
* copy... | 4,712 |
https://github.com/rahmap/Belajar-Laravel-6.10.1/blob/master/app/Student.php | Github Open Source | Open Source | MIT | 2,020 | Belajar-Laravel-6.10.1 | rahmap | PHP | Code | 28 | 95 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Student extends Model
{
protected $primaryKey = 'id_student';
protected $fillable = ['name_student', 'email_student', 'nisn_student', 'class_student', 'created_at', 'updated_at'];
protected $guarded = ['id_student'];
}
| 22,093 |
https://github.com/guillep/pharo/blob/master/src/Glamour-Tests-Core.package/GLMTestPane.class/class/portClass.st | Github Open Source | Open Source | MIT | 2,017 | pharo | guillep | null | Spoken | 3 | 14 | private
portClass
^GLMTestPort | 38,490 |
https://github.com/wurgo/extra-options/blob/master/src/main/java/me/voidxwalker/options/extra/GameOptionsAccess.java | Github Open Source | Open Source | MIT | null | extra-options | wurgo | Java | Code | 22 | 138 | package me.voidxwalker.options.extra;
public interface GameOptionsAccess {
boolean extra_options_getMonochromeLogo();
float extra_options_getDistortionEffectScale();
float extra_options_getFOVEffectScale();
void extra_options_setDistortionEffectScale(float extra_options_distortionEffectScale);
void... | 40,175 |
https://github.com/guptaanmol184/advent-or-code/blob/master/template.py | Github Open Source | Open Source | Unlicense | null | advent-or-code | guptaanmol184 | Python | Code | 58 | 109 | # Advent of code Year 2021 Day XX solution
# Author = Anmol Gupta
# Date = December 2021
input = list()
with open("input.txt", 'r') as input_file:
input = input_file.readlines()
# 1
"""
Solution to Part 1
"""
print("Part One : " + str(None))
# 2
"""
Solution to Part 2
"""
print("Part Two : " + str(None))
| 8,717 |
https://github.com/GabeStah/Airbrake.io/blob/master/Exceptions/Java/Errors/ExceptionInInitializerError/src/io/airbrake/Main.java | Github Open Source | Open Source | MIT | 2,019 | Airbrake.io | GabeStah | Java | Code | 111 | 388 | package io.airbrake;
import io.airbrake.utility.Logging;
import java.util.GregorianCalendar;
public class Main {
public static void main(String[] args) {
try {
Book book = new Book(
"A Game of Thrones",
"George R.R. Martin",
848,
... | 12,103 |
https://github.com/jimmiebergmann/Bit-Engine/blob/master/source/Bit/Graphics/Font.cpp | Github Open Source | Open Source | Zlib | null | Bit-Engine | jimmiebergmann | C++ | Code | 3,271 | 10,552 | #include <Bit/Graphics/Font.hpp>
#include <Bit/System.hpp>
#include <Bit/System/Matrix4x4.hpp>
#include <Bit/System/Debugger.hpp>
#include <Bit/System/MemoryLeak.hpp>
namespace Bit
{
BIT_UCHAR8 Font::s_DefaultCharset[] =
{
// Printable characters in ASCII range
0x09, 0x0A, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x... | 43,453 |
https://github.com/bruno154/project-1-santander-customers/blob/master/src/d03_Modelling/model_selection.py | Github Open Source | Open Source | MIT | null | project-1-santander-customers | bruno154 | Python | Code | 264 | 933 | #Importações
import os
import numpy as np
import pandas as pd
from sklearn.model_selection import cross_val_score, KFold
from sklearn.linear_model import LogisticRegression
from sklearn.tree import DecisionTreeClassifier
from sklearn.model_selection import StratifiedKFold, cross_val_score
from yellowbrick.model_select... | 35,932 |
https://github.com/eroldalk/Arduino.cc/blob/master/Arduino-mblock/Arduino/Kumanda/Irtumkumanda/vs_1838_b/vs_1838_b.ino | Github Open Source | Open Source | MIT | null | Arduino.cc | eroldalk | null | Spoken | 238 | 869 | #include <IRremote.h>
int RECV_PIN = 2;
IRrecv irrecv(RECV_PIN);
decode_results results;
#define CH1 0xFFA25D
#define CH 0xFF629D
#define CH2 0xFFE21D
#define PREV 0xFF22DD
#define NEXT 0xFF02FD
#define PLAYPAUSE 0xFFC23D
#define VOL1 0xFFE01F
#define VOL2 0xFFA857
#define EQ 0xFF906F
#define BUTON0 0xFF6897
#define ... | 38,421 |
https://github.com/fpaguiar/vh-jobs/blob/master/src/app/reducers/index.js | Github Open Source | Open Source | MIT | null | vh-jobs | fpaguiar | JavaScript | Code | 16 | 46 | import { combineReducers } from 'redux';
import jobsReducer from './jobsReducer';
export default combineReducers({
jobs: jobsReducer
});
| 28,900 |
https://github.com/plaidpants/soundstagevr/blob/master/Assets/Oculus/Avatar/Resources/Materials/Version1.5.meta | Github Open Source | Open Source | Apache-2.0 | 2,022 | soundstagevr | plaidpants | Unity3D Asset | Code | 14 | 70 | fileFormatVersion: 2
guid: ced8ef067736a0b468cde573cc63e3ec
folderAsset: yes
timeCreated: 1525971173
licenseType: Store
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
| 35,384 |
https://github.com/CoderWxd/XDGiftAnimations/blob/master/Pods/ESFramework/ESFramework/Core/Additions/NSRegularExpression+ESAdditions.m | Github Open Source | Open Source | MIT | 2,020 | XDGiftAnimations | CoderWxd | Objective-C | Code | 152 | 608 | //
// NSRegularExpression+ESAdditions.m
// ESFramework
//
// Created by Elf Sundae on 5/19/14.
// Copyright (c) 2014 www.0x123.com. All rights reserved.
//
#import "NSRegularExpression+ESAdditions.h"
@implementation NSRegularExpression (ESAdditions)
+ (instancetype)regex:(NSString *)pattern options:(NSRegularExp... | 44,777 |
https://github.com/thong1702/LARAVEL/blob/master/resources/views/admin/users/show.blade.php | Github Open Source | Open Source | MIT | null | LARAVEL | thong1702 | PHP | Code | 82 | 470 | @extends('layout')
@section('title')
Thông tin người dùng
@endsection
@section('contents')
<div class="m-5">
<div class="row mt-5 mb-5">
<div class="col-12 row">
<div class="col-6 d-inline-block">
<label for="" class="col-3">Họ Tên:</label>
<label for="" class="col-8">{{$user->name}}</label>
</... | 19,311 |
https://github.com/michellab/BioSimSpaceCloud/blob/master/Acquire/Identity/_identity_service.py | Github Open Source | Open Source | Apache-2.0 | 2,019 | BioSimSpaceCloud | michellab | Python | Code | 365 | 945 |
import uuid as _uuid
from copy import copy as _copy
from Acquire.Crypto import PrivateKey as _PrivateKey
from Acquire.Crypto import PublicKey as _PublicKey
from Acquire.Service import call_function as _call_function
from Acquire.Service import Service as _Service
from Acquire.Service import ServiceError
from ._erro... | 19,849 |
https://github.com/pkhokhlov/OptimalCombinations/blob/master/src/com/optimalCombinations/algo/DecreasingUnitPoolTester.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | OptimalCombinations | pkhokhlov | Java | Code | 404 | 1,189 | /**
* Copyright 2015 Pavel Khokhlov <pkhokhlov@hotmail.com>
* Jack Prescott <jackbprescott@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... | 14,575 |
https://github.com/olicooper/shiny/blob/master/samples/Samples/Logging/TestLogViewModel.cs | Github Open Source | Open Source | MIT | 2,021 | shiny | olicooper | C# | Code | 86 | 269 | using System;
using System.Windows.Input;
using Microsoft.Extensions.Logging;
using ReactiveUI;
using Samples.Infrastructure;
namespace Samples.Logging
{
public class TestLogViewModel : ViewModel
{
public TestLogViewModel(IDialogs dialogs, ILogger<TestLogViewModel> logger)
{
this.... | 35,668 |
https://github.com/johnrulon/EntityFrameworkLargeDataSets/blob/master/EntityFrameworkWithLargeDataSets/Data/Models/SalesPerson.cs | Github Open Source | Open Source | MIT | 2,016 | EntityFrameworkLargeDataSets | johnrulon | C# | Code | 145 | 360 | using System;
using System.Collections.Generic;
namespace Data.Models
{
public partial class SalesPerson
{
public SalesPerson()
{
this.SalesOrderHeaders = new List<SalesOrderHeader>();
this.SalesPersonQuotaHistories = new List<SalesPersonQuotaHistory>();
this... | 3,648 |
https://github.com/BrightspaceUILabs/gg-chart/blob/master/index.js | Github Open Source | Open Source | MIT | null | gg-chart | BrightspaceUILabs | JavaScript | Code | 7 | 25 | import {lggc} from './src/ggchart.js';
export default lggc;
| 46,172 |
https://github.com/qinjie1314520/graduation_bootstrap/blob/master/src/headless/node_modules/.staging/core-js-03f9c524/modules/es6.array.copy-within.js | Github Open Source | Open Source | MIT | 2,021 | graduation_bootstrap | qinjie1314520 | JavaScript | Code | 16 | 125 | // 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length)
var $export = require('.staging/core-js-03f9c524/modules/$.export');
$export($export.P, 'Array', {copyWithin: require('.staging/core-js-03f9c524/modules/$.array-copy-within')});
require('.staging/core-js-03f9c524/modules/$.add-to-unscopables')('... | 19,411 |
https://github.com/rincha/yet-unnamed-cms/blob/master/app/config/dist/params.php | Github Open Source | Open Source | BSD-3-Clause | null | yet-unnamed-cms | rincha | PHP | Code | 30 | 103 | <?php
return [
// comment out the following one lines when deployed to production
'install'=>true,
//
'salt'=>'{SALT}',
'images'=>require(__DIR__ . '/images.php'),
'widgets'=>require(__DIR__ . '/widgets.php'),
'siteName' => 'YuCMS',
'adminEmail' => 'your@example.com',
];
| 24,622 |
https://github.com/adigitalnative/thing/blob/master/app/assets/javascripts/delete-modal.js.coffee | Github Open Source | Open Source | Apache-2.0 | 2,018 | thing | adigitalnative | CoffeeScript | Code | 134 | 425 | # Override Rails handling of confirmation
$.rails.allowAction = (link) ->
# The message is something like "Are you sure?"
message = link.attr('confirm')
# If there's no message, there's no data-confirm attribute,
# which means there's nothing to confirm
return true unless message
# Create the modal box w... | 15,849 |
https://github.com/tmmsmoreira/procultura/blob/master/resources/views/web/ourpartners.blade.php | Github Open Source | Open Source | MIT | null | procultura | tmmsmoreira | PHP | Code | 49 | 195 | @include('web.footer')
@extends('web.layouts.main')
@section('content')
<div id="our-partners" class="site-wrapper">
<section style="position:relative;width:100%;">
<div class="container marketing" style="padding:70px 0">
<div class="row">
<h1 class="section-title">Os Nossos Pa... | 8,355 |
https://github.com/821832679/AssessmentMgmt/blob/master/src/main/webapp/res/editor.js | Github Open Source | Open Source | Apache-2.0 | null | AssessmentMgmt | 821832679 | JavaScript | Code | 5 | 15 | var ue = UE.getEditor('ueditorInput', {}); | 12,389 |
https://github.com/chen0040/keras-sentiment-analysis-web-api/blob/master/demo/tensorflow_keras_model_export_pb.py | Github Open Source | Open Source | MIT | 2,021 | keras-sentiment-analysis-web-api | chen0040 | Python | Code | 104 | 552 | import os
import sys
def main():
current_dir = os.path.dirname(__file__)
sys.path.append(os.path.join(current_dir, '..'))
current_dir = current_dir if current_dir is not '' else '.'
from keras_sentiment_analysis.library.cnn_lstm import WordVecCnnLstm
from keras_sentiment_analysis.library.cnn impo... | 21,802 |
https://github.com/CityOfBoston/boston.gov-d8/blob/master/docroot/throw503.php | Github Open Source | Open Source | CC0-1.0 | 2,021 | boston.gov-d8 | CityOfBoston | PHP | Code | 18 | 57 | <?php
header('HTTP/1.1 503 Service Temporarily Unavailable', true, 503);
header('Status: 503 Service Temporarily Unavailable', true, 503);
header('Retry-After: 300');//300 seconds
| 3,331 |
https://github.com/msafei/SIAK-Fatahillah2Cilegon/blob/master/app/Http/Requests/ErrorPembayaranLain.php | Github Open Source | Open Source | MIT | null | SIAK-Fatahillah2Cilegon | msafei | PHP | Code | 79 | 223 | <?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;
use Illuminate\Support\Facades\Validator;
class ErrorPembayaranLain extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
publ... | 34,719 |
https://github.com/Chet314/typical-arrays-problems/blob/master/src/index.js | Github Open Source | Open Source | MIT | null | typical-arrays-problems | Chet314 | JavaScript | Code | 95 | 166 |
exports.min = function min (array) {
return array === undefined || array.length === 0 ? 0 : array.sort((a,b) => a > b ? 1 : a < b ? -1 : 0 )[0];
}
exports.max = function max (array) {
return array === undefined || array.length === 0 ? 0 : array.sort((a,b) => a > b ? -1 : a < b ? 1 : 0)[0] ;
}
exports.avg = fun... | 50,958 |
https://github.com/kerberos0727/psycon/blob/master/app/ReaderGiveback.php | Github Open Source | Open Source | MIT | 2,020 | psycon | kerberos0727 | PHP | Code | 96 | 364 | <?php
namespace App;
use App\Traits\Auditable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class ReaderGiveback extends Model
{
use SoftDeletes, Auditable;
public $table = 'reader_givebacks';
protected $dates = [
'created_at',
'updated_at',
... | 11,416 |
https://github.com/kevjshih/bcp/blob/master/candidates/quantombone-exemplarsvm-850fcb0/iccv11/faces2colors.m | Github Open Source | Open Source | MIT, LicenseRef-scancode-warranty-disclaimer | 2,013 | bcp | kevjshih | MATLAB | Code | 32 | 99 | function seg2 = faces2colors(seg)
%used for buslabeling to show facades as colors
sizer = size(seg);
colors = jet(5);
colors(end+1,:) = 0;
colors = colors(end:-1:1,:);
seg2 = colors(seg(:)+1,:);
seg2 = reshape(seg2,[sizer(1) sizer(2) 3]);
| 51,533 |
https://github.com/fernehackett/socsharify/blob/master/app/Traits/StoreTrait.php | Github Open Source | Open Source | MIT | null | socsharify | fernehackett | PHP | Code | 42 | 200 | <?php
namespace App\Traits;
use App\Models\ScriptTag;
use App\Models\Template;
trait StoreTrait
{
public function createScriptTag($data)
{
return $this->api()->rest('POST', '/admin/api/script_tags.json', $data);
}
public function deleteScriptTag($script_tag_id)
{
return $this->api(... | 32,973 |
https://github.com/Winterleaf/Outlook365.SpamAssassin/blob/master/WebServer/Server.cs | Github Open Source | Open Source | MIT | 2,018 | Outlook365.SpamAssassin | Winterleaf | C# | Code | 139 | 523 | using System;
using System.Web.Http;
using Microsoft.Owin.Hosting;
using Outlook365.SpamAssassin.Data;
using Owin;
namespace Outlook365.SpamAssassin.WebServer
{
public class Server
{
public void Run()
{
// WebApp.Start()
// s = new OwinService();
// s.... | 24,635 |
https://github.com/YuyaAizawa/JavaStaticAnalysis/blob/master/src/test/resources/jhotdraw8/src/main/java/org/jhotdraw8/svg/text/SvgPaintConverter.java | Github Open Source | Open Source | MIT | 2,019 | JavaStaticAnalysis | YuyaAizawa | Java | Code | 129 | 411 | /* @(#)SvgPaintConverter.java
* Copyright © 2017 by the authors and contributors of JHotDraw. MIT License.
*/
package org.jhotdraw8.svg.text;
import java.util.function.Consumer;
import javafx.scene.paint.Color;
import javafx.scene.paint.Paint;
import org.jhotdraw8.css.CssToken;
import org.jhotdraw8.css.text.CssPain... | 13,341 |
https://github.com/patractlabs/ink/blob/master/crates/storage/benches/bench_binary_heap.rs | Github Open Source | Open Source | Apache-2.0 | 2,020 | ink | patractlabs | Rust | Code | 706 | 2,096 | // Copyright 2018-2020 Parity Technologies (UK) Ltd.
//
// 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 applicab... | 22,154 |
https://github.com/parksey/-/blob/master/be/ArbietDiary/src/main/java/com/arbietDiary/arbietdiary/configuration/UserAuthenticationProvider.java | Github Open Source | Open Source | MIT | null | - | parksey | Java | Code | 130 | 602 | package com.arbietDiary.arbietdiary.configuration;
import org.springframework.security.authentication.AuthenticationProvider;
import org.springframework.security.authentication.BadCredentialsException;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.se... | 236 |
https://github.com/qiuyu-dev/alpha_bx/blob/master/src/main/resources/public/assets/js/cookie.js | Github Open Source | Open Source | MIT | null | alpha_bx | qiuyu-dev | JavaScript | Code | 82 | 581 | //@ sourceURL=cookie.js
//获取指定名称的cookie的值
function getCookie(objName){
//得到分割的cookie键值对
var arrStr=document.cookie.split(";");
for(var i=0;i<arrStr.length;i++){
var temp=arrStr[i].split("=");
if(trim(temp[0])==objName){
return unescape(temp[1]);
}
}
return "";
}
//添加cookie
function addCookie(objName,objVa... | 4,250 |
https://github.com/slugalisk/webrtc-unreliable/blob/master/examples/echo_server.rs | Github Open Source | Open Source | MIT | 2,019 | webrtc-unreliable | slugalisk | Rust | Code | 386 | 1,545 | use clap::{App, Arg};
use futures::{
future::{self, Either, IntoFuture},
Async, Future,
};
use hyper::{
header::{self, HeaderValue},
server::conn::AddrStream,
service::{make_service_fn, service_fn},
Body, Method, Response, Server, StatusCode,
};
use log::{info, warn};
use tokio::runtime::Runtime... | 11,458 |
https://github.com/nuqz/webkit/blob/master/support/retry_on_err_test.go | Github Open Source | Open Source | MIT | null | webkit | nuqz | Go | Code | 111 | 283 | package support
import (
"errors"
"testing"
"time"
)
func Test__RetryOnErr(t *testing.T) {
i, n, c := time.Microsecond, 5, 0
tr, terr := int64(1), errors.New("test")
fn := func() (interface{}, error) {
c++
return tr, terr
}
r, err := RetryOnErr(i, n, fn)
if c != n {
t.Errorf("%d/%d connection attempts... | 25,357 |
https://github.com/swu01/js-beatles-loops-lab-v-000/blob/master/index.js | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain | 2,017 | js-beatles-loops-lab-v-000 | swu01 | JavaScript | Code | 67 | 195 | function theBeatlesPlay(mArr, iArr) {
var strArr = [];
for(var i = 0; i < mArr.length; i++){
strArr.push(mArr[i] + " plays " + iArr[i]);
}
return strArr;
}
function johnLennonFacts(fArr) {
var i = 0;
while(i < fArr.length) {
fArr[i] += "!!!";
i++;
}
return fArr;
}
function iLoveTheBeatles(... | 12,202 |
https://github.com/dakkaynak/NuclearDeformation/blob/master/getCellLevelDeformationScore.m | Github Open Source | Open Source | Apache-2.0 | 2,017 | NuclearDeformation | dakkaynak | MATLAB | Code | 130 | 380 | function deformationScore = getCellLevelDeformationScore(F,w)
% GETCELLLEVELDEFORMATIONSCORE is a function that takes as input a feature
% matrix F, and weights vector w for each feature, and calculates a
% deformation score.
x = F(:,1);
y = F(:,2);
% R1: no deformation
noDef = x <=0.1 & y <=0.1;
% R2: low deformatio... | 35,323 |
https://github.com/kodluyoruz-java-101-31102020-odevler/hafta-1-java-temelleri-ve-oop-MusaEyup/blob/master/Ödev1/src/com/odev/soru7/PersonelReport.java | Github Open Source | Open Source | MIT | 2,020 | hafta-1-java-temelleri-ve-oop-MusaEyup | kodluyoruz-java-101-31102020-odevler | Java | Code | 30 | 90 | package com.odev.soru7;
import java.util.Date;
public class PersonelReport extends Report {
public PersonelReport(String name, String result, Date createDate) {
super(name, result, createDate);
}
public String hashMD5Result() {
return "";
}
}
| 23,041 |
https://github.com/chenshuo/bazel/blob/master/src/test/java/com/google/devtools/build/lib/testutil/BazelTestSuiteBuilder.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | bazel | chenshuo | Java | Code | 575 | 1,427 | // Copyright 2014 The Bazel Authors. 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 appl... | 43,546 |
https://github.com/dreamfrog/rhodes/blob/master/platform/shared/api_generator/sample/iphone/impl/Barcode1.m | Github Open Source | Open Source | MIT | 2,012 | rhodes | dreamfrog | Objective-C | Code | 190 | 501 |
#import "Barcode1.h"
@implementation Barcode1
- (id) init:(NSString*)_ID {
self = [super init:_ID];
//TODO: add implementation
// BEGIN example code
// this code prepared for example - this should not included to generated code !!!
[self setProperty:@"display" value:@"LCD"];
[self ... | 13,168 |
https://github.com/connorlof/tank_mates/blob/master/lib/ui/screens/tank_settings_screen.dart | Github Open Source | Open Source | Unlicense | 2,022 | tank_mates | connorlof | Dart | Code | 202 | 916 | import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'package:tank_mates/bloc/edit_tank_view_model.dart';
import 'package:tank_mates/ui/widgets/parameter_tile.dart';
import 'package:tank_mates/ui/widgets/round_icon_button.dart';
import 'package:tank_mates/util/constants.dart';
import ... | 20,195 |
https://github.com/SchapplM/robsynth-serroblib/blob/master/mdl_6dof/S6RPRRPP2/hd/S6RPRRPP2_invdynJ_fixb_snew_vp2.m | Github Open Source | Open Source | MIT | 2,022 | robsynth-serroblib | SchapplM | MATLAB | Code | 1,736 | 4,668 | % Calculate vector of inverse dynamics joint torques for with Newton-Euler
% S6RPRRPP2
% Use Code from Maple symbolic Code Generation
%
% Input:
% qJ [6x1]
% Generalized joint coordinates (joint angles)
% qJD [6x1]
% Generalized joint velocities
% qJDD [6x1]
% Generalized joint accelerations
% g [3x1]
% gravit... | 43,151 |
https://github.com/Alkaid-Benetnash/hardcloud/blob/master/samples/sobel/hw/sobel_unit.sv | Github Open Source | Open Source | Apache-2.0 | 2,021 | hardcloud | Alkaid-Benetnash | null | Spoken | 483 | 1,634 | module sobel_unit
(
input clk,
input rst_b,
input valid_in,
input [127:0] data_in,
output reg [511:0] data_out,
output reg valid_out
);
localparam DELAY = 1;
localparam PARALELL_UNITS = 16;
localparam KERNEL_SIZE = 512;
reg [KERNEL_SI... | 39,975 |
https://github.com/datavisyn/tdp_core/blob/master/dist/import/ImportUtils.d.ts | Github Open Source | Open Source | BSD-3-Clause | 2,023 | tdp_core | datavisyn | TypeScript | Code | 108 | 339 | import * as d3v3 from 'd3v3';
import { ITypeDefinition, ValueTypeEditor } from './valuetype/valuetypes';
import { IDataDescription } from '../data';
export interface IColumnDefinition {
name: string;
column: string | number;
value: ITypeDefinition;
}
export declare class ImportUtils {
static commonField... | 54,234 |
https://github.com/bgoonz/UsefulResourceRepo2.0/blob/master/_MY_ORGS/Web-Dev-Collaborative/blog-research/database/pg-admin/web/pgadmin/tools/sqleditor/utils/query_tool_fs_utils.py | Github Open Source | Open Source | MIT | 2,022 | UsefulResourceRepo2.0 | bgoonz | Python | Code | 221 | 462 | ##########################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2020, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
##########################################################################
import codecs
d... | 50,751 |
https://github.com/dougbeal/google-api-swift-client-for-rest/blob/master/Source/GeneratedServices/QPXExpress/GTLRQPXExpressObjects.m | Github Open Source | Open Source | Apache-2.0 | 2,016 | google-api-swift-client-for-rest | dougbeal | Objective-C | Code | 774 | 2,633 | // NOTE: This file was generated by the ServiceGenerator.
// ----------------------------------------------------------------------------
// API:
// QPX Express API (qpxExpress/v1)
// Description:
// Finds the least expensive flights between an origin and a destination.
// Documentation:
// http://developers.goo... | 12,059 |
https://github.com/Rappsilber-Laboratory/spectrum/blob/master/src/SpectrumView2.js | Github Open Source | Open Source | Apache-2.0 | null | spectrum | Rappsilber-Laboratory | JavaScript | Code | 648 | 2,885 | import "../css/spectrum.css";
import "../css/dropdown.css";
import "../css/font-awesome.min.css";
// import "../../xi3/css/xispecAdjust.css";
import * as $ from "jquery";
import * as _ from "underscore";
import Backbone from "backbone";
import * as d3 from "d3";
import * as Spinner from "spin";
import {Graph} from "./... | 9,018 |
https://github.com/SnapInteractive/git-tools/blob/master/purq | Github Open Source | Open Source | Apache-2.0 | 2,014 | git-tools | SnapInteractive | Shell | Code | 486 | 1,119 | #!/bin/bash
# Examine a pull request or branch, comparing it to your master branch.
# Will stash your current work and restore when you're done.
#
# Usage: $0 <pull request #> <remote = upstream>
#
MASTER=master
# People using overly complicated branching models
# often use "develop" or "dev" as their master
for b in... | 11,220 |
https://github.com/15713028819/smartCommunity/blob/master/styles/project/container.scss | Github Open Source | Open Source | MIT | null | smartCommunity | 15713028819 | SCSS | Code | 217 | 740 |
.wing { padding-left: 30rpx; padding-right: 30rpx; }
.wing-sm { padding-left: 24rpx; padding-right: 24rpx; }
.wing-lg { padding-left: 35rpx; padding-right: 35rpx; }
.wing-xl { padding-left: 40rpx; padding-right: 40rpx; }
.wing-xxl { padding-left: 50rpx; padding-right: 50rpx; }
// .whtieSpace { margin-top: 15rpx; marg... | 4,708 |
https://github.com/Ayctor/laravel-starter/blob/master/src/Presets/Packages/Medialibrary.php | Github Open Source | Open Source | MIT | 2,022 | laravel-starter | Ayctor | PHP | Code | 65 | 236 | <?php
namespace Ayctor\LaravelStarter\Presets\Packages;
use Ayctor\LaravelStarter\Presets\Preset;
class Medialibrary extends Preset
{
/**
* Take care of the preset installation
*
* @return void
*/
public static function install(): void
{
static::info('');
static::info(... | 45,099 |
https://github.com/codito/dotnet-source-build/blob/master/patches/fsharp/0002-Add-NuGet.config.patch | Github Open Source | Open Source | MIT | null | dotnet-source-build | codito | null | Spoken | 78 | 304 | From 5a741b7613a1ee2035084ad7fe213c3148aeb834 Mon Sep 17 00:00:00 2001
From: Matt Ellis <matell@microsoft.com>
Date: Mon, 10 Jul 2017 11:51:08 -0700
Subject: [PATCH] Add NuGet.config
---
NuGet.Config | 8 ++++++++
1 file changed, 8 insertions(+)
create mode 100644 NuGet.Config
diff --git a/NuGet.Config b/NuGet.Conf... | 45,969 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.