hexsha stringlengths 40 40 | size int64 5 1.05M | ext stringclasses 98
values | lang stringclasses 21
values | max_stars_repo_path stringlengths 3 945 | max_stars_repo_name stringlengths 4 118 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 368k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 945 | max_issues_repo_name stringlengths 4 118 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 134k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 945 | max_forks_repo_name stringlengths 4 135 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 5 1.05M | avg_line_length float64 1 1.03M | max_line_length int64 2 1.03M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
12df49c85d82b7ab82d1c853adb55cd46456644d | 1,370 | cs | C# | tests/Tests.Jeebs.Data.All/Tests.Jeebs.Data.Querying/_/QueryBuilderWithFrom/Select_Tests.cs | bencgreen/jeebs | 8e15b051bf09f5cd51e18e9e5de9c923ee80bff9 | [
"MIT"
] | 3 | 2020-08-19T17:39:16.000Z | 2021-03-17T10:09:31.000Z | tests/Tests.Jeebs.Data.All/Tests.Jeebs.Data.Querying/_/QueryBuilderWithFrom/Select_Tests.cs | bencgreen/jeebs | 8e15b051bf09f5cd51e18e9e5de9c923ee80bff9 | [
"MIT"
] | null | null | null | tests/Tests.Jeebs.Data.All/Tests.Jeebs.Data.Querying/_/QueryBuilderWithFrom/Select_Tests.cs | bencgreen/jeebs | 8e15b051bf09f5cd51e18e9e5de9c923ee80bff9 | [
"MIT"
] | 1 | 2021-04-05T11:40:46.000Z | 2021-04-05T11:40:46.000Z | // Jeebs Unit Tests
// Copyright (c) bfren.uk - licensed under https://mit.bfren.uk/2013
using Jeebs.Data.Enums;
using Jeebs.Data.Mapping;
using Xunit;
namespace Jeebs.Data.Querying.QueryBuilderWithFrom_Tests
{
public class Select_Tests
{
[Fact]
public void Selects_Matching_Columns_From_Tables()
{
// Arra... | 22.833333 | 81 | 0.654015 |
2f7a998e0f0bcc44e0cd3473886407571e3c68c1 | 1,061 | js | JavaScript | lib/mongo.js | laizhenhai88/laputa | 0fb20f8bd206c2640da40b9e0d2545790a3ca400 | [
"Apache-2.0"
] | 1 | 2018-03-27T12:01:32.000Z | 2018-03-27T12:01:32.000Z | lib/mongo.js | laizhenhai88/laputa | 0fb20f8bd206c2640da40b9e0d2545790a3ca400 | [
"Apache-2.0"
] | null | null | null | lib/mongo.js | laizhenhai88/laputa | 0fb20f8bd206c2640da40b9e0d2545790a3ca400 | [
"Apache-2.0"
] | null | null | null | const genericPool = require('generic-pool');
const MongoClient = require('mongodb').MongoClient;
const ObjectID = require('mongodb').ObjectID;
const logger = require('./logger')();
const conf = require('../conf.json');
// const url = 'mongodb://192.168.7.252:27017/laputa';
// const url = 'mongodb://localhost:27017/lap... | 23.065217 | 68 | 0.60886 |
05a9bc04cad9c5464ef3c1a03892c7b0f5c63cfb | 381 | py | Python | tests/processor/unit/test_binarize.py | yubessy/prepkit | 5d2732c05288cd2e76d5d3f539210a91b01f5804 | [
"MIT"
] | 3 | 2018-01-21T07:21:27.000Z | 2018-01-21T11:22:08.000Z | tests/processor/unit/test_binarize.py | yubessy/prepkit | 5d2732c05288cd2e76d5d3f539210a91b01f5804 | [
"MIT"
] | null | null | null | tests/processor/unit/test_binarize.py | yubessy/prepkit | 5d2732c05288cd2e76d5d3f539210a91b01f5804 | [
"MIT"
] | null | null | null | from pandas import Series
from pandas.util.testing import assert_series_equal
from prepkit.processor.unit.binarize import Binarize
from ..._helper import array_uint8
def test_process():
processor = Binarize()
target = Series([0.0, 0.5, 1.0])
result = processor.process(target)
expected = Series(array... | 25.4 | 52 | 0.737533 |
c6fbce4801e99dc9f94cfe4b3f3e2170e015002e | 4,899 | rs | Rust | crates/rune/src/compile/expr_call.rs | shekohex/rune | 05fab8da952737e61c8d1141393e3faa6318d4e6 | [
"Apache-2.0",
"MIT"
] | 1 | 2022-03-14T23:15:43.000Z | 2022-03-14T23:15:43.000Z | crates/rune/src/compile/expr_call.rs | shekohex/rune | 05fab8da952737e61c8d1141393e3faa6318d4e6 | [
"Apache-2.0",
"MIT"
] | null | null | null | crates/rune/src/compile/expr_call.rs | shekohex/rune | 05fab8da952737e61c8d1141393e3faa6318d4e6 | [
"Apache-2.0",
"MIT"
] | null | null | null | use crate::ast;
use crate::compiler::{Compiler, Needs};
use crate::error::CompileResult;
use crate::traits::{Compile, Resolve as _};
use crate::CompileError;
use runestick::{CompileMeta, Hash, Inst};
/// Compile a call expression.
impl Compile<(&ast::ExprCall, Needs)> for Compiler<'_> {
fn compile(&mut self, (expr... | 34.744681 | 93 | 0.448459 |
d66e58b545920eef81cf778fbe98cb59665bc1f2 | 2,122 | sql | SQL | zuolin_kitchen_2015-08-13.sql | alex-chan/zuolin_kitchen | 7973ca3378b8f94e39702c643ee49b8188281233 | [
"MIT"
] | null | null | null | zuolin_kitchen_2015-08-13.sql | alex-chan/zuolin_kitchen | 7973ca3378b8f94e39702c643ee49b8188281233 | [
"MIT"
] | null | null | null | zuolin_kitchen_2015-08-13.sql | alex-chan/zuolin_kitchen | 7973ca3378b8f94e39702c643ee49b8188281233 | [
"MIT"
] | null | null | null | # ************************************************************
# Sequel Pro SQL dump
# Version 4096
#
# http://www.sequelpro.com/
# http://code.google.com/p/sequel-pro/
#
# Host: localhost (MySQL 5.6.22)
# Database: zuolin_kitchen
# Generation Time: 2015-08-13 09:57:23 +0000
# ******************************************... | 34.786885 | 119 | 0.656927 |
d37f4c2523ee04f8136339ada3d00fc3ff872e65 | 5,054 | rs | Rust | rust/core/src/matching/jaccard/mod.rs | DougAnderson444/deno-autosuggest | 9d7b164063decd0bc9af3ec01e411c3a307f2843 | [
"MIT"
] | 17 | 2020-02-21T14:28:26.000Z | 2022-01-23T16:26:20.000Z | rust/core/src/matching/jaccard/mod.rs | DougAnderson444/deno-autosuggest | 9d7b164063decd0bc9af3ec01e411c3a307f2843 | [
"MIT"
] | null | null | null | rust/core/src/matching/jaccard/mod.rs | DougAnderson444/deno-autosuggest | 9d7b164063decd0bc9af3ec01e411c3a307f2843 | [
"MIT"
] | 3 | 2020-07-11T11:22:18.000Z | 2022-03-18T10:38:40.000Z | use std::cmp::Ordering;
use std::cell::RefCell;
use Ordering::{
Less,
Equal,
Greater,
};
const DEFAULT_CAPACITY: usize = 20;
pub fn simple_similarity<T: PartialEq + Copy + Ord>(set1: &[T], set2: &[T]) -> f64 {
let mut i1 = 0;
let mut i2 = 0;
let mut union = 0;
let mut intersection = 0;
... | 25.654822 | 84 | 0.429165 |
1f647c6c5c7a5dfe694d0b2e34bedeeeeb70d2e2 | 411 | cs | C# | MTGAHelper.Web.Models/Response/Misc/GetSetsResponse.cs | robaxelsen/MTGAHelper-Windows-Client | c51e449a5dcf8473359734c058efab2ba638814c | [
"MIT"
] | null | null | null | MTGAHelper.Web.Models/Response/Misc/GetSetsResponse.cs | robaxelsen/MTGAHelper-Windows-Client | c51e449a5dcf8473359734c058efab2ba638814c | [
"MIT"
] | null | null | null | MTGAHelper.Web.Models/Response/Misc/GetSetsResponse.cs | robaxelsen/MTGAHelper-Windows-Client | c51e449a5dcf8473359734c058efab2ba638814c | [
"MIT"
] | null | null | null | using System.Collections.Generic;
namespace MTGAHelper.Web.UI.Model.Response.Misc
{
public class GetSetsResponse
{
public ICollection<SetInfo> Sets { get; set; }
}
public class SetInfo
{
public ICollection<string> Formats { get; set; }
public string Name { get; set; }
... | 22.833333 | 56 | 0.620438 |
a39ee3a05a62a03ba56fe635be7715d751bd4e75 | 406 | sql | SQL | databases/postgresql/sql/create_tables.sql | alessandrobianchi/truelayer_de_challenge | 00c4340b9ee1660362efb83d30eee22091604532 | [
"FTL"
] | null | null | null | databases/postgresql/sql/create_tables.sql | alessandrobianchi/truelayer_de_challenge | 00c4340b9ee1660362efb83d30eee22091604532 | [
"FTL"
] | null | null | null | databases/postgresql/sql/create_tables.sql | alessandrobianchi/truelayer_de_challenge | 00c4340b9ee1660362efb83d30eee22091604532 | [
"FTL"
] | null | null | null | CREATE TABLE IF NOT EXISTS movies (
id integer PRIMARY KEY NOT NULL,
title varchar(100) NOT NULL,
budget real,
year integer,
revenue real,
rating real,
ratio real,
production_company varcha... | 33.833333 | 53 | 0.512315 |
7f8812f935de06794ac58701fdfefa9cb53f3867 | 3,851 | kt | Kotlin | core/descriptors/src/org/jetbrains/kotlin/resolve/inlineClassesUtils.kt | andreyfomenkov/kotlin-relaxed | 0f3f251454e49d20d4c7242beeac5d4bda021c28 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | core/descriptors/src/org/jetbrains/kotlin/resolve/inlineClassesUtils.kt | andreyfomenkov/kotlin-relaxed | 0f3f251454e49d20d4c7242beeac5d4bda021c28 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | core/descriptors/src/org/jetbrains/kotlin/resolve/inlineClassesUtils.kt | andreyfomenkov/kotlin-relaxed | 0f3f251454e49d20d4c7242beeac5d4bda021c28 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright 2000-2018 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.resolve
import org.jetbrains.kotlin.descriptors.*
import org.jetbrains.kotlin.na... | 46.39759 | 123 | 0.784472 |
a3a747cf04d15ec86958c67a0f73a7feb8d126f3 | 2,817 | java | Java | src/com/stt/portfolio/gui/TaxDialog.java | skarna1/javaportfolio | 31752c00f0caee8a0289e8767b8ade7a19f41bf1 | [
"Apache-2.0"
] | 3 | 2017-01-10T11:09:49.000Z | 2017-11-19T11:48:38.000Z | src/com/stt/portfolio/gui/TaxDialog.java | skarna1/javaportfolio | 31752c00f0caee8a0289e8767b8ade7a19f41bf1 | [
"Apache-2.0"
] | null | null | null | src/com/stt/portfolio/gui/TaxDialog.java | skarna1/javaportfolio | 31752c00f0caee8a0289e8767b8ade7a19f41bf1 | [
"Apache-2.0"
] | 1 | 2017-01-10T10:45:40.000Z | 2017-01-10T10:45:40.000Z | package com.stt.portfolio.gui;
import java.awt.Component;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JTextField;
import com.stt.portfolio.I_TickerManager;
public class TaxDialog extends BaseDialog {
private static S... | 24.929204 | 77 | 0.747249 |
0a9556a588048c93a1b604df85092ffb4c15c798 | 1,380 | cs | C# | src/Core/Types/Configuration/SchemaConfiguration.DataLoader.cs | SwissLife-OSS/hotchocolate | d64036aabd064890242af98c6956ef7dbb2d004d | [
"MIT"
] | 1 | 2021-08-19T13:27:10.000Z | 2021-08-19T13:27:10.000Z | src/Core/Types/Configuration/SchemaConfiguration.DataLoader.cs | SwissLife-OSS/hotchocolate | d64036aabd064890242af98c6956ef7dbb2d004d | [
"MIT"
] | null | null | null | src/Core/Types/Configuration/SchemaConfiguration.DataLoader.cs | SwissLife-OSS/hotchocolate | d64036aabd064890242af98c6956ef7dbb2d004d | [
"MIT"
] | null | null | null | using System;
using System.Threading;
using System.Threading.Tasks;
using HotChocolate.Runtime;
namespace HotChocolate.Configuration
{
internal partial class SchemaConfiguration
{
[Obsolete(
"Use the IQueryContext.ContextData / IResolverContext.ContextData" +
"instead. See https:... | 33.658537 | 79 | 0.610145 |
06e2d4b09ffcf0920ec1c90f1f45a8b445dabe1d | 468 | ps1 | PowerShell | ARMTemplates/Landscapes/ot2/olddeployLandscape.ps1 | joshuaharriswwu/wwusap | 3d83c201a242138f6ac85421b7f0bf166ffbe5a1 | [
"MIT"
] | null | null | null | ARMTemplates/Landscapes/ot2/olddeployLandscape.ps1 | joshuaharriswwu/wwusap | 3d83c201a242138f6ac85421b7f0bf166ffbe5a1 | [
"MIT"
] | null | null | null | ARMTemplates/Landscapes/ot2/olddeployLandscape.ps1 | joshuaharriswwu/wwusap | 3d83c201a242138f6ac85421b7f0bf166ffbe5a1 | [
"MIT"
] | null | null | null |
Write-Host "Provisioning the Jumpbox Server(s)"
Write-Host "Creating Jumpbox Server(s)"
$res = New-AzResourceGroupDeployment -Name "Jumpbox" -ResourceGroupName $ResourceGroupName -TemplateFile ..\..\servertemplates\jumpbox\jumpbox.json -TemplateParameterFile .\jumpbox.parameters.json
if ($res.ProvisioningState -ne ... | 26 | 197 | 0.758547 |
7f320366472361075eeb35585dbd8b047d6987b4 | 370 | rb | Ruby | app/models/job.rb | genghuiluo/webcron | 9c3c7a6e2b90393912c19f8f7fcd275f5257a0c1 | [
"MIT"
] | 4 | 2017-02-09T07:07:26.000Z | 2019-01-09T14:19:07.000Z | app/models/job.rb | genghuiluo/webcron | 9c3c7a6e2b90393912c19f8f7fcd275f5257a0c1 | [
"MIT"
] | null | null | null | app/models/job.rb | genghuiluo/webcron | 9c3c7a6e2b90393912c19f8f7fcd275f5257a0c1 | [
"MIT"
] | null | null | null | class Job < ActiveRecord::Base
belongs_to :user
belongs_to :jobtype
has_many :histories, dependent: :destroy
has_many :parameters, dependent: :destroy
validates :title, presence: true, uniqueness: true
validates :first_run_at, presence: true
#validates :params, presence: true, format: {with: /\A((.)+=(.)+(\r\n)... | 37 | 117 | 0.724324 |
e73622b35255d39ff7eefb24adfa3cd184740bd8 | 1,227 | php | PHP | test/Broadway/Auditing/CommandSerializerTest.php | cordoval/broadway | 8bc780500e5bc22cf17265ed4d9ad2d849d34dbd | [
"MIT"
] | null | null | null | test/Broadway/Auditing/CommandSerializerTest.php | cordoval/broadway | 8bc780500e5bc22cf17265ed4d9ad2d849d34dbd | [
"MIT"
] | null | null | null | test/Broadway/Auditing/CommandSerializerTest.php | cordoval/broadway | 8bc780500e5bc22cf17265ed4d9ad2d849d34dbd | [
"MIT"
] | null | null | null | <?php
/*
* This file is part of the broadway/broadway package.
*
* (c) Qandidate.com <opensource@qandidate.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Broadway\Auditing;
use Broadway\TestCase;
class CommandSe... | 23.596154 | 81 | 0.593317 |
a198291e51273b739c4c278faa4d4d4bb98fc5a7 | 2,087 | ts | TypeScript | src/wizards/debugging/startDebugging.ts | dgolovin/vscode-quarkus | 26316e01f251e6659675ab03eea783c855ccde2d | [
"Apache-2.0"
] | null | null | null | src/wizards/debugging/startDebugging.ts | dgolovin/vscode-quarkus | 26316e01f251e6659675ab03eea783c855ccde2d | [
"Apache-2.0"
] | null | null | null | src/wizards/debugging/startDebugging.ts | dgolovin/vscode-quarkus | 26316e01f251e6659675ab03eea783c855ccde2d | [
"Apache-2.0"
] | 1 | 2021-06-03T12:03:13.000Z | 2021-06-03T12:03:13.000Z | /**
* Copyright 2019 Red Hat, Inc. and others.
* 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... | 38.648148 | 139 | 0.759943 |
3382a3704899ab85192fcb787b6a109792bc2584 | 459 | lua | Lua | src/balancer.lua | hashcms/HashGateWay | 144b97a72c6dcaa490eadda3a8948ff1ae15c46f | [
"MIT"
] | 1 | 2017-10-10T09:20:09.000Z | 2017-10-10T09:20:09.000Z | src/balancer.lua | manyixu/proxygateway | 144b97a72c6dcaa490eadda3a8948ff1ae15c46f | [
"MIT"
] | null | null | null | src/balancer.lua | manyixu/proxygateway | 144b97a72c6dcaa490eadda3a8948ff1ae15c46f | [
"MIT"
] | null | null | null | local _M = {}
function _M.balancing()
local balancer = require "ngx.balancer"
local host = ngx.var.backend_host
local port = ngx.var.backend_port
local ok, err = balancer.set_current_peer(host, port)
if not ok then
ngx.log(ngx.ERR, "failed to set the current peer: ", err)
return ngx.exit(500)
end
ok, err = ... | 24.157895 | 59 | 0.712418 |
7f34084448d5ec15276290e686647044ad2118f3 | 2,095 | cs | C# | SqlServerWebAdmin/Modules/Security/CreateLogin.aspx.designer.cs | witiokz/SqlServerWebAdmin | 934c6b47ba215273ac6a7c03a536d124a8f051bc | [
"MIT"
] | 11 | 2016-04-28T03:35:32.000Z | 2020-11-24T13:40:22.000Z | SqlServerWebAdmin/Modules/Security/CreateLogin.aspx.designer.cs | witiokz/SqlServerWebAdmin | 934c6b47ba215273ac6a7c03a536d124a8f051bc | [
"MIT"
] | 1 | 2017-05-10T11:50:10.000Z | 2017-05-10T11:50:10.000Z | SqlServerWebAdmin/Modules/Security/CreateLogin.aspx.designer.cs | witiokz/SqlServerWebAdmin | 934c6b47ba215273ac6a7c03a536d124a8f051bc | [
"MIT"
] | 2 | 2016-05-18T23:48:42.000Z | 2022-01-07T11:08:20.000Z | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//----------------------------------------... | 34.344262 | 99 | 0.528878 |
02765f6ce6846b83230b64cf3eac7489f99e2786 | 4,972 | cpp | C++ | Samples/shell/src/Shell.cpp | inniyah/RmlUi | 35b1132d7d018cfca4f9f1836f0d059a8e795ecf | [
"MIT"
] | null | null | null | Samples/shell/src/Shell.cpp | inniyah/RmlUi | 35b1132d7d018cfca4f9f1836f0d059a8e795ecf | [
"MIT"
] | null | null | null | Samples/shell/src/Shell.cpp | inniyah/RmlUi | 35b1132d7d018cfca4f9f1836f0d059a8e795ecf | [
"MIT"
] | null | null | null | /*
* This source file is part of RmlUi, the HTML/CSS Interface Middleware
*
* For the latest information, see http://github.com/mikke89/RmlUi
*
* Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd
* Copyright (c) 2019 The RmlUi Team, and contributors
*
* Permission is hereby granted, free of charge, to... | 34.054795 | 145 | 0.716412 |
cdd8530f867819a93f75b10fe0a32ca2c36deeed | 1,174 | cs | C# | windows/src/Library/Core/Data/Serialization/XmlSerializer.cs | hughbe/Communicate | 8e60a60660e3760ea25293b02011b7e2a92afc28 | [
"MIT"
] | 3 | 2017-02-20T12:30:15.000Z | 2021-05-17T16:01:00.000Z | windows/src/Library/Core/Data/Serialization/XmlSerializer.cs | hughbe/Cross-Platform-Bonjour-Connectivity-and-Communication-Library | 8e60a60660e3760ea25293b02011b7e2a92afc28 | [
"MIT"
] | 1 | 2017-01-10T16:50:10.000Z | 2017-01-13T01:26:24.000Z | windows/src/Library/Core/Data/Serialization/XmlSerializer.cs | hughbe/Cross-Platform-Bonjour-Connectivity-and-Communication-Library | 8e60a60660e3760ea25293b02011b7e2a92afc28 | [
"MIT"
] | 1 | 2016-07-11T02:54:32.000Z | 2016-07-11T02:54:32.000Z | using System;
using System.IO;
namespace Communicate.Serialization
{
internal static class XmlSerializer
{
public static byte[] ToData(object value, Type extra)
{
if (value == null)
{
throw new ArgumentNullException(nameof(value));
}
... | 26.681818 | 93 | 0.499148 |
ec618e01d75a56cd4d073b44cb2902669d20515b | 1,402 | lua | Lua | modules/generic/group.lua | thomasp11/protobuf_dissector | 9b95923895798c65f387f11e081497bef53fbbcb | [
"MIT"
] | 175 | 2016-02-06T15:51:36.000Z | 2022-02-26T00:15:49.000Z | modules/generic/group.lua | Elyash/protobuf_dissector | ea0079ffa9e4c3934838f13e25555df261175fb4 | [
"MIT"
] | 9 | 2016-04-18T14:01:25.000Z | 2021-11-16T02:29:55.000Z | modules/generic/group.lua | Elyash/protobuf_dissector | ea0079ffa9e4c3934838f13e25555df261175fb4 | [
"MIT"
] | 56 | 2016-02-15T09:39:18.000Z | 2022-02-26T00:15:48.000Z | ----------------------------------------
--
-- Copyright (c) 2015, 128 Technology, Inc.
--
-- author: Hadriel Kaplan <hadriel@128technology.com>
--
-- This code is licensed under the MIT license.
--
-- Version: 1.0
--
------------------------------------------
-- prevent wireshark loading this file as a plugin
if not ... | 21.569231 | 77 | 0.653352 |
3f2838d462ea0123d558382584356c255d991ca9 | 1,298 | php | PHP | database/seeds/SosmedTableSeeder.php | imugikk/Soulmeet-Final | fdd778922087d74ef146bb74257be074c318ec95 | [
"MIT"
] | null | null | null | database/seeds/SosmedTableSeeder.php | imugikk/Soulmeet-Final | fdd778922087d74ef146bb74257be074c318ec95 | [
"MIT"
] | null | null | null | database/seeds/SosmedTableSeeder.php | imugikk/Soulmeet-Final | fdd778922087d74ef146bb74257be074c318ec95 | [
"MIT"
] | null | null | null | <?php
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Str;
class SosmedTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('sosmeds')->ins... | 25.96 | 48 | 0.442219 |
e26269fe479d539d4a6c3bd9524f4b03683213c7 | 1,184 | py | Python | test/testextractor.py | MateuszSzerszynski/automatic-exams-reader | a6b9d88f5d482adf14b9c9323aa7575424f31085 | [
"MIT"
] | 1 | 2021-03-09T03:44:44.000Z | 2021-03-09T03:44:44.000Z | test/testextractor.py | MateuszSzerszynski/automatic-exams-reader | a6b9d88f5d482adf14b9c9323aa7575424f31085 | [
"MIT"
] | null | null | null | test/testextractor.py | MateuszSzerszynski/automatic-exams-reader | a6b9d88f5d482adf14b9c9323aa7575424f31085 | [
"MIT"
] | null | null | null | import unittest
from aer.domain.template import Template
from aer.extractor.fieldextractor import FieldExtractor
from PIL import Image
class TestExtractor(unittest.TestCase):
test_image_filename = 'data/extractor/test-image.png'
color_dict = {
"white": 8,
"red": 6,
"green": 3,
... | 31.157895 | 71 | 0.653716 |
a1376a81e43a04c53e6df25a266cc0414c2bca37 | 503 | tsx | TypeScript | src/components/Layout/Header/Header.tsx | oceanEcho/studier | 56d9c547eaee8b37a5befecaa4a1d19568da8fa8 | [
"MIT"
] | null | null | null | src/components/Layout/Header/Header.tsx | oceanEcho/studier | 56d9c547eaee8b37a5befecaa4a1d19568da8fa8 | [
"MIT"
] | null | null | null | src/components/Layout/Header/Header.tsx | oceanEcho/studier | 56d9c547eaee8b37a5befecaa4a1d19568da8fa8 | [
"MIT"
] | null | null | null | import React, { FunctionComponent, ReactNode } from "react";
import cn from "classnames";
import styles from "./Header.module.scss";
export interface IHeaderProps {
className?: string;
children?: ReactNode | ReactNode[];
}
export const Header: FunctionComponent<IHeaderProps> = ({
className = "",
children
}) ... | 21.869565 | 60 | 0.687873 |
db70c2ee5221c69fc5495ce27741db5027e62312 | 547 | php | PHP | application/controllers/transplant/Guide.php | kataoka787/DDDS-transplant | 0bc03dd6063d9fbdf98f216f44b950aea39bc303 | [
"MIT"
] | null | null | null | application/controllers/transplant/Guide.php | kataoka787/DDDS-transplant | 0bc03dd6063d9fbdf98f216f44b950aea39bc303 | [
"MIT"
] | null | null | null | application/controllers/transplant/Guide.php | kataoka787/DDDS-transplant | 0bc03dd6063d9fbdf98f216f44b950aea39bc303 | [
"MIT"
] | null | null | null | <?php defined('BASEPATH') or exit('No direct script access allowed');
class Guide extends CI_Controller
{
public function __construct()
{
parent::__construct();
$this->data = array();
$this->data['js'] = array();
$this->data['css'] = array();
$this->data['page_title'] =... | 23.782609 | 69 | 0.54479 |
c4d16931a4b2c2f323dd4905eb1e62c6304aefc9 | 2,395 | cpp | C++ | BOJ/06000~06999/6000~6099/6091.cpp | shinkeonkim/today-ps | f3e5e38c5215f19579bb0422f303a9c18c626afa | [
"Apache-2.0"
] | 2 | 2020-01-29T06:54:41.000Z | 2021-11-07T13:23:27.000Z | BOJ/06000~06999/6000~6099/6091.cpp | shinkeonkim/Today_PS | bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44 | [
"Apache-2.0"
] | null | null | null | BOJ/06000~06999/6000~6099/6091.cpp | shinkeonkim/Today_PS | bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
#define for1(s,n) for(int i = s; i < n; i++)
#define for1j(s,n) for(int j = s; j < n; j++)
#define foreach(k) for(auto i : k)
#define foreachj(k) for(auto j : k)
#define pb(a) push_back(a)
#define sz(a) a.size()
#define INF (ll)1e18
#define MAX 1100
using namespace std;
typedef unsigned long ... | 22.383178 | 72 | 0.460125 |
7f4912d6d19d6dab172f65c73ea34b664439c3fc | 286 | php | PHP | resources/views/frontend/banner/headerBanner.blade.php | MohamedMegid/corporate-portal | ab2b1aa8e34517a21638f7178f181bcfc72a42ca | [
"MIT"
] | null | null | null | resources/views/frontend/banner/headerBanner.blade.php | MohamedMegid/corporate-portal | ab2b1aa8e34517a21638f7178f181bcfc72a42ca | [
"MIT"
] | null | null | null | resources/views/frontend/banner/headerBanner.blade.php | MohamedMegid/corporate-portal | ab2b1aa8e34517a21638f7178f181bcfc72a42ca | [
"MIT"
] | null | null | null |
<div class="row">
@foreach($banners as $banner)
<div class="col-md-12">
<label style="color:#fff;">{{ $banner->title }}</label>
<img class="img-responsive" src="/img/uploaded/banner/{{ $banner->basic_photo }}">
</div>
@endforeach
</div>
| 28.6 | 89 | 0.545455 |
f48ad5d377c9204616b94b8c92d23a4d2cba9ad1 | 312 | ts | TypeScript | jovo-clients/jovo-client-web/src/util/OSDetector.ts | NaveenKumar12062002/jovo-framework | 61ecc811ef22007c5f5730a9701554c56067fce4 | [
"Apache-2.0"
] | 1 | 2021-05-03T22:12:37.000Z | 2021-05-03T22:12:37.000Z | jovo-clients/jovo-client-web/src/util/OSDetector.ts | NaveenKumar12062002/jovo-framework | 61ecc811ef22007c5f5730a9701554c56067fce4 | [
"Apache-2.0"
] | null | null | null | jovo-clients/jovo-client-web/src/util/OSDetector.ts | NaveenKumar12062002/jovo-framework | 61ecc811ef22007c5f5730a9701554c56067fce4 | [
"Apache-2.0"
] | null | null | null | import { BrowserDetector } from './BrowserDetector';
export class OSDetector {
static isWindows(): boolean {
const detectedData = BrowserDetector.detect();
if (!detectedData) {
return false;
}
return !!detectedData.os?.startsWith('Window') && detectedData.os !== 'Windows Mobile';
}
}
| 26 | 91 | 0.669872 |
38d899457947b571b3ec192f5700b8a6c5371ddb | 2,221 | dart | Dart | packages/unit/test/widget/draggable_test.dart | jason-simmons/flutter_tools | 8a8bd0197c0da85bc1c750647e22eceffd39aeab | [
"BSD-3-Clause"
] | 2 | 2020-07-17T05:07:01.000Z | 2021-07-23T15:09:49.000Z | packages/unit/test/widget/draggable_test.dart | jason-simmons/flutter_tools | 8a8bd0197c0da85bc1c750647e22eceffd39aeab | [
"BSD-3-Clause"
] | 1 | 2016-05-16T15:51:22.000Z | 2016-05-17T20:31:00.000Z | packages/unit/test/widget/draggable_test.dart | jason-simmons/flutter | 8a8bd0197c0da85bc1c750647e22eceffd39aeab | [
"BSD-3-Clause"
] | null | null | null | import 'package:flutter/material.dart';
import 'package:test/test.dart';
import '../engine/mock_events.dart';
import 'widget_tester.dart';
void main() {
test('Drag and drop - control test', () {
testWidgets((WidgetTester tester) {
TestPointer pointer = new TestPointer(7);
List accepted = [];
... | 31.28169 | 73 | 0.573615 |
f323be8d97f1059bdd3372297c06f929708d220c | 4,162 | swift | Swift | Sources/SDGHTML/Syntax/Protocols/Syntax.swift | SDGGiesbrecht/SDGWeb | d571ee3600a9e7c69a5ef22d93fc0cc28139950f | [
"Apache-2.0"
] | 1 | 2018-11-27T14:30:58.000Z | 2018-11-27T14:30:58.000Z | Sources/SDGHTML/Syntax/Protocols/Syntax.swift | SDGGiesbrecht/SDGWeb | d571ee3600a9e7c69a5ef22d93fc0cc28139950f | [
"Apache-2.0"
] | 12 | 2021-12-20T03:57:40.000Z | 2021-12-20T03:58:29.000Z | Sources/SDGHTML/Syntax/Protocols/Syntax.swift | SDGGiesbrecht/SDGWeb | d571ee3600a9e7c69a5ef22d93fc0cc28139950f | [
"Apache-2.0"
] | null | null | null | /*
Syntax.swift
This source file is part of the SDGWeb open source project.
https://sdggiesbrecht.github.io/SDGWeb
Copyright ©2019–2021 Jeremy David Giesbrecht and the SDGWeb project contributors.
Soli Deo gloria.
Licensed under the Apache Licence, Version 2.0.
See http://www.apache.org/licenses/LICENSE-2.0 ... | 30.82963 | 187 | 0.701346 |
0d1735d9cde92bb5391b4551ab698495d3886238 | 106 | rabl | Ruby | api/v3/views/protected_areas.rabl | unepwcmc/protectedplanet-api | 9bcbbdb15275ab2a3592a58b85bb37f95b9099b2 | [
"MIT"
] | 1 | 2020-11-30T15:19:43.000Z | 2020-11-30T15:19:43.000Z | api/v3/views/protected_areas.rabl | unepwcmc/protectedplanet-api | 9bcbbdb15275ab2a3592a58b85bb37f95b9099b2 | [
"MIT"
] | 12 | 2017-10-30T14:33:08.000Z | 2022-03-21T10:21:48.000Z | api/v3/views/protected_areas.rabl | unepwcmc/protectedplanet-api | 9bcbbdb15275ab2a3592a58b85bb37f95b9099b2 | [
"MIT"
] | null | null | null | collection @protected_areas, root: :protected_areas, object_root: false
extends "v3/views/protected_area"
| 35.333333 | 71 | 0.830189 |
f7a941c04b2b04af8e1d278e5a2ec2434bbeba4b | 5,167 | rb | Ruby | lib/souls/cli/release/release.rb | majacQ/souls | 93a489e48da420cd101d0262d56d133202f5433a | [
"Apache-2.0"
] | 323 | 2020-11-05T00:08:31.000Z | 2022-03-22T17:36:39.000Z | lib/souls/cli/release/release.rb | majacQ/souls | 93a489e48da420cd101d0262d56d133202f5433a | [
"Apache-2.0"
] | 35 | 2021-06-14T15:06:35.000Z | 2022-01-09T10:41:19.000Z | lib/souls/cli/release/release.rb | majacQ/souls | 93a489e48da420cd101d0262d56d133202f5433a | [
"Apache-2.0"
] | 2 | 2021-11-30T12:49:44.000Z | 2021-12-09T02:41:48.000Z | module Souls
class CLI < Thor
desc "release", "Release Gem"
def release
system("gem install souls")
sleep(3)
current_souls_ver = Souls::VERSION.strip.split(".").map(&:to_i)
prompt = TTY::Prompt.new
choices = [
"1. Patch(#{Souls.version_detector(current_ver: current_souls_... | 40.054264 | 102 | 0.607122 |
eb01b4562fd9a0eda0b845d70a5de5f41b3fbe28 | 5,306 | lua | Lua | src/Core/Shared/Packages/Remote/ClientRemote.lua | Hasnain123Raza/core | 71c8da01eb964d1ce35d3e834b46af1a6857ed87 | [
"MIT"
] | null | null | null | src/Core/Shared/Packages/Remote/ClientRemote.lua | Hasnain123Raza/core | 71c8da01eb964d1ce35d3e834b46af1a6857ed87 | [
"MIT"
] | null | null | null | src/Core/Shared/Packages/Remote/ClientRemote.lua | Hasnain123Raza/core | 71c8da01eb964d1ce35d3e834b46af1a6857ed87 | [
"MIT"
] | null | null | null | -- CONFIG
-- This is important!!
-- This defines the folder to store all remotes
-- It must be present before the game initiates
local remotesStorage = require(game.Nanoblox).shared.Remotes
local runService = game:GetService("RunService")
-- LOCAL
local ERROR_NO_LISTENER = "Failed to get remoteInstance %s for '%s': ... | 25.882927 | 107 | 0.768564 |
7f3b2a285671d17d8c4ae2a8bffb838259293e6b | 1,770 | php | PHP | src/Headers.php | sheychen290/colis | b0552ece885d6b258e73ddbccf0b52c5c28e6054 | [
"MIT"
] | null | null | null | src/Headers.php | sheychen290/colis | b0552ece885d6b258e73ddbccf0b52c5c28e6054 | [
"MIT"
] | null | null | null | src/Headers.php | sheychen290/colis | b0552ece885d6b258e73ddbccf0b52c5c28e6054 | [
"MIT"
] | 1 | 2019-07-18T08:11:30.000Z | 2019-07-18T08:11:30.000Z | <?php
namespace Colis;
use Inutils\Storage\NormalizedArrayCollection;
class Headers extends NormalizedArrayCollection
{
/** Convert header string value to array */
public static function format(string $value)
{
$value = explode(',', $value);
if (!is_array($value)) {
$value = [... | 24.583333 | 85 | 0.484746 |
447b419f1a1bf9055de2c6233794cbe9630430c9 | 370 | py | Python | setup.py | adamharsh/crud_generator | d6eecd3c9a39b7b94156ebc7b86046a3c329a8c9 | [
"MIT"
] | null | null | null | setup.py | adamharsh/crud_generator | d6eecd3c9a39b7b94156ebc7b86046a3c329a8c9 | [
"MIT"
] | 1 | 2020-05-01T15:02:37.000Z | 2020-05-02T00:56:32.000Z | setup.py | adamharsh/crud_generator | d6eecd3c9a39b7b94156ebc7b86046a3c329a8c9 | [
"MIT"
] | null | null | null | from setuptools import setup
with open("README.md","r") as fh:
long_description = fh.read()
setup(
name='crud_generator',
version='1.0.2',
description='This will generate a crud operations (crud.py) for your Database tables.',
long_description=long_description,
long_description_content_type="tex... | 30.833333 | 91 | 0.721622 |
a7d60a1d9269f5895ae88971ba7f44585fb378cb | 142 | css | CSS | src/components/UI/Card.css | mtMirani25/Juices-Menu-Card | 881f14a2cc8f08413682a5a136c7a397ce4c7b50 | [
"MIT"
] | null | null | null | src/components/UI/Card.css | mtMirani25/Juices-Menu-Card | 881f14a2cc8f08413682a5a136c7a397ce4c7b50 | [
"MIT"
] | null | null | null | src/components/UI/Card.css | mtMirani25/Juices-Menu-Card | 881f14a2cc8f08413682a5a136c7a397ce4c7b50 | [
"MIT"
] | null | null | null | .card {
background-color: #fcfcea;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
border-radius: 15px;
}
| 23.666667 | 79 | 0.605634 |
cda0aaa0bfa204f9f9ddc7d7697432c3dc4420b1 | 1,247 | cs | C# | Assets/Scripts/Chat/Component/PlayerChatComponent.cs | yika-aixi/MagicOnionDemo | 34824efb14fd413270a53067a5877bfc502a5d07 | [
"MIT"
] | 8 | 2019-06-15T13:41:45.000Z | 2021-04-02T16:11:45.000Z | Assets/Scripts/Chat/Component/PlayerChatComponent.cs | yika-aixi/MagicOnionDemo | 34824efb14fd413270a53067a5877bfc502a5d07 | [
"MIT"
] | null | null | null | Assets/Scripts/Chat/Component/PlayerChatComponent.cs | yika-aixi/MagicOnionDemo | 34824efb14fd413270a53067a5877bfc502a5d07 | [
"MIT"
] | 2 | 2019-06-25T12:02:14.000Z | 2019-09-23T07:55:35.000Z | //创建者:Icarus
//手动滑稽,滑稽脸
//ヾ(•ω•`)o
//https://www.ykls.app
//2019年06月14日-03:01
//Assembly-CSharp
using System;
using Shader.MessageObjects;
using UnityEngine;
namespace Chat.Component
{
public class PlayerChatComponent : MonoBehaviour
{
[SerializeField]
private string _userName;
... | 22.267857 | 68 | 0.506014 |
bee1e80ab000e0c9047e5e8b84bb1543f1798216 | 8,019 | ts | TypeScript | src/app/diagnostic-recommendation/recommendation.component.ts | NCITNoumea/autodiagcovid19nc | 853f056d22d85794428ab9262a578cda94f350a6 | [
"MIT"
] | 1 | 2020-04-08T03:21:23.000Z | 2020-04-08T03:21:23.000Z | src/app/diagnostic-recommendation/recommendation.component.ts | NCITNoumea/autodiagcovid19nc | 853f056d22d85794428ab9262a578cda94f350a6 | [
"MIT"
] | 10 | 2020-03-24T23:07:45.000Z | 2022-03-02T07:53:36.000Z | src/app/diagnostic-recommendation/recommendation.component.ts | NCITNoumea/autodiagcovid19nc | 853f056d22d85794428ab9262a578cda94f350a6 | [
"MIT"
] | 1 | 2020-05-03T08:34:34.000Z | 2020-05-03T08:34:34.000Z | import { Component, OnInit, Input } from '@angular/core';
import * as firebase from 'firebase/app';
import 'firebase/firestore';
import { IIndexedQuestion, IMapSurvey } from 'src/app/shared/models/question.model';
import { RecommendationType, SurveyRecommendationProcessMode } from 'src/app/shared/models/recommendatio... | 33.273859 | 195 | 0.636862 |
f4bedc1a7a2d8c768eb36616c416b7420b387658 | 385 | ts | TypeScript | src/BitstampWebSocket/index.ts | hachibu/cryptocurrency-order-book | bbd7c7c3157c93066eb9db129c6ba4e1a2818308 | [
"MIT"
] | 2 | 2021-06-11T18:48:46.000Z | 2021-07-21T02:35:29.000Z | src/BitstampWebSocket/index.ts | hachibu/cryptocurrency-order-book | bbd7c7c3157c93066eb9db129c6ba4e1a2818308 | [
"MIT"
] | null | null | null | src/BitstampWebSocket/index.ts | hachibu/cryptocurrency-order-book | bbd7c7c3157c93066eb9db129c6ba4e1a2818308 | [
"MIT"
] | null | null | null | export default class BitstampWebSocket extends WebSocket {
constructor() {
super('wss://ws.bitstamp.net')
}
onOpen(handleOpen: () => void) {
this.onopen = handleOpen
}
onMessage(handleMessage: (event: MessageEvent<any>) => void) {
this.onmessage = handleMessage
}
subscribe(data: {}) {
t... | 21.388889 | 64 | 0.649351 |
9e23467c26fd70e3c67ba5142c77bb87c716b4a2 | 300 | cs | C# | CodeHubDesktop/Views/CreateSnippet.xaml.cs | ghost1372/CodeHubDesktop | 59c49ce6ac84489aa4956ddf3a3c070ddf2e30f1 | [
"MIT"
] | 4 | 2020-04-09T14:28:36.000Z | 2020-04-11T06:56:56.000Z | CodeHubDesktop/Views/CreateSnippet.xaml.cs | CodeHub-Contributors/CodeHubDesktop | 59c49ce6ac84489aa4956ddf3a3c070ddf2e30f1 | [
"MIT"
] | 3 | 2020-04-11T13:56:52.000Z | 2020-04-14T10:15:16.000Z | CodeHubDesktop/Views/CreateSnippet.xaml.cs | ghost1372/CodeHubDesktop | 59c49ce6ac84489aa4956ddf3a3c070ddf2e30f1 | [
"MIT"
] | 1 | 2020-04-09T17:07:55.000Z | 2020-04-09T17:07:55.000Z | using System.Windows.Controls;
namespace CodeHubDesktop.Views
{
/// <summary>
/// Interaction logic for CreateSnippet
/// </summary>
public partial class CreateSnippet : UserControl
{
public CreateSnippet()
{
InitializeComponent();
}
}
}
| 18.75 | 52 | 0.6 |
ecfbfd41588043ef79c01b99d807d34d7e74d5c9 | 1,417 | gemspec | Ruby | models_in_place.gemspec | jacoblockard99/models_in_place | 3e83a4f4268211ac8ba724c0af5b65cb7f35c0c3 | [
"MIT"
] | null | null | null | models_in_place.gemspec | jacoblockard99/models_in_place | 3e83a4f4268211ac8ba724c0af5b65cb7f35c0c3 | [
"MIT"
] | 3 | 2021-07-16T03:16:30.000Z | 2021-07-20T01:20:51.000Z | models_in_place.gemspec | jacoblockard99/models_in_place | 3e83a4f4268211ac8ba724c0af5b65cb7f35c0c3 | [
"MIT"
] | null | null | null | # frozen_string_literal: true
require_relative 'lib/models_in_place/version'
Gem::Specification.new do |spec|
spec.name = 'models_in_place'
spec.version = ModelsInPlace::VERSION
spec.authors = ['Jacob']
spec.email = ['jacoblockard99@gmail.com']
spec.homepage = 'https://github.com/jac... | 40.485714 | 96 | 0.717713 |
2d3b843bcb5a6c285483d1a941f4841cf5376da3 | 165 | css | CSS | src/index.css | niekert/TranslateQL | ffa8fdf6f2d3cc72ef59308a3a5ac7816b9880e7 | [
"MIT"
] | null | null | null | src/index.css | niekert/TranslateQL | ffa8fdf6f2d3cc72ef59308a3a5ac7816b9880e7 | [
"MIT"
] | null | null | null | src/index.css | niekert/TranslateQL | ffa8fdf6f2d3cc72ef59308a3a5ac7816b9880e7 | [
"MIT"
] | null | null | null | * {
box-sizing: border-box;
}
body {
margin: 0;
padding: 0;
font-family: "Open Sans", sans-serif;
background-color: rgba(0, 0, 0, 0.02);
color: #333;
}
| 13.75 | 40 | 0.587879 |
7d64eab785746b35e1d67a6f125276cca06cfc0b | 1,364 | swift | Swift | Example/robobo-remote-control-ios/StatusSender.swift | mintforpeople/robobo-remote-control-ios | fb195ac138155eec97f3cf0d695d7750a4956b63 | [
"Apache-2.0"
] | null | null | null | Example/robobo-remote-control-ios/StatusSender.swift | mintforpeople/robobo-remote-control-ios | fb195ac138155eec97f3cf0d695d7750a4956b63 | [
"Apache-2.0"
] | null | null | null | Example/robobo-remote-control-ios/StatusSender.swift | mintforpeople/robobo-remote-control-ios | fb195ac138155eec97f3cf0d695d7750a4956b63 | [
"Apache-2.0"
] | 1 | 2019-07-30T15:44:47.000Z | 2019-07-30T15:44:47.000Z | /*******************************************************************************
*
* Copyright 2019, Manufactura de Ingenios Tecnológicos S.L.
* <http://www.mintforpeople.com>
*
* Redistribution, modification and use of this software are permitted under
* terms of the Apache 2.0 License.
*
* This sof... | 32.47619 | 80 | 0.604106 |
8daf1867af8404bfac60387b737eed6b68c17253 | 1,866 | js | JavaScript | unit-test-scenarios/mock-dependencies/customer-service-spec.js | davidcarter1108/angular2-samples | 0495c4f607e0a42f3870b4785e1be6814d82c2e7 | [
"MIT"
] | 1 | 2018-08-21T03:54:30.000Z | 2018-08-21T03:54:30.000Z | unit-test-scenarios/mock-dependencies/customer-service-spec.js | davidcarter1108/angular2-samples | 0495c4f607e0a42f3870b4785e1be6814d82c2e7 | [
"MIT"
] | null | null | null | unit-test-scenarios/mock-dependencies/customer-service-spec.js | davidcarter1108/angular2-samples | 0495c4f607e0a42f3870b4785e1be6814d82c2e7 | [
"MIT"
] | null | null | null | System.register(['@angular/core', '@angular/core/testing', '../service-with-dependencies/customer-service', '../service-with-dependencies/product-service'], function(exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var core_1, testing_1, customer_service_1, product_service... | 42.409091 | 189 | 0.591104 |
5dd761884638a68e07ba43e0773063c7e933c7ec | 1,969 | cc | C++ | gui/load_relief_frame.cc | soukouki/simutrans | 758283664349afb5527db470780767abb4db8114 | [
"Artistic-1.0"
] | 23 | 2017-03-11T16:44:14.000Z | 2022-02-10T13:31:03.000Z | gui/load_relief_frame.cc | soukouki/simutrans | 758283664349afb5527db470780767abb4db8114 | [
"Artistic-1.0"
] | 32 | 2018-01-31T11:11:16.000Z | 2022-03-03T14:37:58.000Z | gui/load_relief_frame.cc | soukouki/simutrans | 758283664349afb5527db470780767abb4db8114 | [
"Artistic-1.0"
] | 17 | 2017-08-02T15:59:25.000Z | 2022-02-10T13:31:06.000Z | /*
* This file is part of the Simutrans project under the Artistic License.
* (see LICENSE.txt)
*/
#include <string>
#include <stdio.h>
#include "../simworld.h"
#include "load_relief_frame.h"
#include "welt.h"
#include "simwin.h"
#include "../dataobj/translator.h"
#include "../dataobj/settings.h"
#include "../data... | 25.907895 | 135 | 0.731336 |
a609d9673801cf14cf64931a8ef07e3b5914080a | 458 | rb | Ruby | spec/feature/footer_feature_spec.rb | cpcwood/home-server | ce5e8da2359af6c39452b00f6d1b6d8959479965 | [
"MIT"
] | null | null | null | spec/feature/footer_feature_spec.rb | cpcwood/home-server | ce5e8da2359af6c39452b00f6d1b6d8959479965 | [
"MIT"
] | 3 | 2020-05-13T17:33:38.000Z | 2021-03-21T22:40:19.000Z | spec/feature/footer_feature_spec.rb | cpcwood/home-server | ce5e8da2359af6c39452b00f6d1b6d8959479965 | [
"MIT"
] | 1 | 2021-03-20T01:50:28.000Z | 2021-03-20T01:50:28.000Z | feature 'Footer', feature: true do
before(:each) do
seed_user_and_settings
end
scenario 'links are rendered' do
visit('/')
expect(page).to have_css('footer .footer-links')
expect(page).to have_selector(:css, "a.github-link[href='#{@about.github_link}']")
expect(page).to have_selector(:css, "a... | 35.230769 | 90 | 0.683406 |
cd8c2bac9a2cb93fc8e0d3eaa8df32aa29c0e8c4 | 21,928 | cs | C# | mylibaxolotl/SessionBuilder.cs | BayrakMustafa/Chat-API-NET | 0962477dd8ce4917db406c7d91081ee2ec8685f7 | [
"MIT"
] | 6 | 2016-11-11T22:48:05.000Z | 2021-07-08T01:43:54.000Z | mylibaxolotl/SessionBuilder.cs | BayrakMustafa/Chat-API-NET | 0962477dd8ce4917db406c7d91081ee2ec8685f7 | [
"MIT"
] | 1 | 2016-11-11T22:47:27.000Z | 2016-11-15T22:38:23.000Z | mylibaxolotl/SessionBuilder.cs | BayrakMustafa/Chat-API-NET | 0962477dd8ce4917db406c7d91081ee2ec8685f7 | [
"MIT"
] | 4 | 2017-04-11T10:29:30.000Z | 2021-06-24T17:17:05.000Z | /**
* Copyright (C) 2015 smndtrl
*
* 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 Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distri... | 49.61086 | 185 | 0.612641 |
cd11ffb20c3d4d3129d852bbf430f669d77e97bb | 467 | cs | C# | pbrt/pbrt/Reflections/FresnelDielectric.cs | fremag/pbrt | 50ded5f4c1bf82afd9e13b9405de803e090475de | [
"Unlicense"
] | null | null | null | pbrt/pbrt/Reflections/FresnelDielectric.cs | fremag/pbrt | 50ded5f4c1bf82afd9e13b9405de803e090475de | [
"Unlicense"
] | 19 | 2022-03-18T23:19:52.000Z | 2022-03-18T23:33:10.000Z | pbrt/pbrt/Reflections/FresnelDielectric.cs | fremag/pbrt | 50ded5f4c1bf82afd9e13b9405de803e090475de | [
"Unlicense"
] | null | null | null | using System;
using pbrt.Spectrums;
namespace pbrt.Reflections
{
public class FresnelDielectric : Fresnel
{
public float EtaI { get; }
public float EtaT { get; }
public FresnelDielectric(float etaI, float etaT)
{
EtaI = etaI;
EtaT = etaT;
}
... | 24.578947 | 143 | 0.620985 |
fa41bd932a3d0556d52ae51a1763aa49055ceffe | 2,106 | cc | C++ | kernel/src/arch/x86_64/hal/task/context.cc | igarfieldi/Danaos64 | f4a2df8de5f214af7a4d18e14790740d2c481c48 | [
"Apache-2.0"
] | 2 | 2017-09-16T19:41:14.000Z | 2017-11-04T10:41:38.000Z | kernel/src/arch/x86_64/hal/task/context.cc | igarfieldi/Danaos64 | f4a2df8de5f214af7a4d18e14790740d2c481c48 | [
"Apache-2.0"
] | null | null | null | kernel/src/arch/x86_64/hal/task/context.cc | igarfieldi/Danaos64 | f4a2df8de5f214af7a4d18e14790740d2c481c48 | [
"Apache-2.0"
] | null | null | null | #include "context.h"
#include "hal/interrupts/gdt.h"
#include "main/task/task.h"
namespace hal {
task_context create_context(volatile uint64_t *stack, task::task &task) {
task_context context(&stack[-21]);
// New state
stack[-21] = reinterpret_cast<uint64_t>(&stack[0]); // RBP... | 55.421053 | 101 | 0.395537 |
b02767cc5efab8bcfaef8c88a74cc6262d4114af | 8,325 | py | Python | pyd3d/input/SedMor.py | JulesBlm/pyDelft3D-FLOW | 6cd8578ce3b64242b26b3829f6eec6094abf261a | [
"BSD-3-Clause"
] | 3 | 2020-09-30T22:35:39.000Z | 2022-02-04T16:10:22.000Z | pyd3d/input/SedMor.py | JulesBlm/pyDelft3D-FLOW | 6cd8578ce3b64242b26b3829f6eec6094abf261a | [
"BSD-3-Clause"
] | null | null | null | pyd3d/input/SedMor.py | JulesBlm/pyDelft3D-FLOW | 6cd8578ce3b64242b26b3829f6eec6094abf261a | [
"BSD-3-Clause"
] | 1 | 2021-08-31T17:02:32.000Z | 2021-08-31T17:02:32.000Z | import re
from collections import OrderedDict
from datetime import date
import json
class Mor(object):
'''
Read and write Delft3D morphology file
Parameters
----------
filename: str
Filename of sediment or morphology file that is read
TODO
----
* Maybe split into... | 38.541667 | 204 | 0.56048 |
255b45f958d0302f08c5c096a8c71c9aba71e15e | 355 | cs | C# | Radar/Clients/Client.cs | ethomson/radar | 9a6bfe09b4d75cf3af450e9a3e1ff870b8d78c37 | [
"MIT"
] | 3 | 2018-02-21T13:04:22.000Z | 2021-09-01T23:21:13.000Z | Radar/Clients/Client.cs | ethomson/radar | 9a6bfe09b4d75cf3af450e9a3e1ff870b8d78c37 | [
"MIT"
] | 2 | 2016-05-24T16:25:13.000Z | 2018-08-01T15:36:17.000Z | Radar/Clients/Client.cs | ethomson/radar | 9a6bfe09b4d75cf3af450e9a3e1ff870b8d78c37 | [
"MIT"
] | 1 | 2021-09-01T23:21:18.000Z | 2021-09-01T23:21:18.000Z | using System.Collections.Generic;
using Radar.Util;
namespace Radar.Clients
{
public interface Client
{
ClientConfiguration Configuration { get; }
ITracer Tracer { get; set; }
bool Running { get; }
string Name { get; }
void Start();
IEnumerable<Event> RecentEven... | 20.882353 | 50 | 0.594366 |
5e8d1070657161298d44bc87df20bce3c3c01ea0 | 697 | podspec | Ruby | IPAddress.podspec | fionayang/IPAddress | 70c4d4fe037713abec587c8ae744af3a9f520e13 | [
"MIT"
] | 2 | 2015-04-15T03:33:58.000Z | 2022-02-21T00:37:41.000Z | IPAddress.podspec | fionayang/IPAddress | 70c4d4fe037713abec587c8ae744af3a9f520e13 | [
"MIT"
] | null | null | null | IPAddress.podspec | fionayang/IPAddress | 70c4d4fe037713abec587c8ae744af3a9f520e13 | [
"MIT"
] | null | null | null |
Pod::Spec.new do |s|
s.name = "IPAddress"
s.version = "0.1.0"
s.summary = "Fetch ios device ip address."
s.description = <<-DESC
* My first cocoa pod. I will do more.
DESC
s.homepage = "https://github.com/fionayang/IPAdd... | 34.85 | 96 | 0.525108 |
848e2e38cd34925bf15bd5c5415b943897d164a8 | 1,807 | cs | C# | TeammatesMatchupLibrary/ApiCalls.cs | sikozonpc/TeammatesMatchup | 7414e3a3acfd3b8965f9d728c38da8db02fd19e5 | [
"Apache-2.0"
] | 1 | 2018-07-12T16:24:21.000Z | 2018-07-12T16:24:21.000Z | TeammatesMatchupLibrary/ApiCalls.cs | sikozonpc/TeammatesMatchup | 7414e3a3acfd3b8965f9d728c38da8db02fd19e5 | [
"Apache-2.0"
] | null | null | null | TeammatesMatchupLibrary/ApiCalls.cs | sikozonpc/TeammatesMatchup | 7414e3a3acfd3b8965f9d728c38da8db02fd19e5 | [
"Apache-2.0"
] | null | null | null | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using TeammatesMatchupLibrary.Models;
namespace TeammatesMatchupLibrary
{
public class ApiCalls
{
private const string API_KEY = " !... | 34.75 | 116 | 0.621472 |
9d7a555b5b7234191e5b061c8f1a2ee4a8b89aee | 2,133 | rs | Rust | chain-impl-mockchain/src/testing/data/keys.rs | bernardoaraujor/chain-libs | 715644b517be119eb856ca06893e01edbd777995 | [
"Apache-2.0",
"MIT"
] | 36 | 2019-07-25T11:13:21.000Z | 2022-02-17T11:07:39.000Z | chain-impl-mockchain/src/testing/data/keys.rs | dedsec-9/chain-libs | 2650f1f27ec8c72657d87a978b22e8e5e514899c | [
"Apache-2.0",
"MIT"
] | 286 | 2019-06-19T15:45:08.000Z | 2022-03-29T12:58:31.000Z | chain-impl-mockchain/src/testing/data/keys.rs | dedsec-9/chain-libs | 2650f1f27ec8c72657d87a978b22e8e5e514899c | [
"Apache-2.0",
"MIT"
] | 32 | 2019-07-11T11:59:44.000Z | 2022-03-30T02:44:19.000Z | use crate::key::EitherEd25519SecretKey;
use chain_addr::{Address, Discrimination, Kind};
use chain_crypto::testing::TestCryptoGen;
use chain_crypto::{Ed25519, PublicKey, SecretKey};
use std::collections::HashMap;
pub struct KeysDb {
rng: u32,
tcg: TestCryptoGen,
ed25519: HashMap<PublicKey<Ed25519>, EitherE... | 30.042254 | 96 | 0.609939 |
a17ea4ff6df82091d8bd18a43b9653bf9486fc8d | 1,094 | ts | TypeScript | packages/cli/src/commands/tag.ts | enigmagtm/enigma | 5294fa6920f4c035d5164f8da3641f5f6f13c076 | [
"MIT"
] | null | null | null | packages/cli/src/commands/tag.ts | enigmagtm/enigma | 5294fa6920f4c035d5164f8da3641f5f6f13c076 | [
"MIT"
] | null | null | null | packages/cli/src/commands/tag.ts | enigmagtm/enigma | 5294fa6920f4c035d5164f8da3641f5f6f13c076 | [
"MIT"
] | null | null | null | import { program } from 'commander';
import fs from 'fs';
import { deployCfg } from '../scripts';
import { exec, log } from '../utils';
export const createTagsCommand = (): void => {
program
.command('tags [name]')
.action(generateTags);
};
const generateTags = (name: string): void => {
const cfg = deploy... | 28.051282 | 114 | 0.64351 |
f5ef6ff35a5798cf639d4045eda538c38f273ef6 | 2,740 | css | CSS | osama.com/wp-content/themes/radcliffe-child/style3428.css | osamaalaa/OsamaShop | c9100f7aeed5c0e3110e70953eeb152d72c6da7f | [
"MIT"
] | null | null | null | osama.com/wp-content/themes/radcliffe-child/style3428.css | osamaalaa/OsamaShop | c9100f7aeed5c0e3110e70953eeb152d72c6da7f | [
"MIT"
] | null | null | null | osama.com/wp-content/themes/radcliffe-child/style3428.css | osamaalaa/OsamaShop | c9100f7aeed5c0e3110e70953eeb152d72c6da7f | [
"MIT"
] | null | null | null | /*
Theme Name: Radcliffe Child Theme
Theme URI: http: //hplussport.com/
Description: This is a custom child theme.
Author: Samara Iodice/Lynda.com, LinkedIn
Author URI: http: //lynda.com/
Template: radcliffe
Version: 0.1
*/
/*-----REMOVE ALL PAGE TITLES-------*/
.post-title {
font-family: 'Abril Fatface', serif;
... | 19.027778 | 108 | 0.611314 |
849e27a857666434be915968cb1e2381ba1edd36 | 703 | swift | Swift | Sources/msgs/geometry_msgs/PoseStampedMsg.swift | kohonda/RosSwift | c448bb99a543b74619663cbb1ca235d3618d5c81 | [
"MIT"
] | 57 | 2018-11-12T19:33:33.000Z | 2022-01-19T11:37:13.000Z | Sources/msgs/geometry_msgs/PoseStampedMsg.swift | kohonda/RosSwift | c448bb99a543b74619663cbb1ca235d3618d5c81 | [
"MIT"
] | 6 | 2020-05-12T17:07:14.000Z | 2022-03-01T16:24:33.000Z | Sources/msgs/geometry_msgs/PoseStampedMsg.swift | kohonda/RosSwift | c448bb99a543b74619663cbb1ca235d3618d5c81 | [
"MIT"
] | 12 | 2018-11-14T00:44:09.000Z | 2021-07-01T13:13:36.000Z | // Generated by msgbuilder 2020-05-15 06:20:49 +0000
import StdMsgs
extension geometry_msgs {
/// A Pose with reference coordinate frame and timestamp
public struct PoseStamped: MessageWithHeader {
public static let md5sum: String = "d3812c3cbc69362b77dc0b19b345f8f5"
public static let datatype = "geometry_msgs/... | 24.241379 | 71 | 0.71835 |
0d5cbf8dd3336117f99dbc7ddbcee3ade4a33376 | 2,257 | h | C | scene/gui/graph_node.h | Gerold31/godot | 2bea642583efeb68886e71950384f297f2d7ee12 | [
"MIT"
] | 56 | 2015-01-20T09:52:35.000Z | 2021-06-04T22:14:18.000Z | scene/gui/graph_node.h | Gerold31/godot | 2bea642583efeb68886e71950384f297f2d7ee12 | [
"MIT"
] | 1 | 2015-01-24T01:10:26.000Z | 2015-01-24T01:10:26.000Z | scene/gui/graph_node.h | Gerold31/godot | 2bea642583efeb68886e71950384f297f2d7ee12 | [
"MIT"
] | 29 | 2015-01-12T15:59:06.000Z | 2021-06-29T21:39:37.000Z | #ifndef GRAPH_NODE_H
#define GRAPH_NODE_H
#include "scene/gui/container.h"
class GraphNode : public Container {
OBJ_TYPE(GraphNode,Container);
struct Slot {
bool enable_left;
int type_left;
Color color_left;
bool enable_right;
int type_right;
Color color_right;
Slot() { enable_left=false; type_l... | 22.127451 | 152 | 0.775809 |
b0bdd52729228ddc50ad6059d4a42431428b4833 | 27,707 | py | Python | spectra.py | cassberk/xps_peakfit | bbdd62dbfc4d64ec2af0c509361de81b0762bd41 | [
"MIT"
] | 1 | 2021-07-21T13:13:25.000Z | 2021-07-21T13:13:25.000Z | spectra.py | cassberk/xps_peakfit | bbdd62dbfc4d64ec2af0c509361de81b0762bd41 | [
"MIT"
] | null | null | null | spectra.py | cassberk/xps_peakfit | bbdd62dbfc4d64ec2af0c509361de81b0762bd41 | [
"MIT"
] | null | null | null | import math
import numpy as np
from copy import deepcopy as dc
import matplotlib.pyplot as plt
from tqdm import tqdm_notebook as tqdm
import lmfit as lm
import XPyS
import XPyS.config as cfg
import XPyS.models
import XPyS.bkgrds as backsub
from .helper_functions import index_of
import importlib
class spectra:
def... | 39.245042 | 172 | 0.521168 |
4dd414a40a9302f61d68895f97aea59ebcf13e65 | 662 | ps1 | PowerShell | eval/dsc/akshcihost/xHyper-V/3.17.0.0/Misc/VMScsiControllerGenerator.ps1 | olaseniadeniji/aks-hci | 39c54d080a5c9278903f7141be15b5e26ef9bad8 | [
"MIT"
] | 111 | 2020-07-21T15:23:56.000Z | 2022-03-29T12:55:34.000Z | Misc/VMScsiControllerGenerator.ps1 | TheGitHubBro/xHyper-V | e68e33892ab63996ab98665b7c9eab6b0a1a9c97 | [
"MIT"
] | 138 | 2020-09-23T13:20:48.000Z | 2022-03-29T18:27:56.000Z | Misc/VMScsiControllerGenerator.ps1 | TheGitHubBro/xHyper-V | e68e33892ab63996ab98665b7c9eab6b0a1a9c97 | [
"MIT"
] | 72 | 2020-07-21T16:13:07.000Z | 2022-03-25T06:05:19.000Z | New-xDscResource -Name MSFT_xVMScsiController -Path . -ClassVersion 1.0.0 -FriendlyName xVMScsiController -Property $(
New-xDscResourceProperty -Name VMName -Type String -Attribute Key -Description "Specifies the name of the virtual machine whose SCSI controller status is to be controlled"
New-xDscResourcePrope... | 110.333333 | 192 | 0.800604 |
e28118da7a6c10a60c060044060a5184036860c1 | 1,937 | py | Python | histo/HistokatController/scripts/histokat/backend/__init__.py | muxiao1217/DeformableRegistration.jl | e3b2c7a7d5b15b8b34302ee62a4727fe5a63176f | [
"BSD-3-Clause"
] | 4 | 2017-10-11T15:07:22.000Z | 2019-11-15T06:26:07.000Z | histo/HistokatController/scripts/histokat/backend/__init__.py | muxiao1217/DeformableRegistration.jl | e3b2c7a7d5b15b8b34302ee62a4727fe5a63176f | [
"BSD-3-Clause"
] | 6 | 2017-10-06T20:06:58.000Z | 2017-10-06T20:07:00.000Z | histo/HistokatController/scripts/histokat/backend/__init__.py | muxiao1217/DeformableRegistration.jl | e3b2c7a7d5b15b8b34302ee62a4727fe5a63176f | [
"BSD-3-Clause"
] | 2 | 2017-10-06T19:54:33.000Z | 2019-07-29T07:57:57.000Z | import atexit
import ctypes
import os
import shutil
import sys
#
# Add MLAB environment variables to PATH if present
#
def add_if_exists(env, postfix):
if env in os.environ:
path = os.path.abspath(os.path.join(os.environ[env], postfix))
os.environ['PATH'] = os.pathsep.join([path, os.environ['PATH... | 19.969072 | 76 | 0.733092 |
53cfef22571410ff87f27dec07a227c90b8281eb | 152 | dart | Dart | carrito_compras_app/lib/constants.dart | BuyOut2/Carrito_Compras | 2ad01c862baec07029acf4470744759635cb9177 | [
"MIT"
] | null | null | null | carrito_compras_app/lib/constants.dart | BuyOut2/Carrito_Compras | 2ad01c862baec07029acf4470744759635cb9177 | [
"MIT"
] | null | null | null | carrito_compras_app/lib/constants.dart | BuyOut2/Carrito_Compras | 2ad01c862baec07029acf4470744759635cb9177 | [
"MIT"
] | null | null | null | import 'package:flutter/material.dart';
const kTextColor = Color(0xFF535353);
const kTextLightColor = Color(0xFFACACAC);
const kDefaultPaddin = 20.0;
| 21.714286 | 42 | 0.782895 |
5d369d9507357ae3a82d7fd1db8f675e09dd3c7f | 2,810 | cpp | C++ | src/Library/Library/sources/Functions/dencryptionFunctions.cpp | myNameIsAndrew00/Cryptographic-Hardware-Simulator | cfd5c9a75ba9461faf5fd48257ef9ac3b259365a | [
"MIT"
] | null | null | null | src/Library/Library/sources/Functions/dencryptionFunctions.cpp | myNameIsAndrew00/Cryptographic-Hardware-Simulator | cfd5c9a75ba9461faf5fd48257ef9ac3b259365a | [
"MIT"
] | null | null | null | src/Library/Library/sources/Functions/dencryptionFunctions.cpp | myNameIsAndrew00/Cryptographic-Hardware-Simulator | cfd5c9a75ba9461faf5fd48257ef9ac3b259365a | [
"MIT"
] | null | null | null |
#include "../../include/pkcs11.h"
#include "../../include/IPkcs11Token.h"
#include <stdlib.h>
#include <string.h>
extern Abstractions::IPkcs11TokenReference Token;
CK_DEFINE_FUNCTION(CK_RV, C_EncryptInit)(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hKey)
{
if (nullptr == pMechanism)
... | 33.855422 | 171 | 0.802847 |
ef4738bb8e6839c672b9ae8ece8af4ef4f3d7d6a | 255 | php | PHP | app/Views/layout/v_wrapper.php | ptartha38/RekapData | 4085837773ad22805c10670a250576147314ceed | [
"MIT"
] | null | null | null | app/Views/layout/v_wrapper.php | ptartha38/RekapData | 4085837773ad22805c10670a250576147314ceed | [
"MIT"
] | null | null | null | app/Views/layout/v_wrapper.php | ptartha38/RekapData | 4085837773ad22805c10670a250576147314ceed | [
"MIT"
] | null | null | null | <?php
echo view('layout/v_head.php');
echo view('layout/v_mobileheader.php');
echo view('layout/v_sidebar.php');
echo view('layout/v_desktopheader.php');
echo view('layout/v_main.php');
echo view('layout/v_content.php');
echo view('layout/v_footer.php');
| 28.333333 | 40 | 0.741176 |
d320975edfa983b50e2b33dfb0e34ad27044118b | 305 | cs | C# | src/Services/Basket/Basket.API/Profiles/BasketCheckoutProfile.cs | AmirHJabari/AspNetMicroservices-Course | f1c6c92314d69ce9b6b86478eeca60d5595cb855 | [
"MIT"
] | null | null | null | src/Services/Basket/Basket.API/Profiles/BasketCheckoutProfile.cs | AmirHJabari/AspNetMicroservices-Course | f1c6c92314d69ce9b6b86478eeca60d5595cb855 | [
"MIT"
] | null | null | null | src/Services/Basket/Basket.API/Profiles/BasketCheckoutProfile.cs | AmirHJabari/AspNetMicroservices-Course | f1c6c92314d69ce9b6b86478eeca60d5595cb855 | [
"MIT"
] | null | null | null | using AutoMapper;
using Basket.API.DTOs;
using EventBus.Messages.Events;
namespace Basket.API.Profiles
{
public class BasketCheckoutProfile : Profile
{
public BasketCheckoutProfile()
{
CreateMap<BasketCheckoutDto, BasketCheckoutEvent>();
}
}
} | 21.785714 | 65 | 0.645902 |
063320ac312d2e6945056f1be7446d5782a5d678 | 7,875 | sql | SQL | src/postgres/src/pl/plpgsql/src/sql/plpgsql_transaction.sql | impira/yugabyte-db | dd979c24856ae0c55d872e2488a15147b75d7821 | [
"Apache-2.0",
"CC0-1.0"
] | 1 | 2021-06-14T23:51:05.000Z | 2021-06-14T23:51:05.000Z | src/postgres/src/pl/plpgsql/src/sql/plpgsql_transaction.sql | impira/yugabyte-db | dd979c24856ae0c55d872e2488a15147b75d7821 | [
"Apache-2.0",
"CC0-1.0"
] | 3 | 2021-09-23T23:36:40.000Z | 2022-02-27T18:44:21.000Z | src/postgres/src/pl/plpgsql/src/sql/plpgsql_transaction.sql | impira/yugabyte-db | dd979c24856ae0c55d872e2488a15147b75d7821 | [
"Apache-2.0",
"CC0-1.0"
] | 1 | 2021-06-21T15:39:59.000Z | 2021-06-21T15:39:59.000Z | CREATE TABLE test1 (a int, b text);
CREATE PROCEDURE transaction_test1(x int, y text)
LANGUAGE plpgsql
AS $$
BEGIN
FOR i IN 0..x LOOP
INSERT INTO test1 (a, b) VALUES (i, y);
IF i % 2 = 0 THEN
COMMIT;
ELSE
ROLLBACK;
END IF;
END LOOP;
END
$$;
CALL transac... | 16.719745 | 69 | 0.662349 |
a5d58100e4f0628e55f25037d368d67523e4cb5a | 10,253 | rs | Rust | src/base_learner/dstump.rs | rmitsuboshi/boost | 394fd15a087531d708b82e68671cbc63a457d8ff | [
"MIT"
] | null | null | null | src/base_learner/dstump.rs | rmitsuboshi/boost | 394fd15a087531d708b82e68671cbc63a457d8ff | [
"MIT"
] | null | null | null | src/base_learner/dstump.rs | rmitsuboshi/boost | 394fd15a087531d708b82e68671cbc63a457d8ff | [
"MIT"
] | null | null | null | //! Provides the decision stump class.
use crate::{DType, Data, Label, Sample};
use crate::BaseLearner;
use crate::Classifier;
use serde::{Serialize, Deserialize};
use std::collections::HashSet;
use std::hash::{Hash, Hasher};
/// Defines the ray that are predicted as +1.0.
#[derive(Debug, Eq, PartialEq, Clone, Ha... | 30.424332 | 76 | 0.438311 |
72f41b3c25a8df2c7c3662e5161181204c39876e | 6,141 | dart | Dart | lib/src/story.dart | ogustavobelo/dashbook | 2fac9670b03a0cb1af549d9a4d2ba56958bf36dc | [
"MIT"
] | 186 | 2019-12-18T01:44:16.000Z | 2021-09-08T17:15:52.000Z | lib/src/story.dart | ogustavobelo/dashbook | 2fac9670b03a0cb1af549d9a4d2ba56958bf36dc | [
"MIT"
] | 28 | 2019-12-18T15:53:17.000Z | 2021-09-06T16:04:02.000Z | lib/src/story.dart | ogustavobelo/dashbook | 2fac9670b03a0cb1af549d9a4d2ba56958bf36dc | [
"MIT"
] | 27 | 2020-01-29T21:56:22.000Z | 2021-09-06T16:27:12.000Z | import 'package:dashbook/dashbook.dart';
import 'package:flutter/material.dart';
class ControlProperty {
final String key;
final Object value;
ControlProperty(this.key, this.value);
}
class Property<T> {
final String name;
final T defaultValue;
T? value;
final ControlProperty? visibilityControlPrope... | 21.623239 | 76 | 0.646312 |
f47c46550f20ec6679325011aac9c6b8c6c950d8 | 274 | lua | Lua | src/ReplicatedStorage/RoactMaterial/Configuration.lua | howmanysmall/OpenSource | d75a01bfa6ec474788c86f5c9f284a4fa91a041d | [
"MIT"
] | 6 | 2020-07-09T03:26:18.000Z | 2020-08-26T16:54:34.000Z | src/ReplicatedStorage/RoactMaterial/Configuration.lua | howmanysmall/OpenSource | d75a01bfa6ec474788c86f5c9f284a4fa91a041d | [
"MIT"
] | null | null | null | src/ReplicatedStorage/RoactMaterial/Configuration.lua | howmanysmall/OpenSource | d75a01bfa6ec474788c86f5c9f284a4fa91a041d | [
"MIT"
] | null | null | null | local Configuration = {
Promise = require(script.Parent.Parent.Promise),
RoactAnimate = require(script.Parent.Parent.RoactAnimate),
Roact = require(script.Parent.Parent.Roact),
enumerate = require(script.Parent.Parent.enumerate),
Warnings = {},
}
return Configuration
| 27.4 | 59 | 0.770073 |
a4afc6bc769bdc01f5d40e1ef5584c163e513ca0 | 4,006 | php | PHP | provider/kendo-ui/wrappers/php/web/treeview/navigation.php | kbsjunk/eurovote | f69867091e6bb6613bc729f6894eea6aadc6dba2 | [
"MIT"
] | null | null | null | provider/kendo-ui/wrappers/php/web/treeview/navigation.php | kbsjunk/eurovote | f69867091e6bb6613bc729f6894eea6aadc6dba2 | [
"MIT"
] | null | null | null | provider/kendo-ui/wrappers/php/web/treeview/navigation.php | kbsjunk/eurovote | f69867091e6bb6613bc729f6894eea6aadc6dba2 | [
"MIT"
] | null | null | null | <?php
require_once '../../include/header.php';
require_once '../../lib/Kendo/Autoload.php';
?>
<div class="demo-section">
<?php
$treeview = new \Kendo\UI\TreeView('treeview');
$treeview->attr('tabindex', '1')
->attr('accesskey', 'w');
$furniture = new \Kendo\UI\TreeViewItem('Furniture');
... | 27.438356 | 71 | 0.547678 |
baf5a6c42ffc40186c20e7297cea528ab83cf096 | 5,859 | kt | Kotlin | app/src/main/kotlin/xin/z7workbench/bjutloginapp/ui/UsersActivity.kt | ZeroGoYoosee/BJUTLoginApp | 701fd474db50ac5e8d61b2cb5eefe82b2882b950 | [
"MIT"
] | 4 | 2017-02-22T15:06:49.000Z | 2017-10-13T08:24:01.000Z | app/src/main/kotlin/xin/z7workbench/bjutloginapp/ui/UsersActivity.kt | z7workbench/BJUTLoginApp | 701fd474db50ac5e8d61b2cb5eefe82b2882b950 | [
"MIT"
] | null | null | null | app/src/main/kotlin/xin/z7workbench/bjutloginapp/ui/UsersActivity.kt | z7workbench/BJUTLoginApp | 701fd474db50ac5e8d61b2cb5eefe82b2882b950 | [
"MIT"
] | null | null | null | package xin.z7workbench.bjutloginapp.ui
import android.os.Bundle
import android.view.*
import android.widget.SeekBar
import androidx.appcompat.app.AlertDialog
import androidx.core.content.edit
import androidx.lifecycle.observe
import androidx.recyclerview.widget.DefaultItemAnimator
import androidx.recyclerview.widget.... | 38.801325 | 133 | 0.633555 |
57f034df6a7c8a5738a9a8be78b84a4e77e2c2cf | 573 | php | PHP | Analyzer/Analyzer.php | rnd04/HttpdAccessLogAnalyzer | eb3a1c0c00ecf9324586c2986953a37ddd77a510 | [
"MIT"
] | null | null | null | Analyzer/Analyzer.php | rnd04/HttpdAccessLogAnalyzer | eb3a1c0c00ecf9324586c2986953a37ddd77a510 | [
"MIT"
] | 1 | 2019-02-25T18:20:17.000Z | 2019-02-25T18:20:17.000Z | Analyzer/Analyzer.php | rnd04/HttpdAccessLogAnalyzer | eb3a1c0c00ecf9324586c2986953a37ddd77a510 | [
"MIT"
] | null | null | null | <?php
abstract class Analyzer implements AnalyzerInterface
{
public static function createAllAnalyzer(array $analyzer_class_array, array $analyzer_config)
{
$analyzer_array = array();
foreach ($analyzer_class_array as $analyzer_class) {
if (isset($analyzer_config[$analyzer_c... | 30.157895 | 97 | 0.603839 |
388c8c069fe48bbeb9534b5bdaaf93fba434e80d | 2,118 | lua | Lua | modules/actionbars/stancebar.lua | PedroZC90/LuaUI | 5b3fab73f4d774b04f03b1097f44212c6ecb947b | [
"MIT"
] | null | null | null | modules/actionbars/stancebar.lua | PedroZC90/LuaUI | 5b3fab73f4d774b04f03b1097f44212c6ecb947b | [
"MIT"
] | null | null | null | modules/actionbars/stancebar.lua | PedroZC90/LuaUI | 5b3fab73f4d774b04f03b1097f44212c6ecb947b | [
"MIT"
] | null | null | null | local T, C, L = Tukui:unpack()
local ActionBars = T.ActionBars
local Movers = T.Movers
local NUM_STANCE_SLOTS = NUM_STANCE_SLOTS
----------------------------------------------------------------
-- StanceBar
----------------------------------------------------------------
local baseCreateStanceBar = ActionBars.... | 33.09375 | 122 | 0.634561 |
a42826c783bb1f8293b48bc05f79dbbbfacb8ac4 | 644 | php | PHP | app/Traits/PostSlugHelper.php | Aviithapa/EverestVision | de5d2a8e016f18a91ad106247602a84f5f76e1a5 | [
"MIT"
] | null | null | null | app/Traits/PostSlugHelper.php | Aviithapa/EverestVision | de5d2a8e016f18a91ad106247602a84f5f76e1a5 | [
"MIT"
] | 1 | 2021-02-02T21:29:51.000Z | 2021-02-02T21:29:51.000Z | app/Traits/PostSlugHelper.php | Aviithapa/EverestVision | de5d2a8e016f18a91ad106247602a84f5f76e1a5 | [
"MIT"
] | null | null | null | <?php
namespace App\Traits;
trait PostSlugHelper
{
public function setSlugAttribute($value) {
if(isset($this->id) && (static::where('id','=',$this->id)->whereSlug($slug = str_slug($value))->exists())){
}
elseif (static::whereSlug($slug = str_slug($value))->exists()) {
$slug = $... | 20.774194 | 115 | 0.521739 |
1a3a601f2b1c79903f440ac71deb4dc5f6bf5deb | 7,293 | py | Python | valoracion/interest_factor.py | elpablete/securipy | 48754bfb3849bab4f94cf10850c4f31b4526781e | [
"MIT"
] | null | null | null | valoracion/interest_factor.py | elpablete/securipy | 48754bfb3849bab4f94cf10850c4f31b4526781e | [
"MIT"
] | null | null | null | valoracion/interest_factor.py | elpablete/securipy | 48754bfb3849bab4f94cf10850c4f31b4526781e | [
"MIT"
] | null | null | null | """
"""
from __future__ import division
from datetime import date
import logging
from date_helper import *
logger = logging.getLogger(__name__).addHandler(logger.NullHandler())
def check_date_objects(date1, date2):
if not(isinstance(date1, date) or isinstance(date2, date)):
raise InputError(expr = "Dates ... | 31.847162 | 187 | 0.62704 |
1a331e7cc3d6a21242e52000ec28aa93151714e5 | 347 | py | Python | vasptools/__init__.py | changsuc/vasptools | defeef3b49bb6cafeaa9aeac19a72da3f56a5cad | [
"MIT"
] | null | null | null | vasptools/__init__.py | changsuc/vasptools | defeef3b49bb6cafeaa9aeac19a72da3f56a5cad | [
"MIT"
] | 1 | 2019-03-28T07:38:56.000Z | 2019-03-28T07:38:56.000Z | vasptools/__init__.py | changsuc/vasptools | defeef3b49bb6cafeaa9aeac19a72da3f56a5cad | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from . import potcar
from . import poscar
from . import incar
from . import kpoints
from . import doscar
from . import outcar
from . import wavecar
from . import chgcar
from . import chg
__all_modules__ = [
potcar,
poscar,
incar,
kpoints,
doscar,
outcar,
wavecar,
... | 11.566667 | 22 | 0.648415 |
b8b592e1aec3758969b1b2b91a4b17d62f6e4fc0 | 566 | h | C | common/src/hts_exception.h | s4hts/HTStream | 7dffe3ed890996b3e83676d8a25fbbb3a85b81ff | [
"Apache-2.0"
] | 19 | 2020-06-01T17:25:37.000Z | 2022-03-17T04:54:03.000Z | common/src/hts_exception.h | s4hts/HTStream | 7dffe3ed890996b3e83676d8a25fbbb3a85b81ff | [
"Apache-2.0"
] | 24 | 2020-06-01T06:50:53.000Z | 2022-03-17T06:18:22.000Z | common/src/hts_exception.h | s4hts/HTStream | 7dffe3ed890996b3e83676d8a25fbbb3a85b81ff | [
"Apache-2.0"
] | 4 | 2020-05-31T15:34:06.000Z | 2021-12-06T21:37:12.000Z | #ifndef __HTS_EXCEPTION_H_
#define __HTS_EXCEPTION_H_
#include <string>
class HtsException {
public:
HtsException(const std::string &what_): w(what_)
{ }
const std::string& what() const {
return w;
}
private:
std::string w;
};
class HtsIOException : public HtsException {
public:
... | 17.151515 | 70 | 0.683746 |
c6cb22453fd6b77bfbce624cfaebda5e8cecc145 | 153 | rb | Ruby | vendor/plugins/rspec/lib/spec/example/errors.rb | skyyuan/rubyurl | d3c893ebe6711221b44d676f28c09514186d36aa | [
"MIT"
] | 44 | 2015-01-22T17:23:01.000Z | 2021-11-07T20:05:15.000Z | vendor/plugins/rspec/lib/spec/example/errors.rb | jchris/zombieurl | ca6c622c76a2b2cfac336183d1e231671c068787 | [
"MIT"
] | 3 | 2015-11-23T22:54:45.000Z | 2016-09-27T23:08:31.000Z | vendor/plugins/rspec/lib/spec/example/errors.rb | jchris/zombieurl | ca6c622c76a2b2cfac336183d1e231671c068787 | [
"MIT"
] | 15 | 2015-04-09T06:35:14.000Z | 2020-06-23T02:04:18.000Z | module Spec
module Example
class ExamplePendingError < StandardError
end
class PendingExampleFixedError < StandardError
end
end
end
| 15.3 | 50 | 0.745098 |
0df23dbf5522b0d9ef411a51563d9cd682104274 | 3,499 | cs | C# | src/Silverback.Integration/Messaging/Encryption/SilverbackCryptoStream.cs | gitjosephbeer/silverback | 0e80ff380332eb0ab1c228ffa8def41ef97502cc | [
"MIT"
] | 139 | 2019-01-07T11:16:04.000Z | 2022-03-29T17:58:16.000Z | src/Silverback.Integration/Messaging/Encryption/SilverbackCryptoStream.cs | gitjosephbeer/silverback | 0e80ff380332eb0ab1c228ffa8def41ef97502cc | [
"MIT"
] | 109 | 2018-05-26T09:08:42.000Z | 2022-03-04T17:28:24.000Z | src/Silverback.Integration/Messaging/Encryption/SilverbackCryptoStream.cs | gitjosephbeer/silverback | 0e80ff380332eb0ab1c228ffa8def41ef97502cc | [
"MIT"
] | 30 | 2019-01-06T23:55:46.000Z | 2022-03-02T09:13:44.000Z | // Copyright (c) 2020 Sergio Aquilini
// This code is licensed under MIT license (see LICENSE file for details)
using System.IO;
using System.Security.Cryptography;
using System.Threading;
using System.Threading.Tasks;
namespace Silverback.Messaging.Encryption
{
/// <summary>
/// The base class for the <... | 45.441558 | 120 | 0.677336 |
5d48b709e6fdd41429967fe580ca39b047eab5fa | 1,142 | cpp | C++ | test/priQue.cpp | DQiuLin/calculator | 2717cdca1d6adb38d7ac4be3cf6f851f129fe3f6 | [
"MIT"
] | null | null | null | test/priQue.cpp | DQiuLin/calculator | 2717cdca1d6adb38d7ac4be3cf6f851f129fe3f6 | [
"MIT"
] | null | null | null | test/priQue.cpp | DQiuLin/calculator | 2717cdca1d6adb38d7ac4be3cf6f851f129fe3f6 | [
"MIT"
] | null | null | null | #include "common.h"
static bool cmp(const std::pair<int, int> &a, const std::pair<int, int> &b) {
return a.second < b.second;
}
class MyCompare {
public:
bool operator()(const std::pair<int, int> &a, const std::pair<int, int> &b) {
return a.second < b.second;
}
};
int main() {
// priority_qu... | 29.282051 | 108 | 0.436077 |
d1015dfb7598053d8b69a91e14d85d41d0831fca | 4,777 | rs | Rust | crypto-ws-client/tests/deribit.rs | CPT-Jack-A-Castle/crypto-crawler-rs | e7b8a2d51989e69779c69e3e7755351fe5fcb3bb | [
"Apache-2.0"
] | null | null | null | crypto-ws-client/tests/deribit.rs | CPT-Jack-A-Castle/crypto-crawler-rs | e7b8a2d51989e69779c69e3e7755351fe5fcb3bb | [
"Apache-2.0"
] | null | null | null | crypto-ws-client/tests/deribit.rs | CPT-Jack-A-Castle/crypto-crawler-rs | e7b8a2d51989e69779c69e3e7755351fe5fcb3bb | [
"Apache-2.0"
] | null | null | null | use crypto_ws_client::{DeribitWSClient, WSClient};
use std::sync::{Arc, Mutex};
#[macro_use]
mod utils;
#[test]
fn deribit_all_trades() {
gen_test_code!(
DeribitWSClient,
subscribe,
// https://docs.deribit.com/?javascript#trades-kind-currency-interval
&vec![
"trades.fut... | 23.416667 | 100 | 0.533598 |
e76f9d18c2ab7f702538684e435c2adf9fea1647 | 4,460 | php | PHP | application/views_original/dashboard2.php | mcrios/miratask | 3ca2bb67fd41f43f76be143668e78a92659c0928 | [
"MIT"
] | null | null | null | application/views_original/dashboard2.php | mcrios/miratask | 3ca2bb67fd41f43f76be143668e78a92659c0928 | [
"MIT"
] | null | null | null | application/views_original/dashboard2.php | mcrios/miratask | 3ca2bb67fd41f43f76be143668e78a92659c0928 | [
"MIT"
] | null | null | null | <div class="right_col" role="main">
<div class="col-md-12 col-sm-12 col-xs-12" id="titulo" >
<h3>Task</h3><hr>
</div>
<div class="row">
<div class="col-md-3">
<div class="x_panel">
<!-- contenido -->
<div id="content-matters" class="x_content2">
<a... | 23.850267 | 59 | 0.470404 |
0d94dfc05a33fc3aededac8151a47856ac3ec483 | 2,025 | cs | C# | Assets/Script/AudioVisualizer.cs | rbdog/cot_island | a9d9127043e08eecac823962d2306dc42b69b734 | [
"MIT"
] | null | null | null | Assets/Script/AudioVisualizer.cs | rbdog/cot_island | a9d9127043e08eecac823962d2306dc42b69b734 | [
"MIT"
] | null | null | null | Assets/Script/AudioVisualizer.cs | rbdog/cot_island | a9d9127043e08eecac823962d2306dc42b69b734 | [
"MIT"
] | null | null | null | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using static AudioSpectrumAnalyzer;
// README.md
/*------------------------------------------------------
# 1. AudioSpectrumAnalyzer.cs を好きな場所に置いておく
# 2. 再生したい音楽ファイルを Assets/Resources/ 配下に置いておく
# 3. おいた場所を FilePath() メソ... | 21.774194 | 64 | 0.540247 |
e69a2a9bb57665e88df90fc22a8fb2187cf8e575 | 981 | c | C | manuscript/python_generators/local_imports/stride/splitstr.c | Seanny123/backmap | c216ab1fb9c21114c3d7414e514f5283a0a45f60 | [
"MIT"
] | 3 | 2019-10-07T13:07:13.000Z | 2021-09-26T08:58:38.000Z | manuscript/python_generators/local_imports/stride/splitstr.c | Seanny123/backmap | c216ab1fb9c21114c3d7414e514f5283a0a45f60 | [
"MIT"
] | null | null | null | manuscript/python_generators/local_imports/stride/splitstr.c | Seanny123/backmap | c216ab1fb9c21114c3d7414e514f5283a0a45f60 | [
"MIT"
] | 2 | 2019-03-29T14:51:58.000Z | 2020-02-21T14:53:08.000Z | /* Split a char string into text fields */
#include "stride.h"
int SplitString(char *Buffer, char **Fields, int MaxField)
{
int FieldCnt, SymbCnt, FieldFlag, BuffLen;
static char LocalBuffer[BUFSZ];
FieldCnt =0; FieldFlag = 0;
BuffLen = (int)strlen(Buffer) - 1;
strcpy(LocalBuffer,Buffer);
for(SymbCnt=... | 25.815789 | 93 | 0.610601 |
7fc1e0313120e8adcf09ff8a739b18c65044feb5 | 273 | php | PHP | app/TermTypes.php | ces-jf/PHP-Analyzer | 84b15377380536f404cda03f04626eddeab2092c | [
"MIT"
] | null | null | null | app/TermTypes.php | ces-jf/PHP-Analyzer | 84b15377380536f404cda03f04626eddeab2092c | [
"MIT"
] | null | null | null | app/TermTypes.php | ces-jf/PHP-Analyzer | 84b15377380536f404cda03f04626eddeab2092c | [
"MIT"
] | null | null | null | <?php
namespace SegWeb;
use Illuminate\Database\Eloquent\Model;
class TermTypes extends Model {
protected $filltable = [
'term_type',
'color',
];
protected $guarded = ['id', 'created_at', 'update_at'];
protected $table = 'term_types';
}
| 17.0625 | 59 | 0.626374 |
e27c7ba7a130d0420c66c93bece6226364b894bd | 6,081 | py | Python | apps/external_apps/feedutil/templatetags/feedutil.py | indro/t2c | 56482ad4aed150f29353e054db2c97b567243bf8 | [
"MIT"
] | 3 | 2015-12-25T14:45:36.000Z | 2016-11-28T09:58:03.000Z | apps/external_apps/feedutil/templatetags/feedutil.py | indro/t2c | 56482ad4aed150f29353e054db2c97b567243bf8 | [
"MIT"
] | null | null | null | apps/external_apps/feedutil/templatetags/feedutil.py | indro/t2c | 56482ad4aed150f29353e054db2c97b567243bf8 | [
"MIT"
] | null | null | null | from django import template
from django.conf import settings
from django.core.cache import cache
from cPickle import loads, dumps, HIGHEST_PROTOCOL
import datetime
import feedparser
import re
import time
def _getdefault(name, default=None):
try:
default = getattr(settings, name)
except: pass
return... | 37.306748 | 141 | 0.60763 |
643618ec9f603b28887fc21dea7999f0fc367f77 | 2,914 | py | Python | utils/strings_util.py | ScriptHound/vk_schema_codegen | 174563adcf2d33f31820addf1f2e4193e40cc03f | [
"MIT"
] | 9 | 2021-01-24T19:25:45.000Z | 2021-05-27T16:51:11.000Z | utils/strings_util.py | ScriptHound/vk_schema_codegen | 174563adcf2d33f31820addf1f2e4193e40cc03f | [
"MIT"
] | 1 | 2021-03-14T14:37:10.000Z | 2021-03-14T14:37:10.000Z | utils/strings_util.py | ScriptHound/vk_schema_codegen | 174563adcf2d33f31820addf1f2e4193e40cc03f | [
"MIT"
] | 1 | 2021-02-08T14:06:29.000Z | 2021-02-08T14:06:29.000Z | import json
import re
from keyword import kwlist
def get_type_from_reference(str_ref, convert_to_calmel_case=True) -> str:
pattern = r".*/(.*)"
ref_type = re.search(pattern, str_ref).group(1)
if convert_to_calmel_case:
return snake_case_to_camel_case(ref_type)
return ref_type
def get_annotat... | 28.019231 | 87 | 0.618394 |
6d733de343b8d02cb5c64f17a8d9c2cfb6090c37 | 274 | sh | Shell | appengine_deploy.sh | barendb/dpxdt | 0e60e7af6691f84e7c8f7ffcbfbb27d58e1109b6 | [
"Apache-2.0"
] | null | null | null | appengine_deploy.sh | barendb/dpxdt | 0e60e7af6691f84e7c8f7ffcbfbb27d58e1109b6 | [
"Apache-2.0"
] | 1 | 2020-02-11T22:36:37.000Z | 2020-02-11T22:36:37.000Z | appengine_deploy.sh | georgismitev/dpxdt | db1c155dfa348dc33c49ebe42b496d2d7e792365 | [
"Apache-2.0"
] | null | null | null | #!/bin/bash
source common.sh
echo "Precompiling templates"
python -c \
"from dpxdt.server import app; \
app.jinja_env.compile_templates(
'./deployment/appengine/templates_compiled.zip')"
echo "Starting deployment"
appcfg.py update ./deployment/appengine
| 21.076923 | 57 | 0.733577 |
c4c4c651c89546362f49730ca2b4da7c8c8f227e | 7,218 | h | C | hphp/runtime/vm/jit/alias-id-set.h | jeffomatic/hhvm | afd1a0c089aff36a31b8990490366606694a2842 | [
"PHP-3.01",
"Zend-2.0"
] | 7 | 2015-08-28T06:20:50.000Z | 2021-11-08T09:48:24.000Z | hphp/runtime/vm/jit/alias-id-set.h | alisha/hhvm | 523dc33b444bd5b59695eff2b64056629b0ed523 | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2020-10-11T22:54:12.000Z | 2021-07-20T22:12:10.000Z | hphp/runtime/vm/jit/alias-id-set.h | alisha/hhvm | 523dc33b444bd5b59695eff2b64056629b0ed523 | [
"PHP-3.01",
"Zend-2.0"
] | 3 | 2018-01-23T20:44:59.000Z | 2021-05-06T12:45:31.000Z | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
+---------... | 28.305882 | 79 | 0.578692 |
e0095122fd50597ef686f41f8f5aedbb231a16d2 | 953 | php | PHP | app/Models/Filter.php | Lolga-web/jewelry_site | 9469db8979bb78eac81f6dad38f87950adab4eab | [
"MIT"
] | null | null | null | app/Models/Filter.php | Lolga-web/jewelry_site | 9469db8979bb78eac81f6dad38f87950adab4eab | [
"MIT"
] | null | null | null | app/Models/Filter.php | Lolga-web/jewelry_site | 9469db8979bb78eac81f6dad38f87950adab4eab | [
"MIT"
] | null | null | null | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Http\Request;
class Filter extends Model
{
use HasFactory;
protected $table = 'filters';
protected $fillable = [
'product_id',
'stones',
'no... | 19.06 | 64 | 0.52361 |
1a46adae6625fbb17a2b9a0a3015d0560cf59337 | 834 | py | Python | Algo and DSA/LeetCode-Solutions-master/Python/finding-pairs-with-a-certain-sum.py | Sourav692/FAANG-Interview-Preparation | f523e5c94d582328b3edc449ea16ac6ab28cdc81 | [
"Unlicense"
] | 3,269 | 2018-10-12T01:29:40.000Z | 2022-03-31T17:58:41.000Z | Algo and DSA/LeetCode-Solutions-master/Python/finding-pairs-with-a-certain-sum.py | Sourav692/FAANG-Interview-Preparation | f523e5c94d582328b3edc449ea16ac6ab28cdc81 | [
"Unlicense"
] | 53 | 2018-12-16T22:54:20.000Z | 2022-02-25T08:31:20.000Z | Algo and DSA/LeetCode-Solutions-master/Python/finding-pairs-with-a-certain-sum.py | Sourav692/FAANG-Interview-Preparation | f523e5c94d582328b3edc449ea16ac6ab28cdc81 | [
"Unlicense"
] | 1,236 | 2018-10-12T02:51:40.000Z | 2022-03-30T13:30:37.000Z | # Time: ctor: O(n1 + n2)
# add: O(1)
# count: O(n1)
# Space: O(n1 + n2)
import collections
class FindSumPairs(object):
def __init__(self, nums1, nums2):
"""
:type nums1: List[int]
:type nums2: List[int]
"""
self.__nums2 = nums2
self.__count1 = co... | 22.540541 | 86 | 0.522782 |
ffa6f5ca6b7692a06c04d03661767d041b57b9bf | 2,309 | sql | SQL | dhsd.sql | grdaimap/dhsd | 465fce361738cbfe828f30f3859c395d2aeee5ee | [
"MIT"
] | null | null | null | dhsd.sql | grdaimap/dhsd | 465fce361738cbfe828f30f3859c395d2aeee5ee | [
"MIT"
] | null | null | null | dhsd.sql | grdaimap/dhsd | 465fce361738cbfe828f30f3859c395d2aeee5ee | [
"MIT"
] | null | null | null | CREATE DATABASE dhsd;
use dhsd;
CREATE TABLE IF NOT EXISTS `atb` (`ano` INT NOT NULL,`anick` VARCHAR(20),`apsn` VARCHAR(20) NOT NULL ,`endt` INT NOT NULL ,PRIMARY KEY(`ano`));
CREATE TABLE IF NOT EXISTS `stb` (`sno` VARCHAR(20) NOT NULL,`snick` VARCHAR(20),`endt` INT NOT NULL ,PRIMARY KEY(`sno`));
CREATE TABLE... | 41.981818 | 231 | 0.698571 |
2fefeb5e99dd4743769590f572d16501528abc4c | 4,429 | py | Python | lib/python3.7/site-packages/bdist_mpkg/plists.py | donieypon/Team8 | 971737f6732f2b9179e4f989b2c68486b8c52bfa | [
"MIT"
] | 1 | 2019-12-05T05:47:39.000Z | 2019-12-05T05:47:39.000Z | venv/lib/python3.7/site-packages/bdist_mpkg/plists.py | ykhade/Advent_Of_Code_2019 | 4a49a626b22ccb2298b6db303ebf9bcc8a3b4e34 | [
"MIT"
] | 10 | 2019-09-04T17:00:59.000Z | 2019-11-07T07:35:49.000Z | lib/python3.7/site-packages/bdist_mpkg/plists.py | donieypon/Team8 | 971737f6732f2b9179e4f989b2c68486b8c52bfa | [
"MIT"
] | 2 | 2019-12-04T06:48:02.000Z | 2020-04-15T05:29:27.000Z | import os
import sys
from plistlib import Plist
from . import __version__ as bdist_mpkg_version
from . import tools
from .py3k import unicode, u, any_str_type
def _major_minor(v):
rval = [0, 0]
try:
for i, rev in enumerate(v.version):
rval[i] = int(rev)
except (TypeError, ValueError, I... | 31.411348 | 80 | 0.629939 |
a901cdda93bbc59f64857ce85115f739ae4ea4d4 | 247,218 | css | CSS | synapse/static/bundles/c3fb94f230f01a8690a2/theme-light-custom.css | abliss/synapse | 6469fcf6e04501dd71a2d6e5787529ee109ab510 | [
"Apache-2.0"
] | 2 | 2020-04-30T18:38:02.000Z | 2020-07-08T21:38:28.000Z | synapse/static/bundles/c3fb94f230f01a8690a2/theme-light-custom.css | abliss/sandstorm-synapse | 6469fcf6e04501dd71a2d6e5787529ee109ab510 | [
"Apache-2.0"
] | null | null | null | synapse/static/bundles/c3fb94f230f01a8690a2/theme-light-custom.css | abliss/sandstorm-synapse | 6469fcf6e04501dd71a2d6e5787529ee109ab510 | [
"Apache-2.0"
] | 1 | 2020-01-27T23:33:39.000Z | 2020-01-27T23:33:39.000Z | @font-face{font-family:Nunito;font-style:normal;font-weight:400;src:url(../../fonts/Nunito/Nunito-Regular.73a8196.ttf) format("truetype")}@font-face{font-family:Nunito;font-style:normal;font-weight:600;src:url(../../fonts/Nunito/Nunito-SemiBold.bca2d7f.ttf) format("truetype")}@font-face{font-family:Nunito;font-style:no... | 247,218 | 247,218 | 0.837196 |
071b8acd6e755980191470433a6f6645872e8caa | 2,551 | rb | Ruby | test/models/iframe_embeds/iframe_embed_test.rb | rizhenkov/feedbin | 59e315c1525714e646f7733059132d79d2d8f817 | [
"MIT"
] | 2,021 | 2015-01-02T23:02:28.000Z | 2022-03-31T14:38:29.000Z | test/models/iframe_embeds/iframe_embed_test.rb | rizhenkov/feedbin | 59e315c1525714e646f7733059132d79d2d8f817 | [
"MIT"
] | 536 | 2015-01-08T00:15:10.000Z | 2022-03-29T05:20:51.000Z | test/models/iframe_embeds/iframe_embed_test.rb | rizhenkov/feedbin | 59e315c1525714e646f7733059132d79d2d8f817 | [
"MIT"
] | 260 | 2015-01-07T16:52:39.000Z | 2022-03-15T17:34:19.000Z | require "test_helper"
class IframeEmbedTest < ActiveSupport::TestCase
test "should return youtube handler" do
url = "https://youtube.com/embed/1234"
stub_request_file("oembed.json", /www\.youtube\.com/, headers: {"Content-Type" => "application/json; charset=utf-8"})
klass = IframeEmbed.fetch(url)
a... | 47.240741 | 149 | 0.72207 |
b21f41f5b50c70034f3b78d47798d1e7c4e67ddc | 202 | jbuilder | Ruby | app/views/api/v2/plans/index.json.jbuilder | heal-data-stewards/dmptool | 590f085622e80fc025f3d1d06ad27f2c2fe2bf14 | [
"MIT"
] | 86 | 2015-07-13T00:53:11.000Z | 2022-03-10T01:47:35.000Z | app/views/api/v2/plans/index.json.jbuilder | heal-data-stewards/dmptool | 590f085622e80fc025f3d1d06ad27f2c2fe2bf14 | [
"MIT"
] | 425 | 2015-01-05T22:28:29.000Z | 2022-03-24T20:37:02.000Z | app/views/api/v2/plans/index.json.jbuilder | heal-data-stewards/dmptool | 590f085622e80fc025f3d1d06ad27f2c2fe2bf14 | [
"MIT"
] | 31 | 2015-04-22T15:10:44.000Z | 2022-02-14T19:13:29.000Z | # frozen_string_literal: true
json.partial! "api/v2/standard_response", total_items: @total_items
json.items @items do |item|
json.dmp do
json.partial! "api/v2/plans/show", plan: item
end
end
| 20.2 | 67 | 0.732673 |
b933ac6beeb2bc135b82bc5e8ed11b37c52036af | 210 | css | CSS | schools/style/css/color/red.css | anshumanprajapatiap/sipa-school | 11db30e5f752bcbf016f98717799d1bcb6d8743f | [
"Apache-2.0"
] | 5 | 2021-08-30T11:29:15.000Z | 2021-12-12T05:43:42.000Z | schools/style/css/color/red.css | runjhun-goyal/sipa-school | 27fa730ab63939d1b035c4cad89683f8f6cccf87 | [
"Apache-2.0"
] | 3 | 2021-10-06T19:25:56.000Z | 2022-02-27T07:29:49.000Z | schools/style/css/color/red.css | runjhun-goyal/sipa-school | 27fa730ab63939d1b035c4cad89683f8f6cccf87 | [
"Apache-2.0"
] | 4 | 2020-11-19T10:10:36.000Z | 2020-11-19T22:49:53.000Z | :root {
--color-default: #d75959;
--rgb-default: 215, 89, 89;
}
.title-bg.bg-default {
background: rgba(var(--rgb-default), 0.1);
}
.bg-opacity-default {
background: rgba(var(--rgb-default), 0.065);
} | 21 | 48 | 0.62381 |
be3766d3dcee4527ad8374b314cc08492a27d885 | 753 | ts | TypeScript | src/app/layout/mc/mc.component.ts | moves-rwth/attestor-report | 13d504ccd4de32e539a091b5141885ab10f05e65 | [
"Apache-2.0"
] | null | null | null | src/app/layout/mc/mc.component.ts | moves-rwth/attestor-report | 13d504ccd4de32e539a091b5141885ab10f05e65 | [
"Apache-2.0"
] | null | null | null | src/app/layout/mc/mc.component.ts | moves-rwth/attestor-report | 13d504ccd4de32e539a091b5141885ab10f05e65 | [
"Apache-2.0"
] | null | null | null | import { Component, ElementRef } from '@angular/core';
import { routerTransition } from '../../router.animations';
import { Subscription } from "rxjs/Subscription";
import {JsonService} from '../../json.service'
@Component({
selector: 'app-mc',
templateUrl: './mc.component.html',
styleUrls: ['./mc.compone... | 26.892857 | 67 | 0.658699 |
820113af48be48683b86ea38a2fd5700421aecc8 | 4,715 | lua | Lua | nvim/lua/modules/ui/config.lua | UniqueDing/linux-config-files | 6d72c849fd9a45bee86dd9852f909ac34940e111 | [
"MIT"
] | 1 | 2021-11-30T03:38:04.000Z | 2021-11-30T03:38:04.000Z | nvim/lua/modules/ui/config.lua | UniqueDing/dotfiles | 6d72c849fd9a45bee86dd9852f909ac34940e111 | [
"MIT"
] | null | null | null | nvim/lua/modules/ui/config.lua | UniqueDing/dotfiles | 6d72c849fd9a45bee86dd9852f909ac34940e111 | [
"MIT"
] | null | null | null | local config = {}
function config.galaxyline()
-- require('modules.ui.eviline')
require('modules.ui.aeroline')
end
function config.bufferline()
require('bufferline').setup{
options = {
indicator_icon = '▎',
buffer_close_icon = '',
modified_icon = '●',
... | 30.616883 | 112 | 0.583033 |
0d2d49181ac64539dc7fcd4b3a52c47d91554292 | 1,088 | cs | C# | src/FaasNet.Gateway.Core/ErrorCodes.cs | simpleidserver/FaasNet | bc5e981c565ef04f3d3206fd20f7d3580e32f5ef | [
"Apache-2.0"
] | 7 | 2022-01-07T14:54:59.000Z | 2022-03-24T10:17:16.000Z | src/FaasNet.Gateway.Core/ErrorCodes.cs | simpleidserver/FaasNet | bc5e981c565ef04f3d3206fd20f7d3580e32f5ef | [
"Apache-2.0"
] | 81 | 2021-09-15T15:09:59.000Z | 2022-03-31T14:48:57.000Z | src/FaasNet.Gateway.Core/ErrorCodes.cs | simpleidserver/FaasNet | bc5e981c565ef04f3d3206fd20f7d3580e32f5ef | [
"Apache-2.0"
] | 1 | 2022-03-24T10:19:29.000Z | 2022-03-24T10:19:29.000Z | namespace FaasNet.Gateway.Core
{
public static class ErrorCodes
{
public const string InvalidStateMachineName = "InvalidStateMachineName";
public const string InvalidExecutionInput = "InvalidExecutionInput";
public const string InvalidStateMachineInstanceId = "InvalidStateMachineInstanc... | 54.4 | 92 | 0.758272 |
56742ce934d04a3b7805b62d3212ef066c15f012 | 385 | sql | SQL | SampleDatabase/FILE_IMPORT_INFO.sql | mascot72/ASP.NET.Demo | 27576529ca6da4424db1316d74ad668d08611549 | [
"MIT"
] | null | null | null | SampleDatabase/FILE_IMPORT_INFO.sql | mascot72/ASP.NET.Demo | 27576529ca6da4424db1316d74ad668d08611549 | [
"MIT"
] | null | null | null | SampleDatabase/FILE_IMPORT_INFO.sql | mascot72/ASP.NET.Demo | 27576529ca6da4424db1316d74ad668d08611549 | [
"MIT"
] | null | null | null | CREATE TABLE [dbo].[FILE_IMPORT_INFO] (
[ID] int PRIMARY KEY IDENTITY(1, 1) NOT NULL,
[Path] nvarchar(500) NULL,
[Name] nvarchar(500) NULL,
[ExtName] varchar(10) NULL,
[Result] varchar(255) NULL,
[Reason] nvarchar(2000) NULL,
[Remark] nvarchar(1000) NULL,
[Extend] nvarchar(1000) NULL,
[CreateDate] datetime default(get... | 29.615385 | 46 | 0.724675 |