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/MythMx/CollectionViewCircularly/blob/master/SampleDemo/SampleDemo/CollectionViewCell2.m | Github Open Source | Open Source | Apache-2.0 | 2,016 | CollectionViewCircularly | MythMx | Objective-C | Code | 48 | 165 | //
// CollectionViewCell2.m
// CollectionViewDemo1
//
// Created by liu on 16/1/4.
// Copyright © 2016年 vizz. All rights reserved.
//
#import "CollectionViewCell2.h"
@interface CollectionViewCell2()
@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@end
@implementation CollectionViewCell2
- (void... | 18,813 |
https://github.com/xuhuasheng/algorithm-python/blob/master/leetcode/dp/322. 零钱兑换.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | algorithm-python | xuhuasheng | Python | Code | 97 | 388 | # 给定不同面额的硬币 coins 和一个总金额 amount。编写一个函数来计算可以凑成总金额所需的最少的硬币个数。如果没有任何一种硬币组合能组成总金额,返回 -1。
#
# 示例 1:
# 输入: coins = [1, 2, 5], amount = 11
# 输出: 3
# 解释: 11 = 5 + 5 + 1
# 示例 2:
# 输入: coins = [2], amount = 3
# 输出: -1
#
# 来源:力扣(LeetCode)
# 链接:https://leetcode-cn.com/problems/coin-change
# 著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注... | 36,368 |
https://github.com/PaitoAnderson/stripe-dotnet/blob/master/src/Stripe.net/Services/Cards/CardDeleteOptions.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | stripe-dotnet | PaitoAnderson | C# | Code | 11 | 25 | namespace Stripe
{
public class CardDeleteOptions : BaseOptions
{
}
}
| 22,939 |
https://github.com/farcry4998/pcit/blob/master/src/PCIT/Service/Repositories/DeployKeysClient.php | Github Open Source | Open Source | MIT | 2,019 | pcit | farcry4998 | PHP | Code | 8 | 41 | <?php
declare(strict_types=1);
namespace PCIT\Service\GitHub\Repositories;
class DeployKeysClient
{
}
| 5,979 |
https://github.com/jmboehm/Fastcluster.jl/blob/master/src/Fastcluster.jl | Github Open Source | Open Source | MIT | 2,020 | Fastcluster.jl | jmboehm | Julia | Code | 168 | 500 |
# TODO
# - add an interface via points & distance metrics
# - get rid of `nobs` in `cutree()`
module Fastcluster
# # Load in `deps.jl`, complaining if it does not exist
# const depsjl_path = joinpath(dirname(@__FILE__), "..", "deps", "deps.jl")
# if !isfile(depsjl_path)
# error("Fastcluster.jl no... | 24,644 |
https://github.com/bingotao/gisplatform/blob/master/src/routes/Mapping/BaseMapPanel.less | Github Open Source | Open Source | MIT | null | gisplatform | bingotao | Less | Code | 79 | 251 | @import '../../default.less';
.basemappanel {
width: auto;
display: flex;
:global {
.basemapitem {
position: relative;
margin: 0 5px;
border-radius: 3px;
overflow: hidden;
height: 100px;
width: 140px;
cursor: pointer;
transition: @transition;
box-shadow: ... | 14,398 |
https://github.com/FrankBotos/UnityTopDownShooter/blob/master/UnityTopDownShooter_ForVersion5_3_4/Assets/Scripts/EnemyAISpider.js | Github Open Source | Open Source | Unlicense | null | UnityTopDownShooter | FrankBotos | JavaScript | Code | 188 | 469 | #pragma strict
var health : int = 5;//local health
var player : Transform;
var speed : int = 3;
var inCombat : boolean = false;
var origin : Vector3;//this variable will save the starting position of the enemy, to which he returns once he is out of combat
var readyNow : boolean = true;//used to wait a few seconds bef... | 3,385 |
https://github.com/infobyte/nixpkgs/blob/master/pkgs/development/lisp-modules/quicklisp-to-nix-output/trivial-types.nix | Github Open Source | Open Source | MIT | 2,022 | nixpkgs | infobyte | null | Spoken | 73 | 375 | args @ { fetchurl, ... }:
rec {
baseName = ''trivial-types'';
version = ''20120407-git'';
description = ''Trivial type definitions'';
deps = [ ];
src = fetchurl {
url = ''http://beta.quicklisp.org/archive/trivial-types/2012-04-07/trivial-types-20120407-git.tgz'';
sha256 = ''0y3lfbbvi2qp2cwswzmk1awz... | 9,415 |
https://github.com/MillerGlaeser/curso-web/blob/master/3-inicio/comentario.js | Github Open Source | Open Source | MIT | null | curso-web | MillerGlaeser | JavaScript | Code | 39 | 98 | // console.log é usado para exiber algo na tela do computador!
console.log("Passo #01");
console.log("Passo #02"); // mais um exemplo de console.log!
// console.log("Passo #03");
/*
* Esse é um
* comentário
* de múltiplas
* linhas!
*/
console.log("Passo #02"); | 9,533 |
https://github.com/icarephone/gcr.io/blob/master/gcr.io/google_containers/kube-controller-manager-arm64/v1.12.4 | Github Open Source | Open Source | Apache-2.0 | 2,019 | gcr.io | icarephone | null | Spoken | 1 | 29 | gcr.io/google_containers/kube-controller-manager-arm64:v1.12.4
| 3,962 |
https://github.com/jvahldick/SeoBundle/blob/master/Handler/SeoDataHandlerInterface.php | Github Open Source | Open Source | MIT | 2,013 | SeoBundle | jvahldick | PHP | Code | 256 | 634 | <?php
namespace JHV\Bundle\SeoBundle\Handler;
use JHV\Bundle\SeoBundle\Model\SeoInterface;
/**
* SeoDataHandlerInterface.
*
* @author Jorge Vahldick <jvahldick@gmail.com>
* @license Please view /Resources/meta/LICENSE
* @copyright (c) 2013
*/
interface SeoDataHandlerInterface
{
/**
* Def... | 8,332 |
https://github.com/elinoretenorio/php-headless-crud-for-sports-db/blob/master/tests/src/BasketballEventStates/BasketballEventStatesModelTest.php | Github Open Source | Open Source | MIT | 2,021 | php-headless-crud-for-sports-db | elinoretenorio | PHP | Code | 289 | 1,277 | <?php
declare(strict_types=1);
namespace Sports\Tests\BasketballEventStates;
use PHPUnit\Framework\TestCase;
use Sports\BasketballEventStates\{ BasketballEventStatesDto, BasketballEventStatesModel };
class BasketballEventStatesModelTest extends TestCase
{
private array $input;
private BasketballEventStatesD... | 39,764 |
https://github.com/strigazi/athena/blob/master/InnerDetector/InDetExample/InDetAlignExample/share/NewInDetIterator_EoPMaps.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | athena | strigazi | Python | Code | 588 | 2,060 | #################################################################
# Script to run InDetAlignExample with parallelization #
# (local or lxbatch mode) & (physic data or cosmics) #
# Vicente Lacuesta [started 12-03-2008] #
########################################################... | 40,840 |
https://github.com/JasmineZhen218/P-WL/blob/master/data/NCI1/2570.gml | Github Open Source | Open Source | MIT | 2,021 | P-WL | JasmineZhen218 | null | Spoken | 222 | 540 | graph [
directed 0
node [
id 72728
label "14"
]
node [
id 72729
label "14"
]
node [
id 72730
label "1"
]
node [
id 72738
label "3"
]
node [
id 72739
label "3"
]
node [
id 72740
label "3"
]
node [
id 72734
label "3"
]
node [
id 7... | 7,815 |
https://github.com/manondesclides/ismrmrd-python-tools/blob/master/ismrmrdtools/ndarray_io.py | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-public-domain | 2,020 | ismrmrd-python-tools | manondesclides | Python | Code | 237 | 792 | import numpy as np
from struct import unpack
def write_ndarray(filename,ndarray):
'''Writes simple ndarray format. This format is mostly used for debugging purposes
The file name extension indicates the binary data format:
'*.float' indicates float32
'*.double' indicates float64
'*.cplx' indicat... | 10,641 |
https://github.com/tari-labs/tari-crypto-ios/blob/master/TariCrypto/Model/TariError.swift | Github Open Source | Open Source | BSD-3-Clause | 2,021 | tari-crypto-ios | tari-labs | Swift | Code | 356 | 637 | /*
Copyright 2019 The Tari Project
Redistribution and use in source and binary forms, with or
without modification, are permitted provided that the
following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following ... | 29,303 |
https://github.com/h2floh/MLOpsManufacturing-1/blob/master/common/azureml_appinsights_logger/tests/test_appinsights_logger.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | MLOpsManufacturing-1 | h2floh | Python | Code | 378 | 2,183 | from azureml_appinsights_logger.appinsights_logger \
import AppInsightsLogger, logging, Severity
import uuid
from opencensus.trace.span import SpanKind
import pytest
@pytest.fixture
def mock_exporter(mocker):
mocker.patch(
'azureml_appinsights_logger.appinsights_logger.AzureExporter')
mocker.patch... | 10,725 |
https://github.com/agungwicaksana/byfast-backend/blob/master/app/Http/Controllers/Admin/PacketController.php | Github Open Source | Open Source | MIT | 2,021 | byfast-backend | agungwicaksana | PHP | Code | 210 | 678 | <?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Http\Requests\Packet\StoreRequest;
use App\Models\Packet;
use App\Models\PacketCategory;
use Illuminate\Http\Request;
class PacketController extends Controller
{
/**
* Display a listing of the resource.
*
* @r... | 7,276 |
https://github.com/hoschi/veonim/blob/master/src/core/master-control.ts | Github Open Source | Open Source | MIT | 2,019 | veonim | hoschi | TypeScript | Code | 580 | 1,663 | import { asColor, ID, onFnCall, merge, prefixWith, getPipeName } from '../support/utils'
import MsgpackStreamDecoder from '../messaging/msgpack-decoder'
import MsgpackStreamEncoder from '../messaging/msgpack-encoder'
import { startupFuncs, startupCmds } from '../neovim/startup'
import { Api, Prefixes } from '../neovim/... | 9,321 |
https://github.com/Oparilames/aNDAr-library/blob/master/tests/accessOperator.cpp | Github Open Source | Open Source | MIT | null | aNDAr-library | Oparilames | C++ | Code | 206 | 958 |
#include <aNDAr/multiDimensionalArray.hpp>
#include <iostream>
#include <vector>
#include <array>
using namespace aNDAr;
int main(){
using T = multiDimensionalArray<int,3,3,3>;
{
const int amountDimensions = 3;
{T ar(initialisationMethod::incrementFrom,10,3);}
T ar(initialisationMethod::incrementFrom,10,... | 25,303 |
https://github.com/SpanockLau/SearchEngine/blob/master/crawler/GithubDemoCrawler/GithubDemoCrawler/driver.py | Github Open Source | Open Source | MIT | 2,019 | SearchEngine | SpanockLau | Python | Code | 13 | 58 | from CrawlerUtils.BaseDriver import CrawlerBaseDriver
class GithubDriver(CrawlerBaseDriver):
def __init__(self):
super(GithubDriver, self).__init__()
github_driver = GithubDriver() | 49,698 |
https://github.com/shahrukhkhan489/dr-elephant/blob/master/app/com/linkedin/drelephant/tuning/AutoTuningAPIHelper.java | Github Open Source | Open Source | Apache-2.0, MIT, BSD-3-Clause, GPL-2.0-only | 2,019 | dr-elephant | shahrukhkhan489 | Java | Code | 1,752 | 5,709 | /*
* Copyright 2016 LinkedIn Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 10,995 |
https://github.com/gaborszekely/RickAdvisor---Reviews-Service/blob/master/client/components/tabs/reviews/ReviewLinks/reviewLinks.scss | Github Open Source | Open Source | MIT | 2,019 | RickAdvisor---Reviews-Service | gaborszekely | SCSS | Code | 32 | 132 | @import '../../../css/globals.scss';
.review__links__helpfulVotes {
border-bottom: $lighter-gray-border;
color: $secondary-gray-font;
font-size: 12px;
margin-bottom: 10px;
padding-bottom: 12px;
}
.review__links {
padding: 2px 0;
width: 50%;
> * {
margin-right: 26px;
}
}
.review__links__wrapper... | 2,548 |
https://github.com/koompi/koompi-react/blob/master/koompi/src/components/payments/cash-or-delivery.js | Github Open Source | Open Source | MIT | 2,020 | koompi-react | koompi | JavaScript | Code | 454 | 1,569 | import React, { useState } from "react"
import { Row, Col, Button, Modal, Input, Form, InputNumber, message } from "antd"
import { FiX } from "react-icons/fi"
import { useMutation } from "@apollo/react-hooks"
import Cookies from "js-cookie"
import phoneValidation from "./phoneValidation"
import { CREATE_CUSTOMER } fro... | 26,382 |
https://github.com/pythonitalia/pycon/blob/master/cms/page/signals.py | Github Open Source | Open Source | MIT | 2,023 | pycon | pythonitalia | Python | Code | 151 | 497 | import httpx
import logging
from sites.models import VercelFrontendSettings
logger = logging.getLogger(__name__)
def revalidate_vercel_frontend(sender, **kwargs):
instance = kwargs["instance"]
site = kwargs["instance"].get_site()
site_name = site.site_name
hostname = site.hostname
settings = Ve... | 46,047 |
https://github.com/efinery/MultiBitMerchant/blob/master/mbm/src/main/java/org/multibit/mbm/security/dao/HibernateRoleDao.java | Github Open Source | Open Source | MIT | 2,012 | MultiBitMerchant | efinery | Java | Code | 112 | 399 | package org.multibit.mbm.security.dao;
import org.multibit.mbm.security.dto.Authority;
import org.multibit.mbm.security.dto.Role;
import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.stereotype.Repository;
import javax.annotation.Resource;
import java.util.List;
@Repository("hibern... | 30,128 |
https://github.com/Ledz96/DB_Pr1/blob/master/src/main/scala/ch/epfl/dias/cs422/helpers/Types.scala | Github Open Source | Open Source | MIT | 2,021 | DB_Pr1 | Ledz96 | Scala | Code | 6 | 23 | package ch.epfl.dias.cs422.helpers
object Types {
}
| 33,127 |
https://github.com/LinLu1996/vue/blob/master/src/utils/index.js | Github Open Source | Open Source | MIT | null | vue | LinLu1996 | JavaScript | Code | 476 | 1,351 | import Vue from 'vue'
import router from '@/router'
import store from '@/store'
/**
* 获取uuid
*/
export function getUUID () {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, c => {
return (c === 'x' ? (Math.random() * 16 | 0) : ('r&0x3' | '0x8')).toString(16)
})
}
/**
* 是否有权限
* @param {*} ke... | 16,061 |
https://github.com/wdvxdr1123/wazero/blob/master/tests/spectest/testdata/utf8-invalid-encoding.175.wat | Github Open Source | Open Source | Apache-2.0 | 2,021 | wazero | wdvxdr1123 | null | Spoken | 3 | 10 | (func (export "\ff\fe")) | 5,843 |
https://github.com/shimotsuki204/osuautorecent/blob/master/process.php | Github Open Source | Open Source | Unlicense | 2,013 | osuautorecent | shimotsuki204 | PHP | Code | 193 | 530 | <?php
# this is used for processing user's request before redirecting the user to the application authorization page
require_once('file.php');
require_once('config.php');
function ProcessRequest() {
# get userid and its type out of POST request
$userid = $_POST["userid"];
$usertype = $_POST["usertype"];
# do sani... | 30,680 |
https://github.com/vivian8725118/Moose/blob/master/app/src/main/java/moose/com/ac/retrofit/login/LoginEntry.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | Moose | vivian8725118 | Java | Code | 105 | 321 | package moose.com.ac.retrofit.login;
import java.io.Serializable;
/**
* Created by dell on 2015/8/31.
* {"success":false,"result":"您输入的帐号或密码错误"}
* img: "http://cdn.aixifan.com/dotnet/artemis/u/cms/www/201505/1413200735rj.jpg"
* success: true
* username: "*****"
*/
public class LoginEntry implements Serializable... | 27,501 |
https://github.com/hep-gc/cloud-scheduler-2/blob/master/cli/man/csv2_vm.1 | Github Open Source | Open Source | Apache-2.0 | 2,021 | cloud-scheduler-2 | hep-gc | null | Spoken | 103 | 293 | .so ../man/_header.so
\fBcloudscheduler vm\fR \- manage VMs on cloudscheduler version 2 (csv2) servers
.\" --------------------------------------------------------------------
.SH SYNOPSIS
.\" --------------------------------------------------------------------
.SY cloudscheduler
.B vm
.I action
.I mandatory_parameters... | 12,349 |
https://github.com/marlboroporter/model-serving-tutorial/blob/master/sparkserver/src/main/scala/com/lightbend/modelserving/spark/DataWithModel.scala | Github Open Source | Open Source | Apache-2.0 | 2,019 | model-serving-tutorial | marlboroporter | Scala | Code | 272 | 683 | /*
* Copyright (C) 2017-2019 Lightbend
*
* This file is part of the Lightbend model-serving-tutorial (https://github.com/lightbend/model-serving-tutorial)
*
* The model-serving-tutorial is free software: you can redistribute it and/or modify
* it under the terms of the Apache License Version 2.0.
*
* Unless re... | 14,849 |
https://github.com/ericoporto/ags-old/blob/master/Editor/AGS.Editor/Panes/Room/RoomEditFilters/IRoomEditorFilter.cs | Github Open Source | Open Source | Artistic-2.0 | 2,020 | ags-old | ericoporto | C# | Code | 371 | 849 | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using AGS.Types;
namespace AGS.Editor
{
public interface IRoomEditorFilter : IDisposable
{
/// <summary>
/// Internal ID of the filter.
/// </summary>
string Name... | 32,470 |
https://github.com/percussion/percussioncms/blob/master/system/business/src/com/percussion/rx/publisher/jsf/nodes/PSLogNode.java | Github Open Source | Open Source | LicenseRef-scancode-dco-1.1, Apache-2.0, OFL-1.1, LGPL-2.0-or-later | 2,023 | percussioncms | percussion | Java | Code | 1,293 | 3,304 | /*
* Copyright 1999-2023 Percussion Software, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | 45,694 |
https://github.com/manhdaovan/FBLogin/blob/master/lib/utils.php | Github Open Source | Open Source | MIT | 2,017 | FBLogin | manhdaovan | PHP | Code | 35 | 99 | <?php
class Utils {
static function printMsg($msg, $type = 'INFO', $prefixChar = '>>>') {
echo "$prefixChar $type: $msg\n\n";
}
static function printHelpMsg() {
static::printMsg('Type command: "$php my_fb_feeds.php" to read your feed on terminal.');
}
}
| 1,369 |
https://github.com/hamed-rezaee/flutter-financial-chart/blob/master/lib/src/renderers/behaviors/axes/x_axis/category_x_axis_renderable.dart | Github Open Source | Open Source | Apache-2.0 | 2,021 | flutter-financial-chart | hamed-rezaee | Dart | Code | 310 | 1,041 | import 'dart:ui' as ui;
import 'package:flutter/material.dart';
import 'package:flutter_financial_chart/flutter_financial_chart.dart';
import 'package:flutter_financial_chart/src/chart/position_notifier.dart';
import 'package:flutter_financial_chart/src/models/animation_info.dart';
import 'package:flutter_financial_ch... | 13,305 |
https://github.com/MrTraner/AppLibros/blob/master/AppLibros.sln | Github Open Source | Open Source | MIT | 2,018 | AppLibros | MrTraner | null | Spoken | 89 | 530 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2036
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppLibros", "AppLibros\AppLibros.csproj", "{E906EA66-D35B-4AF2-BEA2-1D6218490CC1}"
EndProject
Global
Glob... | 51,769 |
https://github.com/ZerioM/LEVT-1.0/blob/master/backend/levt/app/Http/Controllers/_MessageController.php | Github Open Source | Open Source | MIT | 2,020 | LEVT-1.0 | ZerioM | PHP | Code | 274 | 1,660 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Support\Facades\DB;
use GuzzleHttp\Exception\GuzzleException;
use GuzzleHttp\Client;
use App\Http\Controllers\Controller;
use App\Models\Message as Message;
class _MessageControlle... | 33,138 |
https://github.com/miiiiinji/cafezzim/blob/master/src/main/webapp/WEB-INF/jsp/pay/order.jsp | Github Open Source | Open Source | MIT | null | cafezzim | miiiiinji | null | Spoken | 1,595 | 7,775 | <%@ page import = "java.util.Date" %>
<%@ page import = "java.text.SimpleDateFormat" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" co... | 34,272 |
https://github.com/cpybus/MoneyManager/blob/master/src/me/chris/MoneyManager/PayGroup.java | Github Open Source | Open Source | MIT | 2,015 | MoneyManager | cpybus | Java | Code | 266 | 796 | /**
*
*/
package me.chris.MoneyManager;
import java.util.ArrayList;
import org.bukkit.entity.Player;
/**
* @author Chris
*
*/
public class PayGroup
{
private String groupName;
private double amount;
private String type;
public ArrayList<String> members;
public PayGroup(String groupName, double amount, S... | 40,403 |
https://github.com/ajonzy/Portfolio/blob/master/src/style/components/navbar.scss | Github Open Source | Open Source | MIT | null | Portfolio | ajonzy | SCSS | Code | 28 | 89 | .navbar-wrapper {
width: 100%;
height: 50px;
display: flex;
align-items: center;
span {
margin: 0px 50px;
}
a {
margin: 0px 25px;
}
.active {
text-decoration: underline;
}
} | 15,689 |
https://github.com/killvxk/eLitex/blob/master/eLitetX/eLitexMain.cpp | Github Open Source | Open Source | MIT | 2,018 | eLitex | killvxk | C++ | Code | 564 | 2,281 |
#include "eLitexMain.h"
#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <cstring>
#include <atlstr.h>
#include <iostream>
#include <fstream>
#include <string>
#include <thread>
using namespace std;
using std::ofstream;
HANDLE handleDst;
HANDLE handleSrc;
UINT16 tar_port;
UINT1... | 45,623 |
https://github.com/prathimode/AdvancePhysicsMotion/blob/master/PhysicsEnginesModel/src/prrathi/commonmodel/Box2DShape/Pair/B2DRevolutePair.java | Github Open Source | Open Source | MIT | null | AdvancePhysicsMotion | prathimode | Java | Code | 108 | 556 | package prrathi.commonmodel.Box2DShape.Pair;
import org.jbox2d.dynamics.joints.Joint;
import org.jbox2d.dynamics.joints.RevoluteJoint;
import org.jbox2d.dynamics.joints.RevoluteJointDef;
import prrathi.commonmodel.Box2DShape.B2DObjectBase;
import prrathi.commonmodel.Box2DShape.B2DPairBase;
import prrathi.commonmodel.B... | 52,026 |
https://github.com/azu/MultipleLineChart/blob/master/MultipleLineChart/GraphView/GraphViewController/LineChartTileView/LineChartTileView.h | Github Open Source | Open Source | MIT | 2,016 | MultipleLineChart | azu | C | Code | 38 | 137 | //
// Created by azu on 2014/03/03.
//
#import <Foundation/Foundation.h>
#import "DARecycledTileView.h"
@class ArsScaleLinear;
@class ToolTipView;
@interface LineChartTileView : DARecycledTileView
@property (nonatomic) NSArray *plotDataArray;
@property (nonatomic, weak) ArsScaleLinear *yScale;
@property (weak, non... | 965 |
https://github.com/marcoscannabrava/free-covid-consultation-calendar/blob/master/src/components/Calendar.js | Github Open Source | Open Source | MIT | 2,020 | free-covid-consultation-calendar | marcoscannabrava | JavaScript | Code | 421 | 1,562 | import React from "react";
import { Calendar, momentLocalizer } from "react-big-calendar";
import moment from "moment";
import withDragAndDrop from "react-big-calendar/lib/addons/dragAndDrop";
import "react-big-calendar/lib/addons/dragAndDrop/styles.css";
import "react-big-calendar/lib/css/react-big-calendar.css";
impo... | 45,375 |
https://github.com/cpdoc/dhbb-nlp/blob/master/udp/822.conllu | Github Open Source | Open Source | CC-BY-4.0 | 2,021 | dhbb-nlp | cpdoc | null | Spoken | 20,000 | 37,537 | # text = «Wenceslau Brás Pereira Gomes» nasceu em São Caetano da Vargem Grande, hoje Brasópolis (MG), no dia 26 de fevereiro de 1868, filho do coronel Francisco Brás Pereira Gomes — deputado à Assembléia da província de Minas Gerais durante muitos anos — e de Isabel Pereira dos Santos. # sent_id = 1 # newpar # newdoc i... | 52,254 |
https://github.com/john-src/pet-shop/blob/master/contracts/Adoption.sol | Github Open Source | Open Source | MIT | null | pet-shop | john-src | Solidity | Code | 76 | 227 | pragma solidity ^0.4.17;
contract Adoption {
address[16] public adopters;
mapping(address => uint) public balances;
event PaymentSuccess(bool result);
modifier isValidPetId(uint petId) {
require(petId >= 0 && petId <= 15);
_;
}
modifier isPayment {
require(msg.data.length == 0);
_;
}
... | 9,487 |
https://github.com/daumann/ghost/blob/master/core/client/routes/settings/users/user.js | Github Open Source | Open Source | MIT | 2,017 | ghost | daumann | JavaScript | Code | 46 | 143 | var SettingsUserRoute = Ember.Route.extend({
model: function () {
return this.session.get('user').then(function (user) {
user.reload();
return user;
});
},
deactivate: function () {
this._super();
// we want to revert any unsaved changes on exit
... | 41,418 |
https://github.com/cuoong/SplitTweet/blob/master/TikAssignment/Features/TweetSplitMessage/Scenes/Tweet/TweetViewController.swift | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,019 | SplitTweet | cuoong | Swift | Code | 157 | 494 | //
// ViewController.swift
// TikAssignment
//
// Created by Cuong Nguyen on 10/5/19.
// Copyright © 2019 Cuong Nguyen. All rights reserved.
//
import UIKit
class TweetViewController: UIViewController {
lazy var messageTweet = String()
lazy var tweets = [String]()
var tweetSplit: TweetSplit?
... | 15,952 |
https://github.com/mycreatz/mycreatz.github.io/blob/master/RayPhysics/html/search/variables_f.js | Github Open Source | Open Source | MIT | null | mycreatz.github.io | mycreatz | JavaScript | Code | 9 | 371 | var searchData=
[
['radius_0',['Radius',['../class_creatz_1_1_ray_physics_1_1_preset_ball.html#ab26d2bf26caf9199c68a756b79eb1524',1,'Creatz::RayPhysics::PresetBall']]],
['ratiovolumeperimpuse_1',['RatioVolumePerImpuse',['../class_creatz_1_1_ray_physics_1_1_preset_ball.html#aed26eee13b7d07cbe54fdbe7128f26fb',1,'Crea... | 51,066 |
https://github.com/Irisfee/roistats/blob/master/R/data-color_index_two_sample.R | Github Open Source | Open Source | MIT | 2,021 | roistats | Irisfee | R | Code | 127 | 251 | #' Color effect data for each group
#'
#' The pre-processed data for identifying which brain regions is sensitive to the color memory of learned objects.
#'
#' @format A tibble with 464 rows and 4 variables with one group attribute:
#' \describe{
#' \item{subj_id}{Subjuct identity number}
#' \item{roi_id}{Brain sub-reg... | 44,759 |
https://github.com/cirope/libreunir/blob/master/test/models/branches_user_test.rb | Github Open Source | Open Source | MIT | 2,014 | libreunir | cirope | Ruby | Code | 82 | 392 | require 'test_helper'
class BranchesUserTest < ActiveSupport::TestCase
def setup
@branches_user = Fabricate(:branches_user)
end
test 'create' do
assert_difference 'BranchesUser.count' do
@branches_user = BranchesUser.create(Fabricate.attributes_for(:branches_user))
end
end
test 'upda... | 33,696 |
https://github.com/max-vogler/conways-game-of-life/blob/master/src/main/java/de/maxvogler/life/grid/Grid.java | Github Open Source | Open Source | MIT | 2,016 | conways-game-of-life | max-vogler | Java | Code | 841 | 1,963 | package de.maxvogler.life.grid;
import de.maxvogler.life.util.Parallelize;
import de.maxvogler.life.util.function.IndexedConsumer;
import de.maxvogler.life.util.function.IndexedFunction;
import org.uncommons.maths.binary.BitString;
import java.util.Random;
import static de.maxvogler.life.grid.Cell.ALIVE;
import stat... | 40,475 |
https://github.com/H4M5TER/koishi/blob/master/plugins/common/respondent/src/index.ts | Github Open Source | Open Source | MIT | 2,022 | koishi | H4M5TER | TypeScript | Code | 93 | 187 | import { Context } from 'koishi'
export interface Rule {
match: string | RegExp
reply: string | ((...capture: string[]) => string)
}
export interface Config {
rules?: Rule[]
}
export const name = 'respondent'
export function apply(ctx: Context, { rules = [] }: Config) {
ctx.middleware((session, next) => {
... | 48,742 |
https://github.com/misskabu/account_book/blob/master/app/Http/Controllers/System/SystemManageController.php | Github Open Source | Open Source | MIT | 2,019 | account_book | misskabu | PHP | Code | 207 | 1,107 | <?php
namespace App\Http\Controllers\System;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use App\Models\CategoryBalance;
use App\Models\CategoryLarge;
use App\Models\CategoryMiddle;
use App\Models\CategorySmall;
use Illuminate\Support\Facades\Config;
use App\... | 36,024 |
https://github.com/asrani27/pengujian/blob/master/resources/views/login.blade.php | Github Open Source | Open Source | MIT | null | pengujian | asrani27 | PHP | Code | 137 | 802 | <!doctype html>
<html lang="en">
<head>
<title>Login Aplikasi Pengujian</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="https://fonts.googleapis.com/css?family=Lato:300,400,700&display=swap" rel="stylesheet">
<link rel="st... | 11,978 |
https://github.com/StepicOrg/stepik-android/blob/master/app/src/main/java/org/stepik/android/remote/catalog/service/CatalogService.kt | Github Open Source | Open Source | Apache-2.0 | 2,023 | stepik-android | StepicOrg | Kotlin | Code | 21 | 117 | package org.stepik.android.remote.catalog.service
import io.reactivex.Maybe
import org.stepik.android.remote.catalog.model.CatalogBlockResponse
import retrofit2.http.GET
import retrofit2.http.QueryMap
interface CatalogService {
@GET("api/catalog-blocks?platform=mobile,android")
fun getCatalogBlocks(@QueryMap ... | 42,040 |
https://github.com/1226085293/cc-structure/blob/master/assets/mvc/base/mvc_controller_base.ts | Github Open Source | Open Source | MIT | 2,022 | cc-structure | 1226085293 | TypeScript | Code | 75 | 286 | import mvc_model_base from "./mvc_model_base";
class mvc_controller_base<MT extends mvc_model_base<any>> {
constructor(init_?: mvc_controller_base.init<MT>) {
this.init(init_);
}
/* ***************public*************** */
public data: MT;
/* -------------------------------segmentation------... | 28,092 |
https://github.com/zeddic/lancer/blob/master/server/src/game/gameplay_system.ts | Github Open Source | Open Source | MIT | 2,022 | lancer | zeddic | TypeScript | Code | 291 | 1,004 | import {System, Entity} from 'ecsy';
import {
GameState,
GameStage,
CountDown,
Player,
PlayerRole,
randomInt,
Collides,
} from 'lancer-shared';
/**
* Implements the overall gameplay logic.
*/
export class GameplaySystem extends System {
static queries = {
gameState: {components: [GameState]},
... | 46,898 |
https://github.com/Murgalha/strlib/blob/master/Makefile | Github Open Source | Open Source | Unlicense | 2,021 | strlib | Murgalha | Makefile | Code | 31 | 96 | all: compile shared
compile:
gcc -c -fpic -Wall -Werror src/strlib.c -Iinclude
shared:
gcc -shared -o libstr.so strlib.o
cp:
mv -f libstr.so /usr/lib/
cp include/* /usr/include/
clear:
rm *.o
install: cp clear
| 286 |
https://github.com/SchwartzNU/DataAcquisition/blob/master/Stage/Externals/MOGL/wrap/glIndexfv.m | Github Open Source | Open Source | MIT | 2,016 | DataAcquisition | SchwartzNU | MATLAB | Code | 46 | 112 | function glIndexfv( c )
% glIndexfv Interface to OpenGL function glIndexfv
%
% usage: glIndexfv( c )
%
% C function: void glIndexfv(const GLfloat* c)
% 25-Mar-2011 -- created (generated automatically from header files)
if nargin~=1,
error('invalid number of arguments');
end
moglcore( 'glIndexfv', single(c) )... | 8,150 |
https://github.com/nanirama/ecrloss/blob/master/src/templates/QuestionTemplate.js | Github Open Source | Open Source | RSA-MD | null | ecrloss | nanirama | JavaScript | Code | 178 | 445 | import React from 'react';
import PropTypes from 'prop-types';
import { graphql } from 'gatsby';
import Layout from '../components/Layout';
import Seo from '../components/Seo';
import { QuestionTemplate as QuestionView } from '../components/FAQ';
const QuestionTemplate = ({ data, pageContext, location }) => {
const... | 29,673 |
https://github.com/dwp/gysp-agent-ui/blob/master/test/unit/lib/helpers/errorHelper.test.js | Github Open Source | Open Source | MIT | null | gysp-agent-ui | dwp | JavaScript | Code | 138 | 351 | const { assert } = require('chai');
const httpStatus = require('http-status-codes');
const i18next = require('i18next');
const i18nextFsBackend = require('i18next-fs-backend');
const i18nextConfig = require('../../../../config/i18next');
const helper = require('../../../../lib/helpers/errorHelper');
describe('erro... | 16,325 |
https://github.com/eclee25/flu-SDI-exploratory-age/blob/master/scripts/R/Agegrp_ILI_Wk_charts.R | Github Open Source | Open Source | MIT | 2,017 | flu-SDI-exploratory-age | eclee25 | R | Code | 281 | 2,050 | ##############################################
###R template
###Author: Elizabeth Lee
###Date: 9/21/12
###Function: clean and cast data to look at information by age group by year for the symptoms of interest. draw bar plots of information.
###Import data: Agegrp_ILI_Wk.csv (9/20/12: 4:16:36 PM EDT)
###Outputs: Any_ct... | 36,372 |
https://github.com/ScalablyTyped/ScalajsReactTyped/blob/master/m/moxy__next-router-scroll/src/main/scala/typingsJapgolly/moxyNextRouterScroll/scrollBehaviorMod.scala | Github Open Source | Open Source | MIT | 2,022 | ScalajsReactTyped | ScalablyTyped | Scala | Code | 175 | 679 | package typingsJapgolly.moxyNextRouterScroll
import org.scalajs.dom.HTMLElement
import typingsJapgolly.history.mod.Location
import typingsJapgolly.moxyNextRouterScroll.anon.AsPath
import typingsJapgolly.scrollBehavior.mod.LocationBase
import typingsJapgolly.scrollBehavior.mod.ScrollPosition
import typingsJapgolly.scro... | 47,497 |
https://github.com/akondasif/grivet/blob/master/core/deployables/admin/src/main/java/com/fns/grivet/service/ClassRegistryService.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | grivet | akondasif | Java | Code | 517 | 1,743 | /*
* Copyright 2015 - Chris Phillipson
*
* 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 agree... | 53,323 |
https://github.com/ScrewTheTrees/ShitpostCoop/blob/master/node_modules/typescript-to-lua/dist/LuaPrinter.d.ts | Github Open Source | Open Source | MIT | 2,019 | ShitpostCoop | ScrewTheTrees | TypeScript | Code | 214 | 989 | import { SourceNode } from "source-map";
import * as tstl from "./LuaAST";
import { CompilerOptions } from "./CompilerOptions";
import { LuaLibFeature } from "./LuaLib";
declare type SourceChunk = string | SourceNode;
export declare class LuaPrinter {
private static operatorMap;
private options;
private cur... | 41,281 |
https://github.com/nilsmangold/wad-presentation/blob/master/node_modules/svelte-highlight/types/src/languages/rust.d.ts | Github Open Source | Open Source | MIT | 2,021 | wad-presentation | nilsmangold | TypeScript | Code | 8 | 11 | export { rust as default } from "./";
| 46,675 |
https://github.com/widgeticdev/labs/blob/master/vr-video/src/App.js | Github Open Source | Open Source | MIT | 2,018 | labs | widgeticdev | JavaScript | Code | 756 | 2,966 | import dat from 'dat-gui'
import Stats from 'stats-js'
import THREE from 'three'
const DeviceOrientationControls = require('./utils/DeviceOrientation')(THREE);
const OrbitControls = require('three-orbit-controls')(THREE);
const glslify = require('glslify');
require('./post-processing/Effe... | 32,935 |
https://github.com/lasselukkari/AirMonitor/blob/master/src/transform.js | Github Open Source | Open Source | MIT | 2,021 | AirMonitor | lasselukkari | JavaScript | Code | 111 | 304 | const dataView = ({ buffer }) => new DataView(buffer);
const getFloat = f => dataView(f).getFloat32(0);
const getInt = i => dataView(i).getInt32(0);
const chunk = (a, s) => Array.from({ length: Math.ceil(a.length / s) }, (_, i) => a.slice(i * s, i * s + s));
const parse = l => ([getInt(l[4]), getInt(l[3]), getFloat(l[2... | 7,212 |
https://github.com/Eli-Delgado/hotels-booking/blob/master/app/controllers/Application.scala | Github Open Source | Open Source | Apache-2.0 | 2,021 | hotels-booking | Eli-Delgado | Scala | Code | 1,335 | 4,071 | package controllers
import play.api._
import play.api.mvc._
import play.api.cache.Cache
import play.api.Play.current
import play.api.db._
import scala.collection.mutable.ArrayBuffer
object Application extends Controller {
///////////////////// VIEWS
def index = Action {
Ok(views.html.index(null))
}
def ... | 30,732 |
https://github.com/sujitkumar14/livepeerjs/blob/master/packages/graphql-sdk/src/types/Query.js | Github Open Source | Open Source | MIT | 2,019 | livepeerjs | sujitkumar14 | JavaScript | Code | 220 | 573 | import Account from './Account'
import Block from './Block'
import Broadcaster from './Broadcaster'
import Delegator from './Delegator'
import Job from './Job'
import Round from './Round'
import Transaction from './Transaction'
import Transcoder from './Transcoder'
import Protocol from './Protocol'
const Query = `
"C... | 16,695 |
https://github.com/xudongyi/jeecg-boot-new/blob/master/jeecg-boot/jeecg-boot-module-airq/src/main/java/org/jeecg/modules/business/vo/AirqHourQualityVo.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | jeecg-boot-new | xudongyi | Java | Code | 143 | 947 | package org.jeecg.modules.business.vo;
import lombok.Data;
import org.jeecg.modules.business.annotation.ExcelSelf;
@Data
public class AirqHourQualityVo extends AirHourInfo{
/**
* SO2 二氧化硫 分指数
*/
@ExcelSelf(name = "分指数",orderNum = 9,father = {"污染物浓度及空气质量分指数(IAQI)","二氧化硫(SO2)1小时平均"})
Double a21026... | 48,349 |
https://github.com/JViktoRArtola/build_ffmpeg.js/blob/master/worker.js | Github Open Source | Open Source | MIT | 2,019 | build_ffmpeg.js | JViktoRArtola | JavaScript | Code | 93 | 456 |
self.importScripts('ffmpeg.js');
onmessage = function(e) {
console.log('ffmpeg_run', ffmpeg_run);
var files = e.data;
var retrun ;
console.log(files);
ffmpeg_run({
// arguments: ['-i', 'https://gw.alicdn.com/bao/uploaded/LB1l2iXISzqK1RjSZFjXXblCFXa.mp4?file=LB1l2iXISzqK1RjSZFjXXblCFXa.mp4', '-b:v', '6... | 53,605 |
https://github.com/fabianfrz/yara-java/blob/master/src/main/java/com/github/plusvic/yara/Preconditions.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | yara-java | fabianfrz | Java | Code | 35 | 88 | package com.github.plusvic.yara;
public class Preconditions {
public static void checkArgument(boolean value) {
if (!value) {
throw new IllegalArgumentException();
}
}
public static void checkState(boolean value) {
if (!value) {
throw new IllegalStateExcepti... | 41,472 |
https://github.com/petrklus/django-cms/blob/master/cms/tests/frontend/integration/pageControl.js | Github Open Source | Open Source | BSD-3-Clause | 2,018 | django-cms | petrklus | JavaScript | Code | 1,281 | 4,285 | 'use strict';
// #############################################################################
// Page control
var casperjs = require('casper');
var helpers = require('djangocms-casper-helpers');
var randomString = helpers.randomString;
var globals = helpers.settings;
var cms = helpers(casperjs);
var xPath = casperjs... | 13,412 |
https://github.com/ewino/dart-metrics/blob/master/lib/src/cached_gauge.dart | Github Open Source | Open Source | Apache-2.0 | null | dart-metrics | ewino | Dart | Code | 196 | 401 | // Copyright (c) 2014, Alexandre Ardhuin
//
// 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... | 28,105 |
https://github.com/droplet92/reversi/blob/master/src/players/AIPlayer.cpp | Github Open Source | Open Source | MIT | null | reversi | droplet92 | C++ | Code | 123 | 515 | #include "AIPlayer.h"
#include "../components/board/GameBoard.h"
using namespace reversi;
const std::string AIPlayer::LOADING_IMAGE = "loading";
const sf::Vector2f AIPlayer::BLACK_LOADING_POS{ 70.f,812.5f };
const sf::Vector2f AIPlayer::WHITE_LOADING_POS{ 640.f,812.5f };
const sf::IntRect AIPlayer::LOADING_SIZE{ 0,0,7... | 9,267 |
https://github.com/javipuche/vue-boilerplate/blob/master/src/assets/js/utils/visibilityOnScroll.js | Github Open Source | Open Source | MIT | null | vue-boilerplate | javipuche | JavaScript | Code | 103 | 346 | import requestAnimationFrame from '../utils/requestAnimationFrame'
import isElementOnViewPort from '../utils/isElementOnViewport'
const locators = {
trigger: '.js-visibility-toggle',
state: {
visible: 'is-visible',
hidden: 'is-hidden'
}
}
const toggleVisibility = (el, shouldBeHidden, curre... | 34,564 |
https://github.com/sola-da/LambdaTester/blob/master/experiments/find/findGen/test799.js | Github Open Source | Open Source | MIT | 2,019 | LambdaTester | sola-da | JavaScript | Code | 196 | 896 |
var callbackArguments = [];
var argument1 = function callback(a,b,c) {
callbackArguments.push(JSON.stringify(arguments))
argument3['!j'] = ["%=,",25,"{o,lT","%fB","*"]
base_0[6][4] = ""
argument2['b'] = "Ot-o"
return a/b*c
};
var argument2 = true;
var argument3 = function callback(a,b,c) {
callbackArguments.pus... | 14,200 |
https://github.com/astdb/Misc/blob/master/DisappearedNumbers.go | Github Open Source | Open Source | MIT | null | Misc | astdb | Go | Code | 177 | 438 | /*
Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once.
Find all the elements of [1, n] inclusive that do not appear in this array.
Could you do it without extra space and in O(n) runtime? You may assume the returned list does not count as extra space.
... | 44,714 |
https://github.com/SkillsFundingAgency/tl-results-and-certification-automation-suite/blob/master/src/Sfa.Tl.ResultsAndCertificationAutomation/Tests/StepDefinations/PostalAddress/_3214_ManagePostalAddressExistsSteps.cs | Github Open Source | Open Source | MIT | null | tl-results-and-certification-automation-suite | SkillsFundingAgency | C# | Code | 33 | 151 | using Sfa.Tl.ResultsAndCertificationAutomation.Data;
using TechTalk.SpecFlow;
namespace Sfa.Tl.ResultsAndCertificationAutomation.Tests.StepDefinations.PostalAddress
{
[Binding]
public class _3214_ManagePostalAddressExistsSteps
{
[Given(@"I deleted the exisintg address and created a new address in ... | 42,803 |
https://github.com/qiangao1/qiangao1.github.io/blob/master/resources/common/nls/fr/core.js | Github Open Source | Open Source | Apache-2.0 | null | qiangao1.github.io | qiangao1 | JavaScript | Code | 591 | 1,772 | define(
({
commonCore: {
common: {
add: "Ajouter",
edit: "Modifier",
save: "Enregistrer",
next: "Suivant",
cancel: "Annuler",
back: "Retour",
apply: "Appliquer",
close: "Fermer",
open: "Ouvrir",
start: "Démarrer",
loading: "Chargement en cours",
disabledAdmin: "Ce... | 11,289 |
https://github.com/QlowB/TurtlePP/blob/master/src/turtlepp/datatypes/Variable.java | Github Open Source | Open Source | Zlib | 2,021 | TurtlePP | QlowB | Java | Code | 768 | 1,671 | package turtlepp.datatypes;
import turtlepp.Language;
/**
* represents a variable created while running the program
*
* @author Nicolas Winkler
*/
public abstract class Variable {
/**
* the variable's name
*/
protected String name;
/**
* initializes the variable
*/
protected Variable(String name) {... | 41,327 |
https://github.com/Akhrameev/LinkingProverbs/blob/master/LinkedProverbs/Model/DAO.m | Github Open Source | Open Source | MIT | 2,014 | LinkingProverbs | Akhrameev | Objective-C | Code | 625 | 2,118 | //
// DAO.m
// LinkedProverbs
//
// Created by Pavel Akhrameev on 31.01.14.
// Copyright (c) 2014 Pavel Akhrameev. All rights reserved.
//
#import "DAO.h"
#import "Proverb.h"
@implementation DAO {
NSArray *cachedProverbs;
NSDictionary *cachedProverbsRequestProperties;
}
- (instancetype) init {
if (se... | 47,183 |
https://github.com/MiroslavJag/PrviRepo/blob/master/CApp1/CApp1/Program.cs | Github Open Source | Open Source | MIT | null | PrviRepo | MiroslavJag | C# | Code | 141 | 581 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CApp1
{
class Program
{
static void Main(string[] args)
{
int brojPjesama = Funkcije.UnosInt("Koliko pjesama se nalazi na Cd-u?");
string[] nizP... | 5,321 |
https://github.com/AaronNGray/GenomeWorkbench/blob/master/src/objtools/blast/seqdb_writer/unit_test/data/redundant_deflines.asn | Github Open Source | Open Source | LicenseRef-scancode-public-domain | 2,020 | GenomeWorkbench | AaronNGray | null | Spoken | 20,000 | 41,530 | Blast-def-line-set ::= { { title "MULTISPECIES: histidinol-phosphate transaminase [Pseudomonas]", seqid { other { accession "WP_003091445", version 1 } }, taxid 286, memberships { 4 }, links { 287, 43306, 2502205 }, other-info { 21296064 } }, { title "aspartate aminotransferase [Pseudomonas aeruginosa]", seqid { genban... | 12,169 |
https://github.com/lixiawss/tt-54/blob/master/tomtopwebsite/modules/base/test/testSendMail/TestSendMail.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | tt-54 | lixiawss | Java | Code | 197 | 798 | package testSendMail;
import java.util.Properties;
import javax.mail.Message;
import javax.mail.PasswordAuthentication;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
public class TestSendMail {
public static void ... | 8,239 |
https://github.com/MayD524/Todo-Hunter/blob/master/src/main.cpp | Github Open Source | Open Source | MIT | null | Todo-Hunter | MayD524 | C++ | Code | 650 | 2,101 | #include "tabulate.hpp"
#include "argparse.hpp"
#include <filesystem>
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <thread>
#include <chrono>
using namespace std;
using namespace tabulate;
using Row_t = Table::Row_t;
#ifdef _WIN32
// clear console
#define clear() system("cls")... | 11,473 |
https://github.com/abcd19/st-grid/blob/master/src/__test__/common.test.ts | Github Open Source | Open Source | MIT | null | st-grid | abcd19 | TypeScript | Code | 107 | 561 | //общие функции
import {isUndefined, isString, isBoolean, isFunction, isArray, isEqual, isObject, isNumber, defaults, has, clone} from '../common'
describe('isUndefined', () => {
it('isUndefined(undefined)', () => {
expect(isUndefined(undefined)).toBe(true);
})
it('isUndefined({})', () => {
expect(isU... | 50,147 |
https://github.com/Shamanon/SteamKandy/blob/master/Arduino/v0_3/v0_3.ino | Github Open Source | Open Source | MIT | 2,016 | SteamKandy | Shamanon | null | Spoken | 351 | 1,202 | /*
* Teensy SteamKandy USB MIDI controller
* software v0.3
* Joshua Beseatte
*/
// potentiometers
int pots[4];
//Mux control pins
int s0 = 0;
int s1 = 1;
int s2 = 2;
int s3 = 3;
int controlPin[] = {s0, s1, s2, s3};
//Mux in "SIG" pin
int SIG_pin = 4;
//pin states for on/off
int pinState[16];
int pinStateHold... | 52,798 |
https://github.com/DeveloperRakib/advecom/blob/master/resources/views/user/home.blade.php | Github Open Source | Open Source | MIT | 2,021 | advecom | DeveloperRakib | Blade | Code | 153 | 841 | @extends('layouts.fontendApp')
@section('content')
<div class="breadcrumb">
<div class="container">
<div class="breadcrumb-inner">
<ul class="list-inline list-unstyled">
<li><a href="home.html">Home</a></li>
<li class='active'>Login</li>
</ul>
</div>
<!-- /.breadcrumb-inner -->
</div>
<!-- /.co... | 19,811 |
https://github.com/SavvyWombat/color-php/blob/master/tests/HexTest.php | Github Open Source | Open Source | MIT | null | color-php | SavvyWombat | PHP | Code | 465 | 2,003 | <?php
declare(strict_types=1);
namespace SavvyWombat\Color\Test;
use PHPUnit\Framework\TestCase;
use SavvyWombat\Color\Exception;
use SavvyWombat\Color\Hex;
use SavvyWombat\Color\Rgb;
class HexTest extends TestCase
{
/**
* @test
* @dataProvider valid_hex_strings
*/
public function creates_a_h... | 4,840 |
https://github.com/apocas/one/blob/master/include/Log.h | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,015 | one | apocas | C++ | Code | 723 | 1,782 | /* -------------------------------------------------------------------------- */
/* Copyright 2002-2015, OpenNebula Project, OpenNebula Systems */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); you may ... | 23,750 |
https://github.com/edawson/parliament2/blob/master/resources/usr/lib/root/cmake/ROOTConfig-targets-release.cmake | Github Open Source | Open Source | Apache-2.0 | null | parliament2 | edawson | CMake | Code | 3,711 | 24,384 | #----------------------------------------------------------------
# Generated CMake target import file for configuration "Release".
#----------------------------------------------------------------
# Commands may need to know the format version.
set(CMAKE_IMPORT_FILE_VERSION 1)
# Import target "ROOT::vectorDict" for ... | 32,999 |
https://github.com/david1005/FelipeBarbearia/blob/master/target/barbearia-1.0.0/WEB-INF/jsp/adm/verServico.jsp | Github Open Source | Open Source | MIT | null | FelipeBarbearia | david1005 | null | Spoken | 84 | 386 | <%--
Document : verServico
Created on : 16 de jun de 2020, 22:31:14
Author : Davi-Dario
--%>
<div>
<%@include file="header.jsp" %>
</div>
<section class="services-section ftco-section " align="center">
<div class="container">
<div class="ui column grid">
<table class="ui... | 42,552 |
https://github.com/Polidea/PLXImageManager/blob/master/Pod/Classes/UIImageView+PLXImageManager.m | Github Open Source | Open Source | BSD-3-Clause | 2,016 | PLXImageManager | Polidea | Objective-C | Code | 151 | 670 | //
// UIImageView+UIImageView_PLXImageManager.m
// Pods
//
// Created by Antoni Kedracki on 18/01/16.
//
//
#import "UIImageView+PLXImageManager.h"
#import "PLXImageManager.h"
#import <objc/runtime.h>
#import "NSObject+PLXImageManagerTokenStorage.h"
@implementation UIImageView (PLXImageManager)
static char *cons... | 45,582 |
https://github.com/lechium/tvOS10Headers/blob/master/System/Library/Frameworks/UIKit.framework/UIHandleLocalNotificationAction.h | Github Open Source | Open Source | MIT | 2,018 | tvOS10Headers | lechium | C | Code | 127 | 539 | /*
* This header is generated by classdump-dyld 1.0
* on Wednesday, March 22, 2017 at 9:02:22 AM Mountain Standard Time
* Operating System: Version 10.1 (Build 14U593)
* Image Source: /System/Library/Frameworks/UIKit.framework/UIKit
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos.
*/
#... | 41,044 |
https://github.com/hostmiza/alexusMailer-2/blob/master/class/Macro.php | Github Open Source | Open Source | Apache-2.0 | 2,019 | alexusMailer-2 | hostmiza | PHP | Code | 468 | 2,756 | <?php
class Macro {
public static function All($target, $email) {
$target=Macro::Fields($target, $email);
$target=Macro::Additional($target, $email->additional);
$target=Macro::FileRandMultiline($target);
$target=Macro::File($target, $email->enumer);
$target=Macro::Url($target, $email->enumer);
$target=... | 47,213 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.