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/trucnguyenlam/mucke/blob/master/ex/rubik2.mu | Github Open Source | Open Source | BSD-4-Clause-UC | null | mucke | trucnguyenlam | null | Spoken | 197 | 680 | /* This version works!
*
* xy = (2 1 3 4) yx = (2 4 3 1)
* xz = (2 0 3 5) zx = (2 5 3 0)
* yz = (1 0 4 5) zy = (1 5 4 0)
*
*/
enum P { 0 .. 5 };
bool xy(P s[6], P t[6])
s[2]=t[1] & s[1]=t[3] & s[3]=t[4] & s[4]=t[2] & s[0]=t[0] & s[5]=t[5];
bool yx(P s[6], P t[6])
s[1]=t[2] & s[3]=t[1] & s[4]=t[3] & ... | 10,616 |
https://github.com/leandroBorgesFerreira/arrow/blob/master/modules/core/arrow-instances-free/src/main/kotlin/arrow/free/instances/cofree.kt | Github Open Source | Open Source | Apache-2.0 | null | arrow | leandroBorgesFerreira | Kotlin | Code | 105 | 468 | package arrow.free.instances
import arrow.Kind
import arrow.deprecation.ExtensionsDSLDeprecated
import arrow.free.Cofree
import arrow.free.CofreeOf
import arrow.free.CofreePartialOf
import arrow.free.fix
import arrow.extension
import arrow.typeclasses.Comonad
import arrow.typeclasses.Functor
@extension
interface Cofr... | 45,847 |
https://github.com/DanielBednorz/webtester-core/blob/master/webtester-support-firefox/src/main/java/info/novatec/testit/webtester/browser/factories/FirefoxFactory.java | Github Open Source | Open Source | Apache-2.0 | null | webtester-core | DanielBednorz | Java | Code | 320 | 926 | package info.novatec.testit.webtester.browser.factories;
import org.openqa.selenium.Proxy;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxBinary;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxProfile;
import org.openqa.selenium.remote.Capab... | 40,303 |
https://github.com/anonl/luajpp2/blob/master/luajpp2-core/src/main/java/nl/weeaboo/lua2/luajava/CoerceJavaToLua.java | Github Open Source | Open Source | MIT | 2,021 | luajpp2 | anonl | Java | Code | 264 | 650 | package nl.weeaboo.lua2.luajava;
import static nl.weeaboo.lua2.vm.LuaNil.NIL;
import javax.annotation.Nullable;
import nl.weeaboo.lua2.vm.LuaTable;
import nl.weeaboo.lua2.vm.LuaValue;
import nl.weeaboo.lua2.vm.Varargs;
/**
* Converts Java objects to their equivalent Lua objects.
*/
public final class CoerceJavaTo... | 10,250 |
https://github.com/fuse-open/uno/blob/master/lib/UnoCore/android/Uno/Base/Bootstrapper.uno | Github Open Source | Open Source | MIT | 2,023 | uno | fuse-open | null | Spoken | 24 | 101 | using Uno;
using Uno.Compiler.ExportTargetInterop;
namespace Android
{
[TargetSpecificImplementation]
[Require("Source.Include","BootstrapperImpl_Android.h")]
extern(ANDROID)
internal static class Bootstrapper
{
public static void _RegisterTypes()
@{
::BootstrapperImpl()... | 50,719 |
https://github.com/JinchunWei/logging-js/blob/master/lib/json.test.js | Github Open Source | Open Source | MIT | 2,021 | logging-js | JinchunWei | JavaScript | Code | 144 | 530 | // noinspection JSUnusedLocalSymbols
// eslint-disable-next-line no-unused-vars
const pino = require("pino");
const { streamSym } = require("pino/lib/symbols.js");
const { getLogger } = require("./json.js");
jest.useFakeTimers("modern");
test.each([
["trace", "1982-05-10T12:59:55.123Z", "1st", { a: "b" }, "hello"],... | 15,142 |
https://github.com/Zadigo/mycommerce/blob/master/shop/migrations/0001_initial.py | Github Open Source | Open Source | MIT | null | mycommerce | Zadigo | Python | Code | 305 | 1,717 | # Generated by Django 4.0.1 on 2022-04-18 12:07
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import shop.utils
import shop.validators
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(... | 51,645 |
https://github.com/lol768/tabula/blob/master/common/src/test/scala/uk/ac/warwick/tabula/services/permissions/RoleServiceTest.scala | Github Open Source | Open Source | ISC | null | tabula | lol768 | Scala | Code | 626 | 2,899 | package uk.ac.warwick.tabula.services.permissions
import scala.collection.JavaConverters._
import org.mockito.Matchers._
import org.mockito.Mockito._
import uk.ac.warwick.tabula.Fixtures
import uk.ac.warwick.tabula.Mockito
import uk.ac.warwick.tabula.TestBase
import uk.ac.warwick.tabula.permissions.PermissionsTarget
i... | 24,321 |
https://github.com/sw1115/climate-watch/blob/master/db/migrate/20181205152900_create_emission_subcategories.rb | Github Open Source | Open Source | MIT | 2,021 | climate-watch | sw1115 | Ruby | Code | 33 | 144 | class CreateEmissionSubcategories < ActiveRecord::Migration[5.2]
def change
create_table :agriculture_profile_emission_subcategories do |t|
t.string :name
t.string :short_name
t.string :indicator_name
t.timestamps
t.references :emission_category,
index: true,
... | 18,994 |
https://github.com/trembel/ambiq-apollo3p-pac/blob/master/src/pwrctrl/misc.rs | Github Open Source | Open Source | Apache-2.0, MIT | null | ambiq-apollo3p-pac | trembel | Rust | Code | 684 | 1,687 | #[doc = "Reader of register MISC"]
pub type R = crate::R<u32, super::MISC>;
#[doc = "Writer for register MISC"]
pub type W = crate::W<u32, super::MISC>;
#[doc = "Register MISC `reset()`'s with value 0"]
impl crate::ResetValue for super::MISC {
type Type = u32;
#[inline(always)]
fn reset_value() -> Self::Typ... | 46,813 |
https://github.com/me-and/empire-coin-tubes/blob/master/tube2.scad | Github Open Source | Open Source | CC-BY-4.0 | null | empire-coin-tubes | me-and | null | Spoken | 77 | 294 | coin_diameter = 10;
coin_depth = 1;
number_of_coins = 20;
coin_diameter_space = 0.5;
coin_depth_space = 0.05;
wall_width = 1;
floor_depth = 1;
slot_height = coin_depth + coin_depth_space * 2;
tube_inner_height = coin_depth * number_of_coins + coin_depth_space * (number_of_coins - 1) + slot_height;
tube_inner_diamet... | 56,894 |
https://github.com/ycaron/swagger-play/blob/master/build.sbt | Github Open Source | Open Source | Apache-2.0 | 2,021 | swagger-play | ycaron | Scala | Code | 373 | 1,689 | ThisBuild / organization := "com.github.dwickern"
lazy val play27 = ConfigAxis("play27", "play2.7")
lazy val play28 = ConfigAxis("play28", "play2.8")
lazy val scala212 = "2.12.13"
lazy val scala213 = "2.13.4"
lazy val root = (project in file("."))
.aggregate(swagger.projectRefs: _*)
.settings(
// for Intelli... | 31,841 |
https://github.com/hmrc/essttp-backend/blob/master/cor-journey/src/main/scala/essttp/journey/model/JourneyId.scala | Github Open Source | Open Source | Apache-2.0 | null | essttp-backend | hmrc | Scala | Code | 146 | 312 | /*
* Copyright 2022 HM Revenue & Customs
*
* 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 a... | 36,599 |
https://github.com/eeryinkblot/psmoveapi/blob/master/src/psmove_sockets.h | Github Open Source | Open Source | BSD-2-Clause | 2,022 | psmoveapi | eeryinkblot | C | Code | 322 | 615 | #pragma once
/**
* PS Move API - An interface for the PS Move Motion Controller
* Copyright (c) 2016 Thomas Perl <m@thp.io>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redis... | 55,206 |
https://github.com/HoudiniGraphql/houdini/blob/master/src/runtime/cache/lists.ts | Github Open Source | Open Source | MIT | 2,022 | houdini | HoudiniGraphql | TypeScript | Code | 1,624 | 4,475 | // local imports
import { SubscriptionSelection, ListWhen, SubscriptionSpec, RefetchUpdateMode } from '../lib/types'
import { Cache, LinkedList, rootID } from './cache'
import { flattenList } from './stuff'
export class ListManager {
rootID: string
cache: Cache
constructor(cache: Cache, rootID: string) {
this.ro... | 54,649 |
https://github.com/Fookdies301/GrinPlusPlus/blob/master/src/Wallet/WalletDB/Sqlite/WalletSqlite.cpp | Github Open Source | Open Source | MIT | 2,022 | GrinPlusPlus | Fookdies301 | C++ | Code | 361 | 1,721 | #include "WalletSqlite.h"
#include "../WalletEncryptionUtil.h"
#include "SqliteTransaction.h"
#include "Tables/VersionTable.h"
#include "Tables/OutputsTable.h"
#include "Tables/TransactionsTable.h"
#include "Tables/MetadataTable.h"
#include "Tables/SlateTable.h"
#include "Tables/SlateContextTable.h"
#include <Wallet/W... | 36,120 |
https://github.com/apache/cayenne/blob/master/cayenne-server/src/test/java/org/apache/cayenne/unit/di/server/CayenneProjects.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | cayenne | apache | Java | Code | 611 | 2,008 | /*****************************************************************
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* ... | 13,635 |
https://github.com/janickiy/yii2-nomer/blob/master/migrations/m170301_071147_add_tm_field_to_cache.php | Github Open Source | Open Source | BSD-3-Clause | 2,018 | yii2-nomer | janickiy | PHP | Code | 46 | 155 | <?php
use yii\db\Migration;
class m170301_071147_add_tm_field_to_cache extends Migration
{
public function up()
{
$this->addColumn("cache", "tm", $this->timestamp()->defaultExpression('NOW()'));
}
public function down()
{
$this->dropColumn("cache", "tm");
}
/*
// Use ... | 23,986 |
https://github.com/myENA/filter-box/blob/master/tests/unit/FilterBox.spec.js | Github Open Source | Open Source | MIT | null | filter-box | myENA | JavaScript | Code | 225 | 783 | import { mount } from '@vue/test-utils';
import FilterBox from '@/components/FilterBox.vue';
const options = [{
text: 'Option 1',
value: 'option1',
count: 12,
icon: '<i class="fa fa-trash"></i>',
disabled: true,
}, {
text: 'Option 2',
value: 'option2',
count: 65,
icon: '<b>+</b>',
}, {
text: 'Optio... | 12,147 |
https://github.com/foss2cyber/Incident-Playbook/blob/master/Incident-Response/Tools/TheHive/ScalliGraph/core/src/main/scala/org/thp/scalligraph/auth/UserSrv.scala | Github Open Source | Open Source | AGPL-3.0-or-later, LicenseRef-scancode-free-unknown, AGPL-3.0-only, MIT | 2,021 | Incident-Playbook | foss2cyber | Scala | Code | 168 | 623 | package org.thp.scalligraph.auth
import org.thp.scalligraph.EntityIdOrName
import org.thp.scalligraph.utils.Instance
import play.api.libs.functional.syntax._
import play.api.libs.json._
import play.api.mvc.RequestHeader
import scala.util.Try
trait AuthContext {
def userId: String
def userName: String
def organ... | 9,333 |
https://github.com/2733284198/lightbulb/blob/master/tools/aws_lab_setup/.gitignore | Github Open Source | Open Source | MIT | 2,019 | lightbulb | 2733284198 | Ignore List | Code | 2 | 14 | *instances.txt
instructor_inventory
| 5,291 |
https://github.com/neoland-school/bootcamp-fullstack-mad-enero-20212/blob/master/students/alba-huertas-dominguez/pokemon-react/src/components/pokemon/index.jsx | Github Open Source | Open Source | Unlicense | 2,022 | bootcamp-fullstack-mad-enero-20212 | neoland-school | null | Spoken | 82 | 332 | import React from "react"
import { useState } from "react"
import { useEffect } from "react"
import './stylesheet.css'
import { Link } from 'react-router-dom';
// pok.map((v, i) =>
// <Pokemon key={i} nombre={v.name} img={v.img} id={v.id} type={v.type} ></Pokemon>)}
// link a la pagina details
func... | 47,138 |
https://github.com/Igor-Lopes/moip-sdk-node/blob/master/dist/utils/index.js | Github Open Source | Open Source | MIT | 2,021 | moip-sdk-node | Igor-Lopes | JavaScript | Code | 37 | 115 | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getQuerystring = undefined;
var _getQuerystring = require('./getQuerystring');
var _getQuerystring2 = _interopRequireDefault(_getQuerystring);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default:... | 27,292 |
https://github.com/P01010000/chayns-components/blob/master/src/react-chayns-personfinder/component/PersonFinder.jsx | Github Open Source | Open Source | MIT | null | chayns-components | P01010000 | null | Spoken | 592 | 1,533 | /**
* @component {./docs.md}
*/
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import PersonsContext from './data/persons/PersonsContext';
import MultiplePersonFinder from './MultiplePersonFinder';
import SimplePersonFinder from './SimplePersonFinder';
/**
* An autocomplete search fo... | 8,899 |
https://github.com/KayAu/BbZone/blob/master/BbZone/Scripts/out-tsc/app/pages/login/login.js | Github Open Source | Open Source | MIT | 2,020 | BbZone | KayAu | JavaScript | Code | 328 | 1,042 | "use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... | 16,229 |
https://github.com/YdrMaster/zCore/blob/master/zCore/src/platform/libos/consts.rs | Github Open Source | Open Source | MIT | 2,020 | zCore | YdrMaster | Rust | Code | 6 | 17 | pub const PHYS_MEMORY_BASE: usize = 0;
| 8,123 |
https://github.com/mpforums/RenSharp/blob/master/scripts/da_sniping.cpp | Github Open Source | Open Source | Apache-2.0 | 2,021 | RenSharp | mpforums | C++ | Code | 125 | 229 | /* Renegade Scripts.dll
Dragonade Sniping Game Mode
Copyright 2017 Whitedragon, Tiberian Technologies
This file is part of the Renegade scripts.dll
The Renegade scripts.dll is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Sof... | 41,376 |
https://github.com/agnesnatasya/Be-Tree/blob/master/third_party/eRPC/apps/smr/willemt_raft/tests/test_scenario.c | Github Open Source | Open Source | BSD-2-Clause | 2,022 | Be-Tree | agnesnatasya | C | Code | 209 | 755 | #include <stdbool.h>
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include "CuTest.h"
#include "raft.h"
#include "raft_log.h"
#include "raft_private.h"
#include "mock_send_functions.h"
static int __raft_persist_term(
raft_server_t* raft,
void *udata,
r... | 27,171 |
https://github.com/Insolita/sharp/blob/master/saturn/app/Http/Controllers/SpaceshipController.php | Github Open Source | Open Source | MIT | null | sharp | Insolita | PHP | Code | 26 | 96 | <?php
namespace App\Http\Controllers;
use App\Spaceship;
use Illuminate\Http\Request;
class SpaceshipController extends Controller
{
public function show(Spaceship $spaceship)
{
return view('pages.spaceships.spaceship', [
'spaceship' => $spaceship,
]);
}
}
| 29,461 |
https://github.com/jonathanvdc/flame-llvm/blob/master/Flame.LLVM/Codegen/MarkLabelBlock.cs | Github Open Source | Open Source | MIT | 2,018 | flame-llvm | jonathanvdc | C# | Code | 138 | 362 | using Flame.Compiler;
using static LLVMSharp.LLVM;
namespace Flame.LLVM.Codegen
{
/// <summary>
/// A code block that marks a basic block with a label.
/// </summary>
public sealed class MarkLabelBlock : CodeBlock
{
/// <summary>
/// Creates a code block that marks a basic block wit... | 47,843 |
https://github.com/fangyukuan/SwiftFSM/blob/master/Assets/UnitTest/Editor.meta | Github Open Source | Open Source | Apache-2.0 | 2,018 | SwiftFSM | fangyukuan | Unity3D Asset | Code | 14 | 68 | fileFormatVersion: 2
guid: 2083497b296184895a8aee92d7782f9b
folderAsset: yes
timeCreated: 1437118130
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
| 18,976 |
https://github.com/marvalinks/avianceMs/blob/master/resources/views/backend/layouts/app.blade.php | Github Open Source | Open Source | MIT | null | avianceMs | marvalinks | PHP | Code | 549 | 2,672 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>@yield('title') | Aviance System</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!-- App favicon -->
<link rel="shortcut icon" href="/a... | 32,713 |
https://github.com/SYoung82/javascript-hide-and-seek-bootcamp-prep-000/blob/master/index.js | Github Open Source | Open Source | LicenseRef-scancode-public-domain, LicenseRef-scancode-unknown-license-reference | 2,016 | javascript-hide-and-seek-bootcamp-prep-000 | SYoung82 | JavaScript | Code | 48 | 177 | function getFirstSelector(selector){
return document.querySelector(selector);
}
function nestedTarget(){
return getFirstSelector('.target');
}
function increaseRankBy(n){
const rankedList = document.getElementById('app').querySelectorAll('ul.ranked-list');
for(let i=0; i<rankedList.length; i++){
rankedLis... | 44,312 |
https://github.com/Robbbert/messui/blob/master/src/mame/machine/p2000t.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,021 | messui | Robbbert | C++ | Code | 630 | 1,839 | // license:BSD-3-Clause
// copyright-holders:Paul Daniels
/**********************************************************************
machine.c
Functions to emulate general aspects of the machine (RAM, ROM, interrups,
I/O ports)
**********************************************************************/
#include "emu... | 4,739 |
https://github.com/fernandoenad/smis/blob/master/login2.php | Github Open Source | Open Source | MIT | null | smis | fernandoenad | PHP | Code | 587 | 2,405 | <?php
// Start the session
session_start();
require ('maincore.php');
if(isset($_POST['submit'])){
$password= substr(md5($_POST['password2']),0,50);
if($_SESSION["user_role"]==0){
$resultChangefullname = dbquery("UPDATE student SET stud_password='".$password."' WHERE stud_lrn='".$_SESSION["user_name"]."'");
//$... | 55,004 |
https://github.com/kristofferandreasen/tomorrow-electricity-api-dotnet-client/blob/master/src/ElectricityMap.DotNet.Client/Http/IElectricityMapHttpFacade.cs | Github Open Source | Open Source | MIT | 2,020 | tomorrow-electricity-api-dotnet-client | kristofferandreasen | C# | Code | 16 | 63 | using System;
using System.Threading.Tasks;
namespace ElectricityMap.DotNet.Client.Http
{
public interface IElectricityMapHttpFacade
{
Task<T> GetAsync<T>(Uri url);
}
}
| 37,347 |
https://github.com/Chislo-PI1314/cli/blob/master/pkg/cmd/extensions/command_test.go | Github Open Source | Open Source | MIT | 2,021 | cli | Chislo-PI1314 | Go | Code | 735 | 2,921 | package extensions
import (
"io"
"io/ioutil"
"os"
"strings"
"testing"
"github.com/cli/cli/internal/config"
"github.com/cli/cli/pkg/cmdutil"
"github.com/cli/cli/pkg/extensions"
"github.com/cli/cli/pkg/iostreams"
"github.com/spf13/cobra"
"github.com/stretchr/testify/assert"
)
func TestNewCmdExtensions(t *te... | 46,759 |
https://github.com/CheerfulSatchel/fluentui/blob/master/packages/fluentui/e2e/cypress/support/index.d.ts | Github Open Source | Open Source | MIT | 2,022 | fluentui | CheerfulSatchel | TypeScript | Code | 140 | 505 | type E2EKeys =
| '{downarrow}'
| '{leftarrow}'
| '{rightarrow}'
| '{uparrow}'
| '{end}'
| '{enter}'
| '{esc}'
| '{home}'
| 'Tab'
| '{pagedown}'
| '{pageup}'
| 'NumpadEnter'
| 'F'
| 'O'
| '*'
| 'T'
| 'H'
| CyrillicLetters;
type CyrillicLetters = 'т';
type modifier = 'Alt' | 'Control... | 34,051 |
https://github.com/sooriravindra/SBUnix/blob/master/libc/stringlib.c | Github Open Source | Open Source | BSD-2-Clause-Views | 2,017 | SBUnix | sooriravindra | C | Code | 332 | 999 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stringlib.h>
#include <stringll.h>
#define TOKEN_SIZE 1024
void
lib_str_clean(char* var)
{
int i;
for (i = 0; i < TOKEN_SIZE; ++i) {
var[i] = '\0';
}
}
int
lib_str_find(char* str1, char* str2)
{
int i = 0;
char *x, *y;
... | 16,668 |
https://github.com/hanseychen/CoFI/blob/master/src/main/java/cofi/invariant/Invariant.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | CoFI | hanseychen | Java | Code | 320 | 588 | /*
* Copyright 2020 Haicheng Chen
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 31,114 |
https://github.com/jlk/linuxbrew-core/blob/master/Formula/ddate.rb | Github Open Source | Open Source | BSD-2-Clause | 2,021 | linuxbrew-core | jlk | Ruby | Code | 98 | 784 | class Ddate < Formula
desc "Converts boring normal dates to fun Discordian Date"
homepage "https://github.com/bo0ts/ddate"
url "https://github.com/bo0ts/ddate/archive/v0.2.2.tar.gz"
sha256 "d53c3f0af845045f39d6d633d295fd4efbe2a792fd0d04d25d44725d11c678ad"
bottle do
rebuild 1
sha256 cellar: :any_skip_... | 27,083 |
https://github.com/Victoire/victoire/blob/master/Bundle/CoreBundle/Command/WidgetCssGenerateCommand.php | Github Open Source | Open Source | MIT | 2,021 | victoire | Victoire | PHP | Code | 351 | 1,321 | <?php
namespace Victoire\Bundle\CoreBundle\Command;
use Doctrine\ORM\EntityManager;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Helper\ProgressBar;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Compo... | 37,408 |
https://github.com/hahs-92/HotelPuenteNal/blob/master/src/infoExp.js | Github Open Source | Open Source | MIT | null | HotelPuenteNal | hahs-92 | JavaScript | Code | 317 | 581 | //IMAGES
import paisajes from './assests/paisajes.webp'
import cultura from './assests/cultura.webp'
import mayo from './assests/8mayo.webp'
export const infoExp = [
{
id: '1',
src: paisajes,
title: 'Paisajes Exoticos',
description: 'Con temperatura templada y un clima que oscila en... | 10,680 |
https://github.com/nimbusgo/spark-flow/blob/master/src/main/scala/com/bloomberg/sparkflow/dc/Dependency.scala | Github Open Source | Open Source | Apache-2.0 | 2,016 | spark-flow | nimbusgo | Scala | Code | 54 | 171 | package com.bloomberg.sparkflow.dc
import scala.reflect._
/**
* Created by ngoehausen on 3/23/16.
*/
abstract class Dependency[T: ClassTag](val parents: Seq[Dependency[_]]) extends Serializable{
val children = scala.collection.mutable.Set[Dependency[_]]()
parents.map(_.children.add(this))
val ct = classTag... | 56,379 |
https://github.com/RTIInternational/harness/blob/master/tests/unit/harness.spec.js | Github Open Source | Open Source | MIT | null | harness | RTIInternational | JavaScript | Code | 747 | 2,753 |
import Vuex from 'vuex'
import VueRouter from 'vue-router'
import harness, { Hs } from '../../src/harness'
import pages from './mocks/pages/manifest'
import { createLocalVue, mount } from '@vue/test-utils'
import TestApp from './mocks/components/TestApp'
// creating vue instance with test pages/harness mocked
// esli... | 48,295 |
https://github.com/Nekaravaev/BingAds-PHP-SDK/blob/master/src/V11/CampaignManagement/ProductAd.php | Github Open Source | Open Source | Apache-2.0 | null | BingAds-PHP-SDK | Nekaravaev | PHP | Code | 51 | 140 | <?php
namespace Microsoft\BingAds\V11\CampaignManagement;
{
/**
* Defines a product ad.
* @link https://docs.microsoft.com/en-us/bingads/campaign-management-service/productad?view=bingads-11 ProductAd Data Object
*/
final class ProductAd extends Ad
{
/**
* This property is ... | 42,182 |
https://github.com/guillep/pharo/blob/master/src/GT-SpotterExtensions-Core.package/GTSpotter.extension/instance/spotterForGlobalVarsFor..st | Github Open Source | Open Source | MIT | 2,017 | pharo | guillep | null | Spoken | 36 | 122 | *GT-SpotterExtensions-Core
spotterForGlobalVarsFor: aStep
<spotterOrder: 40>
aStep listProcessor
allCandidates: [ Smalltalk globals associations select:[:assoc |
assoc value isBehavior not and:[
assoc value isTrait not]] ];
title: 'Global variables';
itemName:[:global | global key ];
filter: GTFi... | 11,276 |
https://github.com/autopp/lisplay/blob/master/src/Makefile | Github Open Source | Open Source | Apache-2.0 | null | lisplay | autopp | Makefile | Code | 148 | 585 | TARGET = lisplay
SRCS = lisplay.c context.c heap.c value.c parser.c scanner.c lexer.c builtin.c
VALUE_DECL_H = value_decl.h
VALUE_DEF_H = value_def.h
PREV_VALUE = prev_value.txt
SRCS += $(wildcard $(VALUE)/*.c)
OBJS = $(SRCS:%.c=%.o)
DEPS = $(SRCS:%.c=%.d)
FLEX_SRC = lexer.l
FLEX_TARGET = $(FLEX_SRC:%.l=%.c)
FLEX_HE... | 49,646 |
https://github.com/HaochenGou/InstantCab/blob/master/InstantCab/app/src/main/java/com/example/instantcab/Profile.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | InstantCab | HaochenGou | Java | Code | 187 | 378 | /**Copyright 2020 CMPUT301W20T21
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software... | 55,544 |
https://github.com/EugeneMakita/Python-Automation-Scripts/blob/master/Convert Mp4 Video To Mp3 Audio/solution.py | Github Open Source | Open Source | MIT | null | Python-Automation-Scripts | EugeneMakita | Python | Code | 342 | 1,214 | import os
import tkinter as tk
from pathlib import Path
from tkinter import END, filedialog
from tkinter import messagebox
from moviepy.editor import VideoFileClip
def convert_video_to_audio(video_file: str, output_folder: str, output_ext="mp3") -> None:
"""Converts video to audio using MoviePy library
that ... | 50,782 |
https://github.com/codeship/bitbucket/blob/master/lib/bitbucket_rest_api/repos/following.rb | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-warranty-disclaimer | 2,019 | bitbucket | codeship | Ruby | Code | 119 | 375 | # encoding: utf-8
module BitBucket
class Repos::Following < API
# List repo followers
#
# = Examples
# bitbucket = BitBucket.new :user => 'user-name', :repo => 'repo-name'
# bitbucket.repos.following.followers
# bitbucket.repos.following.followers { |watcher| ... }
#
def followers... | 11,043 |
https://github.com/AntonNazarenko/bfx-hf-ui/blob/master/src/redux/sagas/ui/worker_fetch_remote_version.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | bfx-hf-ui | AntonNazarenko | JavaScript | Code | 78 | 260 | import { put, delay } from 'redux-saga/effects'
import Debug from 'debug'
import Request from 'request-promise'
import UIActions from '../../actions/ui'
const CHECK_INTERVAL_MS = 60 * 60 * 1000 // 1hr
const REMOTE_MANIFEST_URL = 'https://raw.githubusercontent.com/bitfinexcom/bfx-hf-ui/master/package.json'
const debu... | 4,355 |
https://github.com/munenek/ElectricityMonitorIOT/blob/master/app/src/main/java/com/example/electricitymonitor/ElectricityMonitorActivity.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | ElectricityMonitorIOT | munenek | Java | Code | 135 | 619 | package com.example.electricitymonitor;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.fire... | 15,546 |
https://github.com/Jacke/fuuid/blob/master/modules/circe/src/main/scala/io/chrisdavenport/fuuid/circe/package.scala | Github Open Source | Open Source | MIT | null | fuuid | Jacke | Scala | Code | 26 | 120 | package io.chrisdavenport.fuuid
import io.circe.syntax._
import io.circe.{Decoder, Encoder}
import cats.implicits._
package object circe {
implicit val fuuidEncoder: Encoder[FUUID] = Encoder.instance(_.show.asJson)
implicit val fuuidDecoder: Decoder[FUUID] =
Decoder[String].emap(FUUID.fromString(_).leftMap(_.... | 24,566 |
https://github.com/Forge-Srl/bellagio/blob/master/android/app/src/main/java/srl/forge/bellagio/js/Player.java | Github Open Source | Open Source | Unlicense | 2,021 | bellagio | Forge-Srl | Java | Code | 90 | 345 | package srl.forge.bellagio.js;
import jjbridge.api.runtime.JSReference;
import jjbridge.api.value.strategy.FunctionCallback;
import bionic.js.Bjs;
import bionic.js.BjsTypeInfo;
import bionic.js.BjsObjectTypeInfo;
import bionic.js.Lambda;
import java.util.Date;
import bionic.js.BjsObject;
@BjsTypeInfo.BjsLocation(proj... | 18,296 |
https://github.com/yashmahalwal/nirikshak/blob/master/packages/cli/src/add/addToConfig.ts | Github Open Source | Open Source | MIT | 2,021 | nirikshak | yashmahalwal | TypeScript | Code | 56 | 155 | import fs from "fs-extra";
import path from "path";
import { Configuration } from "../utils/types";
export default async function addToConfig(
name: string,
configFile: string,
dir?: string
): Promise<void> {
const configPath = path.resolve(configFile);
const configData: Configuration = await fs.re... | 53,163 |
https://github.com/yssharma/drill/blob/master/exec/jdbc/src/main/java/org/apache/drill/jdbc/impl/DrillStatementImpl.java | Github Open Source | Open Source | Apache-2.0, MIT, LicenseRef-scancode-unknown-license-reference | 2,015 | drill | yssharma | Java | Code | 606 | 1,492 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 42,974 |
https://github.com/iolo/pictor/blob/master/libs/converter/holder.js | Github Open Source | Open Source | MIT | 2,014 | pictor | iolo | JavaScript | Code | 249 | 740 | 'use strict';
/** @module pictor.converter.holder */
var
util = require('util'),
_ = require('lodash'),
gm = require('./gm-q')(require('gm')),
Converter = require('./converter'),
DEF_CONFIG = {
format: 'jpeg',
background: '#eee',
foreground: '#aaa',
font: '',
... | 27,392 |
https://github.com/yuki24/activerecord-correctable/blob/master/lib/did_you_mean/activerecord/spell_checkers/table_name_checker.rb | Github Open Source | Open Source | MIT | 2,016 | activerecord-correctable | yuki24 | Ruby | Code | 53 | 235 | module DidYouMean
module ActiveRecord
class TableNameChecker
REGEX_FROM_EXCEPTION = {
'PG::UndefinedTable' => /[relation|for table] \"(.*)\"[ does not exist]*/,
'SQLite3::SQLException' => /no such table\: (.*)/
}
def initialize(exception)
@cause = exception.or... | 30,511 |
https://github.com/protolab/simple-http-client/blob/master/test/ch/protolab/java/net/http/HttpClientTest.java | Github Open Source | Open Source | MIT | null | simple-http-client | protolab | Java | Code | 237 | 704 | /*
* Copyright 2012 Michael Krasnovsky
*
* Licensed under the The MIT License (MIT) (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://opensource.org/licenses/MIT
*
* Unless required by applicable law or agreed to in wri... | 15,895 |
https://github.com/jsuo/XVim2/blob/master/XVim2/XcodeHeader/IDEKit/IDEFindNavigatorGroupScopeOutlineItem.h | Github Open Source | Open Source | MIT | null | XVim2 | jsuo | C | Code | 62 | 293 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Mar 30 2018 09:30:25).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import <IDEKit/IDEFindNavigatorAbstractScopeOutlineItem.h>
@interface IDEFindNavigatorGroupScopeOutlineItem : IDEFindNavigatorAbstrac... | 52,266 |
https://github.com/siretty/clang-concepts/blob/master/test/CXX/concepts-ts/temp/temp.constr/temp.constr.order/class-template-partial-specializations.cpp | Github Open Source | Open Source | NCSA | 2,019 | clang-concepts | siretty | C++ | Code | 455 | 979 | // RUN: %clang_cc1 -std=c++2a -fconcepts-ts -x c++ -verify %s
template<typename T> requires sizeof(T) >= 4
// expected-note@-1{{'sizeof(T) >= 4' in the two declarations is not considered equivalent - move it to a concept and reference it from here:}}
class A{}; // expected-note{{template is declared here}}
template<t... | 6,092 |
https://github.com/ckrause/loda/blob/master/programs/oeis/060/A060862.asm | Github Open Source | Open Source | Apache-2.0 | 2,021 | loda | ckrause | Assembly | Code | 37 | 275 | ; A060862: a(n) = 0 if n is deficient, 1 if n is abundant, 2 if n is perfect.
; 0,0,0,0,0,2,0,0,0,0,0,1,0,0,0,0,0,1,0,1,0,0,0,1,0,0,0,2,0,1,0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,0,0,1,0,1,0,0,0,1,0,0,0,1,0,1,0,0,0,0,0,1,0,0,0,1
seq $0,235796 ; 2*n - 1 - sigma(n).
mul... | 18,739 |
https://github.com/jonmon6691/arduino_lora_boilerplate/blob/master/lora_ping.py | Github Open Source | Open Source | MIT | null | arduino_lora_boilerplate | jonmon6691 | Python | Code | 163 | 498 | #!/usr/bin/env python3
import serial
import time
import random
import itertools
def send_cmd(self, cmd_string, timeit=False):
cmd = f"{cmd_string}\r\n".encode()
print(cmd)
self.write(cmd)
if timeit:
t = time.time()
print(self.readline(), end=' ') # Block until OK response
print(time.time() - t)
else:
pri... | 41,805 |
https://github.com/ewg6679/recrootBox/blob/master/src/components/blog/LinkView.js | Github Open Source | Open Source | MIT | 2,021 | recrootBox | ewg6679 | JavaScript | Code | 88 | 272 | import React from "react";
import "../app.css";
import { Link } from 'gatsby';
import { Col } from "react-materialize";
import { accent } from "../../siteData";
import styled from 'styled-components'
const LinkView = (props) => {
const { title, date, filename } = props;
const altered_filename = filename.substr(0,... | 47,221 |
https://github.com/dresa-org-au/TeSS/blob/master/db/migrate/20160920105434_convert_event_field_to_scientific_topics.rb | Github Open Source | Open Source | BSD-3-Clause | 2,021 | TeSS | dresa-org-au | Ruby | Code | 334 | 1,669 | class ScientificTopic < ActiveRecord::Base; end
class ConvertEventFieldToScientificTopics < ActiveRecord::Migration[4.2]
IANN_MAPPING = {
'Systemsbiology' => 'http://edamontology.org/topic_2259',
'Systems Biology' => 'http://edamontology.org/topic_2259',
'Genomics' => 'http://edamontology.org/topi... | 52,345 |
https://github.com/Ollhax/GameHax/blob/master/Framework/Graphics/Vertex2Color.cs | Github Open Source | Open Source | MIT, CC-BY-2.5 | 2,018 | GameHax | Ollhax | C# | Code | 49 | 153 | using System.Runtime.InteropServices;
using MG.Framework.Numerics;
namespace MG.Framework.Graphics
{
[StructLayout(LayoutKind.Sequential, Pack = 1)]
struct Vertex2Color
{
public Vector2 Position;
public Color Color;
public Vertex2Color(Vector2 position, Color color)
{
Position = position;
Color = co... | 26,177 |
https://github.com/arandilopez/pomodorous/blob/master/app/src/renderer/App.vue | Github Open Source | Open Source | MIT | 2,021 | pomodorous | arandilopez | Vue | Code | 67 | 281 | <template>
<div id="#app">
<navbar></navbar>
<router-view></router-view>
</div>
</template>
<script>
import store from 'renderer/vuex/store'
import Navbar from './components/Navbar'
export default {
store,
components: { Navbar }
}
</script>
<style lang="scss">
@import url('https://fonts.g... | 17,425 |
https://github.com/sensorsdata/react-native-sensors-analytics/blob/master/ios/SAReactNativeGlobalPropertyPlugin.m | Github Open Source | Open Source | Apache-2.0 | 2,023 | react-native-sensors-analytics | sensorsdata | Objective-C | Code | 199 | 481 | //
// SAReactNativeGlobalPropertyPlugin.m
// RNSensorsAnalyticsModule
//
// Created by 储强盛 on 2022/10/9.
// Copyright © 2015-2022 Sensors Data Co., Ltd. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
/... | 43,937 |
https://github.com/SusheelThapa/Code-With-C-Plus-Plus/blob/master/OOPS/Virtual_Function.cpp | Github Open Source | Open Source | MIT | null | Code-With-C-Plus-Plus | SusheelThapa | C++ | Code | 367 | 813 | #include <iostream>
#include <cstring>
using namespace std;
class CWH
{
protected:
char title[30];
float rating;
public:
CWH(char *s, float r)
{
strcpy(title, s);
rating = r;
}
void display()
{
cout << "In the CWH display class" << endl
<< endl;
}... | 16,826 |
https://github.com/centreon/centreon-plugins/blob/master/src/apps/monitoring/splunk/mode/query.pm | Github Open Source | Open Source | Apache-2.0 | 2,023 | centreon-plugins | centreon | Perl | Code | 343 | 875 | #
# Copyright 2023 Centreon (http://www.centreon.com/)
#
# Centreon is a full-fledged industry-strength solution that meets
# the needs in IT infrastructure and application monitoring for
# service performance.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in com... | 52,733 |
https://github.com/kevinlq/Qt-Creator-Opensource-Study/blob/master/qt-creator-opensource-src-4.6.1/tests/system/suite_general/tst_default_settings/test.py | Github Open Source | Open Source | MIT | 2,022 | Qt-Creator-Opensource-Study | kevinlq | Python | Code | 1,294 | 4,890 | ############################################################################
#
# Copyright (C) 2016 The Qt Company Ltd.
# Contact: https://www.qt.io/licensing/
#
# This file is part of Qt Creator.
#
# Commercial License Usage
# Licensees holding valid commercial Qt licenses may use this file in
# accordance with the co... | 3,063 |
https://github.com/Stnsllet/SpiritualBlade-GeraHa/blob/master/Ribe2/NormalEditer.h | Github Open Source | Open Source | MIT | 2,022 | SpiritualBlade-GeraHa | Stnsllet | C | Code | 278 | 907 |
#ifndef __NORMAL_EDITER__
#define __NORMAL_EDITER__
#include <vector>
#include "RbPosition.h"
template<class T, long Tsize=sizeof(T)> class NormalEditer
{
public:
NormalEditer( T* ptr, long Count, bool bGlowMode ) : pSrc(ptr), SrcCount(Count), bGlow( bGlowMode )
{
NormalList.resize( Count );
}
void SetNormal( ... | 12,835 |
https://github.com/cc-rock/vcshooks/blob/master/bin/pre_commit.dart | Github Open Source | Open Source | BSD-3-Clause-Clear | 2,021 | vcshooks | cc-rock | Dart | Code | 367 | 737 | /*
* The Clear BSD License
*
* Copyright (c) 2021 Bitsy Darel
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted (subject to the limitations in the disclaimer
* below) provided that the following conditions are met:
*
* * Redistribu... | 23,292 |
https://github.com/Crewbee/Pokemon-Clone-OpenGL/blob/master/Game/Source/GameplayHelpers/EventHandler.cpp | Github Open Source | Open Source | CC0-1.0 | 2,020 | Pokemon-Clone-OpenGL | Crewbee | C++ | Code | 4 | 24 | #include "GamePCH.h"
#include "GameplayHelpers/EventHandler.h" | 4,073 |
https://github.com/PortalNetwork/ens-manager/blob/master/.gitignore | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,018 | ens-manager | PortalNetwork | Ignore List | Code | 4 | 16 | build
node_modules
.DS_Store
.vscode | 19,656 |
https://github.com/kirapythia/pythia-webclient/blob/master/src/utils/ajax.js | Github Open Source | Open Source | MIT | 2,018 | pythia-webclient | kirapythia | JavaScript | Code | 539 | 1,150 | import { tpl } from '../locale';
import { withTimeout } from './index';
/**
* An error caused by an invalid request
* @class InvalidRequestError
* @extends {Error}
*/
export class ServerResponseError extends Error {
constructor(message, status) {
super(message);
this.status = status;
}
}
/**
* Parse ... | 46,551 |
https://github.com/emqplus/CoreErlang/blob/master/test/TestParser.hs | Github Open Source | Open Source | BSD-3-Clause | 2,021 | CoreErlang | emqplus | Haskell | Code | 322 | 746 | module TestParser where
import Control.Monad
import Language.CoreErlang
import System.Directory
import System.FilePath.Posix(takeDirectory)
import Test.Tasty
import Test.Tasty.Hspec
import Text.Megaparsec (errorBundlePretty)
import System.IO (openFile, hClose, IOMode(..))
import Data.Text.Prettyprint.Doc.Render.Text
i... | 53,321 |
https://github.com/Trekky12/life-tracking/blob/master/src/Domain/Timesheets/Sheet/Sheet.php | Github Open Source | Open Source | MIT | 2,021 | life-tracking | Trekky12 | PHP | Code | 473 | 2,010 | <?php
namespace App\Domain\Timesheets\Sheet;
class Sheet extends \App\Domain\DataObject {
static $NAME = "DATAOBJECT_TIMESHEETS_SHEET";
public function parseData(array $data) {
// new dataset --> save createdBy
if (!$this->exists('id', $data)) {
$this->createdBy = $this->exists... | 3,525 |
https://github.com/jakebooker56/import-voluntary-disclosure-frontend/blob/master/it/stubs/UserAnswersStub.scala | Github Open Source | Open Source | Apache-2.0 | null | import-voluntary-disclosure-frontend | jakebooker56 | Scala | Code | 199 | 569 | /*
* Copyright 2022 HM Revenue & Customs
*
* 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 a... | 17,676 |
https://github.com/openshift/installer/blob/master/vendor/github.com/microsoftgraph/msgraph-sdk-go/models/search_requestable.go | Github Open Source | Open Source | MIT, Apache-2.0 | 2,023 | installer | openshift | Go | Code | 55 | 479 | package models
import (
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
)
// SearchRequestable
type SearchRequestable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
i878a80d233... | 55,376 |
https://github.com/ian2j/project/blob/master/static/js/boston_k_11_wc_5_fitted.js | Github Open Source | Open Source | MIT | 2,015 | project | ian2j | JavaScript | Code | 71 | 298 | var centroidData = [
{"Key": "1", "Lat": "42.35475", "Long": "-71.08879"},
{"Key": "2", "Lat": "42.35705", "Long": "-71.06029"},
{"Key": "3", "Lat": "42.30374", "Long": "-71.08143"},
{"Key": "4", "Lat": "42.32055", "Long": "-71.09188"},
{"Key": "5", "Lat": "42.34872", "Long": "-71.04261"},
{"Key": "6", "Lat": "42... | 18,466 |
https://github.com/DigitalPhonetics/SpeechRepresentationFinetuning/blob/master/Evaluation/pairwise_distance.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | SpeechRepresentationFinetuning | DigitalPhonetics | Python | Code | 554 | 2,048 | # Average Pariwsie Distance:
import argparse
import pickle
import pandas as pd
from scipy.spatial import distance
parser = argparse.ArgumentParser(
description="Average Pariwsie Distance Evaluation (Quality Analysis)"
)
parser.add_argument("embed_type", type=str, metavar="N", help="")
parser.add_argument("label... | 54,243 |
https://github.com/zzburning/workspace/blob/master/src_mod/src/config/config_func.c | Github Open Source | Open Source | BSD-3-Clause | 2,016 | workspace | zzburning | C | Code | 6,783 | 32,007 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include "wlog.h"
#include "config.h"
//error argument
#define EARG -2
/*current target ID we are testing... | 28,216 |
https://github.com/galtsev/hs-ion/blob/master/scripts/test_dyn.hs | Github Open Source | Open Source | BSD-3-Clause | null | hs-ion | galtsev | Haskell | Code | 142 | 293 | {-# Language OverloadedStrings #-}
import Data.Dynamic
import Data.String
import qualified Data.Map as M
import Data.Traversable (traverse, sequence)
newtype Key a = Key String
instance IsString (Key a) where
fromString = Key
k_id = "id"::Key Int
k_name = "name"::Key String
k_qty = "qty"::Key Int
dynGet :: Type... | 13,719 |
https://github.com/neohope/MLStudy/blob/master/Supervised/Classification/DecisionTree/contact_lenses_demo.py | Github Open Source | Open Source | BSD-3-Clause | 2,020 | MLStudy | neohope | Python | Code | 61 | 325 | #!/usr/bin/python
# -*- coding: UTF-8 -*-
"""
预测隐形眼镜类型
"""
from Supervised.Classification.DecisionTree import decision_tree_plot
from Supervised.Classification.DecisionTree import classify_decision_tree
def contactLensesTest():
"""
预测隐形眼镜类型
"""
# 加载隐形眼镜数据文件
fr = open('../../../Data/DecisionTree... | 40,297 |
https://github.com/naah69/demo/blob/master/SparkDemo/src/main/scala/com/starrocks/utils/MySrSink.scala | Github Open Source | Open Source | Apache-2.0 | 2,021 | demo | naah69 | Scala | Code | 218 | 562 | // Copyright (c) 2021 Beijing Dingshi Zongheng Technology Co., Ltd. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2... | 7,787 |
https://github.com/Libensemble/libensemble/blob/master/examples/libE_submission_scripts/bridges_submit_slurm_central.sh | Github Open Source | Open Source | BSD-3-Clause, BSD-2-Clause | 2,023 | libensemble | Libensemble | Shell | Code | 97 | 258 | #!/bin/bash
#SBATCH -J libE_test_central
#SBATCH -N 5
#SBATCH -p RM
#SBATCH -A <my_project>
#SBATCH -o tlib.%j.%N.out
#SBATCH -e tlib.%j.%N.error
#SBATCH -t 00:30:00
# Launch script for running in central mode with mpi4py.
# libEnsemble will run on a dedicated node (or nodes).
# The remaining nodes in the allocati... | 7,744 |
https://github.com/ssteeg-mdsol/openapi3-generator/blob/master/gems/gems/prawn-2.2.2/manual/outline/add_subsection_to.rb | Github Open Source | Open Source | GPL-3.0-only, GPL-2.0-only, Ruby, Apache-2.0 | 2,021 | openapi3-generator | ssteeg-mdsol | Ruby | Code | 264 | 557 | # We have already seen how to define an outline tree sequentially.
#
# If you'd like to add nodes to the middle of an outline tree the
# <code>add_subsection_to</code> may help you.
#
# It allows you to insert sections to the outline tree at any point. Just
# provide the <code>title</code> of the parent section, the
# ... | 34,718 |
https://github.com/takaaki82/Java-Lessons/blob/master/lib/python-lib/divisor.py | Github Open Source | Open Source | MIT | 2,018 | Java-Lessons | takaaki82 | Python | Code | 139 | 350 | def divisor(num):
"""
This function returns a list of divisors of natural numbers entered.
:param num:
:return: divisors: List of divisors of entered natural numbers
"""
prime_factor = _prime_factorize(num)
divisors = []
divisors_list = _exec_combination(prime_factor)
for div in divi... | 4,315 |
https://github.com/ismaelamezcua-ucol/contiki-ng/blob/master/os/storage/antelope/result.h | Github Open Source | Open Source | BSD-3-Clause | 2,022 | contiki-ng | ismaelamezcua-ucol | C | Code | 369 | 880 | /*
* Copyright (c) 2010, Swedish Institute of Computer Science
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* no... | 45,958 |
https://github.com/box-software/SlinkyTyped/blob/master/s/sc-broker/src/main/scala/typingsSlinky/scDashBroker/scbrokerMod/package.scala | Github Open Source | Open Source | MIT | 2,020 | SlinkyTyped | box-software | Scala | Code | 23 | 124 | package typingsSlinky.scDashBroker
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation._
package object scbrokerMod {
import org.scalablytyped.runtime.NumberDictionary
import org.scalablytyped.runtime.StringDictionary
import typingsSlinky.socketclusterDashServer.socketclusterD... | 36,314 |
https://github.com/dougt/talos/blob/master/Talos/NSWindow+ShakingAnimation.m | Github Open Source | Open Source | MIT | 2,012 | talos | dougt | Objective-C | Code | 134 | 457 | //
// NSWindow+ShakingAnimation.m
//
// Based on a post by Bill Dudney on the Cocoa mailing list.
//
// Created by Saumitro Dasgupta on 9/9/12.
// Copyright (c) 2012 Saumitro Dasgupta. All rights reserved.
//
#import "NSWindow+ShakingAnimation.h"
#import <QuartzCore/QuartzCore.h>
@implementation NSWindow (Shaking... | 15,250 |
https://github.com/lourentflores/Code-Rena/blob/master/client/node_modules/antd/es/form/hooks/useFrameState.js | Github Open Source | Open Source | MIT | 2,021 | Code-Rena | lourentflores | JavaScript | Code | 114 | 374 | import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
import * as React from 'react';
import { useRef } from 'react';
import raf from 'raf';
export default function useFrameState(defaultValue) {
var _React$useState = React.useState(defaultValue),
_React$useState2 = _slicedToArray(_React$useState, 2... | 29,522 |
https://github.com/kanishkaganguly/shadowlibs/blob/master/docs/doxygen_generated/html/search/functions_8.js | Github Open Source | Open Source | BSD-3-Clause | 2,022 | shadowlibs | kanishkaganguly | JavaScript | Code | 5 | 70 | var searchData=
[
['jointlimitsfromname',['jointLimitsFromName',['../structshadow__finger_1_1Finger.html#ab53873d8904cc4058a7080414cb85fcd',1,'shadow_finger::Finger']]]
];
| 3,563 |
https://github.com/unknoweleven/pageflow/blob/master/lib/pageflow/built_in_widget_type.rb | Github Open Source | Open Source | MIT | null | pageflow | unknoweleven | Ruby | Code | 112 | 665 | module Pageflow
class BuiltInWidgetType < WidgetType
attr_reader :name, :roles, :partial_path
def initialize(name, roles, partial_path)
@name = name
@roles = roles
@partial_path = partial_path
end
def translation_key
"pageflow.widgets.type_names.#{name}"
end
def rend... | 28,854 |
https://github.com/mnjstwins/javalin/blob/master/src/main/java/io/javalin/core/JavalinServlet.kt | Github Open Source | Open Source | Apache-2.0 | 2,017 | javalin | mnjstwins | Kotlin | Code | 352 | 1,086 | /*
* Javalin - https://javalin.io
* Copyright 2017 David Åse
* Licensed under Apache 2.0: https://github.com/tipsy/javalin/blob/master/LICENSE
*/
package io.javalin.core
import io.javalin.HaltException
import io.javalin.Response
import io.javalin.core.util.RequestUtil
import io.javalin.core.util.Util
import io.ja... | 28,807 |
https://github.com/patrik-piskay/thrift2flow/blob/master/src/main/index.js | Github Open Source | Open Source | MIT, LicenseRef-scancode-generic-cla | 2,018 | thrift2flow | patrik-piskay | JavaScript | Code | 348 | 803 | #!/usr/bin/env node
/*
* MIT License
*
* Copyright (c) 2017 Uber Node.js
*
* 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
... | 19,328 |
https://github.com/cvelezpena/VisualCobolCodeExamples/blob/master/Demo.Net.Interfaces/INetLogger.cs | Github Open Source | Open Source | MIT | 2,018 | VisualCobolCodeExamples | cvelezpena | C# | Code | 23 | 66 | namespace Demo.Net.Interfaces
{
public interface INetLogger
{
string UserId { get; set; }
string GetGuid();
void Warning(string msg);
void Error(string msg);
}
}
| 10,451 |
https://github.com/HannahJHan/BlueNoiseSampling/blob/master/wei-noise-master/10-RainbowNoise/src/Main/DartShuffling.cpp | Github Open Source | Open Source | MIT | 2,020 | BlueNoiseSampling | HannahJHan | C++ | Code | 1,753 | 6,741 | /*
DartShuffling.cpp
Li-Yi Wei
06/19/2009
*/
#include <iostream>
#include <fstream>
#include <vector>
#include <deque>
#include <string>
#include <memory>
#include <algorithm>
using namespace std;
#include <stdlib.h>
#include <math.h>
#include "ToroidalBoxDomain.hpp"
#include "PlainBoxDomain.hpp"
#include "... | 31,932 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.