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/firzhan/jaxb-sample/blob/master/src/main/java/org.wso2.sample.jaxb/model/Bookstore.java | Github Open Source | Open Source | Apache-2.0 | null | jaxb-sample | firzhan | Java | Code | 81 | 279 | package org.wso2.sample.jaxb.model;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
@XmlRootElement(namespace = "org.wso2.sample.jaxb.model")
public class Bookstore {
@XmlElementWrapper(n... | 23,395 |
https://github.com/haochihlin/Zeno-He/blob/master/zbot/zhe-rid.h | Github Open Source | Open Source | Apache-2.0 | 2,017 | Zeno-He | haochihlin | C | Code | 1 | 10 | ../src/zhe-rid.h | 38,652 |
https://github.com/mbooth101/trac-visualworkflow/blob/master/visualworkflow/htdocs/js/editor_tab_fondler.js | Github Open Source | Open Source | BSD-3-Clause | null | trac-visualworkflow | mbooth101 | JavaScript | Code | 82 | 287 | (function($){
window.addLink = function(elm) {
var link = document.createElement("a");
link.setAttribute("href", "javascript:window.fondleTabs($('#" + $(elm).attr("id") + " a'))");
link.innerHTML = $(elm).text();
$(elm).empty().append(link);
}
window.fondleTabs = function(elm) {
// mak... | 25,943 |
https://github.com/achilex/MgDev/blob/master/Web/src/HttpHandler/HttpRequestParam.cpp | Github Open Source | Open Source | PHP-3.0 | 2,020 | MgDev | achilex | C++ | Code | 726 | 1,707 | //
// Copyright (C) 2004-2011 by Autodesk, Inc.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of version 2.1 of the GNU Lesser
// General Public License as published by the Free Software Foundation.
//
// This library is distributed in the hope that it will be use... | 16,976 |
https://github.com/NatickYT/CraftTweaker/blob/master/Common/src/main/java/com/blamejared/crafttweaker/platform/services/IClientHelper.java | Github Open Source | Open Source | MIT | 2,022 | CraftTweaker | NatickYT | Java | Code | 189 | 692 | package com.blamejared.crafttweaker.platform.services;
import com.blamejared.crafttweaker.api.CraftTweakerAPI;
import com.blamejared.crafttweaker.api.ingredient.IIngredient;
import com.blamejared.crafttweaker.api.item.IItemStack;
import com.blamejared.crafttweaker.api.item.tooltip.ITooltipFunction;
import com.blamejar... | 29,799 |
https://github.com/Iced-Tea/tui.editor/blob/master/test/markdownCommands/codeBlock.spec.js | Github Open Source | Open Source | MIT | 2,016 | tui.editor | Iced-Tea | JavaScript | Code | 101 | 419 | 'use strict';
var CodeBlock = require('../../src/js/markdownCommands/codeBlock'),
MarkdownEditor = require('../../src/js/markdownEditor'),
EventManager = require('../../src/js/eventManager');
describe('CodeBlock', function() {
var cm,
doc,
mde;
beforeEach(function() {
var $con... | 5,644 |
https://github.com/khaerulrizald/add.to.cart/blob/master/src/main/java/com/btpn/cn/java/project/add/to/cart/domain/Transaction.java | Github Open Source | Open Source | Apache-2.0 | null | add.to.cart | khaerulrizald | Java | Code | 207 | 625 | package com.btpn.cn.java.project.add.to.cart.domain;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
@Entity
@Table(name = "transaction")
public class Transaction implements Serializable {
private static final long serialVersionUID = 6839093551571107671L;
@EmbeddedId
@Att... | 30,729 |
https://github.com/ameliachu/ameliachu.github.io/blob/master/projects/avatar_project/characters_preprocess/avatar_chey.tsv | Github Open Source | Open Source | MIT | 2,023 | ameliachu.github.io | ameliachu | TSV | Code | 4 | 12 | target value
Chey 1.0
| 33,502 |
https://github.com/ivan-golub/rules_ios/blob/master/tests/ios/frameworks/mixed-source/only-source/MixedSourceFramework/Logger/DoubleQuoteLogger.h | Github Open Source | Open Source | Apache-2.0 | 2,022 | rules_ios | ivan-golub | C | Code | 19 | 97 | #ifndef DoubleQuoteLogger_h
#define DoubleQuoteLogger_h
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface DoubleQuoteLogger: NSObject
- (void)logWithMessage:(NSString *)message;
@end
NS_ASSUME_NONNULL_END
#endif /* DoubleQuoteLogger_h */
| 27,109 |
https://github.com/adejota/animated-splashs/blob/master/src/components/Icon/NetLogo.vue | Github Open Source | Open Source | MIT | null | animated-splashs | adejota | Vue | Code | 292 | 1,351 | <template>
<svg xmlns="http://www.w3.org/2000/svg" width="178.142" height="42.402" viewBox="0 0 178.142 42.402">
<path id="N" fill="none" stroke="#fff" stroke-width="7.2" d="M1089.168,1215.111v-38.789h4.1l27.09,34.934h4.1v-38.071" transform="translate(-1085.568 -1172.722)"/>
<path id="Linha_superior" d="M1137... | 16,474 |
https://github.com/jbernhard/ebe-osg/blob/master/lib/urqmd/src/dectim.f | Github Open Source | Open Source | MIT | 2,014 | ebe-osg | jbernhard | null | Spoken | 209 | 908 | c $Id: dectim.f,v 1.6 1997/08/25 08:17:16 weber Exp $
ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
real*8 function dectim(ind,iproc)
c
c Unit : Collision Term
c Author : Steffen A. Bass (IQMD-modified source)
c Date : 05/04/94
c Revision : 1.0
C
cinput ind : ID... | 46,003 |
https://github.com/veharshv/publishwi/blob/master/publishwi-96133/PublishWI/PublishWI/Program.cs | Github Open Source | Open Source | MS-PL | 2,021 | publishwi | veharshv | C# | Code | 140 | 449 | using System;
using Microsoft.EnterpriseManagement;
using Microsoft.EnterpriseManagement.Common;
using Microsoft.EnterpriseManagement.Configuration;
using Microsoft.EnterpriseManagement.Packaging;
namespace PublishWI
{
class Program
{
static void Main(string[] args)
{
string wiI... | 23,025 |
https://github.com/akash-coded/core-java/blob/master/src/language_basics/control_flow_statements/conditional_statements/decision_making_statements/switch_case/SwitchPatternMatching.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | core-java | akash-coded | Java | Code | 180 | 548 | package src.language_basics.control_flow_statements.conditional_statements.decision_making_statements.switch_case;
enum Status {
OPEN, WIP, REVIEW, FIX, CLOSED;
}
class StandardSwitchDemo {
private StandardSwitchDemo() {
throw new IllegalStateException("Utility class");
}
public static void ... | 5,346 |
https://github.com/RodrigoRomero/chefweb/blob/master/admin/assets/js/admin/main.js | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,018 | chefweb | RodrigoRomero | JavaScript | Code | 2,242 | 9,570 | $(document).ready(function () {
google.charts.load('current', {packages: ['corechart', 'line']});
init();
/*
if(exists(('#chart_lines'))) {
google.charts.setOnLoadCallback(setBarTickets);
}*/
/*google.charts.setOnLoadCallback(setPiePlanes);
google.charts.setOnLoadCallback(setPiePagos);*/
});
function addL... | 46,920 |
https://github.com/swetasinghal28/IHO/blob/master/Archive material/TanmayaNBarathi/IHO-App-master/IHO-ASU/NSObject+Travel.m | Github Open Source | Open Source | MIT | 2,017 | IHO | swetasinghal28 | Objective-C | Code | 57 | 197 | //
// NSObject+Travel.m
// IHO-ASU
//
// Created by PrashMaya on 10/27/14.
// Copyright (c) 2014 ASU. All rights reserved.
//
#import "NSObject+Travel.h"
@implementation Travel
@synthesize TravelId=_TrId,TravelLink=_TravelLink,Traveltitle=_Traveltitle;
-(id) init{
return self;
}
-(id)initWithTrid:(int... | 41,182 |
https://github.com/LiquidFun/adventofcode/blob/master/2021/24/24.jl | Github Open Source | Open Source | Apache-2.0 | null | adventofcode | LiquidFun | Julia | Code | 160 | 359 | # Already parsed input file, since this one depends so much on the input.
# Making it general is not very useful.
function main()
div_z = [1, 1, 1, 1, 26, 1, 26, 26, 1, 1, 26, 26, 26, 26]
add_x = [14, 13, 13, 12, -12, 12, -2, -11, 13, 14, 0, -12, -13, -6]
add_w = [8, 8, 3, 10, 8, 8, 8, 5, 9, 3, 4, 9, 2, 7]... | 25,263 |
https://github.com/eolabs-io/amazon-mws/blob/master/src/Domain/Reviews/Actions/PersistProductReviewAction.php | Github Open Source | Open Source | MIT | null | amazon-mws | eolabs-io | PHP | Code | 62 | 279 | <?php
namespace EolabsIo\AmazonMws\Domain\Reviews\Actions;
use EolabsIo\AmazonMws\Domain\Reviews\Models\ProductReview;
use EolabsIo\AmazonMws\Domain\Reviews\Models\ProductReviewImage;
use EolabsIo\AmazonMws\Domain\Reviews\Actions\SaveProductReviewImageAction;
class PersistProductReviewAction
{
/** @var array */
... | 30,555 |
https://github.com/awalende/BibiImageCreator/blob/master/__init__.py | Github Open Source | Open Source | BSD-3-Clause | 2,018 | BibiImageCreator | awalende | Python | Code | 521 | 1,615 | '''
BibiCreator v0.1 (24.01.2018)
Alex Walender <awalende@cebitec.uni-bielefeld.de>
CeBiTec Bielefeld
Ag Computational Metagenomics
-------------------------------------------------
__init__.py
This is the entrypoint of this application, which checks configurations
and connects to all needed external applicatio... | 23,831 |
https://github.com/afxabc/resiprocate/blob/master/thirdlibrary/iLBC/iLBC.C | Github Open Source | Open Source | BSD-3-Clause, VSL-1.0, BSD-2-Clause | 2,016 | resiprocate | afxabc | C | Code | 275 | 922 |
#include "stdafx.h"
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "iLBC_define.h"
#include "iLBC_encode.h"
#include "iLBC_decode.h"
#define ILBCNOOFWORDS_MAX (NO_OF_BYTES_30MS/2)
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
... | 10,130 |
https://github.com/agladstein/SimPrily_update/blob/master/build/numpy/doc/f2py/collectinput.py | Github Open Source | Open Source | MIT | 2,018 | SimPrily_update | agladstein | Python | Code | 217 | 809 | #!/usr/bin/env python
r"""
collectinput - Collects all files that are included to a main Latex document
with \input or \include commands. These commands must be
in separate lines.
Copyright 1999 Pearu Peterson all rights reserved,
Pearu Peterson <pearu@ioc.ee>
Permission to use, modify, a... | 38,014 |
https://github.com/protechunipd/SGAD/blob/master/Codice/sgad/clienttier/view/graphicobjects/components/worldcomponentshape/StableL2Shape.js | Github Open Source | Open Source | Apache-2.0 | 2,014 | SGAD | protechunipd | JavaScript | Code | 122 | 422 | /**
* FILE: StableL2Shape.js
* PERCORSO /Codice/sgad/clienttier/view/graphicobjects/components/worldcomponentshape/StableL2Shape.js
* DATA CREAZIONE: 19 Febbraio 2014
* AUTORE: ProTech
* EMAIL: protech.unipd@gmail.com
*
* Questo file è proprietà del gruppo ProTech, viene rilasciato sotto licenza Apache v2.
*
*... | 41,799 |
https://github.com/tme-dev/TME-API/blob/master/C#/Program.cs | Github Open Source | Open Source | MIT | 2,022 | TME-API | tme-dev | C# | Code | 266 | 887 | using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using TME_API_CSharp_Example.ApiCore;
using TME_API_CSharp_Example.Objects;
namespace TME_API_CSharp_Example
{
class Program
{
static void Main(string[] args)
{
Tme... | 52,501 |
https://github.com/flaviogf/courses/blob/master/algaworks/fullstack_angular_spring/algamoneyapi/src/main/java/br/com/flaviogf/algamoneyapi/repositories/PersonRepository.java | Github Open Source | Open Source | MIT | 2,023 | courses | flaviogf | Java | Code | 14 | 77 | package br.com.flaviogf.algamoneyapi.repositories;
import br.com.flaviogf.algamoneyapi.models.Person;
import org.springframework.data.jpa.repository.JpaRepository;
public interface PersonRepository extends JpaRepository<Person, Long> {
}
| 36,668 |
https://github.com/antler119/electron/blob/master/example/logger_interface_impl.cc | Github Open Source | Open Source | MIT | null | electron | antler119 | C++ | Code | 27 | 127 | #include "electron/example/logger_interface_impl.h"
#include "base/logging.h"
LoggerInterfaceImpl::LoggerInterfaceImpl() {}
LoggerInterfaceImpl::~LoggerInterfaceImpl() {}
void LoggerInterfaceImpl::Log(const std::string& message) {
LOG(ERROR) << "[Logger] " << message;
lines_.push_back(message);
}
void LoggerIn... | 4,545 |
https://github.com/creikey/lpcli/blob/master/lpcli_posix.c | Github Open Source | Open Source | Unlicense | 2,018 | lpcli | creikey | C | Code | 965 | 3,173 | #ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE
#endif
#include <termios.h>
#include <stdio.h>
#include <string.h>
#include <wchar.h>
#include <locale.h>
#include "lpcli.h"
/*
typedef void *(*lpcli_memset_f)(void *, int, size_t);
static volatile lpcli_memset_f lpcli_memset = memset;
void *lpcli_zeromemory(void *dst, si... | 15,465 |
https://github.com/94fzb/zrlog/blob/master/web/src/test/java/com/zrlog/test/TestApplication.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | zrlog | 94fzb | Java | Code | 117 | 448 | package com.zrlog.test;
import org.apache.catalina.LifecycleException;
import org.apache.catalina.startup.Tomcat;
import org.junit.After;
import org.junit.Before;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.servlet.ServletException;
import java.io.File;
import java.io.IOException;
import jav... | 43,272 |
https://github.com/filipecn/Ponos/blob/master/odysseus/src/input_component.hpp | Github Open Source | Open Source | MIT | 2,021 | Ponos | filipecn | C++ | Code | 33 | 122 | #ifndef ODYSSEUS_INPUT_COMPONENT_H
#define ODYSSEUS_INPUT_COMPONENT_H
#include "component_interface.h"
namespace odysseus {
class InputComponent : public ComponentInterface {
public:
virtual ~InputComponent() {}
virtual void update(GameObject& obj) = 0;
};
} // odysseus namespace
#endif // ODYSSEUS_INPUT... | 46,284 |
https://github.com/DavidSunny86/lugce/blob/master/experiment/url/url.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,016 | lugce | DavidSunny86 | C++ | Code | 68 | 272 | // url.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include "lugce/url.hpp"
void parse( const std::wstring& str )
{
std::wcout << L"Parse: " << str << std::endl;
lugce::url_t<wchar_t> u(str);
std::wcout << u.str() << std::endl;
}
int _tmain(int argc, _TCHAR* argv[])
{
using namespace std;
try{
parse( L"http:/... | 37,496 |
https://github.com/utgarda/beastiefarm/blob/master/app/assets/js/index.coffee | Github Open Source | Open Source | Apache-2.0 | null | beastiefarm | utgarda | CoffeeScript | Code | 53 | 153 | stage = new PIXI.Stage 0x000000 #0x661199
view = document.getElementById("mainView")
width = view.offsetWidth
height = view.offsetHeight
renderer = PIXI.autoDetectRenderer width, height, view: view
@center = new PIXI.Point width / 2, height / 2
@grid = new window.HexGrid window.gridWidth, window.gridHeight
stage.add... | 13,241 |
https://github.com/metux/chromium-suckless/blob/master/ui/file_manager/integration_tests/file_manager/suggest_app_dialog.js | Github Open Source | Open Source | BSD-3-Clause | 2,017 | chromium-suckless | metux | JavaScript | Code | 267 | 1,019 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict';
/**
* Tests sharing a file on Drive
*/
testcase.suggestAppDialog = function() {
var appId;
StepsRunner.run([
// Set up File Manag... | 21,867 |
https://github.com/khinsen/guix-gtoolk/blob/master/Guix.package/GxPackage.class/instance/gtActionOpenInOSFor..st | Github Open Source | Open Source | MIT | 2,022 | guix-gtoolk | khinsen | null | Spoken | 52 | 142 | inspecting
gtActionOpenInOSFor: anAction
<gtAction>
| sourceFile button |
sourceFile := (location at: #file) asFileReference.
sourceFile isFile ifFalse: [ ^ anAction noAction ].
^ anAction explicit stencil: [
button := BrButton new.
button
aptitude: BrGlamorousButtonWithIconAptitude;
action: [ WebBrowse... | 49,670 |
https://github.com/dGran/oleague/blob/master/resources/views/market/trades/partials/sent.blade.php | Github Open Source | Open Source | MIT | 2,022 | oleague | dGran | Blade | Code | 24 | 129 | @if ($offers_sent->count() > 0)
<table>
@foreach ($offers_sent as $trade)
@include('market.trades.card_data_sent')
@endforeach
</table>
@else
<div class="row">
<div class="col-12 col-lg-6 offset-lg-3 p-0">
@include('market.trades.card_data_sent_empty')
</div>
</div>
@endif | 42,284 |
https://github.com/yjbanov/bullet/blob/master/runtime/runtime.h | Github Open Source | Open Source | Apache-2.0 | null | bullet | yjbanov | C | Code | 340 | 699 | // Copyright 2019 The Bullet Runtime 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... | 31,934 |
https://github.com/TheREK3R/keepalived/blob/master/spec/resources/vrrp_script_spec.rb | Github Open Source | Open Source | Apache-2.0 | 2,020 | keepalived | TheREK3R | Ruby | Code | 254 | 925 | require 'spec_helper'
# see documentation here: https://www.keepalived.org/manpage.html
def vrrp_script_file_name(name)
"/etc/keepalived/conf.d/00_keepalived_vrrp_script__#{name}__.conf"
end
platforms = %w(debian ubuntu centos)
platforms.each do |platform|
describe "keepalived_vrrp_script on #{platform}" do
... | 22,140 |
https://github.com/neculai-stanciu/ocelotter/blob/master/runtime/src/klass_parser.rs | Github Open Source | Open Source | Apache-2.0 | 2,022 | ocelotter | neculai-stanciu | Rust | Code | 2,448 | 7,149 | #![deny(unreachable_patterns)]
use byteorder::{BigEndian, ByteOrder};
use std::io::Read;
use std::str;
use crate::constant_pool::*;
use crate::OtField;
use crate::OtKlass;
use crate::OtMethod;
pub struct OtKlassParser {
clz_read: Vec<u8>,
filename: String,
current: usize,
major: u16,
minor: u16,... | 11,500 |
https://github.com/eorituz/agents-aea/blob/master/tests/test_launcher.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | agents-aea | eorituz | Python | Code | 493 | 1,726 | # -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2018-2019 Fetch.AI Limited
#
# 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 ... | 50,782 |
https://github.com/G3-oriente-objet/PA/blob/master/TPVoyageur/src/main/java/fr/emac/gipsi/gsi/voyageur/VoyageurSimuler.java | Github Open Source | Open Source | Apache-2.0 | null | PA | G3-oriente-objet | Java | Code | 318 | 1,488 | /**
*test antoine
*/
package fr.emac.gipsi.gsi.voyageur;
import fr.emac.gipsi.gsi.voyage.Position;
/**
* @author Truptil Sebastien - sebastien.truptil@gmail.com
*
*/
public class VoyageurSimuler extends AbstractVoyageur {
/**
*
*/
public VoyageurSimuler() {
// TODO Auto-generated const... | 34,391 |
https://github.com/martinprot/quizz-database/blob/master/app/api-routes.js | Github Open Source | Open Source | MIT | null | quizz-database | martinprot | JavaScript | Code | 1,105 | 4,439 | // app/api-routes.js ===================================================================
// select the model in database
var Quizz = require('./models/quizz');
var Question = require('./models/question');
var User = require('./models/user');
// =============================================
// AUTHENTICATION ======... | 30,691 |
https://github.com/miyukoarc/rebuild-admin/blob/master/src/store/modules/employee.js | Github Open Source | Open Source | MIT | 2,020 | rebuild-admin | miyukoarc | JavaScript | Code | 196 | 622 | import {
getEmployeeList,
getEmpByDepartId,
addEmployee,
getUserByPhone,
addEmployForUser,
departSetting,
deleteUserByUnionId,
locateUserRole
} from "@/api/employee";
// import {getDepartment} from '@/api/department';
import Page from "@/utils/PageDefault";
const state = {
employeeList: [],
page: ne... | 40,891 |
https://github.com/moverlin/Kirtley_picogrid/blob/master/Software/New_MG/Firmware/OneINV_IIM/CPU2/F2837xD_headers/include/F2837xD_i2c.h | Github Open Source | Open Source | MIT | 2,018 | Kirtley_picogrid | moverlin | C | Code | 879 | 2,646 | //###########################################################################
//
// FILE: F2837xD_i2c.h
//
// TITLE: F2837xD Device I2C Register Definitions.
//
//###########################################################################
// $TI Release: F2837xD Support Library v190 $
// $Release Date: Mon Feb 1 ... | 8,670 |
https://github.com/bokko79/servicemapp/blob/master/common/models/PostTranslation.php | Github Open Source | Open Source | BSD-3-Clause | 2,016 | servicemapp | bokko79 | PHP | Code | 183 | 568 | <?php
namespace common\models;
use Yii;
/**
* This is the model class for table "post_translation".
*
* @property integer $id
* @property integer $post_id
* @property string $lang_code
* @property string $title
* @property string $subtitle
* @property string $body
* @property string $orig_title
*
* @prope... | 37,629 |
https://github.com/Quadrosh/NSY/blob/master/common/widgets/menu_formfactor/svg_construct.php | Github Open Source | Open Source | BSD-3-Clause | null | NSY | Quadrosh | PHP | Code | 237 | 1,204 |
<div class="sunmenu" id="sunmenudiv">
<svg version="1.1"
id="sunMenu"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
x="0px" y="0px"
viewBox="0 0 504.2 496.1"
style="enable-background:new 0 0 504.2 496.1;"
xml:space="pre... | 4,397 |
https://github.com/woodytang/lbase/blob/master/app/Models/Site/Site.php | Github Open Source | Open Source | MIT | 2,017 | lbase | woodytang | PHP | Code | 31 | 130 | <?php namespace App\Models\Site;
use Illuminate\Database\Eloquent\Model;
use Laracasts\Presenter\PresentableTrait;
class Site extends Model {
use PresentableTrait;
protected $presenter = 'App\Presenters\PostPresenter';
protected $guarded = [];
///////////////////////////////////////////////////... | 37,340 |
https://github.com/archetect/archetect/blob/master/archetect-core/src/vendor/heck/package.rs | Github Open Source | Open Source | MIT, Apache-2.0 | 2,022 | archetect | archetect | Rust | Code | 171 | 613 | /// This trait defines a java package case conversion.
///
/// In package.case, word boundaries are indicated by periods.
///
/// ## Example:
///
/// ```rust
///
/// fn main() {
///
/// use archetect_core::vendor::heck::PackageCase;
///
/// let sentence = "We are going to inherit the earth.";
/// assert_eq!... | 45,923 |
https://github.com/sunshiding/cca_zoo-1/blob/master/tests/testdeepmodels.py | Github Open Source | Open Source | MIT | 2,021 | cca_zoo-1 | sunshiding | Python | Code | 1,183 | 6,109 | from unittest import TestCase
import numpy as np
from sklearn.utils.validation import check_random_state
from torch import optim, manual_seed
from torch.utils.data import Subset
from cca_zoo import data
from cca_zoo.data import Noisy_MNIST_Dataset
from cca_zoo.deepmodels import DCCA, DCCAE, DVCCA, DCCA_NOI, DTCCA, Sp... | 46,321 |
https://github.com/juannelisalde/holter/blob/master/assets/jqwidgets/demos/angular/app/grid/masterdetails/app.component.ts | Github Open Source | Open Source | MIT | null | holter | juannelisalde | TypeScript | Code | 459 | 1,508 | import { Component, ViewChild } from '@angular/core';
import { jqxGridComponent } from '../../../../../jqwidgets-ts/angular_jqxgrid'
@Component({
selector: 'app-root',
templateUrl: './app.component.html'
})
export class AppComponent {
@ViewChild('customersGrid') customersGrid: jqxGridComponent;
@Vie... | 49,105 |
https://github.com/ming1991/mingop/blob/master/mOps/mops/src/main/java/com/huawei/mops/bean/AlarmStatusInfo.java | Github Open Source | Open Source | Apache-2.0 | null | mingop | ming1991 | Java | Code | 109 | 289 | package com.huawei.mops.bean;
import java.io.Serializable;
/**
* Created by tWX366549 on 2016/11/3.
*/
public class AlarmStatusInfo implements Serializable {
private String title;
private String status;
private int id;
@Override
public String toString() {
return "AlarmStatusInfo{" +
... | 16,774 |
https://github.com/yueyuehe/DbContextScope/blob/master/HWAdmin.Common/Config/Config.cs | Github Open Source | Open Source | MIT | 2,021 | DbContextScope | yueyuehe | C# | Code | 178 | 667 | using HWAdmin.Common.Config.AppStr;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#region << 版 本 注 释 >>
/*----------------------------------------------------------------
* 项目名称 :HWAdmin.Common.Config
* 项目描述 :
* 类 名 称 :ConfigHelper
* 类 描 述 :
* 所在的域... | 50,809 |
https://github.com/sbilly/ppmessage/blob/master/ppmessage/ppconsole/src/js/controllers/statistics/overview.js | Github Open Source | Open Source | Apache-2.0 | 2,016 | ppmessage | sbilly | JavaScript | Code | 501 | 1,992 | angular.module("this_app")
.controller("StatisticsOverviewCtrl", function($scope, $state, $timeout, $translate, $stateParams, yvUser, yvAjax, yvUtil, yvTransTags, yvConstants, yvLogin) {
$scope.card_number = {};
var _realtime_line = null;
var _history_line = null;
var _history_mode ... | 22,190 |
https://github.com/ABI-Software/12-labours-nodejs-api/blob/master/config/google.js | Github Open Source | Open Source | Apache-2.0 | null | 12-labours-nodejs-api | ABI-Software | JavaScript | Code | 8 | 95 |
const googleCredentials={
clientId:process.env.GOOGLE_CLIENT_ID,
clientSecret:process.env.GOOGLE_CLIENT_SECRET,
redirectUri:process.env.GOOGLE_REDIRECT_URI
}
//tokenApi='https://oauth2.googleapis.com/token'
module.exports=googleCredentials; | 11,828 |
https://github.com/pombreda/irods/blob/master/iRODS/lib/core/include/parseCommandLine.hpp | Github Open Source | Open Source | BSD-3-Clause | 2,015 | irods | pombreda | C++ | Code | 374 | 1,068 | /*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
/* definitions for parseCommandLine routine */
#ifndef RODS_PARSE_COMMAND_LINE
#define RODS_PARSE_COMMAND_LINE
#if _WIN32
#include "irodsntutil.hpp"
#include ... | 3,975 |
https://github.com/reioto/ZendDbTestCase/blob/master/TestCase.php | Github Open Source | Open Source | BSD-3-Clause | null | ZendDbTestCase | reioto | PHP | Code | 248 | 870 | <?php
namespace Zend\Db;
abstract class TestCase extends \PHPUnit_Extensions_Database_TestCase
{
static private $_adapter;
private $_connection;
final protected function getConnection()
{
$params = $this->getDbConfig();
if(self::$_adapter === null) {
$connection = new Adapt... | 16,544 |
https://github.com/76jin/study-practical-nodejs/blob/master/ch03/test-example/test.js | Github Open Source | Open Source | MIT | null | study-practical-nodejs | 76jin | JavaScript | Code | 18 | 55 | var assert = require('assert');
describe('String#split', function () {
it('should return an array', function () {
assert(Array.isArray('a,b,c'.split(',')));
});
});
| 47,258 |
https://github.com/kingmold/enapi/blob/master/enapi/__init__.py | Github Open Source | Open Source | MIT | null | enapi | kingmold | Python | Code | 5 | 14 | import enapi
__all__ = ['enapi'] | 34,652 |
https://github.com/symform/mono/blob/master/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DrawListViewItemEventArgs.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | mono | symform | C# | Code | 393 | 838 | // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell... | 51,369 |
https://github.com/scull7/uow/blob/master/test/lib/queue.spec.coffee | Github Open Source | Open Source | MIT | null | uow | scull7 | CoffeeScript | Code | 993 | 3,165 |
Queue = require '../../lib/queue.js'
TaskRequest = require '../../lib/task/request.js'
TaskLock = require 'uow-lock'
{ inherits } = require 'util'
{ EventEmitter } = require 'events'
{ MemoryStore } = require 'uow-store'
describe 'Queue', ->
queue = null
store = null
beforeEa... | 42,266 |
https://github.com/DeviceConnect/DeviceConnect-iOS/blob/master/dConnectDevicePlugin/DCMDevicePluginSDK/DCMDevicePluginSDK/Classes/DCMStressEstimationProfile.m | Github Open Source | Open Source | MIT | 2,020 | DeviceConnect-iOS | DeviceConnect | Objective-C | Code | 110 | 460 | //
// DCMStressEstimationProfile.m
// DCMDevicePluginSDK
//
// Copyright (c) 2016 NTT DOCOMO,INC.
// Released under the MIT license
// http://opensource.org/licenses/mit-license.php
//
#import "DCMStressEstimationProfile.h"
NSString *const DCMStressEstimationProfileName = @"stressEstimation";
NSString *const DCM... | 3,393 |
https://github.com/spacetelescope/crds/blob/master/setup_data.py | Github Open Source | Open Source | BSD-2-Clause | 2,023 | crds | spacetelescope | Python | Code | 108 | 367 | #!/usr/bin/env python
import sys
import glob
from distutils.core import setup
setup_pars = {
"packages": [
"crds",
"crds.tests",
],
"package_dir": {
"crds": "crds",
"crds.tests": "crds/tests",
},
"package_data": {
"crds.tests": [
"data/*",
... | 3,350 |
https://github.com/Proektsoftbg/Calcpad/blob/master/Calcpad.Web/Areas/Admin/Views/Topic/Delete.cshtml | Github Open Source | Open Source | MIT | 2,022 | Calcpad | Proektsoftbg | C# | Code | 104 | 344 | @model Calcpad.web.Areas.Admin.Models.TopicInputModel
@{
ViewData["Title"] = "Delete category: " + Model.Name;
}
<br />
<h1>Delete topic:</h1>
<hr />
<h2 class="h3 text-secondary">@Model.Name</h2>
<hr />
<br />
@if (Model.IsEmpty)
{
<p class="h5 text-danger">Are you sure that you want to delete this topic?</p... | 48,617 |
https://github.com/wieslawsoltes/BatchEncoderWx/blob/master/src/core/config/Tool.h | Github Open Source | Open Source | MIT | 2,019 | BatchEncoderWx | wieslawsoltes | C | Code | 405 | 1,224 | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#pragma once
#include <string>
#include <algorithm>
#include <vector>
#include "utilities\String.h"
namespace config
{
class CTool
{
private:
... | 3,506 |
https://github.com/organicit/AWS_PS_Demo/blob/master/IAM-Stuff.ps1 | Github Open Source | Open Source | MIT | null | AWS_PS_Demo | organicit | PowerShell | Code | 54 | 156 | $newUsers = "bob","cindy","dave","jean"
$iamGroup = "NoPerms"
(Get-IAMGroup -GroupName $iamGroup).Users
#create users and add users to IAM Group
foreach ($user in $newUsers) {
New-IAMUser -UserName $user
Add-IAMUserToGroup -UserName $user -GroupName $iamGroup
}
foreach ($user in $newUsers) {
#remove user... | 12,326 |
https://github.com/Drakojan/ASP.NET_Project/blob/master/src/Data/AspNetCoreTemplate.Data.Models/Enums/CaseStatus.cs | Github Open Source | Open Source | MIT | null | ASP.NET_Project | Drakojan | C# | Code | 18 | 52 | namespace AspNetCoreTemplate.Data.Models.Enums
{
public enum CaseStatus
{
Active = 1,
Discharged = 2,
Dismissed = 3,
}
}
| 23,147 |
https://github.com/RMScott/CameraApp/blob/master/build/android/bin/assets/Resources/alloy/controllers/feed.js | Github Open Source | Open Source | Apache-2.0 | null | CameraApp | RMScott | JavaScript | Code | 231 | 854 | function __processArg(obj, key) {
var arg = null;
if (obj) {
arg = obj[key] || null;
delete obj[key];
}
return arg;
}
function Controller() {
require("alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments));
this.__controllerPath = "feed";
if (a... | 42,751 |
https://github.com/chertokdmitry/ilogistics/blob/master/app/Http/Controllers/Orders/OrdersController.php | Github Open Source | Open Source | MIT | null | ilogistics | chertokdmitry | PHP | Code | 181 | 742 | <?php
namespace App\Http\Controllers\Orders;
use App\Models\Orders\Order;
use App\Services\OrdersService;
use Illuminate\Http\Request;
use App\Http\Controllers\Crm\CrmController;
use Illuminate\Support\Facades\Gate;
class OrdersController extends CrmController
{
private $ordersService;
public function __con... | 50,845 |
https://github.com/IamAlchemist/DemoDynamicCollectionView/blob/master/DemoDynamicCollectionView/SpringyCollectionViewController.swift | Github Open Source | Open Source | MIT | null | DemoDynamicCollectionView | IamAlchemist | Swift | Code | 51 | 165 | //
// SpringyCollectionViewController.swift
// DemoDynamicCollectionView
//
// Created by Wizard Li on 1/5/16.
// Copyright © 2016 morgenworks. All rights reserved.
//
import UIKit
class SpringyCollectionViewController : UICollectionViewController {
var dataSource : SpringyCollectionViewDataSource?
... | 7,991 |
https://github.com/toppu/trustroots/blob/master/modules/messages/client/less/messages.less | Github Open Source | Open Source | MIT | 2,015 | trustroots | toppu | Less | Code | 4 | 14 | @import "inbox";
@import "thread";
| 51,633 |
https://github.com/KwakuBoohene/asedas_finds/blob/master/resources/frontend/frontend/src/app/admin/login/login.component.ts | Github Open Source | Open Source | MIT | 2,021 | asedas_finds | KwakuBoohene | TypeScript | Code | 179 | 638 | import { AuthService } from './../../services/http/auth/auth.service';
import { AuthObject } from './../../types/data-types';
import { Component, OnInit } from '@angular/core';
import { FormGroup, FormControl, Validators } from '@angular/forms';
import { Router, ActivatedRoute } from '@angular/router';
import { rotateA... | 29,507 |
https://github.com/AmineLAHRIM/AvanShop/blob/master/public/js/verify.js | Github Open Source | Open Source | MIT | 2,019 | AvanShop | AmineLAHRIM | JavaScript | Code | 38 | 158 | function subpass() {
//element = document.querySelector('.nputGroup.inputGroup3 #register');
//element.addEventListener('click', function () {
/*var pass = document.querySelector('#pass');
var confirmpass = document.querySelector('#confirmpass');
if (pass.value !== confirmpass.value) {... | 44,950 |
https://github.com/gzerveas/gaila_object_detection/blob/master/src/Main.sh | Github Open Source | Open Source | MIT | 2,020 | gaila_object_detection | gzerveas | Shell | Code | 50 | 238 | #!/bin/bash
#SBATCH --job-name="Isaac_BETTER"
#SBATCH --output=job-%j.txt
#SBATCH --error=job-%j.txt
#SBATCH --time=96:00:00
#SBATCH -n 1
#SBATCH -p gpu --gres=gpu:1
#SBATCH --mem=100G
source activate CenterNet
python3 ./gaila_eval.py gaila_ctdet --exp_id gaila_evalvis \
--gpus ... | 14,533 |
https://github.com/zhaohengz/surface_normals/blob/master/src/experiment_NYU/criterion/relative_depth_margin_log_normal_depth.lua | Github Open Source | Open Source | BSD-3-Clause | 2,019 | surface_normals | zhaohengz | Lua | Code | 681 | 2,832 | -- require 'cunn'
require 'nn'
-- depth from normal
require '../models/get_theoretical_depth_from_normal_v2'
-- sub criterions
require './scale_inv_depth_loss'
require './relative_depth_margin'
require 'hdf5'
require 'image'
local relative_depth_margin_log_normal_depth, parent = torch.class('nn.relative_depth_margin... | 38,359 |
https://github.com/nicolas-grekas/php-di-container-benchmarks/blob/master/src/Fixture/Class11.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,020 | php-di-container-benchmarks | nicolas-grekas | PHP | Code | 14 | 54 | <?php
declare(strict_types=1);
namespace DiContainerBenchmarks\Fixture;
class Class11
{
public function __construct(Class10 $dependency)
{
}
}
| 1,606 |
https://github.com/JoveH-H/path-following-control/blob/master/controller/stanley.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | path-following-control | JoveH-H | Python | Code | 80 | 333 | import numpy as np
import math
class CU:
'''
前轮反馈控制器(Stanley)
'''
def __init__(self, k):
'''
纯跟踪控制器初始化
参数:
k: 增益参数 需满足∣−ke/v∣<=1
'''
self.k = k
def get_deltat(self, model, e, ctheta):
'''
获取前轮转角
参数:
model: 被控... | 28,810 |
https://github.com/atlassian/hazelcast/blob/master/hazelcast/src/test/java/com/hazelcast/internal/serialization/impl/ObjectDataOutputStreamTest.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | hazelcast | atlassian | Java | Code | 267 | 1,223 | package com.hazelcast.internal.serialization.impl;
import com.hazelcast.internal.serialization.InternalSerializationService;
import com.hazelcast.nio.serialization.SerializationV1Dataserializable;
import com.hazelcast.test.HazelcastParallelClassRunner;
import com.hazelcast.test.annotation.ParallelTest;
import com.haze... | 14,778 |
https://github.com/mharsch/ShotOMatic/blob/master/Classes/SplashViewController.h | Github Open Source | Open Source | MIT | 2,019 | ShotOMatic | mharsch | C | Code | 34 | 97 | //
// SplashViewController.h
// ShotProto
//
// Created by Michael Harsch on 2/3/11.
// Copyright 2011 Harsch Systems Inc. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface SplashViewController : UIViewController {
UIImageView *imageView;
}
@end
| 4,296 |
https://github.com/trailheadapps/redwoods-insurance/blob/master/redwoods-insurance-salesforce/force-app/main/default/classes/IncidentControllerTest.cls | Github Open Source | Open Source | CC0-1.0 | 2,022 | redwoods-insurance | trailheadapps | Apex | Code | 110 | 334 | @isTest
private class IncidentControllerTest {
@isTest
private static void findRelatedFilesPositive() {
Case c = new Case(subject = 'test');
insert c;
ContentVersion contentVersionImage = new ContentVersion(
Title = 'Test',
PathOnClient = 'Test.PNG',
... | 19,199 |
https://github.com/matt9j/colte/blob/master/lte_extras/maps/test/models/language_test.rb | Github Open Source | Open Source | GPL-2.0-only, MIT | 2,021 | colte | matt9j | Ruby | Code | 41 | 167 | require "test_helper"
class LanguageTest < ActiveSupport::TestCase
def test_name
create(:language, :code => "sl", :english_name => "Slovenian", :native_name => "slovenščina")
assert_equal "Slovenian (slovenščina)", Language.find("sl").name
end
def test_load
assert_equal 0, Language.count
assert_... | 50,347 |
https://github.com/oowo/cardgame/blob/master/qxsite/login/views.py | Github Open Source | Open Source | BSD-3-Clause | 2,019 | cardgame | oowo | Python | Code | 496 | 2,171 | from django.shortcuts import render
from django.shortcuts import redirect
from django.contrib.auth.hashers import make_password, check_password
from django.core.mail import EmailMultiAlternatives
from login import models, forms
import datetime
from django.conf import settings
from django.core.exceptions import ObjectDo... | 35,270 |
https://github.com/dvlproad/CJUIKit/blob/master/CJComplexUIKitDemo/CJComplexUIKitDemo/Modules/TableViewDemo/3OpenTableView/TableViewHeader.h | Github Open Source | Open Source | MIT | 2,021 | CJUIKit | dvlproad | Objective-C | Code | 35 | 114 | //
// TableViewHeader.h
// CJUIKitDemo
//
// Created by ciyouzen on 8/26/15.
// Copyright (c) 2015 dvlproad. All rights reserved.
//
#import "CJTableViewHeaderFooterView.h"
@interface TableViewHeader : CJTableViewHeaderFooterView {
}
@property(nonatomic, strong) IBOutlet UILabel *tilteLabel;
@end
| 44,664 |
https://github.com/yuchenlin/XCSR/blob/master/mcp_generation/generate_mcp_data.py | Github Open Source | Open Source | MIT | 2,022 | XCSR | yuchenlin | Python | Code | 155 | 573 | import random
import json
random.seed(42)
lang_list = ["en", "es", "nl", "de", "fr", "zh", "it", "ru", "bg", "vi", "hi"] # all candidate languages
all_data = {}
truth_labels = {}
probes = []
for lang in lang_list:
with open('/path/to/mickey_'+lang+'.jsonl','r') as f:
for line in f:
probes.app... | 32,153 |
https://github.com/jmvrbanac/Mailpile/blob/master/mailpile/vcard.py | Github Open Source | Open Source | Apache-2.0 | null | Mailpile | jmvrbanac | Python | Code | 4,110 | 13,952 | import random
import threading
import time
import mailpile.util
from mailpile.i18n import gettext as _
from mailpile.i18n import ngettext as _n
from mailpile.util import *
class VCardLine(dict):
"""
This class represents a single line in a VCard file. It knows how
to parse the most common "structured" li... | 22,440 |
https://github.com/scrollback/io.scrollback.neighborhoods/blob/master/app/containers/NotificationClearIconContainer.js | Github Open Source | Open Source | MIT | 2,016 | io.scrollback.neighborhoods | scrollback | JavaScript | Code | 43 | 124 | /* @flow */
import React from 'react-native';
import NotificationClearIcon from '../views/NotificationClearIcon';
import Container from './Container';
class NotificationClearIconContainer extends React.Component {
_clearAll = () => {
this.dispatch('note', { dismissTime: Date.now() });
};
render() {
return <No... | 49,023 |
https://github.com/rossmounce/plosonehtml/blob/master/1949-captions-only/pone.0000938/pone.0000938.cap.1 | Github Open Source | Open Source | CC-BY-4.0, Apache-2.0 | 2,014 | plosonehtml | rossmounce | null | Spoken | 18 | 24 | Figure 1. Frequency distribution of the temporal species turnover in the 81 sites sampled in 1966 and 1996.
| 42,574 |
https://github.com/eosfor/PSGraph/blob/master/quickgraph/3.0/sources/QuickGraph.Tests/Algorithms/ConnectedComponents/ConnectedComponentsAlgorithmTest.cs | Github Open Source | Open Source | MIT | 2,022 | PSGraph | eosfor | C# | Code | 120 | 512 | using System;
using System.Collections.Generic;
using Microsoft.Pex.Framework;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using QuickGraph.Serialization;
using System.Diagnostics.Contracts;
using System.Diagnostics;
using QuickGraph.Algorithms.ConnectedComponents;
using System.Linq;
using System.Threading.Tas... | 6,033 |
https://github.com/ivorgilmartin/FourSquareCipher/blob/master/FourSquareCipher/Menu.java | Github Open Source | Open Source | MIT | null | FourSquareCipher | ivorgilmartin | Java | Code | 227 | 637 | import java.util.*;
/**
* Provides the user interface. Initiates user selections.
* @author ivorgilmartin
*
*/
public class Menu {
private String resource = null;
private Parser parser = new Parser();
private Scanner scanner = new Scanner(System.in);
private boolean keepRunning = true;
privat... | 34,584 |
https://github.com/bencoman/pharo-vm/blob/master/mc/VMMaker.oscogSPP.package/CogObjectRepresentation.class/instance/genPrimitiveSmallFloatAdd.st | Github Open Source | Open Source | MIT | 2,021 | pharo-vm | bencoman | null | Spoken | 10 | 44 | primitive generators
genPrimitiveSmallFloatAdd
<option: #Spur64BitMemoryManager>
^self genSmallFloatArithmetic: AddRdRd preOpCheck: nil | 1,411 |
https://github.com/mattlindvig/Quotations/blob/master/Quotations.Api/Repository/Migrations/20180501202123_initialCreate.Designer.cs | Github Open Source | Open Source | MIT | null | Quotations | mattlindvig | C# | Code | 65 | 334 | // <auto-generated />
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage;
using Microsoft.EntityFrameworkCore.Storage.Internal;
using Repositor... | 42,131 |
https://github.com/sslcommerz/npm-sslcommerz/blob/master/api/payment-controller.js | Github Open Source | Open Source | FSFAP | 2,022 | npm-sslcommerz | sslcommerz | JavaScript | Code | 201 | 940 | const httpCall = require("./fetch");
const paymentInitDataProcess = require("./payment-init-data-process");
class SslCommerzPayment {
constructor(store_id, store_passwd, live = false) {
this.baseURL = `https://${live ? 'securepay' : 'sandbox'}.sslcommerz.com`;
this.initURL = this.baseURL + '/gwpr... | 5,784 |
https://github.com/blackberry/WebWorks-TabletOS/blob/master/js_api/blackberry.media.camera/js/common/camera_dispatcher.js | Github Open Source | Open Source | Apache-2.0 | 2,018 | WebWorks-TabletOS | blackberry | JavaScript | Code | 175 | 524 | /*
* Copyright 2010-2011 Research In Motion Limited.
*
* 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 ... | 16,538 |
https://github.com/zs-sport/zsport/blob/master/libs/api/src/lib/country/country.factory.ts | Github Open Source | Open Source | MIT | null | zsport | zs-sport | TypeScript | Code | 13 | 22 | import { BaseFactory } from '../base';
export abstract class CountryFactory extends BaseFactory {}
| 9,175 |
https://github.com/gabon/AdobeSignCSharpSDK/blob/master/src/AdobeSign.Rest/Model.Widgets/WidgetStateInfo.cs | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,020 | AdobeSignCSharpSDK | gabon | C# | Code | 668 | 1,684 | /**
* Copyright 2019 Adobe Systems Incorporated. All rights reserved.
* This file is licensed to you 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
*
* Unl... | 34,045 |
https://github.com/deepcrawler/TVCastLib/blob/master/modules/firetv/Capabilities/FireTVMediaControl.m | Github Open Source | Open Source | Apache-2.0 | 2,018 | TVCastLib | deepcrawler | Objective-C | Code | 570 | 2,323 | //
// FireTVMediaControl.m
// TVCastLib
//
// Created by Eugene Nikolskyi on 2015-07-08.
// Copyright (c) 2015 Hamed Ghaderipour. All rights reserved.
//
//
#import "FireTVMediaControl.h"
#import "BlockRunner.h"
#import "FireTVCapabilityMixin.h"
#import "SubscriptionDeduplicator.h"
#import "NSMutableDictionary+N... | 40,103 |
https://github.com/CarmenXP/kodeday-2020-03/blob/master/rickandmorty/src/App.js | Github Open Source | Open Source | MIT | null | kodeday-2020-03 | CarmenXP | JavaScript | Code | 204 | 1,016 | import React from 'react';
// import logo from './logo.svg';
import './App.css';
import api from './lib/api.js';
class App extends React.Component {
constructor(props) {
super(props)
this.state = {
modalActivo: false,
personajes:[],
idPersonajeSeleccionado: [],
}
}
componentDidMount... | 49,854 |
https://github.com/TelePilot/easit/blob/master/web/app/themes/understrap-child/sass/theme/_extra_menu.scss | Github Open Source | Open Source | MIT | null | easit | TelePilot | SCSS | Code | 150 | 590 | #extra-menu-inner-column {
background-color: #8daabf;
.vc_column-inner {
padding: 0 !important;
}
#extra-menu-fixed {
margin: 0;
height: 40px;
.widget_nav_menu {
width: 100%;
height: 100%;
>div{
height: 100%;
}
}
ul.menu {
margin-bottom: 0;
... | 3,772 |
https://github.com/PavelIvanov96/Programming-Basics-C-Sharp/blob/master/First Steps in Coding/03. Nums 1...20/Program.cs | Github Open Source | Open Source | MIT | null | Programming-Basics-C-Sharp | PavelIvanov96 | C# | Code | 44 | 287 | using System.Reflection;
using System.Runtime.InteropServices;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _03.NumbersFromOneToTwenty
{
class NumbersFromOneToTwenty
{
static void Main(string[] args)
{
System.Console.WriteLine("1");
Syst... | 19,680 |
https://github.com/laconic-tech/dsw/blob/master/src/main/scala/co/lnic/dsw/api/endpoints/UserEndpoint.scala | Github Open Source | Open Source | Apache-2.0 | null | dsw | laconic-tech | Scala | Code | 74 | 272 | package co.lnic.dsw.api.endpoints
import cats.data._
import cats.effect._
import cats.implicits._
import io.circe.generic.auto._
import io.circe.syntax._
import org.http4s._
import org.http4s.circe._
import org.http4s.dsl._
import co.lnic.dsw.domain.algebras._
import scala.language.higherKinds
class UserEndpoint[F[... | 20,618 |
https://github.com/jjburton/cgmTools/blob/master/mayaTools/cgm/__init__.py | Github Open Source | Open Source | BSD-3-Clause | 2,023 | cgmTools | jjburton | Python | Code | 83 | 417 | import os
#from cgm.lib.zoo.zooPy.path import Path
""" From http://stackoverflow.com/questions/1057431/loading-all-modules-in-a-folder-in-python"""
#Need to setup our cgm paths ===========================================================
#from cgm.lib.zoo.zooPy.path import Path, findFirstInEnv, findInPyPath
from cgm.co... | 9,519 |
https://github.com/racket/eopl/blob/master/private/slldef.rkt | Github Open Source | Open Source | MIT, Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,022 | eopl | racket | null | Spoken | 16 | 46 | #lang racket
;; A compile-time table shared by eopl and sllgen:
(define sllgen-def (make-hasheq))
(provide sllgen-def)
| 31,867 |
https://github.com/blazedd/Building-Your-Transport-Layer-in-Nodejs-Thunderplains/blob/master/Pis/Demo Matrix Code/scroll.js | Github Open Source | Open Source | CC0-1.0 | 2,016 | Building-Your-Transport-Layer-in-Nodejs-Thunderplains | blazedd | JavaScript | Code | 85 | 299 | var raspi = require('raspi-io');
var five = require('johnny-five');
var board = new five.Board({
io: new raspi()
});
var gpio = function(id){
return 'GPIO'+String(id);
}
board.on('ready', function(err){
if(err){
return console.error('ERROR', err);
}
var matrix = new five.Led.Matrix({
pins: {
data: gpio(1... | 35,475 |
https://github.com/brodiequinlan/game-framework/blob/master/gamelib/source/core/buff.cpp | Github Open Source | Open Source | Apache-2.0 | 2,021 | game-framework | brodiequinlan | C++ | Code | 4 | 24 | #include "bqpch.h"
#include "bq/core/buff.h" | 46,657 |
https://github.com/muradcse1177/treeshop/blob/master/public/adminpanel/assets/plugins/datatables/dataTables-active.js | Github Open Source | Open Source | MIT | null | treeshop | muradcse1177 | JavaScript | Code | 55 | 208 | $(document).ready(function () {
"use strict"; // Start of use strict
$('#categoryTable').dataTable({
dom: "<'row dataTableInner'<'col-sm-4'l><'col-sm-4 text-center'B><'col-sm-4'f>>tp",
"lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]],
buttons: [
{extend: 'copy', classNa... | 23,448 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.