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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a7c3ff98894bf382169a4ad06ef7e61812f29281 | 1,766 | css | CSS | public/css/seller_home_header.css | jatinkumar027/Zarurat.in | cbb35d17675812bb0243b1baf0bdc3dbf13ef103 | [
"MIT"
] | null | null | null | public/css/seller_home_header.css | jatinkumar027/Zarurat.in | cbb35d17675812bb0243b1baf0bdc3dbf13ef103 | [
"MIT"
] | 2 | 2020-07-19T15:10:49.000Z | 2020-07-20T08:20:39.000Z | public/css/seller_home_header.css | jatinkumar027/Zarurat.in | cbb35d17675812bb0243b1baf0bdc3dbf13ef103 | [
"MIT"
] | 6 | 2020-07-19T13:21:30.000Z | 2021-02-06T15:03:52.000Z | .header
{
height: 60px;
background : linear-gradient(57deg, rgba(26, 66, 127 ,1), rgba(0, 153, 130 ,1), rgba(51, 51, 51 ,1));
}
.header
{
display: flex;
justify-content: flex-end;
height: 50px;
background : linear-gradient(57deg, rgba(26, 66, 127 ,1), rgba(0, 153, 130 ,1), rgba(51, 51, 51 ,1));
position: fi... | 14.966102 | 105 | 0.651755 |
33bfe32053030ab3612888b7af0c2664924da7ba | 1,675 | c | C | src/defender.c | gfmota/rugby-game | 222bea5128a42b528290b518e005f1258784d5a3 | [
"MIT"
] | null | null | null | src/defender.c | gfmota/rugby-game | 222bea5128a42b528290b518e005f1258784d5a3 | [
"MIT"
] | null | null | null | src/defender.c | gfmota/rugby-game | 222bea5128a42b528290b518e005f1258784d5a3 | [
"MIT"
] | null | null | null | // Standard headers
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
// Internal headers
#include "direction.h"
#include "position.h"
#include "spy.h"
// Main header
#include "defender.h"
// Macros
#define UNUSED(x) (void)(x) // Auxiliary to avoid error of unused parameter
/*--------------------------------... | 29.385965 | 96 | 0.580896 |
dbf2ae31b51cc6ffcfe941bdf73d220ab97ae7f0 | 51,675 | c | C | testsuite/EXP_1/test749.c | ishiura-compiler/CF3 | 0718aa176d0303a4ea8a46bd6c794997cbb8fabb | [
"MIT"
] | 34 | 2017-07-04T14:16:12.000Z | 2021-04-22T21:04:43.000Z | testsuite/EXP_1/test749.c | ishiura-compiler/CF3 | 0718aa176d0303a4ea8a46bd6c794997cbb8fabb | [
"MIT"
] | 1 | 2017-07-06T03:43:44.000Z | 2017-07-06T03:43:44.000Z | testsuite/EXP_1/test749.c | ishiura-compiler/CF3 | 0718aa176d0303a4ea8a46bd6c794997cbb8fabb | [
"MIT"
] | 6 | 2017-07-04T16:30:42.000Z | 2019-10-16T05:37:29.000Z |
/*
CF3
Copyright (c) 2015 ishiura-lab.
Released under the MIT license.
https://github.com/ishiura-compiler/CF3/MIT-LICENSE.md
*/
#include<stdio.h>
#include<stdint.h>
#include<stdlib.h>
#include"test1.h"
int64_t x6 = INT64_MIN;
int8_t x10 = 1;
int8_t x11 = -1;
volatile int32_t t5 = -263191;
uint16_t x26 = UINT16_... | 18.298513 | 54 | 0.577668 |
ddb7ad7a52eb8a3fcb722a992585db26e4e265a6 | 1,859 | java | Java | GraceJava/ToStr.java | thautwarm/Projects | 732329177dcbd378f1992d33fbdd2e67b9c4ac1e | [
"Apache-2.0"
] | null | null | null | GraceJava/ToStr.java | thautwarm/Projects | 732329177dcbd378f1992d33fbdd2e67b9c4ac1e | [
"Apache-2.0"
] | null | null | null | GraceJava/ToStr.java | thautwarm/Projects | 732329177dcbd378f1992d33fbdd2e67b9c4ac1e | [
"Apache-2.0"
] | null | null | null | package GraceJava;
import java.sql.Timestamp;
import java.util.Date;
public class ToStr {
public ToStr(){
}
public static Long str2long(String a){
if (a==null||a.equals("null")) return null;
return Long.valueOf(a);
}
public static Integer str2int(String a){
if (a==null||a.equals("null")) return null;
... | 23.531646 | 65 | 0.670253 |
c293b44635d8c362599044c93d9597f9ef089bd2 | 1,068 | html | HTML | examples/mapbox-streets/index.html | GlobeletJS/satellite-view | c5b7ddc6b28e4a8d77b195606a09f01e17ae048c | [
"MIT"
] | 3 | 2019-10-19T18:24:10.000Z | 2019-12-12T15:55:28.000Z | examples/mapbox-streets/index.html | GlobeletJS/satellite-view | c5b7ddc6b28e4a8d77b195606a09f01e17ae048c | [
"MIT"
] | 1 | 2020-04-10T18:51:55.000Z | 2020-04-10T18:51:55.000Z | examples/mapbox-streets/index.html | GlobeletJS/satellite-view | c5b7ddc6b28e4a8d77b195606a09f01e17ae048c | [
"MIT"
] | null | null | null | <html>
<head>
<title>satellite-view</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="splitearth_v12b.png">
<link rel="stylesheet" type="text/css" href="styles.css">
<script src="main.min.js"></script>
</head>
<body onloa... | 28.105263 | 74 | 0.585206 |
c6e98ed31052e0357512e828d5b3c0be2b22dd54 | 52 | py | Python | enthought/traits/ui/help_template.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 3 | 2016-12-09T06:05:18.000Z | 2018-03-01T13:00:29.000Z | enthought/traits/ui/help_template.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 1 | 2020-12-02T00:51:32.000Z | 2020-12-02T08:48:55.000Z | enthought/traits/ui/help_template.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | null | null | null | # proxy module
from traitsui.help_template import *
| 17.333333 | 36 | 0.807692 |
85e16226e81be7599949809ba6646882fe236a30 | 21,542 | dart | Dart | packages/free_flutter_pdf/lib/src/pdf/implementation/forms/pdf_text_box_field.dart | cholojuanito/free_flutter_widgets | da1679540f3de9f92682494d53d2149b65bc2ea3 | [
"MIT"
] | 3 | 2021-04-12T21:35:08.000Z | 2021-11-20T11:07:47.000Z | packages/free_flutter_pdf/lib/src/pdf/implementation/forms/pdf_text_box_field.dart | cholojuanito/free_flutter_widgets | da1679540f3de9f92682494d53d2149b65bc2ea3 | [
"MIT"
] | null | null | null | packages/free_flutter_pdf/lib/src/pdf/implementation/forms/pdf_text_box_field.dart | cholojuanito/free_flutter_widgets | da1679540f3de9f92682494d53d2149b65bc2ea3 | [
"MIT"
] | 1 | 2021-06-23T19:20:10.000Z | 2021-06-23T19:20:10.000Z | part of pdf;
/// Represents text box field in the PDF form.
class PdfTextBoxField extends PdfField {
//Constructor
/// Initializes a new instance of the [PdfTextBoxField] class with the provided page and name.
PdfTextBoxField(PdfPage page, String name, Rect bounds,
{PdfFont? font,
String? text,
... | 33.817896 | 106 | 0.607418 |
2c8a23656a92a960f174178be9c97caaf0170a56 | 13,907 | py | Python | tools/gen_sensor_graph_setting.py | CK-RK3326-P/hardware_rockchip_camera | f2771726c34f2f1819ff85921fe45bc2136bfebe | [
"Apache-2.0"
] | null | null | null | tools/gen_sensor_graph_setting.py | CK-RK3326-P/hardware_rockchip_camera | f2771726c34f2f1819ff85921fe45bc2136bfebe | [
"Apache-2.0"
] | null | null | null | tools/gen_sensor_graph_setting.py | CK-RK3326-P/hardware_rockchip_camera | f2771726c34f2f1819ff85921fe45bc2136bfebe | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import sys
import xml.etree.ElementTree as ET
import xml.dom.minidom as minidom
import os
import datetime
from optparse import OptionParser
def cal_crop(source, target):
ratio_src = source['W'] * 1.0 / source['H']
ratio_dst = target['W'] * 1.0 / target['H']
ret = {}
if ratio_src... | 42.270517 | 126 | 0.427698 |
d4f20f9e733fda7d345d8af585e5b9f2f67a3e42 | 602 | tsx | TypeScript | packages/app/src/components/CodeTextarea.tsx | koredefashokun/coding-notes | e7d80ce1cd5d8cc27e6bcf716cec78a8b9d3178f | [
"MIT"
] | null | null | null | packages/app/src/components/CodeTextarea.tsx | koredefashokun/coding-notes | e7d80ce1cd5d8cc27e6bcf716cec78a8b9d3178f | [
"MIT"
] | 17 | 2020-09-05T01:55:43.000Z | 2022-02-26T01:38:21.000Z | packages/app/src/components/CodeTextarea.tsx | koredefashokun/coding-notes | e7d80ce1cd5d8cc27e6bcf716cec78a8b9d3178f | [
"MIT"
] | null | null | null | import React from 'react';
import { highlight, languages } from 'prismjs';
import 'prismjs/components/prism-clike';
import 'prismjs/components/prism-javascript';
import 'prismjs/components/prism-markup';
import 'prismjs/themes/prism.css';
import { BlockCodeTextarea } from './elements';
interface CodeTextareaProps {
c... | 26.173913 | 68 | 0.745847 |
da925e2763a2d822ae6f8a14f43696e1011bdc39 | 319 | php | PHP | tests/Rules/Doctrine/ORM/data/EntityWithUnknownType.php | sasezaki/phpstan-doctrine | abf6068c9318735235c40ab6018e074352e92a55 | [
"MIT"
] | 442 | 2017-01-31T00:00:31.000Z | 2022-03-25T23:18:59.000Z | tests/Rules/Doctrine/ORM/data/EntityWithUnknownType.php | sasezaki/phpstan-doctrine | abf6068c9318735235c40ab6018e074352e92a55 | [
"MIT"
] | 283 | 2017-03-10T02:31:50.000Z | 2022-03-31T07:52:43.000Z | tests/Rules/Doctrine/ORM/data/EntityWithUnknownType.php | ruudk/phpstan-doctrine | f2a650cf667cb99bc4f595a32d370f4ad8e3c9ca | [
"MIT"
] | 88 | 2017-02-12T00:38:35.000Z | 2022-02-08T11:35:16.000Z | <?php declare(strict_types = 1);
namespace PHPStan\Rules\Doctrine\ORM;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity()
*/
class EntityWithUnknownType
{
/**
* @ORM\Id()
* @ORM\Column(type="integer")
* @var int
*/
private $id;
/**
* @ORM\Column(type="unknown")
* @var int
*/
private $foo;
}
| 12.269231 | 37 | 0.601881 |
dde5f45006c86e3934af77d26aa864ed0975ae2d | 681 | java | Java | src/maven-repair/src/main/java/com/github/tdurieux/repair/maven/plugin/NPEFixMojo.java | zen93/repairnator | aa184717e6e755801572e9cf0bb7dde1a7591ead | [
"MIT"
] | 271 | 2018-04-06T10:47:52.000Z | 2019-08-31T09:16:49.000Z | src/maven-repair/src/main/java/com/github/tdurieux/repair/maven/plugin/NPEFixMojo.java | zen93/repairnator | aa184717e6e755801572e9cf0bb7dde1a7591ead | [
"MIT"
] | 470 | 2018-02-01T15:32:38.000Z | 2019-09-02T21:10:46.000Z | src/maven-repair/src/main/java/com/github/tdurieux/repair/maven/plugin/NPEFixMojo.java | zen93/repairnator | aa184717e6e755801572e9cf0bb7dde1a7591ead | [
"MIT"
] | 48 | 2019-09-08T09:51:24.000Z | 2022-03-25T18:05:25.000Z | package com.github.tdurieux.repair.maven.plugin;
import fr.inria.spirals.repairnator.process.step.repair.NPERepair;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annota... | 32.428571 | 66 | 0.773862 |
e081bc21391286c713e957bc359844bcbd2c4dcf | 13,238 | h | C | freebsd3/sys/i386/include/asnames.h | MarginC/kame | 2ef74fe29e4cca9b4a87a1d5041191a9e2e8be30 | [
"BSD-3-Clause"
] | 91 | 2015-01-05T15:18:31.000Z | 2022-03-11T16:43:28.000Z | freebsd3/sys/i386/include/asnames.h | MarginC/kame | 2ef74fe29e4cca9b4a87a1d5041191a9e2e8be30 | [
"BSD-3-Clause"
] | 1 | 2016-02-25T15:57:55.000Z | 2016-02-25T16:01:02.000Z | freebsd3/sys/i386/include/asnames.h | MarginC/kame | 2ef74fe29e4cca9b4a87a1d5041191a9e2e8be30 | [
"BSD-3-Clause"
] | 21 | 2015-02-07T08:23:07.000Z | 2021-12-14T06:01:49.000Z | /*-
* Copyright (c) 1997 John D. Polstra
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of con... | 33.856777 | 77 | 0.801481 |
6385d22de1789b1a0435f0b5bb5330d53f4aedf8 | 7,117 | rs | Rust | flash-lso/src/types.rs | CUB3D/rust-sol | 1af96043e752145893da4a9754d92d3c7b6b749f | [
"MIT"
] | 7 | 2020-06-27T09:24:02.000Z | 2021-05-07T09:31:25.000Z | flash-lso/src/types.rs | CUB3D/rust-sol | 1af96043e752145893da4a9754d92d3c7b6b749f | [
"MIT"
] | 6 | 2021-06-20T21:37:12.000Z | 2022-01-05T02:52:42.000Z | flash-lso/src/types.rs | CUB3D/rust-sol | 1af96043e752145893da4a9754d92d3c7b6b749f | [
"MIT"
] | 3 | 2021-07-22T08:07:18.000Z | 2021-08-09T11:56:57.000Z | use cookie_factory::lib::std::fmt::Formatter;
use core::fmt;
use derive_try_from_primitive::TryFromPrimitive;
use enumset::EnumSet;
use enumset::EnumSetType;
use nom::lib::std::iter::FromIterator;
use std::ops::Deref;
use std::rc::Rc;
/// A container for lso files
#[cfg_attr(feature = "serde", derive(Serialize, Deseri... | 31.772321 | 133 | 0.640017 |
cd7d8be92a93012291ce29107b7de446b7e87661 | 297 | asm | Assembly | libsrc/_DEVELOPMENT/adt/b_array/c/sccz80/b_array_insert_n_callee.asm | teknoplop/z88dk | bb03fbfd6b2ab0f397a1358559089f9cd3706485 | [
"ClArtistic"
] | 8 | 2017-01-18T12:02:17.000Z | 2021-06-12T09:40:28.000Z | libsrc/_DEVELOPMENT/adt/b_array/c/sccz80/b_array_insert_n_callee.asm | teknoplop/z88dk | bb03fbfd6b2ab0f397a1358559089f9cd3706485 | [
"ClArtistic"
] | 1 | 2017-03-06T07:41:56.000Z | 2017-03-06T07:41:56.000Z | libsrc/_DEVELOPMENT/adt/b_array/c/sccz80/b_array_insert_n_callee.asm | teknoplop/z88dk | bb03fbfd6b2ab0f397a1358559089f9cd3706485 | [
"ClArtistic"
] | 3 | 2017-03-07T03:19:40.000Z | 2021-09-15T17:59:19.000Z |
; size_t b_array_insert_n(b_array_t *a, size_t idx, size_t n, int c)
SECTION code_clib
SECTION code_adt_b_array
PUBLIC b_array_insert_n_callee
EXTERN asm_b_array_insert_n
b_array_insert_n_callee:
pop hl
pop de
ld a,e
pop de
pop bc
ex (sp),hl
jp asm_b_array_insert_n
| 14.142857 | 68 | 0.744108 |
9a424edee06322be99676be26eddc232c7cca6c0 | 3,887 | sql | SQL | sql/core/src/test/resources/tpcds/q5.sql | wangyixiaohuihui/spark2-annotation | 25fe53ac7167275114a1ef0be802db92a7010ec8 | [
"BSD-3-Clause-Open-MPI",
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"MIT-0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause-Clear",
"PostgreSQL",
"BSD-3-Clause"
] | null | null | null | sql/core/src/test/resources/tpcds/q5.sql | wangyixiaohuihui/spark2-annotation | 25fe53ac7167275114a1ef0be802db92a7010ec8 | [
"BSD-3-Clause-Open-MPI",
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"MIT-0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause-Clear",
"PostgreSQL",
"BSD-3-Clause"
] | null | null | null | sql/core/src/test/resources/tpcds/q5.sql | wangyixiaohuihui/spark2-annotation | 25fe53ac7167275114a1ef0be802db92a7010ec8 | [
"BSD-3-Clause-Open-MPI",
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"MIT-0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause-Clear",
"PostgreSQL",
"BSD-3-Clause"
] | null | null | null | WITH ssr AS
( SELECT
s_store_id,
sum(sales_price) AS sales,
sum(profit) AS profit,
sum(return_amt) AS RETURNS,
sum(net_loss) AS profit_loss
FROM
(SELECT
ss_store_sk AS store_sk,
ss_sold_date_sk AS date_sk,
ss_ext_sales_price AS sales_price,
ss_net_profit... | 29.44697 | 76 | 0.627219 |
20c74354f7c2c5c82f2eeb3ec6c6297a6628a0ed | 1,282 | cs | C# | Operators/Types/BoolToFloats.cs | still-scene/t3 | 22dd85b3084dd04ca449ac08db5d0eb5967041bc | [
"MIT"
] | 23 | 2021-06-10T00:22:37.000Z | 2022-03-17T00:22:13.000Z | Operators/Types/BoolToFloats.cs | still-scene/t3 | 22dd85b3084dd04ca449ac08db5d0eb5967041bc | [
"MIT"
] | 5 | 2021-07-17T15:01:48.000Z | 2022-02-17T21:05:07.000Z | Operators/Types/BoolToFloats.cs | still-scene/t3 | 22dd85b3084dd04ca449ac08db5d0eb5967041bc | [
"MIT"
] | 3 | 2021-06-04T18:56:11.000Z | 2021-09-06T16:08:41.000Z | using System.Collections.Generic;
using T3.Core.Logging;
using T3.Core.Operator;
using T3.Core.Operator.Attributes;
using T3.Core.Operator.Slots;
namespace T3.Operators.Types.Id_9db2fcbf_54b9_4222_878b_80d1a0dc6edf
{
public class BoolToFloats : Instance<BoolToFloats>
{
[Output(Guid = "F0321A54-E844-482... | 34.648649 | 75 | 0.620905 |
f5f919da40d3edf74dbab3c2b88118c3af6dae42 | 80 | css | CSS | packages/client/src/styles/bxicons/index.css | Romakita/ts-gphoto-driver | 38c18069c151e767b2a83fa2fd2b1af1df368953 | [
"MIT"
] | 7 | 2021-05-13T16:06:53.000Z | 2022-02-07T16:17:10.000Z | packages/client/src/styles/bxicons/index.css | Romakita/ts-gphoto-driver | 38c18069c151e767b2a83fa2fd2b1af1df368953 | [
"MIT"
] | 43 | 2021-06-01T08:10:37.000Z | 2022-03-28T09:30:29.000Z | packages/shared/src/styles/fonts/bxicons/index.css | tsedio/tsed-example-formio | 840d70b7b670c0927529218de0c33f10b7d1eace | [
"Unlicense",
"MIT"
] | 4 | 2021-07-22T14:26:51.000Z | 2022-02-02T21:54:47.000Z | @import "boxicons.css";
@import "animations.css";
@import "transformations.css"; | 26.666667 | 30 | 0.75 |
79ea6804cca8aa9bc42b74b00cebe388d964cf92 | 2,553 | php | PHP | src/OpenConext/Value/Assert/Assertion.php | OpenConext/SamlValueObject | cb1f17e18b7964b53954de0754bc1ff569b967b2 | [
"Apache-2.0"
] | null | null | null | src/OpenConext/Value/Assert/Assertion.php | OpenConext/SamlValueObject | cb1f17e18b7964b53954de0754bc1ff569b967b2 | [
"Apache-2.0"
] | 10 | 2015-12-18T12:35:07.000Z | 2018-01-22T09:37:37.000Z | src/OpenConext/Value/Assert/Assertion.php | OpenConext/SamlValueObject | cb1f17e18b7964b53954de0754bc1ff569b967b2 | [
"Apache-2.0"
] | 2 | 2016-10-19T14:38:29.000Z | 2017-06-11T09:46:54.000Z | <?php
namespace OpenConext\Value\Assert;
use Assert\Assertion as BaseAssertion;
/**
* @method static void nullOrNonEmptyString($value, $message = null, $propertyPath = null)
* @method static void allNonEmptyString($value, $message = null, $propertyPath = null)
* @method static void allValidRegularExpression($valu... | 31.134146 | 115 | 0.603995 |
5cb4777556509203209a680424d218a7bc3a4205 | 2,908 | rs | Rust | src/view/src/render_context.rs | MitMaro/git-rebase-tool | ab4627c6f770c94658f030eaa3a93d9ba33b91ea | [
"DOC"
] | 2 | 2016-12-21T19:04:25.000Z | 2016-12-22T19:20:45.000Z | src/view/src/render_context.rs | MitMaro/git-rebase-tool | ab4627c6f770c94658f030eaa3a93d9ba33b91ea | [
"DOC"
] | null | null | null | src/view/src/render_context.rs | MitMaro/git-rebase-tool | ab4627c6f770c94658f030eaa3a93d9ba33b91ea | [
"DOC"
] | null | null | null | const MINIMUM_WINDOW_HEIGHT: usize = 5; // title + pad top + line + pad bottom + help
const MINIMUM_COMPACT_WINDOW_WIDTH: usize = 20; // ">s ccc mmmmmmmmmmmmm".len()
const MINIMUM_FULL_WINDOW_WIDTH: usize = 34; // " > squash cccccccc mmmmmmmmmmmmm %".len()
/// Represents data associated with rendering content.
#[deriv... | 24.644068 | 90 | 0.705296 |
ef34f45ef958972a6e88d41df655b929f587c231 | 615 | h | C | DetectorDescription/Parser/src/DDLTrapezoid.h | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | DetectorDescription/Parser/src/DDLTrapezoid.h | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | DetectorDescription/Parser/src/DDLTrapezoid.h | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | #ifndef DDLTRAPEZOID_H
#define DDLTRAPEZOID_H
#include <string>
#include <vector>
#include "DDLSolid.h"
class DDCompactView;
class DDLElementRegistry;
/** @class DDLTrapezoid
* @author Michael Case
*
* DDLTrapezoid.h - description
* -------------------
* begin: Mon Oct 29 2001
* email: case@ucdhep.ucdav... | 20.5 | 104 | 0.715447 |
bc6b48fabe5440fec4929840fffab025935557ec | 1,757 | swift | Swift | Alto/Horizontal.swift | marcbaldwin/Alto | 57ae09bf025f1835594eca9cab9cc5aae8285728 | [
"MIT"
] | 3 | 2016-02-27T11:29:49.000Z | 2018-10-06T02:04:00.000Z | Alto/Horizontal.swift | marcbaldwin/Alto | 57ae09bf025f1835594eca9cab9cc5aae8285728 | [
"MIT"
] | null | null | null | Alto/Horizontal.swift | marcbaldwin/Alto | 57ae09bf025f1835594eca9cab9cc5aae8285728 | [
"MIT"
] | null | null | null | import Foundation
public enum Horizontal {
case centerX, left, right, leading, trailing
}
extension Horizontal: SingleOffset, SingleAttribute {
var nsAttribute: NSLayoutConstraint.Attribute {
switch self {
case .centerX: return .centerX
case .left: return .left
case .right: re... | 39.044444 | 186 | 0.692658 |
a10476d3a2408fc8d5a20ef185d29f646a533c6e | 11,137 | cpp | C++ | lugre/src/lugre_camera_L.cpp | ghoulsblade/vegaogre | 2ece3b799f9bd667f081d47c1a0f3ef5e78d3e0f | [
"MIT"
] | 1 | 2020-10-18T14:33:05.000Z | 2020-10-18T14:33:05.000Z | lugre/src/lugre_camera_L.cpp | ghoulsblade/vegaogre | 2ece3b799f9bd667f081d47c1a0f3ef5e78d3e0f | [
"MIT"
] | null | null | null | lugre/src/lugre_camera_L.cpp | ghoulsblade/vegaogre | 2ece3b799f9bd667f081d47c1a0f3ef5e78d3e0f | [
"MIT"
] | null | null | null | #include "lugre_prefix.h"
#include "lugre_luabind.h"
#include "lugre_luabind_direct.h"
#include "lugre_luabind_ogrehelper.h"
#include "lugre_camera.h"
#include "lugre_ogrewrapper.h"
#include "lugre_scripting.h"
#include <Ogre.h>
extern "C" {
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
}
using namespa... | 32.755882 | 139 | 0.703062 |
21971884aa304e160b28b4b382aafc5dc9a7d78d | 3,969 | swift | Swift | Multiplatform/Shared/Sidebar/SidebarContextMenu.swift | Mackarous/NetNewsWire | 4355d7617ae3999188c4b9ac383fd02e89696f02 | [
"MIT"
] | 6 | 2020-10-31T00:52:51.000Z | 2020-12-31T06:55:00.000Z | Multiplatform/Shared/Sidebar/SidebarContextMenu.swift | danielpunkass/NetNewsWire | ff82c613ca946ca404cb9db6661b1cedc3c3a3e3 | [
"MIT"
] | 1 | 2018-09-27T22:34:12.000Z | 2018-09-27T22:34:12.000Z | Multiplatform/Shared/Sidebar/SidebarContextMenu.swift | danielpunkass/NetNewsWire | ff82c613ca946ca404cb9db6661b1cedc3c3a3e3 | [
"MIT"
] | 1 | 2021-11-21T13:59:57.000Z | 2021-11-21T13:59:57.000Z | //
// SidebarContextMenu.swift
// NetNewsWire
//
// Created by Maurice Parker on 7/17/20.
// Copyright © 2020 Ranchero Software. All rights reserved.
//
import SwiftUI
import RSCore
import Account
struct SidebarContextMenu: View {
@Environment(\.undoManager) var undoManager
@Environment(\.openURL) var openURL... | 21.454054 | 86 | 0.641471 |
e77f83c102270bd98a02ad39887fa9b4d08ae6cb | 390 | php | PHP | app/Http/Controllers/API/Usuario.php | VictorAfonso044/DigitalInnovationOneLaravel | b96292c8c153689d19ccc837dcfedb3abb35b175 | [
"MIT"
] | 1 | 2021-05-17T14:58:50.000Z | 2021-05-17T14:58:50.000Z | app/Http/Controllers/API/Usuario.php | VictorAfonso044/DigitalInnovationOneLaravel | b96292c8c153689d19ccc837dcfedb3abb35b175 | [
"MIT"
] | null | null | null | app/Http/Controllers/API/Usuario.php | VictorAfonso044/DigitalInnovationOneLaravel | b96292c8c153689d19ccc837dcfedb3abb35b175 | [
"MIT"
] | null | null | null | <?php
namespace App\Http\Controllers\API;
use App\Http\Controllers\Controller;
use App\Models\Usuario as ModelsUsuario;
use Illuminate\Http\Request;
class Usuario extends Controller
{
public function salvar(Request $request){
if(ModelsUsuario::cadastrar($request)){
return response("ok", 200);
... | 20.526316 | 46 | 0.666667 |
8d7aff33b7f99abb9aaed9dc64298eb9546ce4db | 713 | js | JavaScript | app/javascript/controllers/theme_controller.js | matthewl/WriteAbout | 3e0c55b57820f2916b1928647721392804e2fa88 | [
"MIT"
] | null | null | null | app/javascript/controllers/theme_controller.js | matthewl/WriteAbout | 3e0c55b57820f2916b1928647721392804e2fa88 | [
"MIT"
] | 5 | 2019-11-26T08:35:23.000Z | 2019-11-26T20:59:48.000Z | app/javascript/controllers/theme_controller.js | matthewl/WriteAbout | 3e0c55b57820f2916b1928647721392804e2fa88 | [
"MIT"
] | null | null | null | import { Controller } from "@hotwired/stimulus"
export default class extends Controller {
static targets = ["light", "dark", "system"]
connect() {
this.switchTheme()
}
switchTheme() {
if (localStorage.theme === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)')... | 21.606061 | 133 | 0.642356 |
0f5d79272590b662bc8fe163351026ec992df0f9 | 411 | swift | Swift | MovieDB/Controllers/ViewController.swift | rusito-23/MovieDB | 66a585424e0e86514058a1a32fb9b158f7cf1cd7 | [
"MIT"
] | null | null | null | MovieDB/Controllers/ViewController.swift | rusito-23/MovieDB | 66a585424e0e86514058a1a32fb9b158f7cf1cd7 | [
"MIT"
] | null | null | null | MovieDB/Controllers/ViewController.swift | rusito-23/MovieDB | 66a585424e0e86514058a1a32fb9b158f7cf1cd7 | [
"MIT"
] | null | null | null | //
// ViewController.swift
// MovieDB
//
// Created by Igor Andruskiewitsch on 18/02/2019.
// Copyright © 2019 Igor Andruskiewitsch. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
}
@IBAction func exploreMovies(_ send... | 17.869565 | 69 | 0.698297 |
74c889a16591d9db53ae692c03a23af42c1f2c00 | 813 | css | CSS | frontend/views/sensors/createsensor-view.css | Burdis28/diplomka | f662a83a1e315541dbc7c253af2d74997b03be9d | [
"Unlicense"
] | 1 | 2021-08-09T23:58:25.000Z | 2021-08-09T23:58:25.000Z | frontend/views/sensors/createsensor-view.css | Burdis28/diplomka | f662a83a1e315541dbc7c253af2d74997b03be9d | [
"Unlicense"
] | 2 | 2021-08-09T22:26:52.000Z | 2021-08-21T23:23:07.000Z | frontend/views/sensors/createsensor-view.css | Burdis28/diplomka | f662a83a1e315541dbc7c253af2d74997b03be9d | [
"Unlicense"
] | null | null | null | createsensor-view {
background-color: var(--lumo-contrast-10pct);
box-sizing: border-box;
display: block;
font-size: var(--lumo-font-size-m);
height: 100%;
overflow: auto;
padding: var(--lumo-space-l) var(--lumo-space-l) var(--lumo-space-l) var(--lumo-space-l);
}
createsensor-view div{
background-color... | 28.034483 | 92 | 0.671587 |
387531ca5e54ce393eebfdd55e81dba46f08b54c | 10,087 | php | PHP | resources/views/home/goods/show.blade.php | dieche1227/blog | 76acf8c0d0fc0deec8618ffaf4da6f2667948be9 | [
"MIT"
] | 2 | 2017-08-25T01:38:16.000Z | 2018-03-21T05:49:00.000Z | resources/views/home/goods/show.blade.php | dieche1227/blog | 76acf8c0d0fc0deec8618ffaf4da6f2667948be9 | [
"MIT"
] | null | null | null | resources/views/home/goods/show.blade.php | dieche1227/blog | 76acf8c0d0fc0deec8618ffaf4da6f2667948be9 | [
"MIT"
] | null | null | null | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<... | 33.400662 | 175 | 0.531377 |
0afdf9968d66ce8acc6a2083baff455ea9b0130d | 1,046 | kt | Kotlin | app/src/main/kotlin/pl/mbaleczny/rapid_mg/util/RxUtils.kt | mbaleczny/rapid-mg | 972d8e4fd0f9715383416949919aad0b868a6ad2 | [
"Apache-2.0"
] | null | null | null | app/src/main/kotlin/pl/mbaleczny/rapid_mg/util/RxUtils.kt | mbaleczny/rapid-mg | 972d8e4fd0f9715383416949919aad0b868a6ad2 | [
"Apache-2.0"
] | 1 | 2017-12-24T14:00:32.000Z | 2017-12-25T17:53:02.000Z | app/src/main/kotlin/pl/mbaleczny/rapid_mg/util/RxUtils.kt | mbaleczny/rapid-mg | 972d8e4fd0f9715383416949919aad0b868a6ad2 | [
"Apache-2.0"
] | null | null | null | package pl.mbaleczny.rapid_mg.util
import io.reactivex.Observable
import io.reactivex.ObservableTransformer
import pl.mbaleczny.rapid_mg.R
import pl.mbaleczny.rapid_mg.RapidApp
import pl.mbaleczny.rapid_mg.util.schedulers.BaseSchedulerProvider
import java.io.IOException
/**
* @author Mariusz Baleczny
* @date 16.02.... | 29.885714 | 76 | 0.679732 |
57f577783000e3a2996d07144c6464aaefd0bcc8 | 665 | sql | SQL | src/test/resources/jp/co/tis/gsp/tools/dba/mojo/ImportSchemaMojo_test/basic/oracle/ddl/90_extra_ddl.sql | y-ok/gsp-dba-maven-plugin | e37358cf85ca2ab735ba19544a99cd923fcd703c | [
"Apache-2.0"
] | 15 | 2015-06-26T01:53:33.000Z | 2020-12-05T13:01:31.000Z | src/test/resources/jp/co/tis/gsp/tools/dba/mojo/ImportSchemaMojo_test/basic/oracle/ddl/90_extra_ddl.sql | y-ok/gsp-dba-maven-plugin | e37358cf85ca2ab735ba19544a99cd923fcd703c | [
"Apache-2.0"
] | 49 | 2016-01-18T02:29:09.000Z | 2022-03-09T07:00:16.000Z | src/test/resources/jp/co/tis/gsp/tools/dba/mojo/ImportSchemaMojo_test/basic/oracle/ddl/90_extra_ddl.sql | y-ok/gsp-dba-maven-plugin | e37358cf85ca2ab735ba19544a99cd923fcd703c | [
"Apache-2.0"
] | 12 | 2016-01-13T01:31:55.000Z | 2022-02-24T13:34:44.000Z | -- シーケンス
-- ORACLEはGSPで作成している
-- シノニム
CREATE SYNONYM SYN_TEST_TBL1 FOR TEST_TBL1;
-- プロシージャ
CREATE OR REPLACE PROCEDURE PROC_SELECT_TEST_TBL1 (AA IN NUMBER, BB OUT NUMBER) AS BEGIN SELECT TEST_TBL1_ID INTO BB FROM TEST_TBL1 WHERE TEST_TBL1_ID = AA; DBMS_OUTPUT.PUT_LINE('ID:' || BB); END;/
-- ファンクション
CREATE... | 47.5 | 198 | 0.738346 |
86a19eff96891cfbbd5f903fe7f4d1bced562e22 | 5,184 | lua | Lua | test_scripts/Policies/user_consent_of_Policies/199_ATF_appPermissionsConsentNeeded_true.lua | shiniwat/sdl_atf_test_scripts | 7e8686f682ea0fac7ba1ba53d380c842a6434875 | [
"BSD-3-Clause"
] | 3 | 2016-03-17T02:26:56.000Z | 2021-11-06T08:04:19.000Z | test_scripts/Policies/user_consent_of_Policies/199_ATF_appPermissionsConsentNeeded_true.lua | shiniwat/sdl_atf_test_scripts | 7e8686f682ea0fac7ba1ba53d380c842a6434875 | [
"BSD-3-Clause"
] | 1,335 | 2016-03-14T18:29:40.000Z | 2022-03-30T10:40:28.000Z | test_scripts/Policies/user_consent_of_Policies/199_ATF_appPermissionsConsentNeeded_true.lua | shiniwat/sdl_atf_test_scripts | 7e8686f682ea0fac7ba1ba53d380c842a6434875 | [
"BSD-3-Clause"
] | 72 | 2016-03-30T13:44:17.000Z | 2021-07-26T06:48:24.000Z | ---------------------------------------------------------------------------------------------
-- Requirement summary:
-- [Policies]: User consent required on permissions change
-- [Policies] GetListOfPermissions with appID
-- [HMI API] OnAppPermissionChanged notification
--
-- Description:
-- Local PT is successfully u... | 45.473684 | 216 | 0.678434 |
da86d9d813af9cf51fbdc4cfed4877df1f8d9d39 | 927 | php | PHP | app/Models/BusinessBranch.php | Lakshander/grizfit | 7baf4c0df8477519d1f94a107e307b4657383d6e | [
"MIT"
] | null | null | null | app/Models/BusinessBranch.php | Lakshander/grizfit | 7baf4c0df8477519d1f94a107e307b4657383d6e | [
"MIT"
] | null | null | null | app/Models/BusinessBranch.php | Lakshander/grizfit | 7baf4c0df8477519d1f94a107e307b4657383d6e | [
"MIT"
] | 2 | 2021-02-20T03:48:01.000Z | 2021-11-23T10:06:01.000Z | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class BusinessBranch extends Model
{
protected $table = "business_branches";
// Add your validation rules here
public static $rules = [
'detail_id' => 'required',
'area_id' => 'required'
];
public static functio... | 23.175 | 67 | 0.586839 |
4ce9532d84835930198b2fdf6ff25a02c5a9fca1 | 358 | py | Python | yolo/vedanet/engine/__init__.py | hilman-dayo/ObjectDetection-OneStageDet | 44054ad335e24e99a98fdad0d18b9bf3a80c941c | [
"MIT"
] | 331 | 2020-06-05T05:10:21.000Z | 2022-03-29T07:32:42.000Z | vedanet/engine/__init__.py | xiongcaihua/ObjectDetection-OneStageDet | d29f69cdce32b006bd040edb6e66427b3c987c70 | [
"Apache-2.0"
] | 10 | 2020-06-12T07:53:42.000Z | 2021-05-11T00:09:10.000Z | vedanet/engine/__init__.py | xiongcaihua/ObjectDetection-OneStageDet | d29f69cdce32b006bd040edb6e66427b3c987c70 | [
"Apache-2.0"
] | 84 | 2020-06-05T10:21:11.000Z | 2022-03-27T23:42:44.000Z | """
Lightnet Engine Module |br|
This module contains classes and functions to manage the training of your networks.
It has an engine, capable of orchestrating your training and test cycles, and also contains function to easily visualise data with visdom_.
"""
#from .engine import *
from ._voc_train import *
from ._vo... | 29.833333 | 139 | 0.776536 |
ef606720f1a21954f353a131920915a803ced757 | 3,425 | js | JavaScript | test/lazyfunSpec.js | desfero/lazyfun | c0547b65482d078b00f58903399b58fe3a0d6d48 | [
"MIT"
] | 1 | 2016-10-20T18:53:34.000Z | 2016-10-20T18:53:34.000Z | test/lazyfunSpec.js | desfero/lazyfun | c0547b65482d078b00f58903399b58fe3a0d6d48 | [
"MIT"
] | null | null | null | test/lazyfunSpec.js | desfero/lazyfun | c0547b65482d078b00f58903399b58fe3a0d6d48 | [
"MIT"
] | null | null | null | 'use strict';
var chai = require('chai'),
spies = require('chai-spies');
chai.use(spies);
var expect = chai.expect,
lazyfun = require('../lazyfun');
describe('lazyfun', function () {
it('should be a function', function () {
expect(lazyfun).to.be.a('function');
});
describe('lazy', function () {
i... | 22.096774 | 92 | 0.571095 |
8bf4bbecae8930eb93a4d2ecc9b1bfc98e2d499f | 1,014 | rb | Ruby | test/test_esperanto.rb | tricknotes/ruby-esperanto | 80e1507040e6645db0a03f5d56b353b8ed7f7324 | [
"MIT"
] | null | null | null | test/test_esperanto.rb | tricknotes/ruby-esperanto | 80e1507040e6645db0a03f5d56b353b8ed7f7324 | [
"MIT"
] | null | null | null | test/test_esperanto.rb | tricknotes/ruby-esperanto | 80e1507040e6645db0a03f5d56b353b8ed7f7324 | [
"MIT"
] | null | null | null | require 'minitest/autorun'
require 'minitest/power_assert'
require 'esperanto'
class TestEsperanto < MiniTest::Test
def test_to_amd
source = <<-JS
export default 'hi';
JS
expected = <<-JS.strip
define(function () {
\t'use strict';
\treturn 'hi';
});
JS
assert { Esperanto.to_amd(source)['cod... | 16.9 | 93 | 0.625247 |
e51521839a9582c538f936171e673d10f0a11803 | 4,163 | swift | Swift | MyAppCatalog/MyAppCatalog/ApiConnectCatalog.swift | rsaenzi/MyAppCatalog | 894907ebff5a8335f0beaf9f6b5fc0697206312c | [
"MIT"
] | null | null | null | MyAppCatalog/MyAppCatalog/ApiConnectCatalog.swift | rsaenzi/MyAppCatalog | 894907ebff5a8335f0beaf9f6b5fc0697206312c | [
"MIT"
] | null | null | null | MyAppCatalog/MyAppCatalog/ApiConnectCatalog.swift | rsaenzi/MyAppCatalog | 894907ebff5a8335f0beaf9f6b5fc0697206312c | [
"MIT"
] | null | null | null | //
// ApiConnectCatalog.swift
// MyAppCatalog
//
// Created by Rigoberto Sáenz Imbacuán [https://www.linkedin.com/in/rsaenzi] on 1/22/17.
// Copyright © 2017 Rigoberto Sáenz Imbacuán. All rights reserved.
//
import Alamofire
typealias CallbackApiCatalog = (response: ApiResponseCatalog) -> ()
class ApiConnectCata... | 32.523438 | 98 | 0.427336 |
dd7dcc8b4285b335103e719d2a09b694641a1a07 | 4,874 | java | Java | logisland-components/logisland-processors/logisland-processor-botsearch/src/test/java/com/hurence/logisland/botsearch/TraceTest.java | FeizNouri/logisland | be0f2f3640d750e7978190fe804d291d5d032524 | [
"Apache-2.0"
] | 101 | 2016-11-04T06:11:22.000Z | 2021-12-16T14:45:36.000Z | logisland-components/logisland-processors/logisland-processor-botsearch/src/test/java/com/hurence/logisland/botsearch/TraceTest.java | FeizNouri/logisland | be0f2f3640d750e7978190fe804d291d5d032524 | [
"Apache-2.0"
] | 386 | 2016-09-26T08:40:46.000Z | 2022-01-04T11:51:38.000Z | logisland-components/logisland-processors/logisland-processor-botsearch/src/test/java/com/hurence/logisland/botsearch/TraceTest.java | FeizNouri/logisland | be0f2f3640d750e7978190fe804d291d5d032524 | [
"Apache-2.0"
] | 29 | 2016-10-13T13:34:51.000Z | 2021-12-16T14:44:53.000Z | /**
* Copyright (C) 2016 Hurence (support@hurence.com)
*
* 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 a... | 37.492308 | 215 | 0.636438 |
c3d18584dc6f79f2e35f5e0249e4a925de6e6d45 | 1,608 | cs | C# | CSharp/GildedTros.App/Constants.cs | DevidTeugels/GildedTros | f7192fc4e87ae3b1fb78bc1b80dfbea12cff21fe | [
"MIT"
] | null | null | null | CSharp/GildedTros.App/Constants.cs | DevidTeugels/GildedTros | f7192fc4e87ae3b1fb78bc1b80dfbea12cff21fe | [
"MIT"
] | null | null | null | CSharp/GildedTros.App/Constants.cs | DevidTeugels/GildedTros | f7192fc4e87ae3b1fb78bc1b80dfbea12cff21fe | [
"MIT"
] | null | null | null | using System.Collections.Generic;
namespace GildedTros.App
{
public static class Constants
{
public static class IncreasingQualityItems
{
public static readonly List<string> Items = new List<string>(){SpecialItems.goodWine};
}
public static class LegendaryI... | 34.956522 | 159 | 0.628109 |
d63e7959b11dc2db06b428397eb5ed55a942f745 | 1,525 | cs | C# | src/DiabloSharp/Endpoints/ProfileEndpoint.cs | leardev/DiabloSharp | e5f4169546bfbd15cc444b343501bee45580b88b | [
"MIT"
] | 8 | 2019-04-16T18:01:05.000Z | 2022-01-27T13:14:32.000Z | src/DiabloSharp/Endpoints/ProfileEndpoint.cs | leardev/DiabloSharp | e5f4169546bfbd15cc444b343501bee45580b88b | [
"MIT"
] | null | null | null | src/DiabloSharp/Endpoints/ProfileEndpoint.cs | leardev/DiabloSharp | e5f4169546bfbd15cc444b343501bee45580b88b | [
"MIT"
] | 2 | 2019-07-21T17:44:29.000Z | 2021-11-23T09:53:49.000Z | using System.Threading.Tasks;
using DiabloSharp.Mappers;
using DiabloSharp.Models;
using DiabloSharp.RateLimiters;
namespace DiabloSharp.Endpoints
{
internal class ProfileEndpoint : Endpoint,
IProfileEndpoint
{
public ProfileEndpoint(ITokenBucket tokenBucket)
... | 35.465116 | 117 | 0.616393 |
03848eca07c63f1898bcdf8afe04716b6edc9d92 | 791 | rb | Ruby | activerecord/lib/active_record/connection_adapters/postgresql/oid/timestamp_with_time_zone.rb | swaathi/rails | c3d4ab00b69daf6044edd3f425ead228a540e68b | [
"MIT"
] | 36,239 | 2015-01-01T05:27:12.000Z | 2022-03-31T14:24:11.000Z | activerecord/lib/active_record/connection_adapters/postgresql/oid/timestamp_with_time_zone.rb | swaathi/rails | c3d4ab00b69daf6044edd3f425ead228a540e68b | [
"MIT"
] | 24,106 | 2015-01-01T01:41:20.000Z | 2022-03-31T23:57:49.000Z | activerecord/lib/active_record/connection_adapters/postgresql/oid/timestamp_with_time_zone.rb | swaathi/rails | c3d4ab00b69daf6044edd3f425ead228a540e68b | [
"MIT"
] | 19,522 | 2015-01-01T04:47:16.000Z | 2022-03-31T20:59:40.000Z | # frozen_string_literal: true
module ActiveRecord
module ConnectionAdapters
module PostgreSQL
module OID # :nodoc:
class TimestampWithTimeZone < DateTime # :nodoc:
def type
real_type_unless_aliased(:timestamptz)
end
def cast_value(value)
return... | 25.516129 | 125 | 0.573957 |
af0e6ebdb9c748e825743a36b9af270de0a88c0a | 1,511 | py | Python | baseq/snv/docs.py | basedata10/baseq | 0f1786c3392a51a6ec7cb0f32355cd28eaa5df29 | [
"MIT"
] | 1 | 2018-08-30T20:29:17.000Z | 2018-08-30T20:29:17.000Z | baseq/snv/docs.py | basedata10/baseq | 0f1786c3392a51a6ec7cb0f32355cd28eaa5df29 | [
"MIT"
] | null | null | null | baseq/snv/docs.py | basedata10/baseq | 0f1786c3392a51a6ec7cb0f32355cd28eaa5df29 | [
"MIT"
] | null | null | null | doc="""
#Enrich Quality
baseq-SNV qc_enrich ./bam ./bedfile ./out
#Alignment
baseq-SNV run_bwa -1 Read1M.P457.1.fq.gz -2 Read1M.P457.2.fq.gz -g hg38 -n Test -o Test.bam -t 10
#MarkDuplicate
baseq-SNV run_markdup -b Test.bam -m Test.marked.bam
#bqsr
baseq-SNV run_bqsr -m Test.marked.bam -g hg38 -q Test.marked.bqsr.ba... | 40.837838 | 264 | 0.762409 |
e00694acd091d44a6fbb848952980b93951853b3 | 480 | php | PHP | resources/views/livewire/frontend/common/sub-category-list.blade.php | mbd24/blog | 1041cd6e885cfd90f8e4b920dee4d48139ae3e58 | [
"MIT"
] | null | null | null | resources/views/livewire/frontend/common/sub-category-list.blade.php | mbd24/blog | 1041cd6e885cfd90f8e4b920dee4d48139ae3e58 | [
"MIT"
] | null | null | null | resources/views/livewire/frontend/common/sub-category-list.blade.php | mbd24/blog | 1041cd6e885cfd90f8e4b920dee4d48139ae3e58 | [
"MIT"
] | null | null | null | <?php $dash.='-- '; ?>
@foreach($subcategories as $subcategory)
@if ($subcategory->posts->count() > 0)
<li><i class="fa-solid fa-angles-right"></i> <a href="{{ route('post-category', $subcategory->slug) }}">{{$dash}}{{$subcategory->name}} ({{ $subcategory->posts->count() }})</a></li>
@endif
@if(count($s... | 48 | 185 | 0.627083 |
b31a0122660d2f37bf6822970447885785f59113 | 17,266 | py | Python | cidr_trie/__init__.py | Figglewatts/cidr-trie | 2e6fe499fdc48e81188a99cdfdf232bc02422608 | [
"MIT"
] | 7 | 2019-11-30T15:43:54.000Z | 2021-05-24T19:44:37.000Z | cidr_trie/__init__.py | Figglewatts/cidr-trie | 2e6fe499fdc48e81188a99cdfdf232bc02422608 | [
"MIT"
] | 10 | 2019-07-13T01:28:47.000Z | 2021-08-11T06:14:59.000Z | cidr_trie/__init__.py | Figglewatts/cidr-trie | 2e6fe499fdc48e81188a99cdfdf232bc02422608 | [
"MIT"
] | 2 | 2019-07-13T01:28:53.000Z | 2020-07-18T18:05:56.000Z | """Store CIDR IP addresses (both v4 and v6) in a PATRICIA trie for easy lookup.
A Patricia trie can be created, inserted to, and searched like this
.. code-block:: python
trie = PatriciaTrie()
trie.insert("0.0.0.0/0", "Internet")
trie.insert("32.0.0.0/9", "RIR-A")
trie.insert("32.128.0.0/9", "RIR-B")... | 36.503171 | 140 | 0.587513 |
2c8c834831719e425d519b2c0b9966f3d5ef31b0 | 1,035 | cpp | C++ | Problem Set Volumes/Volume 2/291 - The House Of Santa Claus.cpp | ztrixack/uva-online-judge | ef87e745390a6a1965fe06621e50c6dc48db7257 | [
"MIT"
] | null | null | null | Problem Set Volumes/Volume 2/291 - The House Of Santa Claus.cpp | ztrixack/uva-online-judge | ef87e745390a6a1965fe06621e50c6dc48db7257 | [
"MIT"
] | null | null | null | Problem Set Volumes/Volume 2/291 - The House Of Santa Claus.cpp | ztrixack/uva-online-judge | ef87e745390a6a1965fe06621e50c6dc48db7257 | [
"MIT"
] | null | null | null | //============================================================================
// Name : 291 - The House Of Santa Claus.cpp
// Author : ztrixack
// Copyright : MIT License
// Description : 278 The House Of Santa Claus in C++, Ansi-style
// Run Time : 0.008 seconds
//====================================... | 25.875 | 110 | 0.416425 |
1abb5442866e6f959af496e22fcc22f25e962b2d | 1,520 | dart | Dart | test/over_react_test/common_component_util_test.dart | greglittlefield-wf/over_react_test | 186f1eb4e3ecfc8d4263665e3d36870955999b99 | [
"Apache-2.0"
] | null | null | null | test/over_react_test/common_component_util_test.dart | greglittlefield-wf/over_react_test | 186f1eb4e3ecfc8d4263665e3d36870955999b99 | [
"Apache-2.0"
] | null | null | null | test/over_react_test/common_component_util_test.dart | greglittlefield-wf/over_react_test | 186f1eb4e3ecfc8d4263665e3d36870955999b99 | [
"Apache-2.0"
] | null | null | null | // Copyright 2017 Workiva Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 37.073171 | 77 | 0.721053 |
29c51e707e11687f327a060a44020847dad1860f | 884 | rb | Ruby | app/controllers/lakatan/notifications_controller.rb | platanus/lakatan-engine | 8bbffe81bc360af72d96d80b53f1ff2bc03882e7 | [
"MIT"
] | null | null | null | app/controllers/lakatan/notifications_controller.rb | platanus/lakatan-engine | 8bbffe81bc360af72d96d80b53f1ff2bc03882e7 | [
"MIT"
] | null | null | null | app/controllers/lakatan/notifications_controller.rb | platanus/lakatan-engine | 8bbffe81bc360af72d96d80b53f1ff2bc03882e7 | [
"MIT"
] | null | null | null | module Lakatan
class NotificationsController < ::ApplicationController
skip_before_action :verify_authenticity_token
def create
respond_to do |format|
format.json { render update_model }
end
end
private
def update_model
Lakatan::UpdateModelJob.perform_later(
up... | 23.891892 | 94 | 0.665158 |
c50b0326752952c64470908308227acf43d59f26 | 2,302 | css | CSS | Runequest_3.5/combat/attackTemplate.css | MarkGrSlater/roll20-character-sheets | 175de010a5d68f208c3eb92e61268ac5bcefc901 | [
"MIT"
] | null | null | null | Runequest_3.5/combat/attackTemplate.css | MarkGrSlater/roll20-character-sheets | 175de010a5d68f208c3eb92e61268ac5bcefc901 | [
"MIT"
] | null | null | null | Runequest_3.5/combat/attackTemplate.css | MarkGrSlater/roll20-character-sheets | 175de010a5d68f208c3eb92e61268ac5bcefc901 | [
"MIT"
] | null | null | null | /* style for melee attack template */
.sheet-rolltemplate-test div.sheet-template-container {
border: 2px solid #000 !important;
border-radius: 3px 3px 3px 3px;
}
.sheet-rolltemplate-test .sheet-template-header {
background-color: rgba(112, 32, 130,1);
color: #000;
padding: 2px;
border-bottom: 1px solid black;
... | 24.752688 | 67 | 0.742398 |
ee8aad8d06a5debdf806f5aa3c300e8a3ea1ccc6 | 748 | rb | Ruby | modules/health_quest/config/routes.rb | darkbushido/vets-api | b436ad3cbcb35821995a3fd2499b8e0859179842 | [
"CC0-1.0"
] | 150 | 2016-07-01T18:52:26.000Z | 2022-03-30T11:30:31.000Z | modules/health_quest/config/routes.rb | darkbushido/vets-api | b436ad3cbcb35821995a3fd2499b8e0859179842 | [
"CC0-1.0"
] | 3,372 | 2016-07-15T14:28:16.000Z | 2022-03-31T17:18:40.000Z | modules/health_quest/config/routes.rb | darkbushido/vets-api | b436ad3cbcb35821995a3fd2499b8e0859179842 | [
"CC0-1.0"
] | 63 | 2016-09-14T14:29:27.000Z | 2022-03-30T20:48:10.000Z | # frozen_string_literal: true
HealthQuest::Engine.routes.draw do
match '/health_quest/v0/*path', to: 'application#cors_preflight', via: [:options]
namespace :v0, defaults: { format: :json } do
resources :lighthouse_appointments, only: %i[index show]
resources :locations, only: %i[index show]
resources... | 37.4 | 83 | 0.720588 |
38e10c3ddf4195935eca1ce70285961d1a56ffa6 | 4,125 | php | PHP | contact/sales-map.php | QETHAN/theme-hengda | 23471a02013705b4419ff8736205176fdb0d8629 | [
"MIT"
] | null | null | null | contact/sales-map.php | QETHAN/theme-hengda | 23471a02013705b4419ff8736205176fdb0d8629 | [
"MIT"
] | null | null | null | contact/sales-map.php | QETHAN/theme-hengda | 23471a02013705b4419ff8736205176fdb0d8629 | [
"MIT"
] | null | null | null | <?php
/*
* Template Name: Sales Map模板
* Template Post Type: post, page, product
*/
get_header();
?>
<?php get_template_part("template_parts/top"); ?>
<div id="m-warp">
<div class="s-middle">
<div class="s-left" id="conLeft" style="height: 1060px;">
<ul>
<li><a href="<?php echo home_url(); ?>/conta... | 65.47619 | 426 | 0.65697 |
3a23bbd3b69b678badee12413a5511ccc6f31238 | 582 | asm | Assembly | programs/oeis/002/A002994.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/002/A002994.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/002/A002994.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A002994: Initial digit of cubes.
; 0,1,8,2,6,1,2,3,5,7,1,1,1,2,2,3,4,4,5,6,8,9,1,1,1,1,1,1,2,2,2,2,3,3,3,4,4,5,5,5,6,6,7,7,8,9,9,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,8,9,9,9,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2... | 64.666667 | 501 | 0.513746 |
0d8915618637c63a35359b187d53a9a230fc73c3 | 2,389 | h | C | driver/ubuntu_1604/EW-7822ULC_Linux_Driver_1.0.1.6/hal/halmac/halmac_88xx/halmac_sdio_88xx.h | kjoelovelife/Knight_car | 5d5909ce495094fdc46bb87be2e28be8ba718854 | [
"CC-BY-2.0"
] | null | null | null | driver/ubuntu_1604/EW-7822ULC_Linux_Driver_1.0.1.6/hal/halmac/halmac_88xx/halmac_sdio_88xx.h | kjoelovelife/Knight_car | 5d5909ce495094fdc46bb87be2e28be8ba718854 | [
"CC-BY-2.0"
] | null | null | null | driver/ubuntu_1604/EW-7822ULC_Linux_Driver_1.0.1.6/hal/halmac/halmac_88xx/halmac_sdio_88xx.h | kjoelovelife/Knight_car | 5d5909ce495094fdc46bb87be2e28be8ba718854 | [
"CC-BY-2.0"
] | 4 | 2019-08-17T03:36:07.000Z | 2020-09-29T02:19:46.000Z | /******************************************************************************
*
* Copyright(c) 2016 - 2018 Realtek Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the ... | 29.8625 | 80 | 0.753035 |
af6472ceb3d6a5becbc7b863f8eece39269a9b5b | 16,035 | py | Python | app.py | Abduarraheem/RapAnalysis | b5f2eb48a1742d718364769317ceb6dd8433522e | [
"MIT"
] | null | null | null | app.py | Abduarraheem/RapAnalysis | b5f2eb48a1742d718364769317ceb6dd8433522e | [
"MIT"
] | null | null | null | app.py | Abduarraheem/RapAnalysis | b5f2eb48a1742d718364769317ceb6dd8433522e | [
"MIT"
] | 4 | 2020-11-24T02:47:34.000Z | 2021-03-31T05:33:31.000Z | '''
Juno Mayer, Alex Marozick and Abduarraheem Elfandi
'''
from flask import Flask, render_template, url_for, request, redirect, abort, flash, jsonify, session, make_response
from flask_session import Session
from pprint import pprint as pp
from werkzeug.utils import secure_filename
from werkzeug.exceptions import HTT... | 35.319383 | 186 | 0.607297 |
dcf02bd151b866fc5069bd69b5a73d9bb79553a9 | 1,011 | rb | Ruby | lib/sequelize.rb | Jesterovskiy/sequelize | 3eb0804c44f2691b87f625a4b42054735a6e4723 | [
"MIT"
] | null | null | null | lib/sequelize.rb | Jesterovskiy/sequelize | 3eb0804c44f2691b87f625a4b42054735a6e4723 | [
"MIT"
] | null | null | null | lib/sequelize.rb | Jesterovskiy/sequelize | 3eb0804c44f2691b87f625a4b42054735a6e4723 | [
"MIT"
] | null | null | null | require 'sequelize/version'
require 'sequel'
require 'adamantium'
require 'sequoia'
require 'sequelize/connection_options'
module Sequelize
class << self
include Sequoia::Configurable
attr_reader :config, :connection_options
def setup(env=:development)
@config = build_configuration(env)
... | 20.22 | 89 | 0.709199 |
b34c35c7201cd8644d244aa50d49831bd70f1b9d | 1,885 | py | Python | diesis/scrapers/LyricsScraper.py | RyanJ93/diesis | 56b98f36bae56d63fa8558f3ac1d0dfdca79e1a6 | [
"MIT"
] | 4 | 2020-12-23T11:50:45.000Z | 2021-09-04T14:06:49.000Z | diesis/scrapers/LyricsScraper.py | RyanJ93/diesis | 56b98f36bae56d63fa8558f3ac1d0dfdca79e1a6 | [
"MIT"
] | null | null | null | diesis/scrapers/LyricsScraper.py | RyanJ93/diesis | 56b98f36bae56d63fa8558f3ac1d0dfdca79e1a6 | [
"MIT"
] | null | null | null | from typing import Optional
class LyricsScraper:
query: str = None
minimal_query: str = None
lyrics: str = None
lyrics_writer: str = None
def set_query(self, query: str, minimal_query: str) -> None:
"""
Sets the search query to use for lyrics look up.
:param query: A strin... | 36.25 | 119 | 0.625995 |
0a6208271850c57e0c9644eb84d29165b5897f8d | 810 | cs | C# | src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/ProjectSystem/VS/ProjectTreeVsExtensions.cs | aodl/project-system | eb2850aa96dd8936bec9455ea61cbe7cb0c04e8e | [
"Apache-2.0"
] | 1 | 2020-04-04T18:58:53.000Z | 2020-04-04T18:58:53.000Z | src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/ProjectSystem/VS/ProjectTreeVsExtensions.cs | aodl/project-system | eb2850aa96dd8936bec9455ea61cbe7cb0c04e8e | [
"Apache-2.0"
] | 1 | 2019-02-19T00:34:21.000Z | 2019-02-19T00:34:21.000Z | src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/ProjectSystem/VS/ProjectTreeVsExtensions.cs | aodl/project-system | eb2850aa96dd8936bec9455ea61cbe7cb0c04e8e | [
"Apache-2.0"
] | 1 | 2019-12-24T12:35:02.000Z | 2019-12-24T12:35:02.000Z | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.VisualStudio.Shell;
namespace Microsoft.VisualStudio.ProjectSystem.VS
{
internal static class ProjectTreeVsExtensions
{
... | 38.571429 | 162 | 0.64321 |
5e1edfe8f11c1bbef75dd898e84404e618e0b9db | 2,988 | rb | Ruby | spec/classes/swift_proxy_ceilometer_spec.rb | charlesdunbar/puppet-swift | ad6a7e4987d68ef8d6870ca472dc3d048e11f509 | [
"Apache-2.0"
] | null | null | null | spec/classes/swift_proxy_ceilometer_spec.rb | charlesdunbar/puppet-swift | ad6a7e4987d68ef8d6870ca472dc3d048e11f509 | [
"Apache-2.0"
] | 4 | 2022-03-22T07:29:22.000Z | 2022-03-22T07:29:46.000Z | spec/classes/swift_proxy_ceilometer_spec.rb | puppetlabs-operations/puppet-swift | ad6a7e4987d68ef8d6870ca472dc3d048e11f509 | [
"Apache-2.0"
] | 1 | 2017-03-23T19:32:44.000Z | 2017-03-23T19:32:44.000Z | require 'spec_helper'
describe 'swift::proxy::ceilometer' do
let :facts do
OSDefaults.get_facts({ :osfamily => 'Debian' })
end
let :pre_condition do
'concat { "/etc/swift/proxy-server.conf": }
class { "swift":
swift_hash_path_suffix => "dummy"
}'
end
describe "when using default ... | 48.193548 | 179 | 0.685074 |
e73ca235ac7da6507fb3ebd645d570ab18c87825 | 790 | php | PHP | var/cache/dev/srcApp_KernelDevDebugContainer.php | Ajerbouh/symfony-demo-master | ba64c5bbdaa94a1930472828c6fe07a31099accb | [
"WTFPL"
] | null | null | null | var/cache/dev/srcApp_KernelDevDebugContainer.php | Ajerbouh/symfony-demo-master | ba64c5bbdaa94a1930472828c6fe07a31099accb | [
"WTFPL"
] | null | null | null | var/cache/dev/srcApp_KernelDevDebugContainer.php | Ajerbouh/symfony-demo-master | ba64c5bbdaa94a1930472828c6fe07a31099accb | [
"WTFPL"
] | null | null | null | <?php
// This file has been auto-generated by the Symfony Dependency Injection Component for internal use.
if (\class_exists(\ContainerUx0xZe5\srcApp_KernelDevDebugContainer::class, false)) {
// no-op
} elseif (!include __DIR__.'/ContainerUx0xZe5/srcApp_KernelDevDebugContainer.php') {
touch(__DIR__.'/Containe... | 35.909091 | 120 | 0.767089 |
47ca9363b37df6fe24399f4ecf69a365dd3fe764 | 2,898 | rb | Ruby | lib/su/config_file.rb | rkiel/aws-utilities | 4714cb5d98a90c9d39833cf075d61f4cc6e9f18b | [
"MIT"
] | null | null | null | lib/su/config_file.rb | rkiel/aws-utilities | 4714cb5d98a90c9d39833cf075d61f4cc6e9f18b | [
"MIT"
] | null | null | null | lib/su/config_file.rb | rkiel/aws-utilities | 4714cb5d98a90c9d39833cf075d61f4cc6e9f18b | [
"MIT"
] | null | null | null | require_relative './file_base'
module SwitchUser
class ConfigFile < ::SwitchUser::FileBase
attr_accessor :awssu_account
attr_accessor :awssu_user
attr_accessor :awssu_pki
attr_accessor :awssu_codecommit
attr_accessor :aws_access_key_id
attr_accessor :aws_secret_access_key
attr_accessor :... | 23.560976 | 72 | 0.581781 |
282c1d6243b22b3cafd3cb80a1c668db1a0810ac | 1,258 | swift | Swift | Show/UIViewController+Return.swift | congncif/SiFUtilities | d05b0b71ebdf7367477489ea91eef2ad36b49b91 | [
"MIT"
] | 6 | 2016-08-11T21:22:19.000Z | 2019-03-04T08:14:01.000Z | Show/UIViewController+Return.swift | congncif/SiFUtilities | d05b0b71ebdf7367477489ea91eef2ad36b49b91 | [
"MIT"
] | 1 | 2017-10-03T02:21:52.000Z | 2017-10-04T03:28:20.000Z | Show/UIViewController+Return.swift | congncif/SiFUtilities | d05b0b71ebdf7367477489ea91eef2ad36b49b91 | [
"MIT"
] | 2 | 2016-08-11T21:22:20.000Z | 2017-06-09T20:13:19.000Z | //
// UIViewController+Return.swift
// SiFUtilities
//
// Created by NGUYEN CHI CONG on 8/18/20.
//
import Foundation
import UIKit
extension UIViewController {
public func returnHere(animated: Bool = true, completion: (() -> Void)? = nil) {
if self.presentedViewController != nil {
self.dism... | 33.105263 | 113 | 0.666137 |
af07153e9195fb4655765de73405e3e20d9e14f9 | 729 | py | Python | LAMARCK_ML/utils/compareClass_test.py | JonasDHomburg/LAMARCK | 0e372c908ff59effc6fd68e6477d04c4d89e6c26 | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2019-09-20T08:03:47.000Z | 2021-05-10T11:02:09.000Z | LAMARCK_ML/utils/compareClass_test.py | JonasDHomburg/LAMARCK_ML | 0e372c908ff59effc6fd68e6477d04c4d89e6c26 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | LAMARCK_ML/utils/compareClass_test.py | JonasDHomburg/LAMARCK_ML | 0e372c908ff59effc6fd68e6477d04c4d89e6c26 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | import unittest
from LAMARCK_ML.utils.compareClass import CompareClass
class TestCompareClass(unittest.TestCase):
def test_comparefunction(self):
prim = 'a'
sec0 = 'b'
sec1 = 'c'
cmp = CompareClass(**{
CompareClass.arg_PRIMARY_ALPHA: -1,
CompareClass.arg_PRIMARY_OBJECTIVE: prim,
Co... | 29.16 | 60 | 0.595336 |
4b6f9ef0f862da502aaa6a2bd64d1b87072fd18e | 2,606 | cpp | C++ | mbed-glove-firmware/drivers/collector.cpp | apadin1/Team-GLOVE | d5f5134da79d050164dffdfdf87f12504f6b1370 | [
"Apache-2.0"
] | null | null | null | mbed-glove-firmware/drivers/collector.cpp | apadin1/Team-GLOVE | d5f5134da79d050164dffdfdf87f12504f6b1370 | [
"Apache-2.0"
] | null | null | null | mbed-glove-firmware/drivers/collector.cpp | apadin1/Team-GLOVE | d5f5134da79d050164dffdfdf87f12504f6b1370 | [
"Apache-2.0"
] | 1 | 2019-01-09T05:16:42.000Z | 2019-01-09T05:16:42.000Z | /*
* Filename: collector.cpp
* Project: EECS 473 - Team GLOVE
* Date: Fall 2016
* Authors:
* Nick Bertoldi
* Ben Heckathorn
* Ryan O’Keefe
* Adrian Padin
* Tim Schumacher
*
* Purpose:
* Implementation of collector.h
*
* Copyright (c) 2016 by Nick Bertoldi, Ben Heckathorn, Ryan... | 34.289474 | 82 | 0.719493 |
f4c80ff745ead197b0f74acd696750f4ca7f29f4 | 1,359 | ts | TypeScript | www/src/app/employee/components/employee-card/employee-card-request-list/employee-card-request-list.component.ts | narg1s1/gpnmarket | d007dd993ce9fa6afd74a65be6462d1da5f2ada0 | [
"Apache-2.0"
] | null | null | null | www/src/app/employee/components/employee-card/employee-card-request-list/employee-card-request-list.component.ts | narg1s1/gpnmarket | d007dd993ce9fa6afd74a65be6462d1da5f2ada0 | [
"Apache-2.0"
] | null | null | null | www/src/app/employee/components/employee-card/employee-card-request-list/employee-card-request-list.component.ts | narg1s1/gpnmarket | d007dd993ce9fa6afd74a65be6462d1da5f2ada0 | [
"Apache-2.0"
] | null | null | null | import { Component, EventEmitter, Input, Output } from '@angular/core';
import { EmployeeInfoRequestItem } from "../../../models/employee-info";
import { Router } from "@angular/router";
import { RequestListItem } from "../../../../request/common/models/requests-list/requests-list-item";
import { Uuid } from "../../../... | 37.75 | 101 | 0.702723 |
5444f0ec2fd8d768132f98f69e648548a13ceb18 | 364 | css | CSS | jekyll-search/assets/search.css | CarsonTheCanuck/tutorial-apps | 074eb7a11a263a269e119e5f5cb989cf2a6f4c67 | [
"MIT"
] | 4 | 2020-08-06T14:30:05.000Z | 2022-03-11T04:26:38.000Z | jekyll-search/assets/search.css | CarsonTheCanuck/tutorial-apps | 074eb7a11a263a269e119e5f5cb989cf2a6f4c67 | [
"MIT"
] | null | null | null | jekyll-search/assets/search.css | CarsonTheCanuck/tutorial-apps | 074eb7a11a263a269e119e5f5cb989cf2a6f4c67 | [
"MIT"
] | 1 | 2021-09-03T19:41:59.000Z | 2021-09-03T19:41:59.000Z | .search-wrapper {
float: right;
position: relative;
}
.site-search {
margin: 18px 20px;
width: 180px;
}
.search-results {
position: absolute;
top: 38px;
left: 20px;
width: 165px;
}
.search-results ul {
margin: 0;
}
.search-results li {
padding: 10px;
list-style: none;
... | 13 | 27 | 0.587912 |
746dcdab7ffc589a3de5506ca2bba93f2706408c | 86 | css | CSS | core/static/assets/extra.css | cesarbcruz/ecommerce-python-django | d80462b831124d6932bd94896f90efe4a9e8c016 | [
"CC0-1.0"
] | 60 | 2016-06-07T00:34:53.000Z | 2021-11-22T11:33:43.000Z | core/static/assets/extra.css | cesarbcruz/ecommerce-python-django | d80462b831124d6932bd94896f90efe4a9e8c016 | [
"CC0-1.0"
] | 3 | 2021-09-08T01:35:47.000Z | 2022-03-12T00:12:19.000Z | core/static/assets/extra.css | cesarbcruz/ecommerce-python-django | d80462b831124d6932bd94896f90efe4a9e8c016 | [
"CC0-1.0"
] | 45 | 2016-07-15T18:07:08.000Z | 2021-07-27T20:14:42.000Z | .margin-top {
margin-top: 2em;
}
#paypal input[type=image] {
display: none;
}
| 12.285714 | 27 | 0.604651 |
f23df48d4810b83148a4d5e38eb29c8b42ed61f1 | 1,376 | php | PHP | www/models/ebcryption.php | diorcokorea/dentonephp | aba9b1484e1de6be31b8bafcb12c53564e1b7d06 | [
"Unlicense"
] | null | null | null | www/models/ebcryption.php | diorcokorea/dentonephp | aba9b1484e1de6be31b8bafcb12c53564e1b7d06 | [
"Unlicense"
] | null | null | null | www/models/ebcryption.php | diorcokorea/dentonephp | aba9b1484e1de6be31b8bafcb12c53564e1b7d06 | [
"Unlicense"
] | null | null | null | <?php
#region 암호화
#region SHA
function SHAebcvry256($plainText)
{
//SHA-256
$hashed256 = base64_encode(hash('sha256', $plainText , true));
// echo $hashed256;
return $hashed256;
}
function SHAebcvry512($plainText)
{
//SHA-512
$hashe... | 28.666667 | 185 | 0.566134 |
7be87f0fc7184f828e943e9549befc4d54b88ac8 | 49,603 | sql | SQL | database/yii2start-2019-11-18.sql | monmartius/yii2start | 0f016d08713edffa0970e38cfb7fd23a86e701cc | [
"BSD-3-Clause"
] | null | null | null | database/yii2start-2019-11-18.sql | monmartius/yii2start | 0f016d08713edffa0970e38cfb7fd23a86e701cc | [
"BSD-3-Clause"
] | null | null | null | database/yii2start-2019-11-18.sql | monmartius/yii2start | 0f016d08713edffa0970e38cfb7fd23a86e701cc | [
"BSD-3-Clause"
] | null | null | null | -- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Хост: 127.0.0.1
-- Время создания: Ноя 18 2019 г., 05:25
-- Версия сервера: 10.1.37-MariaDB
-- Версия PHP: 7.3.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHAR... | 189.324427 | 743 | 0.803963 |
dd60f524e109dafaf546c1284d7ce204a0d0c248 | 8,102 | java | Java | material/tokenNotifier/src/com/explodingpixels/widgets/TableUtils.java | mathieulegoc/SmartTokens | f54e739cdd1faf80d3fed8912a361a7ac017662a | [
"MIT"
] | 10 | 2016-09-30T11:03:06.000Z | 2019-06-03T00:05:10.000Z | material/tokenNotifier/src/com/explodingpixels/widgets/TableUtils.java | mathieulegoc/SmartTokens | f54e739cdd1faf80d3fed8912a361a7ac017662a | [
"MIT"
] | null | null | null | material/tokenNotifier/src/com/explodingpixels/widgets/TableUtils.java | mathieulegoc/SmartTokens | f54e739cdd1faf80d3fed8912a361a7ac017662a | [
"MIT"
] | 4 | 2016-10-19T08:06:26.000Z | 2021-02-01T01:07:24.000Z | package com.explodingpixels.widgets;
import java.awt.Color;
import java.awt.Cursor;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import javax.swing.BorderFactory;
import javax... | 41.548718 | 116 | 0.657615 |
46e1b022b346c4300d2c6158665fc0076d246cb7 | 1,305 | py | Python | servers/Radiation/archive_scrapper/archive_scrapper/spiders/noaa_archive.py | arpitgogia/mars_city | 30cacd80487a8c2354bbc15b4fad211ed1cb4f9d | [
"BSD-2-Clause-FreeBSD"
] | 25 | 2016-07-20T04:49:14.000Z | 2021-08-25T09:05:04.000Z | servers/Radiation/archive_scrapper/archive_scrapper/spiders/noaa_archive.py | arpitgogia/mars_city | 30cacd80487a8c2354bbc15b4fad211ed1cb4f9d | [
"BSD-2-Clause-FreeBSD"
] | 16 | 2016-12-27T08:30:27.000Z | 2018-06-18T08:51:44.000Z | servers/Radiation/archive_scrapper/archive_scrapper/spiders/noaa_archive.py | arpitgogia/mars_city | 30cacd80487a8c2354bbc15b4fad211ed1cb4f9d | [
"BSD-2-Clause-FreeBSD"
] | 49 | 2016-07-20T13:08:27.000Z | 2020-06-02T18:26:12.000Z | import scrapy
from scrapy.http import Request
class FtpSpider(scrapy.Spider):
name = "NOAA"
handle_httpstatus_list = [404]
count = 2007
string = 'ftp://ftp.swpc.noaa.gov/pub/warehouse/'
def start_requests(self):
urls = ['ftp://ftp.swpc.noaa.gov/pub/' +
'warehouse/2007/200... | 31.071429 | 77 | 0.467433 |
a3da1ac4ce48edd16e3f3c171525c7f78c049dbf | 566 | java | Java | src/main/java/com/mrh0/horth/instructions/high/stackops/other/HVoid.java | mrh0/horth | 9f3da998b7d16f3b44674d723ef48865492a8d77 | [
"MIT"
] | 1 | 2022-02-02T22:25:54.000Z | 2022-02-02T22:25:54.000Z | src/main/java/com/mrh0/horth/instructions/high/stackops/other/HVoid.java | mrh0/horth | 9f3da998b7d16f3b44674d723ef48865492a8d77 | [
"MIT"
] | null | null | null | src/main/java/com/mrh0/horth/instructions/high/stackops/other/HVoid.java | mrh0/horth | 9f3da998b7d16f3b44674d723ef48865492a8d77 | [
"MIT"
] | null | null | null | package com.mrh0.horth.instructions.high.stackops.other;
import com.mrh0.horth.ast.nodes.ITok;
import com.mrh0.horth.instructions.high.HighInst;
import com.mrh0.horth.typechecker.Contract;
import com.mrh0.horth.typechecker.IContract;
import com.mrh0.horth.typechecker.types.AllTypes;
public class HVoid extends HighIns... | 26.952381 | 96 | 0.740283 |
e580bcf5ecb255458b4497a6d38ee952acce7766 | 1,432 | dart | Dart | lib/x/auth/account.dart | mdmohsin7/alan.dart | a8c8c2afc3b29840d1e2b4e127781574f844a8a1 | [
"MIT"
] | 17 | 2020-07-15T12:02:59.000Z | 2022-02-09T19:36:11.000Z | lib/x/auth/account.dart | mdmohsin7/alan.dart | a8c8c2afc3b29840d1e2b4e127781574f844a8a1 | [
"MIT"
] | 29 | 2020-08-27T06:42:44.000Z | 2022-02-27T09:50:47.000Z | lib/x/auth/account.dart | mdmohsin7/alan.dart | a8c8c2afc3b29840d1e2b4e127781574f844a8a1 | [
"MIT"
] | 7 | 2020-10-28T18:15:23.000Z | 2022-02-07T19:59:45.000Z | import 'package:alan/alan.dart';
import 'package:fixnum/fixnum.dart';
import 'package:alan/proto/cosmos/auth/v1beta1/auth.pb.dart' as auth;
abstract class AccountI {
String get address;
Any get pubKey;
Int64 get accountNumber;
Int64 get sequence;
}
class BaseAccount extends AccountI {
final auth.BaseAcco... | 18.842105 | 69 | 0.719274 |
1a4e5c340d8bbd93d0c165fd63df3895508c7feb | 915 | py | Python | timemachines/skaters/pmd/pmdcomposed.py | iklasky/timemachines | 1820fa9453d31d4daaeff75274a935c7455febe3 | [
"MIT"
] | 253 | 2021-01-08T17:33:30.000Z | 2022-03-21T17:32:36.000Z | timemachines/skaters/pmd/pmdcomposed.py | iklasky/timemachines | 1820fa9453d31d4daaeff75274a935c7455febe3 | [
"MIT"
] | 65 | 2021-01-20T16:43:35.000Z | 2022-03-30T19:07:22.000Z | timemachines/skaters/pmd/pmdcomposed.py | iklasky/timemachines | 1820fa9453d31d4daaeff75274a935c7455febe3 | [
"MIT"
] | 28 | 2021-02-04T14:58:30.000Z | 2022-01-17T04:35:17.000Z | from timemachines.skaters.pmd.pmdinclusion import using_pmd
if using_pmd:
from timemachines.skaters.pmd.pmdskaters import pmd_univariate
from timemachines.skatertools.composition.residualshypocratic import quickly_moving_hypocratic_residual_factory
from timemachines.skatertools.utilities.conventions import... | 39.782609 | 116 | 0.762842 |
11707b9a37a66cbe139e47140e821d62e6bdf465 | 4,722 | kt | Kotlin | app/src/main/java/com/mynasmah/mykamus/utils/Constants.kt | anas-abdrahman/mykamus | a0f5b56d52bb41b9e3847172b5528e7555ad9159 | [
"MIT"
] | null | null | null | app/src/main/java/com/mynasmah/mykamus/utils/Constants.kt | anas-abdrahman/mykamus | a0f5b56d52bb41b9e3847172b5528e7555ad9159 | [
"MIT"
] | null | null | null | app/src/main/java/com/mynasmah/mykamus/utils/Constants.kt | anas-abdrahman/mykamus | a0f5b56d52bb41b9e3847172b5528e7555ad9159 | [
"MIT"
] | null | null | null | package com.mynasmah.mykamus.utils
import android.content.Context
import android.content.Intent
/**
* Created by ANAS on 2017/02/05.
*/
class Constants {
companion object {
const val TAG = "com.mynasmah.mykamus"
const val OFFLINE = "Offline"
const val RESULT_EMPTY: Int = 1000
... | 30.269231 | 120 | 0.529013 |
6624984d4dc57068ea5cd2d9159a563f960f1d4a | 1,276 | py | Python | utils/mixin.py | bhavya17037/corobo | 77788cb5ca0fb0923f595929a058492056e5aa7f | [
"MIT"
] | null | null | null | utils/mixin.py | bhavya17037/corobo | 77788cb5ca0fb0923f595929a058492056e5aa7f | [
"MIT"
] | null | null | null | utils/mixin.py | bhavya17037/corobo | 77788cb5ca0fb0923f595929a058492056e5aa7f | [
"MIT"
] | null | null | null | from itertools import chain
class DefaultConfigMixin():
@property
def _default_config(self):
if (hasattr(self.bot_config, 'DEFAULT_CONFIG') and
self.name in self.bot_config.DEFAULT_CONFIG):
return self.bot_config.DEFAULT_CONFIG[self.name]
def __init__(self, bot, name=N... | 32.717949 | 61 | 0.626176 |
b331f45ac0f8b9b280cbeead735fd1c4261a32c5 | 449 | py | Python | app/models.py | nferiel/shareabook | 3b8834d4203533e6afcc92b66d0fb44e9a52fee1 | [
"MIT"
] | null | null | null | app/models.py | nferiel/shareabook | 3b8834d4203533e6afcc92b66d0fb44e9a52fee1 | [
"MIT"
] | null | null | null | app/models.py | nferiel/shareabook | 3b8834d4203533e6afcc92b66d0fb44e9a52fee1 | [
"MIT"
] | 1 | 2018-04-22T23:13:25.000Z | 2018-04-22T23:13:25.000Z | from app import db
class Book(object):
pass
class User(db.DynamicDocument):
email = db.StringField(required=True, unique=True)
# hash_pw = db.BinaryField(required=True)
password = db.BinaryField()
firstname = db.StringField(default='')
lastname = db.StringField(default='')
meta = {'coll... | 20.409091 | 54 | 0.674833 |
daa9be234ee5cf0a3110d94e53fe2a32ed22a5d9 | 3,316 | php | PHP | test/Unit/CleanRegex/Internal/GroupNameValidatorTest.php | open-source-contributions/T-Regx | 310779ad7d9039caeb6c57a81d5a19a35f6b3723 | [
"MIT"
] | null | null | null | test/Unit/CleanRegex/Internal/GroupNameValidatorTest.php | open-source-contributions/T-Regx | 310779ad7d9039caeb6c57a81d5a19a35f6b3723 | [
"MIT"
] | null | null | null | test/Unit/CleanRegex/Internal/GroupNameValidatorTest.php | open-source-contributions/T-Regx | 310779ad7d9039caeb6c57a81d5a19a35f6b3723 | [
"MIT"
] | null | null | null | <?php
namespace Test\Unit\TRegx\CleanRegex\Internal;
use PHPUnit\Framework\TestCase;
use TRegx\CleanRegex\Internal\GroupNameValidator;
class GroupNameValidatorTest extends TestCase
{
/**
* @test
* @dataProvider validGroups
* @param string|int $nameOrIndex
*/
public function shouldValidate(... | 27.180328 | 132 | 0.57509 |
dbaf29600612b3a100097738f4454c3c2ad482a8 | 409 | php | PHP | assets/ShareThisAsset.php | p2made/yii2-triangle-theme | 78b7e606d6cd3d9f4c8c67fe787a1bc9ef2c40d7 | [
"MIT"
] | 1 | 2019-03-03T07:53:14.000Z | 2019-03-03T07:53:14.000Z | assets/ShareThisAsset.php | p2made/yii2-triangle-theme | 78b7e606d6cd3d9f4c8c67fe787a1bc9ef2c40d7 | [
"MIT"
] | 1 | 2015-09-30T18:21:13.000Z | 2015-10-01T23:56:35.000Z | assets/ShareThisAsset.php | p2made/yii2-triangle-theme | 78b7e606d6cd3d9f4c8c67fe787a1bc9ef2c40d7 | [
"MIT"
] | null | null | null | <?php
/**
* ShareThisAsset.php
*
* @copyright Copyright © Pedro Plowman, https://github.com/p2made, 2016
* @author Pedro Plowman
* @package p2made/yii2-triangle-theme
* @license MIT
*/
namespace p2m\theme\Triangle\assets;
class ShareThisAsset extends \yii\web\AssetBundle
{
public $sourcePath = null;
pu... | 17.782609 | 77 | 0.691932 |
a34ddc5573dff6e824252ca70e7465ddd33fe853 | 6,599 | h | C | src/poc/poc.h | bjoernknafla/poc | 84ddcc244b6c6f29e08c3b720012c5f6dd1f29fa | [
"BSD-3-Clause"
] | 9 | 2015-06-25T02:48:50.000Z | 2021-01-25T23:47:45.000Z | src/poc/poc.h | bjoernknafla/poc | 84ddcc244b6c6f29e08c3b720012c5f6dd1f29fa | [
"BSD-3-Clause"
] | null | null | null | src/poc/poc.h | bjoernknafla/poc | 84ddcc244b6c6f29e08c3b720012c5f6dd1f29fa | [
"BSD-3-Clause"
] | 1 | 2021-03-02T08:29:30.000Z | 2021-03-02T08:29:30.000Z | /*
* Copyright (c) 2009-2010, Bjoern Knafla
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice, this
* list of ... | 52.373016 | 122 | 0.759661 |
10b10fd658cebd708eda8f1dbbbbb4f7629cef56 | 4,777 | swift | Swift | Sources/Xplore/Tr3Parse2.swift | musesum/Tr3 | 0f03a83f2db00a96e9ec277cde1f88502f195c6a | [
"Apache-2.0"
] | 2 | 2022-01-12T03:02:23.000Z | 2022-02-19T18:52:28.000Z | Sources/xplore/Tr3Parse2.swift | musesum/Tr3 | 0f03a83f2db00a96e9ec277cde1f88502f195c6a | [
"Apache-2.0"
] | null | null | null | Sources/xplore/Tr3Parse2.swift | musesum/Tr3 | 0f03a83f2db00a96e9ec277cde1f88502f195c6a | [
"Apache-2.0"
] | null | null | null | //
// Tr3Parse2.swift
// Tr3
//
// Created by warren on 4/2/21.
//
import Foundation
// a(+) << b(1) b(10) b! a:1 b! a:2 b! a:3
// a(/) << b, a(1) a:1, b(2)! a:.50, b! a:.25, ...
// a(1 * b / c) << (b c), b(1) a:nil, c(2) a:0.5, b(3) a:1.5, c(4) a:.75
// a(1 * b / c) << z, z(3 4) a:.75, z(c 4 b 1) a:.25
class T {... | 26.988701 | 76 | 0.501779 |
f5d58d85091b20152f31c9d1cc8c99556e5851e3 | 243 | lua | Lua | questions/geom_2/q00007/terms.rs.lua | bradunov/shkola | 6ef057f5bd483318bf5763392972d48de481d0fb | [
"MIT"
] | 2 | 2019-08-25T09:37:27.000Z | 2021-01-25T20:22:30.000Z | questions/geom_2/q00007/terms.rs.lua | bradunov/shkola | 6ef057f5bd483318bf5763392972d48de481d0fb | [
"MIT"
] | 28 | 2019-07-04T19:53:36.000Z | 2020-10-24T13:27:56.000Z | questions/geom_2/q00007/terms.rs.lua | bradunov/shkola | 6ef057f5bd483318bf5763392972d48de481d0fb | [
"MIT"
] | null | null | null | place = {
" Krugovi nemaju zajedničkih tačaka, ",
" Krugovi se dodiruju spolja, ",
" Krugovi se dodiruju iznutra, ",
" Krugovi se seku, ",
" Manji krug je ceo sadržan u većem, ",
" Krugovi su koncentrični, "
}
| 24.3 | 43 | 0.588477 |
65709f88fac05340d866a7a2b0aff12fbd92ca04 | 33 | sql | SQL | tutorcare-core/api/db/migrations/000003_create_geolocation_table.down.sql | zaneHawkins/TutorCare | 6a37756c4f6089d3a1450cf461ba1f237ff50626 | [
"MIT"
] | 2 | 2022-01-02T05:09:45.000Z | 2022-01-02T22:11:09.000Z | tutorcare-core/api/db/migrations/000003_create_geolocation_table.down.sql | zaneHawkins/TutorCare | 6a37756c4f6089d3a1450cf461ba1f237ff50626 | [
"MIT"
] | 42 | 2022-01-02T21:51:48.000Z | 2022-01-21T02:11:21.000Z | tutorcare-core/api/db/migrations/000003_create_geolocation_table.down.sql | zaneHawkins/TutorCare | 6a37756c4f6089d3a1450cf461ba1f237ff50626 | [
"MIT"
] | 2 | 2021-12-22T02:29:24.000Z | 2022-01-18T20:57:34.000Z | DROP TABLE IF EXISTS geolocation; | 33 | 33 | 0.848485 |
c055b734abcb13a4f8eba3f2159989e1a09bdfbb | 248 | swift | Swift | snippets_swift/uniqued_comparable.swift | semisagi0/kyopro-snippet | bf4a91bfb679af9488b6c5eb765838ddf7100f9b | [
"Unlicense"
] | 5 | 2021-08-31T11:08:07.000Z | 2022-02-15T16:57:17.000Z | snippets_swift/uniqued_comparable.swift | semisagi0/kyopro-snippet | bf4a91bfb679af9488b6c5eb765838ddf7100f9b | [
"Unlicense"
] | 1 | 2021-09-27T12:59:45.000Z | 2021-09-27T13:41:24.000Z | snippets_swift/uniqued_comparable.swift | semisagi0/kyopro-snippet | bf4a91bfb679af9488b6c5eb765838ddf7100f9b | [
"Unlicense"
] | 1 | 2021-09-27T08:29:32.000Z | 2021-09-27T08:29:32.000Z | extension Array where Element: Comparable {
func uniqued() -> [Element] {
var result = [Element]()
for element in sorted() where element != result.last {
result.append(element)
}
return result
}
} | 27.555556 | 62 | 0.568548 |
0a46e22e16629ae1ce2da527e140ec7d45d4486e | 2,074 | rs | Rust | src/api/admin_tag_api.rs | iPersona/blog | ca6d88db7dded3e9f4b7517a3d00f5b0288a77f3 | [
"MIT"
] | null | null | null | src/api/admin_tag_api.rs | iPersona/blog | ca6d88db7dded3e9f4b7517a3d00f5b0288a77f3 | [
"MIT"
] | null | null | null | src/api/admin_tag_api.rs | iPersona/blog | ca6d88db7dded3e9f4b7517a3d00f5b0288a77f3 | [
"MIT"
] | 1 | 2021-09-01T05:11:13.000Z | 2021-09-01T05:11:13.000Z | use crate::api::JsonResponse;
use crate::models::tag::{DeleteTag, ViewTag};
use crate::{AppState, NewTag, TagCount, Tags};
use actix_web::error::ErrorInternalServerError;
use actix_web::http::Method;
use actix_web::{App, AsyncResponder, Form, HttpRequest};
use futures::future::Future;
pub struct Tag;
impl Tag {
p... | 37.035714 | 96 | 0.57136 |
5d43ad0d9b3cf124ef0a593cbac87f07d63dce2e | 3,753 | cpp | C++ | tests/longest_strictly_increasing_subsequence_tester.cpp | pawel-kieliszczyk/algorithms | 0703ec99ce9fb215709b56fb0eefbdd576c71ed2 | [
"MIT"
] | null | null | null | tests/longest_strictly_increasing_subsequence_tester.cpp | pawel-kieliszczyk/algorithms | 0703ec99ce9fb215709b56fb0eefbdd576c71ed2 | [
"MIT"
] | null | null | null | tests/longest_strictly_increasing_subsequence_tester.cpp | pawel-kieliszczyk/algorithms | 0703ec99ce9fb215709b56fb0eefbdd576c71ed2 | [
"MIT"
] | null | null | null | #include <vector>
#include <gtest/gtest.h>
#include "longest_monotonic_subsequence.hpp"
namespace gt = testing;
namespace pk
{
namespace testing
{
struct longest_strictly_increasing_subsequence_tester : public gt::Test
{
static const int MAX_SEQUENCE_SIZE = 9;
// tested class:
typedef longest_monot... | 23.45625 | 106 | 0.716227 |
439d96c0a706f7585c12a9e690531c0f67f253f7 | 1,953 | ts | TypeScript | packages/broker/amqp/src/amqp-plugin.ts | gabliam/gabliam | c3feee62b18f98ea2209833115cc9a03037c7657 | [
"MIT"
] | 5 | 2018-11-05T15:19:41.000Z | 2019-05-24T04:12:12.000Z | packages/broker/amqp/src/amqp-plugin.ts | gabliam/gabliam | c3feee62b18f98ea2209833115cc9a03037c7657 | [
"MIT"
] | 14 | 2018-03-21T13:18:45.000Z | 2020-11-26T14:27:02.000Z | packages/broker/amqp/src/amqp-plugin.ts | gabliam/gabliam | c3feee62b18f98ea2209833115cc9a03037c7657 | [
"MIT"
] | 3 | 2019-01-12T20:10:14.000Z | 2019-04-28T10:17:28.000Z | import {
Container,
GabliamPlugin,
Plugin,
reflection,
Registry,
Scan,
} from '@gabliam/core';
import d from 'debug';
import { AmqpConnectionManager } from './amqp-manager';
import { TYPE } from './constants';
import {
CUnit,
RabbitConsumer,
RabbitHandler,
RabbitListener,
} from './metadatas';
cons... | 27.9 | 81 | 0.658986 |
6b78e8c04d657c1111b936d47d6e67e54137ffcc | 1,458 | dart | Dart | lib/screens/authentication/recover/recover_account_found/interactor/viewmodels/recover_account_found_event.dart | chuck-h/seeds_light_wallet | a95d20d3724d5b458faf03fc5c0677798c6d208b | [
"MIT"
] | 2 | 2019-12-21T10:38:56.000Z | 2019-12-22T01:23:51.000Z | lib/screens/authentication/recover/recover_account_found/interactor/viewmodels/recover_account_found_event.dart | chuck-h/seeds_light_wallet | a95d20d3724d5b458faf03fc5c0677798c6d208b | [
"MIT"
] | null | null | null | lib/screens/authentication/recover/recover_account_found/interactor/viewmodels/recover_account_found_event.dart | chuck-h/seeds_light_wallet | a95d20d3724d5b458faf03fc5c0677798c6d208b | [
"MIT"
] | null | null | null | part of 'recover_account_found_bloc.dart';
abstract class RecoverAccountFoundEvent extends Equatable {
const RecoverAccountFoundEvent();
@override
List<Object?> get props => [];
}
class FetchInitialData extends RecoverAccountFoundEvent {
const FetchInitialData();
@override
String toString() => 'FetchIni... | 20.828571 | 64 | 0.759945 |
f488f0c9cb136767415b6895177ebcb0e795a5b4 | 2,892 | ts | TypeScript | src/index.ts | acollierr17/paginate | d5b1d00eeb13bd916fc7be5a315b561f2ff6d6e5 | [
"MIT"
] | 4 | 2020-09-14T11:06:35.000Z | 2021-05-04T13:29:15.000Z | src/index.ts | acollierr17/paginate.js | d5b1d00eeb13bd916fc7be5a315b561f2ff6d6e5 | [
"MIT"
] | 5 | 2020-09-13T01:47:31.000Z | 2020-12-20T11:40:35.000Z | src/index.ts | acollierr17/paginate.js | d5b1d00eeb13bd916fc7be5a315b561f2ff6d6e5 | [
"MIT"
] | null | null | null | // noinspection SuspiciousTypeOfGuard,JSUnusedGlobalSymbols
/**
* The class for creating paginated arrays.
* @template T
*/
export class Paginate<T> {
/**
* The array that will be used to generate a paginated array.
*/
public array: Array<T>;
/**
* The amount of elements to display per page.
*/
p... | 31.78022 | 116 | 0.639004 |
c2f48f0a5c3e238d4de7c54c28a696f7cce30413 | 164 | asm | Assembly | sw/552tests/inst_tests/seq_9.asm | JPShen-UWM/ThreadKraken | 849c510531f28e36d3469535737b2120bd774935 | [
"MIT"
] | 1 | 2022-02-15T16:03:25.000Z | 2022-02-15T16:03:25.000Z | sw/552tests/inst_tests/seq_9.asm | JPShen-UWM/ThreadKraken | 849c510531f28e36d3469535737b2120bd774935 | [
"MIT"
] | null | null | null | sw/552tests/inst_tests/seq_9.asm | JPShen-UWM/ThreadKraken | 849c510531f28e36d3469535737b2120bd774935 | [
"MIT"
] | null | null | null | // Test provided by Karu
//SEQ test 9. Test when rd and rt are the same register
//
// Michael McKinley (mckinley)
lbi r1, 0xff
lbi r2, 0x35
seq r2, r1, r2
halt
| 16.4 | 56 | 0.689024 |
3017edccd48bae0c14a7247ba347a5b010be8ded | 300,702 | asm | Assembly | src/sh.asm | dalegebit/DamnOS-DamnFS | 165cece9fedf8f45b25c0b948fd4185d3d633fb2 | [
"MIT"
] | 2 | 2017-03-27T16:02:57.000Z | 2018-03-03T03:28:29.000Z | src/sh.asm | dalegebit/DamnOS-DamnFS | 165cece9fedf8f45b25c0b948fd4185d3d633fb2 | [
"MIT"
] | null | null | null | src/sh.asm | dalegebit/DamnOS-DamnFS | 165cece9fedf8f45b25c0b948fd4185d3d633fb2 | [
"MIT"
] | null | null | null |
sh: file format elf32-i386
Disassembly of section .text:
80001020 <_start>:
;// starts us running when we are initially loaded into a new environment.
.text
.globl _start
_start:
;// See if we were started with arguments on the stack
cmpl $USTACKTOP, %esp
80001020: 81 fc 00 e0 bf ee cmp $0xeebfe000,%es... | 37.414707 | 98 | 0.524819 |
eb6204f23301a7eb6230898c43bc93e43abb6750 | 2,397 | css | CSS | example/style.css | dunckr/email-obfuscate | 0df253cddeb4a7a05fc956e0d8d8e7e0f560920d | [
"MIT"
] | 25 | 2015-10-19T21:17:25.000Z | 2021-08-20T08:26:01.000Z | example/style.css | dunckr/email-obfuscate | 0df253cddeb4a7a05fc956e0d8d8e7e0f560920d | [
"MIT"
] | 2 | 2017-09-09T16:47:35.000Z | 2017-09-09T18:08:25.000Z | example/style.css | dunckr/email-obfuscate | 0df253cddeb4a7a05fc956e0d8d8e7e0f560920d | [
"MIT"
] | 2 | 2017-09-09T16:54:31.000Z | 2018-06-29T09:34:26.000Z | html {
background-color: #E1EBF7;
-webkit-font-smoothing: antialiased;
}
body {
font: 100%/1.5 "Fira Sans", Verdana, sans-serif;
background-color: #FFFFFF;
color: #494949;
}
.row:after {
content: "";
display: table;
clear: both;
}
.columns {
width: 100%;
float: left;
}
.six.columns {
width: 48... | 12.956757 | 71 | 0.614101 |
c6555cefd62595ea073851119f88adbdb62c9718 | 142 | swift | Swift | Tests/Day14LibTests/Day14LibTests.swift | bscothern/AdventOfCode2019 | 9423eacef967bd4890bbe10f51ff29519ab8c432 | [
"MIT"
] | null | null | null | Tests/Day14LibTests/Day14LibTests.swift | bscothern/AdventOfCode2019 | 9423eacef967bd4890bbe10f51ff29519ab8c432 | [
"MIT"
] | null | null | null | Tests/Day14LibTests/Day14LibTests.swift | bscothern/AdventOfCode2019 | 9423eacef967bd4890bbe10f51ff29519ab8c432 | [
"MIT"
] | null | null | null | import XCTest
@testable import Day14Lib
final class Day14LibTests: XCTestCase {
func testPart1() {
}
func testPart2() {
}
}
| 12.909091 | 39 | 0.65493 |
4cdec6144381fb60063a60930ad13fdfc457684a | 790 | py | Python | meshed/tests/test_makers.py | i2mint/meshed | 4201f9efcce4f2859ffc8253811ac9335f21856b | [
"MIT"
] | 3 | 2021-06-30T08:40:50.000Z | 2022-01-19T13:13:33.000Z | meshed/tests/test_makers.py | i2mint/meshed | 4201f9efcce4f2859ffc8253811ac9335f21856b | [
"MIT"
] | 18 | 2020-10-15T19:58:42.000Z | 2022-03-28T19:06:37.000Z | meshed/tests/test_makers.py | i2mint/meshed | 4201f9efcce4f2859ffc8253811ac9335f21856b | [
"MIT"
] | 1 | 2021-09-14T19:24:36.000Z | 2021-09-14T19:24:36.000Z | import meshed as ms
import pytest
@pytest.fixture
def simple_graph():
return dict(a='c', b='cd', c='abd', e='')
def test_edge_reversed_graph(simple_graph):
g = simple_graph
assert ms.makers.edge_reversed_graph(g) == {
'c': ['a', 'b'],
'd': ['b', 'c'],
'a': ['c'],
'b': ['c... | 22.571429 | 72 | 0.448101 |
3bcb0cbe2a58d0171ff3d9ab1a75a4cc3322a089 | 229 | swift | Swift | Sources/ADChronicle/OSLog+Convinience.swift | AllDmeat/ADChronicle | 3c2246e881b21b1fd15ddcad8d89b58554206fca | [
"MIT"
] | null | null | null | Sources/ADChronicle/OSLog+Convinience.swift | AllDmeat/ADChronicle | 3c2246e881b21b1fd15ddcad8d89b58554206fca | [
"MIT"
] | null | null | null | Sources/ADChronicle/OSLog+Convinience.swift | AllDmeat/ADChronicle | 3c2246e881b21b1fd15ddcad8d89b58554206fca | [
"MIT"
] | null | null | null | import Foundation
import os
@available(iOS 10.0, *)
extension OSLog {
convenience init<Subject>(subsystem: String, category: Subject) {
self.init(subsystem: subsystem, category: String(describing: category))
}
}
| 22.9 | 79 | 0.71179 |
7f7cd8c7b2eb73b868b1d81d64ed55e714e9191c | 566 | php | PHP | app/Book.php | hsuthinzarnyi/bookstore_laravel | 11c6f3803dc68cd3ebf314efbbf6d962ec2bdd32 | [
"MIT"
] | null | null | null | app/Book.php | hsuthinzarnyi/bookstore_laravel | 11c6f3803dc68cd3ebf314efbbf6d962ec2bdd32 | [
"MIT"
] | null | null | null | app/Book.php | hsuthinzarnyi/bookstore_laravel | 11c6f3803dc68cd3ebf314efbbf6d962ec2bdd32 | [
"MIT"
] | null | null | null | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Book extends Model
{
use SoftDeletes;
protected $fillable = [
'b_name','photo','price','author_id','genre_id','publisher_id','created_at','updated_at','deleted_at'
];
public function authors(... | 17.6875 | 103 | 0.699647 |
8db0c86e154577147a7ae35e4082abe142859164 | 670 | js | JavaScript | src/components/Container.js | CannaShaq/shaq-practice | 4ab2ab1208a222ec04308ef867ba9c658cc54e81 | [
"MIT"
] | null | null | null | src/components/Container.js | CannaShaq/shaq-practice | 4ab2ab1208a222ec04308ef867ba9c658cc54e81 | [
"MIT"
] | null | null | null | src/components/Container.js | CannaShaq/shaq-practice | 4ab2ab1208a222ec04308ef867ba9c658cc54e81 | [
"MIT"
] | null | null | null | import React, {useEffect} from 'react';
import { connect } from 'react-redux';
import { getData } from '../actions';
import Card from './Card'
const Container = ( {data, getData, isFetching, error}) => {
useEffect(() => {
getData()
}, [])
return (
<div>
{isFetching ? "Loading":... | 23.928571 | 71 | 0.549254 |
d2f31c177d43d4955d940bfb1248262559f4854a | 11,802 | lua | Lua | generate.lua | illteteka/illteteka-website-builder | 40d47c35e44f231a147ae3504e89877fc69ceeec | [
"MIT"
] | null | null | null | generate.lua | illteteka/illteteka-website-builder | 40d47c35e44f231a147ae3504e89877fc69ceeec | [
"MIT"
] | null | null | null | generate.lua | illteteka/illteteka-website-builder | 40d47c35e44f231a147ae3504e89877fc69ceeec | [
"MIT"
] | null | null | null | local generate = {}
template = require 'html.template'
generate.navbar = ""
generate.template = ""
generate.br = '</p><div id="br"></div><p id="desc">'
function generate.setupFilesystem()
os.execute("rmdir /S /Q export")
os.execute("mkdir " .. "export")
end
function generate.makeNavbar()
local extra_tabs = "\... | 27.382831 | 247 | 0.628622 |
af1ec2712f6075a432b33270dc5687d33bbef417 | 59 | py | Python | tasks/components/dialogs.py | JuacyWillian/TasksApp | e9b1a492cc9ba6ee3bddff24aaa200de52464dc7 | [
"MIT"
] | 1 | 2018-11-18T13:31:26.000Z | 2018-11-18T13:31:26.000Z | tasks/components/dialogs.py | JuacyWillian/TasksApp | e9b1a492cc9ba6ee3bddff24aaa200de52464dc7 | [
"MIT"
] | null | null | null | tasks/components/dialogs.py | JuacyWillian/TasksApp | e9b1a492cc9ba6ee3bddff24aaa200de52464dc7 | [
"MIT"
] | null | null | null | from kivy.lang import Builder
Builder.load_string("""""")
| 14.75 | 29 | 0.728814 |
05fb3180ec49937e6c11c2883ff3ddfd9c392cd6 | 67 | rb | Ruby | lib/redbeard.rb | liamja/redbeard | 384afcf35f9037b98d8f9494e94d725634e72768 | [
"MIT"
] | 2 | 2018-01-20T21:34:22.000Z | 2019-01-09T11:36:42.000Z | lib/redbeard.rb | liamja/redbeard | 384afcf35f9037b98d8f9494e94d725634e72768 | [
"MIT"
] | null | null | null | lib/redbeard.rb | liamja/redbeard | 384afcf35f9037b98d8f9494e94d725634e72768 | [
"MIT"
] | null | null | null | require 'redbeard/http'
require 'bencode'
class Redbeard
end
| 9.571429 | 23 | 0.731343 |
b75e80dfc6b4645d842b4b4bce139b667dddd272 | 1,416 | cpp | C++ | VIIL/src/renderer/interface/Shader.cpp | Vixnil/VIIL | 0057464a1bc6e938825cfdf59a977cbe53c03a00 | [
"Apache-2.0"
] | null | null | null | VIIL/src/renderer/interface/Shader.cpp | Vixnil/VIIL | 0057464a1bc6e938825cfdf59a977cbe53c03a00 | [
"Apache-2.0"
] | null | null | null | VIIL/src/renderer/interface/Shader.cpp | Vixnil/VIIL | 0057464a1bc6e938825cfdf59a977cbe53c03a00 | [
"Apache-2.0"
] | null | null | null | #include "core/standardUse.h"
#include "renderer/interface/Shader.h"
#include "renderer//interface/RendererLibrary.h"
#include "renderer/OpenGL/OpenGLShader.h"
namespace VIIL
{
std::shared_ptr<Shader> Shader::Create(const std::shared_ptr<File>& shaderSrc)
{
switch (RendererLibrary::getType())
{
case RendererL... | 27.764706 | 148 | 0.737288 |
337060dde20ca48754f6b4ed6d2991e710109e4c | 7,758 | go | Go | pkg/db/postgresql/postgresql.go | stolostron/hub-of-hubs-nonk8s-gitops | 5a0e1a0786b8613c5920daa44d4671050228492c | [
"Apache-2.0"
] | null | null | null | pkg/db/postgresql/postgresql.go | stolostron/hub-of-hubs-nonk8s-gitops | 5a0e1a0786b8613c5920daa44d4671050228492c | [
"Apache-2.0"
] | 2 | 2022-03-27T20:05:42.000Z | 2022-03-28T07:26:23.000Z | pkg/db/postgresql/postgresql.go | stolostron/hub-of-hubs-hub-lifecycle-management | 5a0e1a0786b8613c5920daa44d4671050228492c | [
"Apache-2.0"
] | null | null | null | package postgresql
import (
"context"
"errors"
"fmt"
"os"
"time"
set "github.com/deckarep/golang-set"
"github.com/go-logr/logr"
"github.com/jackc/pgx/v4/pgxpool"
"github.com/stolostron/hub-of-hubs-nonk8s-gitops/pkg/db"
"github.com/stolostron/hub-of-hubs-nonk8s-gitops/pkg/intervalpolicy"
ctrl "sigs.k8s.io/c... | 28.417582 | 117 | 0.714102 |
cd347031501dbe778d418c3d55ea12cce3e4dd76 | 299 | sh | Shell | cypher/scripts/use-sample-data-set.sh | yczhang1017/ldbc_snb_bi | 5b97da8b2596e88bc460d5568fc7b31587695b62 | [
"Apache-2.0"
] | null | null | null | cypher/scripts/use-sample-data-set.sh | yczhang1017/ldbc_snb_bi | 5b97da8b2596e88bc460d5568fc7b31587695b62 | [
"Apache-2.0"
] | null | null | null | cypher/scripts/use-sample-data-set.sh | yczhang1017/ldbc_snb_bi | 5b97da8b2596e88bc460d5568fc7b31587695b62 | [
"Apache-2.0"
] | null | null | null | #!/bin/bash
pushd . > /dev/null
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd ..
export NEO4J_CSV_DIR=`pwd`/social-network-sf0.003-bi-composite-projected-fk-neo4j-compressed/graphs/csv/bi/composite-projected-fk/
export NEO4J_CSV_FLAGS="--compressed"
popd > /dev/null
| 24.916667 | 130 | 0.692308 |