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/JacobBarthelmeh/infer/blob/master/infer/tests/build_systems/codetoanalyze/ndk-build/hello_app/jni/Android.mk | Github Open Source | Open Source | MIT | 2,022 | infer | JacobBarthelmeh | Makefile | Code | 47 | 103 | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := hello
LOCAL_SRC_FILES := ../hello.c
include $(BUILD_SHARED_LIBRARY)
| 6,264 |
https://github.com/solarwinds/appoptics-kubernetes-controller/blob/master/Makefile | Github Open Source | Open Source | Apache-2.0 | 2,020 | appoptics-kubernetes-controller | solarwinds | Makefile | Code | 293 | 1,011 | PACKAGE_NAME := github.com/solarwinds/appoptics-kubernetes-controller
REGISTRY := docker.com/
APP_NAME := appoptics/appoptics_kubernetes_controller
IMAGE_TAG ?= 0.1
GOPATH ?= $HOME/go
HACK_DIR ?= hack
BUILD_TAG := build
BINPATH := ./bin
NAMESPACE := default
# Path to dockerfiles directory
DOCKERFILES := $(HACK_DIR)/bu... | 7,518 |
https://github.com/kLabz/haxe-material-ui/blob/master/src/mui/core/modal/ModalManager.hx | Github Open Source | Open Source | MIT | 2,022 | haxe-material-ui | kLabz | Haxe | Code | 33 | 131 | package mui.core.modal;
typedef ModalManagerOptions = {
@:optional var hideSiblingNodes:Bool;
@:optional var handleContainerOverflow:Bool;
}
@:jsRequire('@material-ui/core', 'ModalManager')
extern class ModalManager {
public function new(options:ModalManagerOptions);
public function add(modal:Any, container:Any):... | 20,360 |
https://github.com/KaptainWutax/TerrainUtils/blob/master/src/test/java/kaptainwutax/v1_11/Overworld.java | Github Open Source | Open Source | MIT | 2,021 | TerrainUtils | KaptainWutax | Java | Code | 1,746 | 4,070 | package kaptainwutax.v1_11;
import kaptainwutax.TestFramework;
import kaptainwutax.mcutils.state.Dimension;
import kaptainwutax.mcutils.version.MCVersion;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import static kaptainwutax.TestFramework.randomChunk... | 43,246 |
https://github.com/ethanCun/CzyHuanXinIMSummarise/blob/master/Podfile | Github Open Source | Open Source | MIT | 2,017 | CzyHuanXinIMSummarise | ethanCun | Ruby | Code | 26 | 125 | platform :ios, 8.0
target 'czyhuanxindemo' do
pod 'EaseUI', :git => 'https://github.com/easemob/easeui-ios-hyphenate-cocoapods.git'
pod 'FMDB', '~> 2.7.2'
pod 'HyphenateLite', '~> 3.3.3.1'
pod 'AVOSCloud', '~> 3.4.0'
pod 'AVOSCloudCrashReporting'
end
| 8,054 |
https://github.com/loic-sharma/ExplorePackages/blob/master/src/ExplorePackages.Worker.Logic/Queues/IMessageBatcher.cs | Github Open Source | Open Source | MIT | null | ExplorePackages | loic-sharma | C# | Code | 18 | 90 | using System.Collections.Generic;
using System.Threading.Tasks;
namespace Knapcode.ExplorePackages.Worker
{
public interface IMessageBatcher
{
Task<IReadOnlyList<HomogeneousBatchMessage>> BatchOrNullAsync<T>(IReadOnlyList<T> messages, ISchemaSerializer<T> serializer);
}
} | 50,708 |
https://github.com/hazah/tracks/blob/master/lib/tracks/rails/action_dispatch/routing/route_set.rb | Github Open Source | Open Source | MIT | 2,013 | tracks | hazah | Ruby | Code | 100 | 299 | require 'action_dispatch/routing/route_set'
class ActionDispatch::Routing::RouteSet
def eval_block(block) #:nodoc:
# I tried overriding this in a module, but for some reason the overriden
# method is not invoked, so for now this method contains the original rails
# code.
if block.arity == 1
rai... | 25,220 |
https://github.com/mikiec84/conch/blob/master/CCCRest-ear-commons/src/main/java/uk/ac/ncl/erop/RelevanceEngine.java | Github Open Source | Open Source | Apache-1.1 | 2,020 | conch | mikiec84 | Java | Code | 905 | 2,617 | package uk.ac.ncl.erop;
import java.io.*;
import java.util.*;
import java.util.logging.Logger;
import org.drools.compiler.compiler.DroolsParserException;
import org.kie.api.KieServices;
import org.kie.api.builder.*;
import org.kie.api.runtime.KieContainer;
import org.kie.api.runtime.KieSession;
import org.kie.api.... | 9,327 |
https://github.com/TemperedSky/4711_assignment_02/blob/master/application/models/ProduceOrder.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,016 | 4711_assignment_02 | TemperedSky | PHP | Code | 137 | 491 | <?php
class ProduceOrder extends CI_Model {
function __construct($state = null) {
parent::__construct();
if(is_array($state)) {
foreach($state as $key => $value)
$this->$key = $value;
}
elseif ($state != null) {
$xml = simplexml_load... | 27,933 |
https://github.com/Plynd/connect4/blob/master/www/js/server.js | Github Open Source | Open Source | Apache-2.0 | 2,015 | connect4 | Plynd | JavaScript | Code | 405 | 713 | /**
* This file is specific to the Plynd framework.
* The rationale is that for development purposes it can be run in the browser when the application is not
* published yet. Later, it has to be uploaded to Plynd servers, where it will be run.
* The reason is that the endpoint to update the game state (Plynd.update... | 43,793 |
https://github.com/davideby/gsea-desktop/blob/master/src/main/java/org/genepattern/heatmap/PixelConverter.java | Github Open Source | Open Source | MIT | 2,022 | gsea-desktop | davideby | Java | Code | 202 | 492 | /*******************************************************************************
* Copyright (c) 2003-2016 Broad Institute, Inc., Massachusetts Institute of Technology, and Regents of the University of California. All rights reserved.
*******************************************************************************/
p... | 46,073 |
https://github.com/streemline/rocketgram/blob/master/rocketgram/api/add_sticker_to_set.py | Github Open Source | Open Source | MIT | null | rocketgram | streemline | Python | Code | 95 | 319 | # Copyright (C) 2015-2022 by Vd.
# This file is part of Rocketgram, the modern Telegram bot framework.
# Rocketgram is released under the MIT License (see LICENSE).
from dataclasses import dataclass
from typing import Union, Optional, List
from .request import Request
from .utils import BoolResultMixin
from .. impor... | 26,354 |
https://github.com/Paodange/ConfigManager/blob/master/src/Mgi.Apl.Model/BO/AbstractBO.cs | Github Open Source | Open Source | MIT | null | ConfigManager | Paodange | C# | Code | 23 | 50 | namespace Mgi.Apl.Model
{
public abstract class AbstractBO<T, PK> where T : class, new()
{
public PK Id { get; set; }
}
} | 10,919 |
https://github.com/asifyet/dr-ci/blob/master/app/fetcher/src/PostgresHelpers.hs | Github Open Source | Open Source | MIT | 2,021 | dr-ci | asifyet | Haskell | Code | 246 | 524 | -- Copyright (c) Facebook, Inc. and its affiliates.
--
-- This source code is licensed under the MIT license found in the
-- LICENSE file in the root directory of this source tree.
{-# LANGUAGE OverloadedStrings #-}
-- | Most of these functions copied from the
-- source code of http://hackage.haskell.org/package/postg... | 27,265 |
https://github.com/canhorn/EventHorizon.Blazor.Interop.Generator/blob/master/Sample/_generated/EventHorizon.Blazor.BabylonJS.WASM/GUI/ValueAndUnit.cs | Github Open Source | Open Source | MIT | 2,021 | EventHorizon.Blazor.Interop.Generator | canhorn | C# | Code | 377 | 1,474 | /// Generated - Do Not Edit
namespace BabylonJS.GUI
{
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using EventHorizon.Blazor.Server.Interop;
using EventHorizon.Blazor.Server.Interop.Callbacks;
using Microsoft.JSInterop;
... | 25,115 |
https://github.com/fujia1992/fastadmin/blob/master/public/assets/addons/vote/js/common.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | fastadmin | fujia1992 | JavaScript | Code | 486 | 1,966 | var isMobile, number_format, refresh_data;
$(function () {
// 是否移动端
isMobile = !!("ontouchstart" in window);
// 格式化数字
number_format = function (text) {
return text.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,");
};
// 刷新数字
refresh_data = function (elem) {
var elem = ... | 41,077 |
https://github.com/ddirks/unidata-jekyll-theme/blob/master/source_code_snippet/ReadingCdmTutorial.java | Github Open Source | Open Source | MIT, BSD-3-Clause | null | unidata-jekyll-theme | ddirks | Java | Code | 1,670 | 3,751 | package examples.cdmdatasets;
import ucar.ma2.*;
import ucar.nc2.NetcdfFile;
import ucar.nc2.NetcdfFiles;
import ucar.nc2.Variable;
import ucar.nc2.internal.util.DiskCache;
import ucar.nc2.write.Ncdump;
import ucar.unidata.util.test.TestLogger;
import java.io.IOException;
import java.util.*;
public class ReadingCdmT... | 9,151 |
https://github.com/YoshiyukiKato/lighthouse-keeper/blob/master/src/reporter/index.ts | Github Open Source | Open Source | MIT | 2,022 | lighthouse-keeper | YoshiyukiKato | TypeScript | Code | 6 | 17 | export {default as SimpleReporter} from "./simple-reporter";
| 1,475 |
https://github.com/Cotton-Ben/infinispan/blob/master/client/hotrod-client/src/main/java/org/infinispan/client/hotrod/impl/transport/tcp/TransportObjectFactory.java | Github Open Source | Open Source | Apache-2.0 | 2,014 | infinispan | Cotton-Ben | Java | Code | 284 | 935 | package org.infinispan.client.hotrod.impl.transport.tcp;
import java.net.SocketAddress;
import java.util.concurrent.atomic.AtomicInteger;
import org.apache.commons.pool.BaseKeyedPoolableObjectFactory;
import org.infinispan.client.hotrod.impl.operations.PingOperation;
import org.infinispan.client.hotrod.impl.protocol.... | 3,446 |
https://github.com/sahabuddin123/Employee_Profile/blob/master/resources/views/admin/app.blade.php | Github Open Source | Open Source | MIT | 2,020 | Employee_Profile | sahabuddin123 | PHP | Code | 315 | 1,520 | <!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags-->
<meta charset="UTF-8">
{{-- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> --}}
<meta name="description" content="Employee Profile">
<meta name="author" content="Sahab Uddin">
<meta name... | 14,442 |
https://github.com/frankhoff/xictools/blob/master/xic/include/ext.h | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,022 | xictools | frankhoff | C++ | Code | 3,178 | 9,659 |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... | 2,130 |
https://github.com/JukkaL/alore/blob/master/src/encodings_tables.c | Github Open Source | Open Source | MIT | 2,021 | alore | JukkaL | C | Code | 2,014 | 4,509 | /* encodings_tables.c - Codec definitions (automatically generated,
DO NOT EDIT!)
Copyright (c) 2010-2011 Jukka Lehtosalo
Alore is licensed under the terms of the MIT license. See the file
LICENSE.txt in the distribution.
*/
#include "encodings_module.h"
static const unsigned char... | 53,872 |
https://github.com/Egor-Skriptunoff/pure_lua_GIF/blob/master/example.lua | Github Open Source | Open Source | MIT | 2,022 | pure_lua_GIF | Egor-Skriptunoff | Lua | Code | 142 | 472 | -- Example of non-animated gif:
local filename = "mini-graphics-ducks-425811.gif"
-- This .GIF was downloaded from:
-- http://www.picgifs.com/mini-graphics/mini-graphics/ducks/mini-graphics-ducks-425811.gif
--[[
-- Example of animated gif:
local filename = "mini-graphics-cats-864491.gif"
-- This .GIF was downloaded fr... | 45,458 |
https://github.com/ManfredTremmel/gwt-bean-validators/blob/master/gwt-bean-validators-restygwt-jaxrs/src/main/java/de/knightsoftnet/validators/client/package-info.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | gwt-bean-validators | ManfredTremmel | Java | Code | 12 | 31 | /**
* this package contains client side validation helpers.
*/
package de.knightsoftnet.validators.client;
| 10,700 |
https://github.com/aHenryJard/jetty.project/blob/master/jetty-server/src/main/java/org/eclipse/jetty/server/handler/AsyncDelayHandler.java | Github Open Source | Open Source | Apache-2.0 | null | jetty.project | aHenryJard | Java | Code | 532 | 1,440 | //
// ========================================================================
// Copyright (c) 1995-2020 Mort Bay Consulting Pty Ltd and others.
//
// This program and the accompanying materials are made available under
// the terms of the Eclipse Public License 2.0 which is available at
// https://www.eclipse.org/leg... | 10,991 |
https://github.com/kalebbe/Php3/blob/master/Milestone5/Phlick/app/Http/Controllers/LogoutController.php | Github Open Source | Open Source | MIT | 2,018 | Php3 | kalebbe | PHP | Code | 42 | 119 | <?php
/*
* @Authors: Kaleb Eberhart, Mick Torres, Will Bierer
* @Project Name: Phlick Project
* @Professor: James Gordon
* @Course: CST-256
* @Date: 03/04/18
*/
namespace App\Http\Controllers;
use Session;
class LogoutController extends Controller
{
function logout(){
Session:... | 35,507 |
https://github.com/gradleupdate/android-gto-support/blob/master/gto-support-material-components/src/main/java/org/ccci/gto/android/common/material/shape/AngledCutCornerTreatment.kt | Github Open Source | Open Source | MIT | 2,021 | android-gto-support | gradleupdate | Kotlin | Code | 87 | 252 | package org.ccci.gto.android.common.material.shape
import com.google.android.material.shape.CornerTreatment
import com.google.android.material.shape.ShapePath
import kotlin.math.sin
class AngledCutCornerTreatment(private val startEdgeSize: Float, private val endEdgeSize: Float) : CornerTreatment() {
override fun ... | 52,668 |
https://github.com/stakenschneider/git.polytest-master/blob/master/2/parall/бояркин/report/listings/5.5.cpp | Github Open Source | Open Source | Apache-2.0 | 2,020 | git.polytest-master | stakenschneider | C++ | Code | 157 | 419 | < ... >
void delay() {
double temp = 1;
for (uint32_t delayIndex = 1; delayIndex < 1000; ++delayIndex) {
if (delayIndex % 2 == 0) {
temp *= 10;
} else {
temp /= 10;
}
}
}
< ... >
tree::node tree::node::getSimpleRecursiveSumSubNode() const {
< ... >
... | 54,942 |
https://github.com/nhelke/scala-force-layout/blob/master/src/main/scala/at/ait/dme/forcelayout/renderer/GraphRenderer.scala | Github Open Source | Open Source | MIT | null | scala-force-layout | nhelke | Scala | Code | 586 | 1,971 | package at.ait.dme.forcelayout.renderer
import java.awt._
import java.awt.geom.Ellipse2D
import at.ait.dme.forcelayout.{ Node, Edge, SpringGraph, Vector2D }
class Node2D(val x: Int, val y: Int, val node: Node, val selected: Boolean = false)
class Edge2D(val from: Node2D, val to: Node2D, val edge: Edge)
private[rend... | 50,879 |
https://github.com/code0001aaa/ProjectPrimera/blob/master/OngekiScoreLog/resources/views/layouts/components/sidebar.blade.php | Github Open Source | Open Source | MIT | 2,019 | ProjectPrimera | code0001aaa | PHP | Code | 102 | 891 | <aside class="box">
{{ $box }}
</aside>
<div class="side_sticky">
<aside class="box menu" id="side_menu">
<p class="menu-label">メニュー</p>
<ul class="menu-list">
<li><a href="/" class="@yield('sidemark_top')">トップページ</a></li>
<li><a href="/howto" class="@yield('sidem... | 7,498 |
https://github.com/troglobit/xplugd/blob/master/src/input.c | Github Open Source | Open Source | MIT | 2,023 | xplugd | troglobit | C | Code | 636 | 1,779 | /* x input handler
*
* Copyright (C) 2013-2015 Andrew Shadura <andrewsh@debian.org>
*
* 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 ... | 14,061 |
https://github.com/mindietea/kata-ui/blob/master/src/client/app/curator/curator.component.ts | Github Open Source | Open Source | MIT | 2,017 | kata-ui | mindietea | TypeScript | Code | 55 | 190 | import { Component, OnInit } from '@angular/core';
import { DataService, Curator, Kard } from '../shared/data.service';
@Component({
moduleId: module.id,
selector: 'sd-curator',
templateUrl: 'curator.component.html',
styleUrls: ['curator.component.css']
})
export class CuratorComponent implements OnInit {
me... | 14,374 |
https://github.com/Vestmark/vestmark-gradle/blob/master/subprojects/docs/src/samples/scala/zinc/kotlin/settings.gradle.kts | Github Open Source | Open Source | Apache-2.0 | 2,022 | vestmark-gradle | Vestmark | Kotlin | Code | 3 | 11 | rootProject.name = "zinc"
| 23,618 |
https://github.com/andrelbraga/ms-app-node/blob/master/src/presentation/services/index.ts | Github Open Source | Open Source | MIT | null | ms-app-node | andrelbraga | TypeScript | Code | 8 | 16 | export * from './cashback';
export * from './auth';
| 6,870 |
https://github.com/mallardduck/blade-emoji-icons/blob/master/resources/views/components/person-lifting-weights-medium-dark-skin-tone.blade.php | Github Open Source | Open Source | MIT | 2,021 | blade-emoji-icons | mallardduck | PHP | Code | 6 | 34 | <x-emoji-icon-emoji :name="'personLiftingWeightsMediumDarkSkinTone'" {{ $attributes }} />
| 28,098 |
https://github.com/jkcgs/BankAccountMgr/blob/master/js/banks.js | Github Open Source | Open Source | MIT | 2,015 | BankAccountMgr | jkcgs | JavaScript | Code | 39 | 155 | var request = require('request');
var banks = [];
require('fs').readdirSync("./js/banks_modules").forEach(function(file) {
if(file.substr(-3) != '.js') return;
var module_name = file.substr(0, file.length-3);
var bank = require("./js/banks_modules/" + file);
bank.id = module_name;
banks.push({
id: module_name... | 32,848 |
https://github.com/8bitslime/chip8/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,018 | chip8 | 8bitslime | Ignore List | Code | 3 | 14 | build/
roms/
.vscode/
| 27,230 |
https://github.com/NewBeeTech/dataip-web/blob/master/src/routes/paramsBrowse/List.less | Github Open Source | Open Source | MIT | null | dataip-web | NewBeeTech | Less | Code | 16 | 50 | .table {
td.image {
line-height: 1;
img {
border-radius: 2px;
}
}
}
.hide {display: none}
| 21,588 |
https://github.com/keiserlab/consensus-learning-paper/blob/master/software_packages/libvips-8.2.2/libvips/foreign/vipspng.c | Github Open Source | Open Source | MIT | 2,022 | consensus-learning-paper | keiserlab | C | Code | 3,494 | 10,083 | /* Load/save png image with libpng
*
* 28/11/03 JC
* - better no-overshoot on tile loop
* 22/2/05
* - read non-interlaced PNG with a line buffer (thanks Michel Brabants)
* 11/1/06
* - read RGBA palette-ized images more robustly (thanks Tom)
* 20/4/06
* - auto convert to sRGB/mono (with optional alpha) for sa... | 52,958 |
https://github.com/neighborcell/awaken/blob/master/app/src/main/java/com/neighborcell/awaken/db/EvtEntUpInsMeaning.java | Github Open Source | Open Source | Apache-2.0 | null | awaken | neighborcell | Java | Code | 119 | 433 | package com.neighborcell.awaken.db;
import android.database.*;
import android.database.sqlite.*;
import com.neighborcell.testament.db.*;
import java.util.*;
import android.view.View.*;
import com.neighborcell.testament.log.*;
public class EvtEntUpInsMeaning extends TsEnt
{
private static final String sqlinsert =
... | 45,290 |
https://github.com/Djohnnie/BotRetreatArena/blob/master/Assets/Standard Assets/Scripts.meta | Github Open Source | Open Source | MIT | 2,016 | BotRetreatArena | Djohnnie | Unity3D Asset | Code | 14 | 71 | fileFormatVersion: 2
guid: ae9083ac111804e1f9fbbff9c28e69b7
folderAsset: yes
timeCreated: 1453574725
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
| 5,616 |
https://github.com/LucBerge/Datafus/blob/master/data/DofusInvoker/scripts/flashx/textLayout/formats/ColorName.as | Github Open Source | Open Source | MIT | 2,021 | Datafus | LucBerge | null | Spoken | 124 | 316 | package flashx.textLayout.formats
{
public final class ColorName
{
public static const BLACK:String = "black";
public static const BLUE:String = "blue";
public static const GREEN:String = "green";
public static const GRAY:String = "gray";
public sta... | 56,161 |
https://github.com/xstefank/adventOfCode2021/blob/master/src/main/java/io/xstefank/AdventDay13.java | Github Open Source | Open Source | Apache-2.0 | null | adventOfCode2021 | xstefank | Java | Code | 476 | 1,426 | package io.xstefank;
import io.xstefank.util.InputReader;
import javax.inject.Inject;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.Scanner;
@Path("/13")
public class AdventDay13 {
@Inject
InputReader inputReade... | 56,997 |
https://github.com/DgINC/nakama-cpp/blob/master/docs/html/struct_nakama_1_1_n_friends.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | nakama-cpp | DgINC | JavaScript | Code | 10 | 66 | var struct_nakama_1_1_n_friends =
[
[ "friends", "struct_nakama_1_1_n_friends.html#af004a854386a4a94589db4f93dd6c125", null ]
]; | 43,237 |
https://github.com/vavravl1/home_center/blob/master/app/loader/AppLoader.scala | Github Open Source | Open Source | MIT | null | home_center | vavravl1 | Scala | Code | 141 | 460 | package loader
import com.softwaremill.macwire._
import controllers._
import play.api.ApplicationLoader.Context
import play.api._
import play.api.libs.concurrent.Execution.Implicits._
import play.api.routing.Router
import play.filters.csrf.CSRFComponents
import router.Routes
import scalikejdbc.config.DBs
import scala... | 50,840 |
https://github.com/TheWishWithin/kamp-api/blob/master/kamp-core/src/test/kotlin/ch/leadrian/samp/kamp/core/api/data/WeaponDataTest.kt | Github Open Source | Open Source | Apache-2.0 | 2,020 | kamp-api | TheWishWithin | Kotlin | Code | 79 | 366 | package ch.leadrian.samp.kamp.core.api.data
import ch.leadrian.samp.kamp.core.api.constants.WeaponModel
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
internal class WeaponDataTest {
@Test
fun toWeaponDataShouldReturnSameInstance() {
val weaponModel = ch.leadrian.... | 24,186 |
https://github.com/Im-Tae/GitCheck/blob/master/app/src/main/java/com/imtae/gitcheck/view/widget/TodayCommitWidget.kt | Github Open Source | Open Source | Apache-2.0 | 2,020 | GitCheck | Im-Tae | Kotlin | Code | 161 | 783 | package com.imtae.gitcheck.view.widget
import android.app.PendingIntent
import android.appwidget.AppWidgetManager
import android.appwidget.AppWidgetProvider
import android.content.Context
import android.content.Intent
import android.view.View
import android.widget.RemoteViews
import com.imtae.gitcheck.R
import com.imt... | 1,645 |
https://github.com/Psycomentis06/music-club-scheduler/blob/master/src/Migrations/Version20200612164609.php | Github Open Source | Open Source | MIT | 2,021 | music-club-scheduler | Psycomentis06 | PHP | Code | 156 | 487 | <?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20200612164609 extends AbstractMigration
{
public function getDescription() : string
{... | 5,563 |
https://github.com/srawlins/scidart/blob/master/lib/src/numdart/linalg/matrix_operations/matrix_identity.dart | Github Open Source | Open Source | Apache-2.0 | 2,022 | scidart | srawlins | Dart | Code | 113 | 272 | import 'package:scidart/src/numdart/arrays_base/array2d.dart';
/// Generate identity matrix
/// - [row] Number of rows.
/// - [column] Number of colums.
/// return An m-by-n matrix with ones on the diagonal and zeros elsewhere.
///
/// # Examples
/// ```dart
/// var i = identity(3, 3);
/// print(i);
/// /* output:
/... | 38,573 |
https://github.com/ec-18ctt-3211-team/customer-side-frontend/blob/master/src/components/common/layout/footer.tsx | Github Open Source | Open Source | MIT | null | customer-side-frontend | ec-18ctt-3211-team | TypeScript | Code | 38 | 145 | export default function Footer(): JSX.Element {
return (
<div className="w-full p-4 bg-brown-800 text-brown-100 text-center">
<div className="pb-2 uppercase text-base">Our team</div>
<div className="flex justify-around">
<div>Huynh Bao Di</div>
<div>Ly Ngoc Nhi</div>
<div>Ngo M... | 7,404 |
https://github.com/janwiemers/action_access/blob/master/test/test_helper.rb | Github Open Source | Open Source | MIT | 2,016 | action_access | janwiemers | Ruby | Code | 26 | 123 | # Configure Rails Environment
ENV['RAILS_ENV'] = 'test'
require 'dummy/config/environment.rb'
require 'rails/test_help'
require 'minitest/pride'
# Run migrations for in-memory SQLite database
ActiveRecord::Migration.verbose = false
ActiveRecord::Migrator.migrate(File.expand_path('../dummy/db/migrate/', __FILE__))
Ra... | 50,201 |
https://github.com/nitf/nitok-rss/blob/master/lib/parser.dart | Github Open Source | Open Source | MIT | null | nitok-rss | nitf | Dart | Code | 74 | 435 | import 'package:http/http.dart' as http;
import 'package:webfeed/webfeed.dart';
import 'dart:async';
enum RSS {
SchoolActivity,
ExamInfo,
ToStudent,
}
class Parser {
final _schoolActivity = "http://www.okinawa-ct.ac.jp/rss/RssFeed.jsp?select=%B3%D8%B9%BB%A4%CE%B3%E8%C6%B0";
final _examInfo = "http://www.ok... | 31,764 |
https://github.com/finesoft/java/blob/master/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/collective/CollectiveInitializeCommunicator.java | Github Open Source | Open Source | Apache-2.0 | null | java | finesoft | Java | Code | 572 | 1,646 | /* Copyright 2018 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 26,608 |
https://github.com/rayyreall/Whatsapp_Bot/blob/master/lib/connections/clients/main.ts | Github Open Source | Open Source | MIT | 2,022 | Whatsapp_Bot | rayyreall | TypeScript | Code | 8 | 22 | import { createConnections } from "./client";
new createConnections({}) | 20,975 |
https://github.com/INSP-RH/bw/blob/master/R/adult_weight.R | Github Open Source | Open Source | MIT | 2,023 | bw | INSP-RH | R | Code | 1,326 | 3,190 | #' @title Dynamic Adult Weight Change Model
#'
#' @description Estimates weight change given energy and sodium intake changes at
#' individual level.
#'
#' @param bw (vector) Body weight for model (kg)
#' @param ht (vector) Height for model (m)
#' @param age (vector) Age of individual (yrs)
#' @param ... | 52,154 |
https://github.com/SAtacker/kernel_learn/blob/master/Kernel_Challenge/Makefile | Github Open Source | Open Source | MIT | 2,021 | kernel_learn | SAtacker | Makefile | Code | 31 | 112 | obj-m +=char_ddriver.o
CC := gcc
all:
make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) modules
$(CC) user_space_test.c -o test
clean:
make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) clean
rm test
docs:
cd docs/
doxygen
| 9,097 |
https://github.com/SNAnalyst/shinyElement/blob/master/predProbs/server.R | Github Open Source | Open Source | MIT | 2,021 | shinyElement | SNAnalyst | R | Code | 207 | 793 | library(Stat2Data)
server <- function(input, output, session){
results <- eventReactive(input$estmButton, {
data(Titanic)
glm(Survived ~ PClass + Age + Sex, family=binomial, data=Titanic)
})
output$modObj <- renderPrint({
summary(... | 38,594 |
https://github.com/evanliomain/taninsam/blob/master/src/pop/__snapshots__/pop.spec.ts.snap | Github Open Source | Open Source | MIT | 2,020 | taninsam | evanliomain | null | Spoken | 70 | 164 | // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`pop function [] |> pop === [] 1`] = `Array []`;
exports[`pop function [1, 2, 3, 4, 5] |> pop === [1, 2, 3, 4] 1`] = `
Array [
1,
2,
3,
4,
]
`;
exports[`pop function [1] |> pop === [] 1`] = `Array []`;
exports[`pop function is a pure function 1`] = `
Array ... | 54,303 |
https://github.com/adrianymeri/itc-2019/blob/master/src/Timetabling.Internal/Specialized/Variable.cs | Github Open Source | Open Source | MIT | null | itc-2019 | adrianymeri | C# | Code | 39 | 96 | namespace Timetabling.Internal.Specialized
{
public struct Variable
{
internal Variable(int @class, int maxValue, VariableType type)
{
Class = @class;
MaxValue = maxValue;
Type = type;
}
public readonly VariableType Type;
public read... | 53,837 |
https://github.com/KY-Lin22/idocp/blob/master/include/idocp/utils/quadruped_simulator.hpp | Github Open Source | Open Source | BSD-3-Clause | 2,021 | idocp | KY-Lin22 | C++ | Code | 120 | 639 | #ifndef IDOCP_UTILS_QUADRUPED_SIMULATOR_HPP_
#define IDOCP_UTILS_QUADRUPED_SIMULATOR_HPP_
#include <string>
#include "Eigen/Core"
#include "idocp/ocp/mpc.hpp"
#include "idocp/robot/robot.hpp"
#include "idocp/utils/runge_kutta.hpp"
#include "idocp/utils/simulation_data_saver.hpp"
#include "raisim/World.hpp"
#includ... | 13,440 |
https://github.com/Ryziii/mybatisdemo/blob/master/core/src/main/java/com/rysiw/demo/common/constant/RespCode.java | Github Open Source | Open Source | MIT | null | mybatisdemo | Ryziii | Java | Code | 35 | 219 | package com.rysiw.demo.common.constant;
import lombok.AllArgsConstructor;
import lombok.Getter;
@AllArgsConstructor
@Getter
public enum RespCode {
SUCCESS("200","success"),
ERROR("A0000","error"),
TOKEN_ALIVE("A0001", "用户token存活,无需重新注册"),
CANT_FIND_USER("A0002", "未找到用户"),
PASSWORD_WRONG("A0003", ... | 41,048 |
https://github.com/RussellM2020/maml_gps/blob/master/rllab/envs/mujoco/half_cheetah_env_rand_sparse.py | Github Open Source | Open Source | MIT | null | maml_gps | RussellM2020 | Python | Code | 274 | 1,150 | import numpy as np
from rllab.core.serializable import Serializable
from rllab.envs.base import Step
from rllab.envs.mujoco.mujoco_env import MujocoEnv
from rllab.misc import logger
from rllab.misc.overrides import overrides
def smooth_abs(x, param):
return np.sqrt(np.square(x) + np.square(param)) - param
clas... | 30,747 |
https://github.com/jorn86/blind-quartets/blob/master/core/src/main/kotlin/org/hertsig/quartets/card/CardState.kt | Github Open Source | Open Source | MIT | null | blind-quartets | jorn86 | Kotlin | Code | 32 | 123 | package org.hertsig.quartets.card
import org.hertsig.quartets.api.CardName
import org.hertsig.quartets.api.Category
import org.hertsig.quartets.api.game.CardMatch
internal sealed interface CardState {
fun singleCategoryIfAny(): Category? = null
fun singleNameIfAny(): CardName? = null
fun matches(constrain... | 22,963 |
https://github.com/ruinername/musicbrainz-server/blob/master/lib/MusicBrainz/Server/Entity/Statistics/ByName.pm | Github Open Source | Open Source | BSD-2-Clause | 2,019 | musicbrainz-server | ruinername | Perl | Code | 189 | 350 | package MusicBrainz::Server::Entity::Statistics::ByName;
use Moose;
use namespace::autoclean;
use MooseX::Types::Moose qw( Str Int );
use MooseX::Types::Structured qw( Map );
has data => (
is => 'rw',
isa => Map[ Str, Int ], # Map date to value
traits => [ 'Hash' ],
default => sub { {} },
handles ... | 18,495 |
https://github.com/itsuki0927/blog-web/blob/master/components/ui/Affix/useOffset.tsx | Github Open Source | Open Source | MIT | null | blog-web | itsuki0927 | TypeScript | Code | 67 | 183 | import { useCallback, useState } from 'react';
import { useEventListener, useMount } from '@/hooks';
import getOffset, { Offset } from '@/utils/query/getOffset';
/**
* 获取 mount 元素的offset
* @param mountRef
* @returns
*/
const useOffset = (mountRef: React.RefObject<HTMLDivElement>) => {
const [offset, setOffset] =... | 27,266 |
https://github.com/JakeMal-AGGP/AR_Assignment_4v2/blob/master/AR_Assignment_3/Assets/Joystick Pack/Scripts/MovingDeathBlock.cs | Github Open Source | Open Source | MIT | 2,020 | AR_Assignment_4v2 | JakeMal-AGGP | C# | Code | 66 | 209 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MovingDeathBlock : MonoBehaviour
{
public Transform trans;
public Vector3 startPos;
public Vector3 endPos;
public int stage;
public float movespeed;
void Start()
{
trans = gameObject.tran... | 13,710 |
https://github.com/bjsteven/fe-cli-template-ts-vue2-iview/blob/master/src/site/lib.less | Github Open Source | Open Source | MIT | null | fe-cli-template-ts-vue2-iview | bjsteven | Less | Code | 67 | 289 | /**
* less 变量 & 函数库,不要放具体的样式
* @author steven
*/
@c-base: #2d8cf0;
@c-text: #515151;
// 不考虑英文单词,全部断开,用于中文环境多的场景下
.wrap() {
word-break: break-all;
word-wrap: break-word; // 用于英文断词
white-space: pre; // CSS 2.0
white-space: pre-wrap; // CSS 2.1
white-space: pre-line; // CSS 3.0
}
// ke... | 41,876 |
https://github.com/hookhookun/parse-animation-shorthand/blob/master/src/getString.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | parse-animation-shorthand | hookhookun | TypeScript | Code | 127 | 348 | import {
DoubleQuote,
SingleQuote,
Backslash,
isNot,
} from './character';
import {skip} from './skip';
import {$Error as Error} from './Error';
export const getString = (
input: string,
start: number,
): {start: number, end: number, value: string} => {
const quote = input.codePointAt(start... | 2,537 |
https://github.com/erm2wi/zoe-docker-images/blob/master/spark-worker/Dockerfile | Github Open Source | Open Source | Apache-2.0 | 2,016 | zoe-docker-images | erm2wi | Dockerfile | Code | 130 | 480 | # This dockerfile is generated, do not edit
FROM ubuntu:14.04
MAINTAINER Daniele Venzano <venza@brownhat.org>
RUN apt-get update && apt-get install -y --force-yes software-properties-common python-software-properties
RUN apt-add-repository -y ppa:webupd8team/java
RUN /bin/echo debconf shared/accepted-oracle-license-... | 11,715 |
https://github.com/zytmediation/zyt_mediation_flutter/blob/master/example/lib/main.dart | Github Open Source | Open Source | BSD-3-Clause | 2,020 | zyt_mediation_flutter | zytmediation | Dart | Code | 49 | 274 | import 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:mediation_flutter_example/home_page.dart';
import 'package:zyt_mediation/banner.dart';
import 'package:zyt_mediation/native.dart';
import 'package:zyt_mediation/call_back.dart';
import 'package:zyt_medi... | 50,435 |
https://github.com/dr-jhyun/go-acapy-client/blob/master/credential_exchange_record.go | Github Open Source | Open Source | MIT | 2,021 | go-acapy-client | dr-jhyun | Go | Code | 280 | 1,234 | package acapy
// This thing is so big that it deserves it's own file
type CredentialExchangeRecord struct {
CredentialExchangeID string `json:"credential_exchange_id"`
CredentialDefinitionID string `json:"credential_definition_id"`
ConnectionID string ... | 33,605 |
https://github.com/isurfer21/tunnel/blob/master/test/test.sh | Github Open Source | Open Source | MIT | null | tunnel | isurfer21 | Shell | Code | 130 | 471 | #!/usr/bin/bash env
echo "Tunnel's automated test-case execution"
echo "\nExecute command using cross-domain POST request"
curl --request POST \
--url 'http://127.0.0.1:9999/terminal' \
--header 'authorization: Basic YWRtaW46MTIzNDU2' \
--header 'content-type: application/x-www-form-urlencoded' \
--data cmd=pw... | 13,211 |
https://github.com/XuehaiPan/UnrealCV/blob/master/Source/UnrealCV/Private/Commands/ActionHandler.cpp | Github Open Source | Open Source | MIT | null | UnrealCV | XuehaiPan | C++ | Code | 361 | 1,396 | #include "UnrealCVPrivate.h"
#include "ActionHandler.h"
#include "CaptureManager.h"
void FActionCommandHandler::RegisterCommands()
{
FDispatcherDelegate Cmd;
FString Help;
Cmd = FDispatcherDelegate::CreateRaw(this, &FActionCommandHandler::PauseGame);
Help = "Pause the game";
CommandDispatcher->BindCommand("vset... | 17,155 |
https://github.com/codebar/planner/blob/master/db/migrate/20140611191143_rolify_create_permissions.rb | Github Open Source | Open Source | MIT | 2,023 | planner | codebar | Ruby | Code | 38 | 158 | class RolifyCreatePermissions < ActiveRecord::Migration
def change
create_table(:permissions) do |t|
t.string :name
t.references :resource, polymorphic: true
t.timestamps
end
create_table(:members_permissions, id: false) do |t|
t.references :member
t.references :permission
... | 27,857 |
https://github.com/chethan9686/Laravel/blob/master/app/Mail/UserHalfDayComing.php | Github Open Source | Open Source | MIT | 2,021 | Laravel | chethan9686 | PHP | Code | 84 | 350 | <?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Carbon\Carbon;
class UserHalfDayComing extends Mailable
{
use Queueable, SerializesModels;
/**
* Create a new message instance.
... | 14,842 |
https://github.com/Rag-neo/UI-Demo/blob/master/charts-demo/node_modules/igniteui-angular-core/esm5/lib/KeyValuePair$2.js | Github Open Source | Open Source | MS-PL, MIT | 2,020 | UI-Demo | Rag-neo | JavaScript | Code | 220 | 653 | /*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRA... | 49,109 |
https://github.com/sindney/As3-BloomLite/blob/master/examples/theme/DemoTheme.as | Github Open Source | Open Source | MIT | 2,012 | As3-BloomLite | sindney | null | Spoken | 92 | 302 | package theme
{
import bloom.themes.Theme;
import theme.demo.*;
public class DemoTheme extends Theme {
[Embed(source="demo/assets/plate.png")]
private static var bm0:Class;
public function DemoTheme() {
_alpha = 0.5;
_plate = new bm0().bitmapData;
_label = new DemoLabel();
_button = ... | 13,562 |
https://github.com/swk426/dsc-mod-3-project-v2-1-onl01-dtsc-pt-030220/blob/master/Index.ipynb | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain | 2,020 | dsc-mod-3-project-v2-1-onl01-dtsc-pt-030220 | swk426 | Jupyter Notebook | Code | 841 | 1,646 | {
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Project Topic: Bank Telemarketing Campagin\n",
"\n",
"Bank XYZ has onboarded 5000 new customers through acquiring a smaller bank. Bank XYZ launches a telemarketing campaign to incite these customers to subscribe to a term dep... | 53,474 |
https://github.com/edmondscommerce/phpqa/blob/master/includes/magento2/beautifierFixer.inc.bash | Github Open Source | Open Source | MIT | 2,021 | phpqa | edmondscommerce | Shell | Code | 72 | 152 | if [[ "" == "$specifiedPath" ]]
then
echo "Code Beautifier and Fixer modifies code"
echo "This tool does not run on an entire Magento 2 codebase. You should instead run it on specific modules you wish to modify."
else
echo
echo "PHPCBF can automatically fix some violations"
echo -n "Do you want to r... | 46,766 |
https://github.com/stmach/gvsoc/blob/master/models/pulp/chips/pulp/Makefile | Github Open Source | Open Source | Apache-2.0 | null | gvsoc | stmach | Makefile | Code | 13 | 93 | ifeq '$(pulp_chip)' 'pulp'
IMPLEMENTATIONS += pulp/chips/pulp/apb_soc_impl
COMPONENTS += pulp/chips/pulp/apb_soc
pulp/chips/pulp/apb_soc_impl_SRCS = pulp/chips/pulp/apb_soc_impl.cpp
endif
| 49,680 |
https://github.com/Kuew/graphify/blob/master/src/main/java/org/neo4j/nlp/config/StorageOptions.java | Github Open Source | Open Source | Apache-2.0 | 2,014 | graphify | Kuew | Java | Code | 9 | 33 | package org.neo4j.nlp.config;
public enum StorageOptions
{
CacheOnly,
DiskOnly
}
| 43,417 |
https://github.com/TGShevchenko/LiquidDemocracyJava/blob/master/LiquidDemocracyCSharp/LiquidDemocracy/IVoterController.cs | Github Open Source | Open Source | MIT | null | LiquidDemocracyJava | TGShevchenko | C# | Code | 51 | 194 | using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace LiquidDemocracy
{
/// <summary>
/// Interface for a VoterController class
/// </summary>
public interface IVoterController
{
void AddVoter(IVoter voter);
void AddVoterWithChoice(String v... | 38,742 |
https://github.com/lucasrct/dhbb-nlp/blob/master/pal/11260.conllu | Github Open Source | Open Source | CC-BY-4.0 | 2,020 | dhbb-nlp | lucasrct | null | Spoken | 2,761 | 10,497 |
1 " " PUNCT PU|@PU _ 2 punct _ _
2 Silvio Silvio PROPN PROP|M|S|@SUBJ> Gender=Masc|Number=Sing 8 nsubj _ MWE:Silvio=Mendes
3 Mendes Mendes PROPN PROP|@N< Number=Sing 2 name _ _
4 de de ADP PRP|@N< _ 5 case _ _
5 Oliveira Oliveira PROPN PROP|@P< Number=Sing 2 nmod _ MWE:Oliveira=Filho
6 Filho Filho PROPN PROP|@N< Numbe... | 26,681 |
https://github.com/tbulding/quickstart-aws-utility-meter-data-analytics-platform/blob/master/assets/functions/outage_info/node_modules/csvtojson/src/ParseRuntime.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | quickstart-aws-utility-meter-data-analytics-platform | tbulding | TypeScript | Code | 265 | 720 | import { CSVParseParam, CellParser } from "./Parameters";
import { Converter, PreRawDataCallback, PreFileLineCallback } from "./Converter";
import { ChildProcess } from "child_process";
import CSVError from "./CSVError";
export interface ParseRuntime {
/**
* If need convert ignoreColumn from column name(string) t... | 43,273 |
https://github.com/mbriggs/db/blob/master/src/session/session.ts | Github Open Source | Open Source | MIT | null | db | mbriggs | TypeScript | Code | 239 | 683 | import pg from "pg";
import * as context from "@mbriggs/context";
import debug from "debug";
import { partial } from "lodash";
import * as metadata from "../metadata";
import type { Query } from "../interfaces";
const log = debug("db:session");
const logData = debug("db:session:data");
export async function connect(... | 29,005 |
https://github.com/dropbox/groupy/blob/master/tests/test_resources.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | groupy | dropbox | Python | Code | 156 | 521 | import json
from typing import TYPE_CHECKING
from mock import Mock, patch
from groupy.client import Groupy, HTTPClient
from tests.fixtures import permission_response # noqa: F401
from tests.fixtures import service_account_response # noqa: F401
if TYPE_CHECKING:
from typing import Any, Dict, Text
def test_ser... | 35,080 |
https://github.com/BlueSkeptical/Chronicle-Wire/blob/master/src/test/java/net/openhft/chronicle/wire/method/MockMethodsImpl.java | Github Open Source | Open Source | Apache-2.0 | null | Chronicle-Wire | BlueSkeptical | Java | Code | 54 | 195 | package net.openhft.chronicle.wire.method;
import java.util.List;
class MockMethodsImpl implements MockMethods {
private final MockMethods out;
public MockMethodsImpl(MockMethods out) {
this.out = out;
}
@Override
public void method1(MockDto dto) {
out.method1(dto);
}
@O... | 39,377 |
https://github.com/ashwinath/turing/blob/master/api/turing/cmd/main.go | Github Open Source | Open Source | Apache-2.0 | null | turing | ashwinath | Go | Code | 13 | 67 | package main
import (
"github.com/gojek/turing/api/turing/server"
_ "github.com/jinzhu/gorm/dialects/postgres"
)
func main() {
server.Run()
}
| 50,044 |
https://github.com/VirtueDev/synced_repo/blob/master/projects/jswiff/src/com/jswiff/swfrecords/CurvedEdgeRecord.java | Github Open Source | Open Source | BSD-3-Clause | 2,021 | synced_repo | VirtueDev | Java | Code | 644 | 1,417 | /*
* JSwiff is an open source Java API for Macromedia Flash file generation
* and manipulation
*
* Copyright (C) 2004-2005 Ralf Terdic (contact@jswiff.com)
*
* This program 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 S... | 48,993 |
https://github.com/aucoeur/WeVoteServer/blob/master/import_export_vote_usa/controllers.py | Github Open Source | Open Source | MIT | 2,021 | WeVoteServer | aucoeur | Python | Code | 1,235 | 7,441 | # import_export_vote_usa/controllers.py
# Brought to you by We Vote. Be good.
# -*- coding: UTF-8 -*-
from .models import VoteUSAApiCounterManager
from ballot.models import BallotReturnedManager
from candidate.models import PROFILE_IMAGE_TYPE_UNKNOWN, PROFILE_IMAGE_TYPE_VOTE_USA
from config.base import get_environment... | 51,463 |
https://github.com/xarephonic/mercenarywings/blob/master/Assets/Scripts/_GUI.meta | Github Open Source | Open Source | CC-BY-3.0, CC-BY-4.0 | 2,017 | mercenarywings | xarephonic | Unity3D Asset | Code | 14 | 72 | fileFormatVersion: 2
guid: 54b308e78a0db4d7ca2e107ad9451b3a
folderAsset: yes
timeCreated: 1447148821
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
| 26,069 |
https://github.com/darinelnieto/appVinoLaLeyenda/blob/master/app/Http/Controllers/ProductController.php | Github Open Source | Open Source | MIT | null | appVinoLaLeyenda | darinelnieto | PHP | Code | 195 | 785 | <?php
namespace App\Http\Controllers;
use App\Product;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Auth;
use App\paginate;
use App\Order;
class ProductController extends Controller
{
public function index()
{
$productos = DB::table('products')->pagi... | 44,688 |
https://github.com/parzibyte/plantilla-php-vue/blob/master/app/Servicios/Sesion.php | Github Open Source | Open Source | MIT | 2,022 | plantilla-php-vue | parzibyte | PHP | Code | 224 | 734 | <?php
namespace Parzibyte\Servicios;
use PDO;
/*
Manejador de sesiones propio
Recuerda crear una tabla así:
CREATE TABLE IF NOT EXISTS sesiones(
id VARCHAR(255) NOT NULL PRIMARY KEY,
datos TEXT NOT NULL,
ultimo_acceso BIGINT UNSIGNED NOT NULL
);
@author parzibyte
@see parzibyte.me/blog
@date 2018-06-28
*/
class Sesi... | 54,417 |
https://github.com/mysteryhunt/hunt2018-pid412/blob/master/backend/go/src/hunt/tpmhsim/redis.go | Github Open Source | Open Source | MIT | null | hunt2018-pid412 | mysteryhunt | Go | Code | 250 | 811 | package main
import (
"fmt"
"net/url"
"github.com/go-redis/redis"
)
type redisConnection struct {
prefix string
client *redis.Client
}
func newRedisConnection(redisURL string, prefix string) (*redisConnection, error) {
url, err := url.Parse(redisURL)
if err != nil {
return nil, fmt.Errorf("Error parsing Re... | 43,407 |
https://github.com/asidev/aybu-themes/blob/master/aybu/themes/base/static/js/structure/urlfy.js | Github Open Source | Open Source | MIT, Apache-2.0 | 2,013 | aybu-themes | asidev | JavaScript | Code | 111 | 581 | /*
* Copyright © 2010 Asidev s.r.l. - www.asidev.com
*/
String.prototype.trim = function () {
return this.replace(/^\s*/, "").replace(/\s*$/, "");
}
var xlate = {
0xc0:'A', 0xc1:'A', 0xc2:'A', 0xc3:'A', 0xc4:'A', 0xc5:'A',
0xc6:'Ae', 0xc7:'C',
0xc8:'E', 0xc9:'E', 0xca:'E', 0xcb:'E',
0xcc:'I', 0xcd... | 5,813 |
https://github.com/hlibco/hypersamples/blob/master/src/state/state.init.ts | Github Open Source | Open Source | MIT | 2,021 | hypersamples | hlibco | TypeScript | Code | 137 | 456 | import { Hyperway, Router } from 'hyperway'
import clone from 'rfdc'
import { getStateFromLocalStorage } from '../utils/local-storage'
import { State } from './state.interface'
const LOCAL_STORAGE_STATE = getStateFromLocalStorage()
export const INITIAL_STATE: State = {
merge(mergeFx): State {
const s = clone()(... | 27,034 |
https://github.com/Shofiul-Alam/magento-app/blob/master/src/vendor/vertex/sdk/src/Mapper/SellerMapperInterface.php | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, AFL-2.1, AFL-3.0, OSL-3.0, MIT | 2,019 | magento-app | Shofiul-Alam | PHP | Code | 92 | 239 | <?php
/**
* @copyright Vertex. All rights reserved. https://www.vertexinc.com/
* @author Mediotype Development <diveinto@mediotype.com>
*/
namespace Vertex\Mapper;
use Vertex\Data\SellerInterface;
use Vertex\Exception\ValidationException;
/**
* SOAP mapping methods for {@see SellerInterface}
*
*... | 39,942 |
https://github.com/joelhulen/Ghost-Azure/blob/master/content/themes/futura - 1.4/partials/widget-tagcloud.hbs | Github Open Source | Open Source | MIT | 2,023 | Ghost-Azure | joelhulen | null | Spoken | 28 | 83 | <!-- start tag cloud widget -->
<div class="widget">
<h4 class="title">Tags</h4>
<div class="content tag-cloud">
{{#get "tags" limit="all" order="name asc"}}{{tags separator="" }}{{/get}}
</div>
</div>
<!-- end tag cloud widget -->
| 56,324 |
https://github.com/nswdpc/silverstripe-mailgun-sync/blob/master/src/Connector/Message.php | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-unknown-license-reference | 2,023 | silverstripe-mailgun-sync | nswdpc | PHP | Code | 1,158 | 3,395 | <?php
namespace NSWDPC\Messaging\Mailgun\Connector;
use Mailgun\Mailgun;
use NSWDPC\Messaging\Mailgun\Log;
use NSWDPC\Messaging\Mailgun\Connector\Event as EventConnector;
use Mailgun\Model\Message\SendResponse;
use Mailgun\Model\Message\ShowResponse;
use NSWDPC\Messaging\Mailgun\SendJob;
use NSWDPC\Messaging\Mailgun\M... | 16,157 |
https://github.com/fatahamirha/delTelegramAccount/blob/master/app/src/main/java/org/telegram/android/kernel/compat/v1/TLBoolTrueCompat.java | Github Open Source | Open Source | MIT | 2,021 | delTelegramAccount | fatahamirha | Java | Code | 37 | 89 | package org.telegram.android.kernel.compat.v1;
/**
* Created with IntelliJ IDEA.
* User: ex3ndr
* Date: 18.09.13
* Time: 2:19
* To change this template use File | Settings | File Templates.
*/
public class TLBoolTrueCompat extends TLBoolCompat {
}
| 3,949 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.