hexsha
stringlengths
40
40
size
int64
140
1.03M
ext
stringclasses
94 values
lang
stringclasses
21 values
max_stars_repo_path
stringlengths
3
663
max_stars_repo_name
stringlengths
4
120
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
663
max_issues_repo_name
stringlengths
4
120
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
663
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
140
1.03M
avg_line_length
float64
2.32
23.1k
max_line_length
int64
11
938k
alphanum_fraction
float64
0.01
1
score
float32
3
4.25
0cc92881b3783140afbb04ec688ee09d279aa156
2,794
py
Python
distla/distla_core/distla_core/linalg/qr/test_qr_ooc.py
google/distla_core
7f0d8ab7b847a75e0fc713627488643a8984712a
[ "Apache-2.0" ]
2
2021-12-19T21:17:06.000Z
2021-12-25T09:19:47.000Z
distla/distla_core/distla_core/linalg/qr/test_qr_ooc.py
google/distla_core
7f0d8ab7b847a75e0fc713627488643a8984712a
[ "Apache-2.0" ]
null
null
null
distla/distla_core/distla_core/linalg/qr/test_qr_ooc.py
google/distla_core
7f0d8ab7b847a75e0fc713627488643a8984712a
[ "Apache-2.0" ]
1
2021-12-25T09:19:56.000Z
2021-12-25T09:19:56.000Z
"""Tests for qr.py.""" from jax import lax import jax.numpy as jnp import numpy as np import pytest import tempfile from distla_core.linalg.utils import testutils from distla_core.linalg.qr import qr_ooc from distla_core.utils import pops DTYPE = jnp.float32 seeds = [0, 1] flags = [True, False] def _dephase_qr(R,...
30.703297
78
0.700787
3.34375
03b8fb6d145f0cf59894925a4f20e93f384ab9f2
1,604
kt
Kotlin
testing/src/main/kotlin/Combinations.kt
AtricoSoftware/atrico.kotlib
273fd90cb345818d0333be205ba46b0950aeb340
[ "MIT" ]
null
null
null
testing/src/main/kotlin/Combinations.kt
AtricoSoftware/atrico.kotlib
273fd90cb345818d0333be205ba46b0950aeb340
[ "MIT" ]
null
null
null
testing/src/main/kotlin/Combinations.kt
AtricoSoftware/atrico.kotlib
273fd90cb345818d0333be205ba46b0950aeb340
[ "MIT" ]
null
null
null
package atrico.kotlib.testing import java.util.* // Calculate the combinations of a set fun <T> calculateCombinations(items: Collection<T>, count: Int): Sequence<Iterable<T>> { fun itemIterator(items: Collection<T>): Sequence<Iteration<T>> { return sequence { val queue = ArrayDeque(ite...
35.644444
116
0.585411
3.125
d9bfe622c46c0537a41526218e7145494b376979
3,043
rs
Rust
hello-world/src/main.rs
Becavalier/rust-by-example-cases
8e2d52986aa5bd27b06cbc26dd04ea20a46872c3
[ "MIT" ]
2
2021-04-20T08:43:35.000Z
2021-04-20T10:33:06.000Z
hello-world/src/main.rs
Becavalier/rust-by-example-cases
8e2d52986aa5bd27b06cbc26dd04ea20a46872c3
[ "MIT" ]
null
null
null
hello-world/src/main.rs
Becavalier/rust-by-example-cases
8e2d52986aa5bd27b06cbc26dd04ea20a46872c3
[ "MIT" ]
null
null
null
fn main() { let x = String::from("world!"); let s = format!("Hello, {}", &x); print!("{}", s); println!("{}", s); // with newline, to io::stdout. eprint!("{}", s); eprintln!("{0}", s); // use the first value. println!("{:b}", 100); // with formatting flags (binary). println!("{}", 100u32...
27.663636
78
0.425895
3.421875
0b9851847b18a4b7b38e82d6bd87af07dc1c57a9
1,531
py
Python
examples/imu.py
dan-stone/canal
8a6b03a46102f7e5ca457538eb03ab9526eec095
[ "MIT" ]
2
2017-02-08T20:27:39.000Z
2019-07-15T00:34:05.000Z
examples/imu.py
dan-stone/canal
8a6b03a46102f7e5ca457538eb03ab9526eec095
[ "MIT" ]
null
null
null
examples/imu.py
dan-stone/canal
8a6b03a46102f7e5ca457538eb03ab9526eec095
[ "MIT" ]
1
2018-05-31T14:09:19.000Z
2018-05-31T14:09:19.000Z
import datetime import canal from influxdb import InfluxDBClient class IMU(canal.Measurement): accelerometer_x = canal.IntegerField() accelerometer_y = canal.IntegerField() accelerometer_z = canal.IntegerField() gyroscope_x = canal.IntegerField() gyroscope_y = canal.IntegerField() gyroscope_z...
27.836364
65
0.640758
3.203125
501f5480e25a1561f518bc7d75ac0beb747defbd
7,180
go
Go
pkg/c8y/vendor/github.com/obeattie/ohmyglob/glob.go
ricardnacher/go-c8y
362a3775d9ffde5f14cff366044423347bacf064
[ "MIT" ]
8
2015-02-21T20:21:49.000Z
2021-03-14T15:45:41.000Z
pkg/c8y/vendor/github.com/obeattie/ohmyglob/glob.go
ricardnacher/go-c8y
362a3775d9ffde5f14cff366044423347bacf064
[ "MIT" ]
4
2019-05-25T07:07:46.000Z
2021-09-20T08:53:31.000Z
pkg/c8y/vendor/github.com/obeattie/ohmyglob/glob.go
ricardnacher/go-c8y
362a3775d9ffde5f14cff366044423347bacf064
[ "MIT" ]
2
2016-01-25T14:30:37.000Z
2018-10-24T18:48:49.000Z
// Package ohmyglob provides a minimal glob matching utility. package ohmyglob import ( "bytes" "fmt" "io" "os" "regexp" "strings" log "github.com/cihub/seelog" ) var ( // Logger is used to log trace-level info; logging is completely disabled by default but can be changed by replacing // this with a configu...
26.791045
118
0.713788
3.328125
287401f8cb0c098e08ebef1b45b9c6df311fe8d7
8,459
rb
Ruby
vgvm.rb
sonota88/vm2gol-v2
9323532d6e6ad63a42ce9a6bcc7a38207df8f2de
[ "MIT" ]
9
2021-01-18T22:50:09.000Z
2022-01-11T10:25:31.000Z
vgvm.rb
sonota88/vm2gol-v2
9323532d6e6ad63a42ce9a6bcc7a38207df8f2de
[ "MIT" ]
null
null
null
vgvm.rb
sonota88/vm2gol-v2
9323532d6e6ad63a42ce9a6bcc7a38207df8f2de
[ "MIT" ]
null
null
null
require "json" require_relative "./common" module TermColor RESET = "\e[m" RED = "\e[0;31m" BLUE = "\e[0;34m" end class Memory attr_accessor :main, :stack, :vram MAIN_DUMP_WIDTH = 10 def initialize(stack_size) @main = [] # スタック領域 @stack = Array.new(stack_size, 0) @vram = Array.n...
18.881696
69
0.506916
3.140625
6b52d484f72d299ffa0f80dbe2a5dad34864b091
15,812
rs
Rust
bril-rs/src/lib.rs
femtomc/bril
51bb0c5a4d38787b12204882d3502c94e963103a
[ "MIT" ]
1
2021-02-15T04:24:08.000Z
2021-02-15T04:24:08.000Z
bril-rs/src/lib.rs
femtomc/bril
51bb0c5a4d38787b12204882d3502c94e963103a
[ "MIT" ]
null
null
null
bril-rs/src/lib.rs
femtomc/bril
51bb0c5a4d38787b12204882d3502c94e963103a
[ "MIT" ]
null
null
null
use std::fmt::{self, Display, Formatter}; use std::io::{self, Write}; use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize, Debug, Clone)] pub struct Program { pub functions: Vec<Function>, } impl Display for Program { fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { for func in ...
28.235714
76
0.426195
3.09375
3285c7bcf8a45e226a8861a3ccbc819526f84ad0
993
lua
Lua
test/tests/colonrange.lua
jugglerchris/textadept-vi
46eb2c6502df9a0166a4de2a8c14fca66b4a0220
[ "MIT" ]
35
2015-02-06T01:48:41.000Z
2022-01-01T17:31:10.000Z
test/tests/colonrange.lua
jugglerchris/textadept-vi
46eb2c6502df9a0166a4de2a8c14fca66b4a0220
[ "MIT" ]
31
2015-02-24T22:23:30.000Z
2020-12-11T22:50:45.000Z
test/tests/colonrange.lua
jugglerchris/textadept-vi
46eb2c6502df9a0166a4de2a8c14fca66b4a0220
[ "MIT" ]
9
2015-06-21T11:51:17.000Z
2020-05-27T17:13:19.000Z
-- Check that running :commands works. -- Add a dummy command local assertEq = test.assertEq local myvar = nil local vi_mode = require 'textadept-vi.vi_mode' local cmd_errors = {} local function save_errors(f) return function(...) ok, err = pcall(f, ...) if ok then return err end ...
29.205882
74
0.668681
3.3125
e9147cf4bcc0292e88382d6f3ee6df51daa6215d
1,947
rb
Ruby
spec/flight_radar_spec.rb
kupolak/flight_radar
673bc47d18f0b8b47b010ecc605ac922d94c8580
[ "MIT" ]
null
null
null
spec/flight_radar_spec.rb
kupolak/flight_radar
673bc47d18f0b8b47b010ecc605ac922d94c8580
[ "MIT" ]
null
null
null
spec/flight_radar_spec.rb
kupolak/flight_radar
673bc47d18f0b8b47b010ecc605ac922d94c8580
[ "MIT" ]
null
null
null
# frozen_string_literal: true require "spec_helper" RSpec.describe FlightRadar do it "gets airlines" do result = FlightRadar.airlines expect(result.count).to be >= 100 end it "gets airports" do airports = FlightRadar.airports expect(airports.count).to be > 4000 end it "gets airport" do ...
26.310811
112
0.671803
3.34375
b2fdd34a89c4f597f4f4706f3635728cd6c36c6a
2,827
py
Python
train_utils.py
BatyrM/QL-Net
b245aadeb106810d075064137f26d773b2dbd679
[ "MIT" ]
null
null
null
train_utils.py
BatyrM/QL-Net
b245aadeb106810d075064137f26d773b2dbd679
[ "MIT" ]
null
null
null
train_utils.py
BatyrM/QL-Net
b245aadeb106810d075064137f26d773b2dbd679
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.autograd import Variable import torch.optim as optim def accuracy(output, target, topk=(1,)): """Computes the precision@k for the specified values of k""" maxk = max(topk) batch_size = target.size(0) _, pred = output.topk(maxk, 1, True, True) pred = pr...
36.714286
97
0.573753
3.40625
cb6fd862b26f5701a798f84fb660860482ce746c
3,921
go
Go
server/udp/session.go
millken/tcpwder
b6e34bad5919a930bd73e9e90b460984436273ed
[ "MIT" ]
3
2019-03-08T14:14:08.000Z
2022-02-09T09:23:39.000Z
server/udp/session.go
millken/tcpwder
b6e34bad5919a930bd73e9e90b460984436273ed
[ "MIT" ]
null
null
null
server/udp/session.go
millken/tcpwder
b6e34bad5919a930bd73e9e90b460984436273ed
[ "MIT" ]
6
2017-08-23T13:49:39.000Z
2022-02-09T09:23:42.000Z
/** * session.go - udp "session" * * @author Illarion Kovalchuk <illarion.kovalchuk@gmail.com> * @author Yaroslav Pogrebnyak <yyyaroslav@gmail.com> */ package udp import ( "log" "net" "sync/atomic" "time" "github.com/millken/tcpwder/core" "github.com/millken/tcpwder/server/scheduler" ) /** * Emulates UDP...
19.033981
103
0.646009
3.09375
e8e29b7b8972a06149daa7c111affc519cbc1ff4
629
py
Python
FormulaAccordingPrint.py
FreeBirdsCrew/Brainstorming_Codes
9d06216cd0772ce56586acff2c240a210b94ba1f
[ "Apache-2.0" ]
1
2020-12-11T10:24:08.000Z
2020-12-11T10:24:08.000Z
FormulaAccordingPrint.py
FreeBirdsCrew/Brainstorming_Codes
9d06216cd0772ce56586acff2c240a210b94ba1f
[ "Apache-2.0" ]
null
null
null
FormulaAccordingPrint.py
FreeBirdsCrew/Brainstorming_Codes
9d06216cd0772ce56586acff2c240a210b94ba1f
[ "Apache-2.0" ]
null
null
null
""" Write a program that calculates and prints the value according to the given formula: Q = Square root of [(2 * C * D)/H] Following are the fixed values of C and H: C is 50. H is 30. D is the variable whose values should be input to your program in a comma-separated sequence. Example Let us assume the followin...
28.590909
94
0.694754
3.125
d85d1fa41bdefa15ec09d62c6bf10684f6d1aa95
2,229
swift
Swift
Fokus/Focus/FocusController.swift
dnlggr/Fokus
7efba4c63fa963e8e3d3fd0d78638285e1b6c207
[ "MIT" ]
3
2018-11-12T14:47:08.000Z
2019-08-06T18:21:53.000Z
Fokus/Focus/FocusController.swift
dnlggr/Fokus
7efba4c63fa963e8e3d3fd0d78638285e1b6c207
[ "MIT" ]
null
null
null
Fokus/Focus/FocusController.swift
dnlggr/Fokus
7efba4c63fa963e8e3d3fd0d78638285e1b6c207
[ "MIT" ]
null
null
null
// // FocusController.swift // Fokus // // Created by Daniel on 01.09.18. // Copyright © 2018 Daniel Egger. All rights reserved. // import Cocoa import WindowLayout class FocusController { // MARK: Initialization init() { } // MARK: API func focusLeft() { moveFocus(toward: .west) }...
29.328947
103
0.6559
3.015625
9a542c3d53d6149d857f830bee1e2251b6bfceef
1,799
swift
Swift
Example/YahooWather/YahooWather/ViewController.swift
beekpr/EasyTheme
0ea47fd730517058fd0cf0bbe9acdeaf5c3c65fa
[ "MIT" ]
217
2017-06-06T17:20:49.000Z
2020-01-23T04:05:05.000Z
Example/YahooWather/YahooWather/ViewController.swift
beekpr/EasyTheme
0ea47fd730517058fd0cf0bbe9acdeaf5c3c65fa
[ "MIT" ]
6
2017-06-04T16:14:40.000Z
2019-07-22T16:34:04.000Z
Example/YahooWather/YahooWather/ViewController.swift
beekpr/EasyTheme
0ea47fd730517058fd0cf0bbe9acdeaf5c3c65fa
[ "MIT" ]
21
2017-06-06T19:30:11.000Z
2020-01-01T04:20:50.000Z
import UIKit import Themes import DayNightSwitch struct MyTheme: Theme { let image: UIImage let textColor: UIColor init(image: UIImage, textColor: UIColor) { self.image = image self.textColor = textColor } } struct ThemeList { static let day = MyTheme(image: UIImage(named: "day")!, textColor: UICol...
28.109375
87
0.648694
3.046875
739c4d8c0ff0142ea91a26701a2294cb09da0abb
526
sql
SQL
queries/sherlock/setup/feed_quality_score.sql
stefmolin/watson-api
49ca922f66646f3134b500c4ec9e6cd23fb31f2c
[ "MIT" ]
null
null
null
queries/sherlock/setup/feed_quality_score.sql
stefmolin/watson-api
49ca922f66646f3134b500c4ec9e6cd23fb31f2c
[ "MIT" ]
1
2018-09-20T01:04:57.000Z
2018-10-06T21:39:44.000Z
queries/sherlock/setup/feed_quality_score.sql
stefmolin/watson-api
49ca922f66646f3134b500c4ec9e6cd23fb31f2c
[ "MIT" ]
null
null
null
SELECT day , CASE WHEN COUNT(DISTINCT day) = 0 THEN 0 ELSE (SUM(catalog_quality)/COUNT(DISTINCT day))/10000 END AS feed_quality , MAX(last_date_import) AS feed_import FROM schema.fact_table AS fc JOIN (SELECT partner_id , client_id FROM schema.dim_table WHERE client_id = {client_i...
18.137931
82
0.692015
3.125
c829c2d4ff87ef172ea1732f1adad21590a72250
1,586
lua
Lua
server/main.lua
vwxyzzett/td-atmrob
d0259d1c841e5f5d2f577db1de98a6c9425c2880
[ "Apache-2.0" ]
null
null
null
server/main.lua
vwxyzzett/td-atmrob
d0259d1c841e5f5d2f577db1de98a6c9425c2880
[ "Apache-2.0" ]
null
null
null
server/main.lua
vwxyzzett/td-atmrob
d0259d1c841e5f5d2f577db1de98a6c9425c2880
[ "Apache-2.0" ]
1
2022-02-15T12:53:47.000Z
2022-02-15T12:53:47.000Z
ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) ESX.RegisterServerCallback('hasan:copCount', function(source, cb) local xPlayers = ESX.GetPlayers() copConnected = 0 for i=1, #xPlayers, 1 do local xPlayer = ESX.GetPlayerFromId(xPlayers[i]) if xPlayer.job.name == 'police' then c...
24.030303
78
0.742749
3.078125
dd707193dd1fd3d7843445fb6338dfaa0d6482ba
3,079
go
Go
examples/restore.go
IrennaLumbuun/nimble-golang-sdk
2af65b6ef8137fbc07c24cc78c2118206ca04149
[ "Apache-2.0" ]
null
null
null
examples/restore.go
IrennaLumbuun/nimble-golang-sdk
2af65b6ef8137fbc07c24cc78c2118206ca04149
[ "Apache-2.0" ]
null
null
null
examples/restore.go
IrennaLumbuun/nimble-golang-sdk
2af65b6ef8137fbc07c24cc78c2118206ca04149
[ "Apache-2.0" ]
null
null
null
// Copyright 2020 Hewlett Packard Enterprise Development LP package main import ( "fmt" "github.com/hpe-storage/nimble-golang-sdk/pkg/client/v1/nimbleos" "github.com/hpe-storage/nimble-golang-sdk/pkg/param" "github.com/hpe-storage/nimble-golang-sdk/pkg/service" ) func main() { // login to Array, get groupServic...
28.509259
115
0.715167
3.03125
9c39c03462738217dee5cad2afd2fb9bd45ef7ac
2,378
js
JavaScript
CMS/CMSScripts/CMSModules/CMS.Forms/Directives/CMSInputAttributesDirective.js
mzhokh/FilterByCategoryWidget
c6b83215aea4f4df607d070fe4c772bd96ee6a95
[ "MIT" ]
26
2019-02-26T19:44:44.000Z
2021-07-19T01:45:37.000Z
CMS/CMSScripts/CMSModules/CMS.Forms/Directives/CMSInputAttributesDirective.js
mzhokh/FilterByCategoryWidget
c6b83215aea4f4df607d070fe4c772bd96ee6a95
[ "MIT" ]
34
2018-12-10T09:30:13.000Z
2020-09-02T11:14:12.000Z
CMS/CMSScripts/CMSModules/CMS.Forms/Directives/CMSInputAttributesDirective.js
mzhokh/FilterByCategoryWidget
c6b83215aea4f4df607d070fe4c772bd96ee6a95
[ "MIT" ]
50
2018-12-06T17:32:43.000Z
2021-11-04T09:48:07.000Z
cmsdefine([], function () { /** * This directive looks for supported attributes in the parent scope. If any of the supported * value is found, it is passed to the context element. * If the scope specifies id attribute, its value will be used for the name attribute as well. * * This direct...
37.746032
150
0.519765
3.171875
2b59cdc909c3f77b9904fd75a847089e1d0e82e9
3,908
sql
SQL
resources/migrations/2017091817300000-update-completed_benchmark-metrics.up.sql
nucleotides/event-api
aea8f9ce8e76fbff646d1535228c6c09be4a7158
[ "BSD-3-Clause-LBNL" ]
null
null
null
resources/migrations/2017091817300000-update-completed_benchmark-metrics.up.sql
nucleotides/event-api
aea8f9ce8e76fbff646d1535228c6c09be4a7158
[ "BSD-3-Clause-LBNL" ]
null
null
null
resources/migrations/2017091817300000-update-completed_benchmark-metrics.up.sql
nucleotides/event-api
aea8f9ce8e76fbff646d1535228c6c09be4a7158
[ "BSD-3-Clause-LBNL" ]
null
null
null
-- Drop this view first to then drop dependent views DROP VIEW completed_benchmark_metrics; -- No longer going to base the completed_benchmark_metrics table off of this view DROP VIEW image_task_benchmarking_state; -- -- View of numbers of tasks per benchmark instance by benchmark type -- -- The numbers of tasks is ...
44.409091
124
0.691146
3.21875
de48dd21f4714f08feaab97eed742b56a30fe022
1,016
kt
Kotlin
alphonse-validator-lib/src/main/java/com/atthapon/alphonsevalidator/rules/GreaterThanRule.kt
atthapon-k/validrator
84bd5c99e21dfb002b2994fec4b7278ed5f231f0
[ "Apache-2.0" ]
null
null
null
alphonse-validator-lib/src/main/java/com/atthapon/alphonsevalidator/rules/GreaterThanRule.kt
atthapon-k/validrator
84bd5c99e21dfb002b2994fec4b7278ed5f231f0
[ "Apache-2.0" ]
null
null
null
alphonse-validator-lib/src/main/java/com/atthapon/alphonsevalidator/rules/GreaterThanRule.kt
atthapon-k/validrator
84bd5c99e21dfb002b2994fec4b7278ed5f231f0
[ "Apache-2.0" ]
null
null
null
package com.atthapon.alphonsevalidator.rules import com.atthapon.alphonsevalidator.validNumber import java.text.NumberFormat class GreaterThanRule(val target: Number = 0, var errorMsg: String? = null): BaseRule { override fun validate(text: String): Boolean { if(text.isEmpty()) return false if(tex...
32.774194
87
0.584646
3.0625
0b3963c63ed1877c12683ef9458a7f962df91e0e
3,243
py
Python
finder.py
giuseppebrb/Pynder
a47defc08ff497096a1fe507ab5d7b01997b69ef
[ "MIT" ]
3
2017-11-11T01:19:57.000Z
2021-07-07T15:44:32.000Z
finder.py
giuseppebrb/Pynder
a47defc08ff497096a1fe507ab5d7b01997b69ef
[ "MIT" ]
null
null
null
finder.py
giuseppebrb/Pynder
a47defc08ff497096a1fe507ab5d7b01997b69ef
[ "MIT" ]
null
null
null
import os import fnmatch import smtplib import email.mime.application import sys import subprocess from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from pathlib import Path home = str(Path.home()) # Return a string representing the user’s home directory fileFound = 0 # Number of f...
35.25
120
0.716929
3.171875
0b9e17c3c6711c5899263cca3e86df88aba125ad
13,497
py
Python
src/warp/yul/AstTools.py
sambarnes/warp
f841afa22e665d5554587eaa866c4790698bfc22
[ "Apache-2.0" ]
414
2021-07-17T13:06:55.000Z
2022-03-31T14:57:10.000Z
src/warp/yul/AstTools.py
sambarnes/warp
f841afa22e665d5554587eaa866c4790698bfc22
[ "Apache-2.0" ]
78
2021-07-19T12:33:56.000Z
2022-03-29T17:16:27.000Z
src/warp/yul/AstTools.py
sambarnes/warp
f841afa22e665d5554587eaa866c4790698bfc22
[ "Apache-2.0" ]
19
2021-08-18T03:55:54.000Z
2022-03-29T15:29:48.000Z
from __future__ import annotations import re from typing import Union import warp.yul.ast as ast from warp.yul.AstVisitor import AstVisitor from warp.yul.WarpException import WarpException class AstParser: def __init__(self, text: str): self.lines = text.splitlines() if len(self.lines) == 0: ...
32.601449
88
0.572127
3.140625
9be22d98ace4356e919d72b1f3a27850307e90d0
3,044
js
JavaScript
src/pages/project/components/List.js
xxdfly/kirin-devops-front
690af7f7db5c3eafccbd9ae8ce06de42528951aa
[ "MIT" ]
null
null
null
src/pages/project/components/List.js
xxdfly/kirin-devops-front
690af7f7db5c3eafccbd9ae8ce06de42528951aa
[ "MIT" ]
null
null
null
src/pages/project/components/List.js
xxdfly/kirin-devops-front
690af7f7db5c3eafccbd9ae8ce06de42528951aa
[ "MIT" ]
null
null
null
import React, { PureComponent } from 'react' import PropTypes from 'prop-types' import { Table, Modal, Divider } from 'antd' import { Trans, withI18n } from '@lingui/react' import Link from 'umi/link' import styles from './List.less' const { confirm } = Modal @withI18n() class List extends PureComponent { handleMen...
23.968504
87
0.528252
3.1875
8e05d5d48dea580fee0f329061f450d842fb4740
2,107
lua
Lua
HW3/src/checkModel.lua
SeeTheC/Computer-Vision-CS763
d333c90e5aa939135b66a588424b2ba494543ac5
[ "MIT" ]
null
null
null
HW3/src/checkModel.lua
SeeTheC/Computer-Vision-CS763
d333c90e5aa939135b66a588424b2ba494543ac5
[ "MIT" ]
null
null
null
HW3/src/checkModel.lua
SeeTheC/Computer-Vision-CS763
d333c90e5aa939135b66a588424b2ba494543ac5
[ "MIT" ]
null
null
null
require "xlua" require "Logger" require "Linear" require "ReLU" require "BatchNormalization" -- require "SpatialConvolution" require "Model" require "Criterion" require "GradientDescent" local cmd = torch.CmdLine(); if not opt then cmd:text() cmd:text('Options:') cmd:option("-config" ,"modelConfig_1.txt" ,...
24.788235
73
0.639298
3.25
f0768556a1b71d15812033a9cc69a7cc2128c930
1,122
js
JavaScript
2-avgWordLength.js
NJBOOT/ten_simple_coding_tests
60c7e03b66c3592c0b0c94ae1d5690d0b7bac501
[ "MIT" ]
null
null
null
2-avgWordLength.js
NJBOOT/ten_simple_coding_tests
60c7e03b66c3592c0b0c94ae1d5690d0b7bac501
[ "MIT" ]
null
null
null
2-avgWordLength.js
NJBOOT/ten_simple_coding_tests
60c7e03b66c3592c0b0c94ae1d5690d0b7bac501
[ "MIT" ]
null
null
null
// 2 - Average Sentence Length // For a given sentence, return the average word length. // Note: Remember to remove punctuation first. const avgWordLength = s => { // first, weird edge case where the punctuation represents a space // then strip the rest of the punctuation using regex const stripped = s .repl...
32.057143
88
0.628342
3.421875
0b9897a43237e684b6c66f4d6a3b18dc5aaad9da
1,217
py
Python
onetouch.py
kakoni/insulaudit
18fe0802bafe5764882ac4e65e472fdc840baa45
[ "MIT" ]
1
2020-11-28T13:23:58.000Z
2020-11-28T13:23:58.000Z
onetouch.py
kakoni/insulaudit
18fe0802bafe5764882ac4e65e472fdc840baa45
[ "MIT" ]
null
null
null
onetouch.py
kakoni/insulaudit
18fe0802bafe5764882ac4e65e472fdc840baa45
[ "MIT" ]
null
null
null
#!/usr/bin/python import user import serial from pprint import pprint, pformat import insulaudit from insulaudit.data import glucose from insulaudit.log import io from insulaudit.devices import onetouch2 import sys PORT = '/dev/ttyUSB0' def get_serial( port, timeout=2 ): return serial.Serial( port, timeout=timeou...
22.537037
89
0.67461
3.15625
899eb308936063e65f789bdec1df704f986b8824
1,779
lua
Lua
Overworld/model/entities/playerStates/StillUpState.lua
tomyahu/Tomimi-Game-Editor
8d14dc0d3ead8d90a9affd783e11048d7260c471
[ "MIT" ]
1
2019-01-18T21:50:11.000Z
2019-01-18T21:50:11.000Z
Overworld/model/entities/playerStates/StillUpState.lua
tomyahu/LotRM
8d14dc0d3ead8d90a9affd783e11048d7260c471
[ "MIT" ]
1
2019-12-04T15:39:45.000Z
2019-12-04T15:39:45.000Z
Overworld/model/entities/playerStates/StillUpState.lua
tomyahu/Tomimi-Game-Editor
8d14dc0d3ead8d90a9affd783e11048d7260c471
[ "MIT" ]
null
null
null
require "lib.classes.class" local NormalPlayerState = require "Overworld.model.entities.playerStates.NormalPlayerState" -------------------------------------------------------------------------------------------------------- -- class: StillRightState -- param: player:Player -> the player object of the overworld -- The...
32.944444
104
0.733558
3.34375
05b53598e7a861c91f8832bbb4ac226d402b2d7c
2,136
rb
Ruby
lib/user_engage/client.rb
CompanyMood/user_engage-ruby
6e804d463c0d5d451febc2f0ab97e5d80b1c7ee6
[ "MIT" ]
3
2018-02-03T21:53:36.000Z
2020-10-16T02:56:09.000Z
lib/user_engage/client.rb
CompanyMood/user_engage-ruby
6e804d463c0d5d451febc2f0ab97e5d80b1c7ee6
[ "MIT" ]
6
2018-08-10T09:00:24.000Z
2018-10-26T10:31:17.000Z
lib/user_engage/client.rb
CompanyMood/user_engage-ruby
6e804d463c0d5d451febc2f0ab97e5d80b1c7ee6
[ "MIT" ]
1
2018-07-25T19:33:35.000Z
2018-07-25T19:33:35.000Z
# frozen_string_literal: true require 'faraday' module UserEngage class Client ###################### ## Instance methods ## ###################### def initialize(configuration) @configuration = configuration end # Public: Calls the base_url with the given path and parameters # ...
27.037975
80
0.6147
3.125
6226ebe4eb3e97ea82df528e03c6e361d0b237a2
3,869
rs
Rust
tests/integration_tests.rs
victorjoh/console-runner
1b9ad65a60abc6c38172d07a66738263cbc04891
[ "MIT" ]
null
null
null
tests/integration_tests.rs
victorjoh/console-runner
1b9ad65a60abc6c38172d07a66738263cbc04891
[ "MIT" ]
null
null
null
tests/integration_tests.rs
victorjoh/console-runner
1b9ad65a60abc6c38172d07a66738263cbc04891
[ "MIT" ]
null
null
null
use console_runner::{common::*, tasks::*}; use spectral::prelude::*; const TASK_RUNNER: TaskRunner = TaskRunner { thread_count: 1, view_update_period: 0, }; #[test] fn the_result_of_a_task_is_passed_to_the_view() { let mut view = StoreToMemory::new(); let task = SimpleTask { name: "my name", ...
25.123377
87
0.601447
3.078125
dfe9d4a003e46d50b50cc01b194e674b4a5e9262
2,318
lua
Lua
extensions/sound/init.lua
Luke100000/3DreamEngine
77dd382b6bb890e174f9175870db636415b835fa
[ "MIT" ]
null
null
null
extensions/sound/init.lua
Luke100000/3DreamEngine
77dd382b6bb890e174f9175870db636415b835fa
[ "MIT" ]
null
null
null
extensions/sound/init.lua
Luke100000/3DreamEngine
77dd382b6bb890e174f9175870db636415b835fa
[ "MIT" ]
null
null
null
local soundManager = { paths = { }, sounds = { }, maxSounds = 16, } --reverb effects for i = 1, 10 do love.audio.setEffect("reverb_" .. i, { type = "reverb", decaytime = i / 2, density = 0.5, }) end --add a directory to the sound library local supportedFileTypes = table.toSet({"wav", "mp3", "ogg", "oga", "...
24.924731
96
0.655306
3.34375
46df2e70f4263254dc9c292ff44a4cf88ddcab7a
1,563
kt
Kotlin
app/src/main/java/com/example/multitypeviewadapter/MultiTypeViewAdapter.kt
marcus-martins/MultiTypeViewAdapter
4b8adcad6994a7cc0bba0e75021aed9c9162c2a7
[ "MIT" ]
null
null
null
app/src/main/java/com/example/multitypeviewadapter/MultiTypeViewAdapter.kt
marcus-martins/MultiTypeViewAdapter
4b8adcad6994a7cc0bba0e75021aed9c9162c2a7
[ "MIT" ]
null
null
null
app/src/main/java/com/example/multitypeviewadapter/MultiTypeViewAdapter.kt
marcus-martins/MultiTypeViewAdapter
4b8adcad6994a7cc0bba0e75021aed9c9162c2a7
[ "MIT" ]
null
null
null
package com.example.multitypeviewadapter import android.view.LayoutInflater import android.view.ViewGroup import androidx.recyclerview.widget.RecyclerView class MultiTypeViewAdapter( private val itemViewList : List<ItemView> ) : RecyclerView.Adapter<RecyclerView.ViewHolder>() { private val HEADER = 1 priv...
38.121951
98
0.680742
3
553bba2aab2ec051c477e9ea478141b716cfb797
3,404
kt
Kotlin
common/src/test/kotlin/com/scurab/kuproxy/matcher/DefaultRequestMatcherTest.kt
jbruchanov/kuproxy
2e10d85e7e318850679be3a21fe4406645f88811
[ "Apache-2.0" ]
3
2021-11-29T11:44:32.000Z
2022-01-25T11:36:16.000Z
common/src/test/kotlin/com/scurab/kuproxy/matcher/DefaultRequestMatcherTest.kt
jbruchanov/kuproxy
2e10d85e7e318850679be3a21fe4406645f88811
[ "Apache-2.0" ]
null
null
null
common/src/test/kotlin/com/scurab/kuproxy/matcher/DefaultRequestMatcherTest.kt
jbruchanov/kuproxy
2e10d85e7e318850679be3a21fe4406645f88811
[ "Apache-2.0" ]
null
null
null
package com.scurab.kuproxy.matcher import com.scurab.kuproxy.comm.IRequest import com.scurab.kuproxy.comm.Url import org.junit.jupiter.api.Assertions import org.junit.jupiter.api.extension.ExtensionContext import org.junit.jupiter.params.ParameterizedTest import org.junit.jupiter.params.provider.Arguments import org.j...
35.831579
110
0.493537
3.234375
a1c2d145290c136fb1d59d070f88426694752ce5
2,380
go
Go
server.go
UKHomeOffice/dockerfile-validator
056b995261861667aaab083c2c1f65d661112883
[ "MIT" ]
1
2017-09-03T12:08:04.000Z
2017-09-03T12:08:04.000Z
server.go
UKHomeOffice/dockerfile-validator
056b995261861667aaab083c2c1f65d661112883
[ "MIT" ]
2
2016-02-04T15:06:24.000Z
2016-02-25T14:19:23.000Z
server.go
UKHomeOffice/dockerfile-validator
056b995261861667aaab083c2c1f65d661112883
[ "MIT" ]
1
2021-04-11T09:41:02.000Z
2021-04-11T09:41:02.000Z
package main import ( "fmt" "io/ioutil" "net/http" ) func uploadRulesHandler(w http.ResponseWriter, r *http.Request) { switch r.Method { //GET displays the upload form. case "GET": message := "Rules currently defined: \n\n" + rules.String() w.Write([]byte(message)) //POST takes the uploaded file(s) and s...
23.106796
100
0.692857
3.078125
7244081bae4a13a2235923b10100dc424d141fc8
5,691
rs
Rust
control-plane/rest/service/src/authentication.rs
Abhinandan-Purkait-Bolt/mayastor-control-plane
ae4b39b42cc54bf8520f0256568e5d8635eb4f39
[ "Apache-2.0" ]
13
2021-03-29T15:10:15.000Z
2022-03-23T04:01:59.000Z
control-plane/rest/service/src/authentication.rs
Abhinandan-Purkait-Bolt/mayastor-control-plane
ae4b39b42cc54bf8520f0256568e5d8635eb4f39
[ "Apache-2.0" ]
146
2021-03-30T13:14:56.000Z
2022-03-31T15:54:38.000Z
control-plane/rest/service/src/authentication.rs
Abhinandan-Purkait-Bolt/mayastor-control-plane
ae4b39b42cc54bf8520f0256568e5d8635eb4f39
[ "Apache-2.0" ]
12
2021-06-22T13:53:01.000Z
2022-03-31T12:07:36.000Z
use actix_web::HttpRequest; use jsonwebtoken::{crypto, Algorithm, DecodingKey}; use http::HeaderValue; use std::fs::File; use snafu::{ResultExt, Snafu}; /// Authorization Errors #[derive(Debug, Snafu)] pub enum AuthError { #[snafu(display("Internal error: {}", details))] InternalError { details: String }, ...
31.793296
94
0.593217
3.171875
de10e1509f6dfa140de63e5a9db392063e95dd58
17,775
rs
Rust
0xx_core_mix/src/crypto/backend/ristretto_b.rs
sololouve/MaaraaDAO
d53c244599182472789a2c71e6ea56bcc9f78569
[ "CC0-1.0" ]
2
2021-06-13T21:55:16.000Z
2021-07-30T08:52:58.000Z
0xx_core_mix/src/crypto/backend/ristretto_b.rs
sololouve/MaaraaDAO
d53c244599182472789a2c71e6ea56bcc9f78569
[ "CC0-1.0" ]
null
null
null
0xx_core_mix/src/crypto/backend/ristretto_b.rs
sololouve/MaaraaDAO
d53c244599182472789a2c71e6ea56bcc9f78569
[ "CC0-1.0" ]
2
2021-06-13T07:39:16.000Z
2021-09-04T20:02:29.000Z
use rand::rngs::OsRng; use rand::rngs::StdRng; use rand::RngCore; use rand::SeedableRng; use serde::{Deserialize, Serialize}; use curve25519_dalek::constants::RISTRETTO_BASEPOINT_POINT; use curve25519_dalek::ristretto::{CompressedRistretto, RistrettoPoint}; use curve25519_dalek::scalar::Scalar; use curve25519_dalek::t...
31.571936
99
0.547961
3.046875
f05ff75311109e9783190938edb768d0c1aeae71
2,772
js
JavaScript
src/pages/authority/resource-mgnt/index.js
watertao/teemo
13b0ebafb853d0f110c6ed7817667229efaa22e0
[ "DOC", "MIT" ]
11
2019-07-11T04:16:32.000Z
2021-05-16T09:26:51.000Z
src/pages/authority/resource-mgnt/index.js
watertao/teemo
13b0ebafb853d0f110c6ed7817667229efaa22e0
[ "DOC", "MIT" ]
5
2019-04-27T01:27:46.000Z
2019-11-15T00:56:28.000Z
src/pages/authority/resource-mgnt/index.js
watertao/teemo
13b0ebafb853d0f110c6ed7817667229efaa22e0
[ "DOC", "MIT" ]
2
2019-02-20T00:58:33.000Z
2019-08-08T03:03:50.000Z
import React, { Component } from 'react'; import PageHeaderWrapper from '@/components/PageHeaderWrapper'; import { formatMessage as fm, FormattedMessage } from 'umi/locale'; import mm from '@/utils/message-util'; import {Button, Icon, Table, Tag} from 'antd'; import TMDataList from '@/components/TMDataList'; import { c...
25.2
72
0.535714
3.0625
c3b0a8a2e995a2396bd816e1e98bc83cb2f40a2f
2,684
go
Go
engine/worker/cmd_update.go
mvdan/cds
fcf66ba206a2cbf45540b8b3f578436ec3da5678
[ "BSD-3-Clause" ]
1
2019-04-29T12:34:50.000Z
2019-04-29T12:34:50.000Z
engine/worker/cmd_update.go
mvdan/cds
fcf66ba206a2cbf45540b8b3f578436ec3da5678
[ "BSD-3-Clause" ]
null
null
null
engine/worker/cmd_update.go
mvdan/cds
fcf66ba206a2cbf45540b8b3f578436ec3da5678
[ "BSD-3-Clause" ]
null
null
null
package main import ( "fmt" "net/http" "time" "github.com/inconshreveable/go-update" "github.com/spf13/cobra" "github.com/ovh/cds/sdk" "github.com/ovh/cds/sdk/cdsclient" ) func cmdUpdate(w *currentWorker) *cobra.Command { c := &cobra.Command{ Use: "update", Short: "worker update [flags]", Long: `Upd...
29.822222
136
0.684426
3.109375
17ebe374d409c0dc5b747caf9d0e1c4c93a76da6
2,940
sql
SQL
junior/pack2_junior/p3_sql_jdbc/ch1_crud/create_v1.sql
multiscripter/job4j
2aaaf59c2b4e1d9866395f1247897d5f09f9ef84
[ "Apache-2.0" ]
1
2018-01-16T11:27:23.000Z
2018-01-16T11:27:23.000Z
junior/pack2_junior/p3_sql_jdbc/ch1_crud/create_v1.sql
multiscripter/job4j
2aaaf59c2b4e1d9866395f1247897d5f09f9ef84
[ "Apache-2.0" ]
11
2020-07-01T18:39:12.000Z
2022-02-16T01:11:31.000Z
junior/pack2_junior/p3_sql_jdbc/ch1_crud/create_v1.sql
multiscripter/job4j
2aaaf59c2b4e1d9866395f1247897d5f09f9ef84
[ "Apache-2.0" ]
null
null
null
-- Database: job4j create database job4j WITH OWNER = postgres ENCODING = 'UTF8' LC_COLLATE = 'Russian_Russia.1251' LC_CTYPE = 'Russian_Russia.1251' TABLESPACE = pg_default CONNECTION LIMIT = -1; create table if not exists statuses ( id serial not null primary key, status varchar ...
35.853659
110
0.709524
3
39d7027b00af6f69984e54c088d2259050baa863
2,435
js
JavaScript
.core/.cli/commands/electron/builder/index.js
Atomic-Reactor/Reactium-SSR
ce5906db22fa726cdd25d9670343b45b9ed33e61
[ "MIT" ]
18
2019-01-01T20:40:21.000Z
2021-05-24T02:00:08.000Z
.core/.cli/commands/electron/builder/index.js
Atomic-Reactor/Reactium-SSR
ce5906db22fa726cdd25d9670343b45b9ed33e61
[ "MIT" ]
21
2018-07-12T12:11:19.000Z
2022-02-20T23:26:18.000Z
.core/.cli/commands/electron/builder/index.js
Atomic-Reactor/Reactium-SSR
ce5906db22fa726cdd25d9670343b45b9ed33e61
[ "MIT" ]
6
2018-12-14T19:22:21.000Z
2022-03-07T16:22:23.000Z
/** * ----------------------------------------------------------------------------- * Imports * ----------------------------------------------------------------------------- */ const generator = require('./generator'); const path = require('path'); const op = require('object-path'); const mod = path.dirname(requir...
28.647059
103
0.627926
3.125
89e111c50828992611f3715b9ae88f7d3b37d526
6,591
swift
Swift
LazySwifter/StringExtension.swift
quocnb/LazySwifter
fa22f21b25803d8bf763a28dc27712ee573eb482
[ "MIT" ]
null
null
null
LazySwifter/StringExtension.swift
quocnb/LazySwifter
fa22f21b25803d8bf763a28dc27712ee573eb482
[ "MIT" ]
null
null
null
LazySwifter/StringExtension.swift
quocnb/LazySwifter
fa22f21b25803d8bf763a28dc27712ee573eb482
[ "MIT" ]
null
null
null
// // StringExtension.swift // LazySwifter // // Created by Quoc Nguyen on 2/14/18. // import UIKit public extension String { public func index(by distance: Int) -> String.Index? { if distance >= 0 { return index(startIndex, offsetBy: distance, limitedBy: endIndex) } else { ...
31.84058
101
0.553634
3.359375
f1cf83410b8a5d4a579eebaf312a5d015ed272e8
15,621
rb
Ruby
server/WAPI.rb
tl-its-umich-edu/StudentDashboard
eaaef3a834dd0fce164feea7ebe7bb7706c129ea
[ "Apache-2.0" ]
1
2018-11-02T19:53:42.000Z
2018-11-02T19:53:42.000Z
server/WAPI.rb
tl-its-umich-edu/StudentDashboard
eaaef3a834dd0fce164feea7ebe7bb7706c129ea
[ "Apache-2.0" ]
99
2015-01-29T15:22:52.000Z
2018-04-09T17:36:04.000Z
server/WAPI.rb
tl-its-umich-edu/StudentDashboard
eaaef3a834dd0fce164feea7ebe7bb7706c129ea
[ "Apache-2.0" ]
4
2015-04-30T18:13:03.000Z
2016-06-15T20:37:35.000Z
# Utility class to run requests against a WSO2 API. # This has two entry points of interest: # Constructor: new(hash) # The hash should contain the following values: # 'token_server','api_prefix','key','secret' # It may contain the current token value but does not need to # since WAPI will renew tokens as necessary. ...
42.44837
184
0.690417
3.21875
8e851f54c36f67d2c1da7349d63d10d1507fd4b5
1,620
kt
Kotlin
src/test/kotlin/xyz/poeschl/kixelflut/DrawUtilsTest.kt
Poeschl/Kixelflut
a4a423c1ab6157db9fdf30e5400f0b192e73c955
[ "Apache-2.0" ]
null
null
null
src/test/kotlin/xyz/poeschl/kixelflut/DrawUtilsTest.kt
Poeschl/Kixelflut
a4a423c1ab6157db9fdf30e5400f0b192e73c955
[ "Apache-2.0" ]
null
null
null
src/test/kotlin/xyz/poeschl/kixelflut/DrawUtilsTest.kt
Poeschl/Kixelflut
a4a423c1ab6157db9fdf30e5400f0b192e73c955
[ "Apache-2.0" ]
null
null
null
package xyz.poeschl.kixelflut import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test import java.awt.Color internal class DrawUtilsTest { @Test fun createHorizontalPixels() { //WHEN val startingPoint = Point(1, 1) //THEN val pixels = createHorizo...
25.714286
77
0.562963
3.234375
b1f0da1864c6d0cb454639bbc614a6072fc389f1
1,463
kt
Kotlin
server/src/main/kotlin/org/cueglow/server/gdtf/RenderGdtfStateToDmx.kt
cueglow/glowdtf
b670ca9768cdd49551fa32af126498fe2ff261ba
[ "MIT" ]
null
null
null
server/src/main/kotlin/org/cueglow/server/gdtf/RenderGdtfStateToDmx.kt
cueglow/glowdtf
b670ca9768cdd49551fa32af126498fe2ff261ba
[ "MIT" ]
null
null
null
server/src/main/kotlin/org/cueglow/server/gdtf/RenderGdtfStateToDmx.kt
cueglow/glowdtf
b670ca9768cdd49551fa32af126498fe2ff261ba
[ "MIT" ]
null
null
null
package org.cueglow.server.gdtf fun renderGdtfStateToDmx(chValues: List<Long>, dmxMode: GlowDmxMode): ByteArray { val output = mutableListOf<Byte>() dmxMode.multiByteChannels .groupBy { it.dmxBreak } .toSortedMap() .forEach { dmxBreak -> val startInd = output.size ...
43.029412
91
0.505126
3.015625
b2fd53048e194cb59b5b4420a7e50d932868c531
1,878
py
Python
glance/rpc/common.py
Quinton/glance
7674bc8963a3bec21f719c48f40e8a3fc0846e6f
[ "Apache-2.0" ]
5
2017-04-23T05:50:36.000Z
2019-03-12T09:45:20.000Z
glance/rpc/common.py
Quinton/glance
7674bc8963a3bec21f719c48f40e8a3fc0846e6f
[ "Apache-2.0" ]
null
null
null
glance/rpc/common.py
Quinton/glance
7674bc8963a3bec21f719c48f40e8a3fc0846e6f
[ "Apache-2.0" ]
2
2018-08-16T11:41:18.000Z
2018-10-21T06:56:50.000Z
#!/usr/bin/env python #encode=utf-8 #vim: tabstop=4 shiftwidth=4 softtabstop=4 #Created on 2013-8-17 #Copyright 2013 nuoqingyun xuqifeng import copy import logging import traceback class RPCException(Exception): message = "An Unknown RPC related exception occurred" def __init__(self, messa...
22.357143
73
0.596912
3.046875
3ba4c8cd331637d82b35af577e3a36bb72ed495d
1,539
swift
Swift
TestGitHub/Sources/Common/DateFormat.swift
olgavorona/TestGitHub
a17c64569a279409d1be001007f53ba951fa42b5
[ "MIT" ]
null
null
null
TestGitHub/Sources/Common/DateFormat.swift
olgavorona/TestGitHub
a17c64569a279409d1be001007f53ba951fa42b5
[ "MIT" ]
null
null
null
TestGitHub/Sources/Common/DateFormat.swift
olgavorona/TestGitHub
a17c64569a279409d1be001007f53ba951fa42b5
[ "MIT" ]
null
null
null
// // DateFormat.swift // TestGitHub // // Created by Olga Vorona on 23.12.2020. // import Foundation @objc public enum DateFormat: Int, CaseIterable, CustomStringConvertible { case standard case serverFull var value: String { switch self { case .serverFull: return "yyyy-...
26.084746
105
0.594542
3.3125
fa2875eb370191626b9bf75d3da59bf056e9ab65
5,925
swift
Swift
SwiftyBase/Classes/Control/PartiallyEditField.swift
mspvirajpatel/SwiftyBase
f6ddc8094512b11c7656fb61a02525e59fb1d6e1
[ "MIT" ]
31
2017-08-30T12:43:41.000Z
2022-02-08T14:37:31.000Z
SwiftyBase/Classes/Control/PartiallyEditField.swift
mspvirajpatel/SwiftyBase
f6ddc8094512b11c7656fb61a02525e59fb1d6e1
[ "MIT" ]
1
2017-09-07T04:16:01.000Z
2017-09-07T04:56:01.000Z
SwiftyBase/Classes/Control/PartiallyEditField.swift
mspvirajpatel/SwiftyBase
f6ddc8094512b11c7656fb61a02525e59fb1d6e1
[ "MIT" ]
21
2017-08-30T12:43:42.000Z
2021-04-02T06:42:54.000Z
// // PartiallyEditField.swift // SwiftyBase // // Created by Viraj Patel on 13/11/17. // import Foundation public enum PreTextSide: Int { case kNone case kLeft case kRight } /** * The PartiallyEditField will generate pretext for the textfield. */ open class PartiallyEditField: UITextField { o...
32.554945
157
0.561013
3.078125
93716c5c56edfb87347d5de01fa12ab34bfa9756
3,034
rs
Rust
zargo/src/command/download.rs
vikkkko/zincM
dd1fabf6d736ca2ac4884cca7a3929aadb9e7e28
[ "Apache-2.0" ]
291
2020-04-08T23:04:37.000Z
2022-03-27T06:53:46.000Z
zargo/src/command/download.rs
vikkkko/zincM
dd1fabf6d736ca2ac4884cca7a3929aadb9e7e28
[ "Apache-2.0" ]
14
2020-07-12T23:14:11.000Z
2021-10-04T15:51:06.000Z
zargo/src/command/download.rs
litezk/zinc
f28b41f172cfc14e6793ae5d6e37e59f1e406a7d
[ "Apache-2.0" ]
34
2020-04-30T02:15:55.000Z
2021-12-13T14:52:33.000Z
//! //! The Zargo package manager `download` subcommand. //! use std::path::PathBuf; use std::str::FromStr; use structopt::StructOpt; use crate::error::Error; use crate::http::downloader::Downloader; use crate::http::Client as HttpClient; use crate::network::Network; /// /// The Zargo package manager `download` sub...
27.581818
90
0.577456
3.25
a18118a6ca2fde0b3e43c9d426c35bb3e334ba52
1,617
go
Go
pkg/highlight/unicode.go
5paceToast/micro
9484e083244f6249df59b364f3584ce0e95cac79
[ "Apache-2.0", "MIT" ]
21,446
2016-03-23T19:56:03.000Z
2022-03-31T22:08:38.000Z
pkg/highlight/unicode.go
5paceToast/micro
9484e083244f6249df59b364f3584ce0e95cac79
[ "Apache-2.0", "MIT" ]
1,958
2016-04-17T21:51:01.000Z
2022-03-31T22:26:16.000Z
pkg/highlight/unicode.go
5paceToast/micro
9484e083244f6249df59b364f3584ce0e95cac79
[ "Apache-2.0", "MIT" ]
1,577
2016-04-18T02:33:59.000Z
2022-03-30T15:49:20.000Z
package highlight import ( "unicode" "unicode/utf8" ) var minMark = rune(unicode.Mark.R16[0].Lo) func isMark(r rune) bool { // Fast path if r < minMark { return false } return unicode.In(r, unicode.Mark) } // DecodeCharacter returns the next character from an array of bytes // A character is a rune along wi...
18.802326
68
0.672233
3.453125
c1ce13a49143e12b5f963e336148e6bc08da7f4b
5,243
lua
Lua
lua/gamemodes/survival/commands.lua
igor725/LuaClassic
5a1642e907cba6d26ad2ed7660bc1e22289cb019
[ "MIT" ]
9
2019-06-09T16:17:44.000Z
2021-11-23T02:46:38.000Z
lua/gamemodes/survival/commands.lua
codingwatching/LuaClassic
92beacaf8505fdff82fd25215bb15443601f8b68
[ "MIT" ]
1
2020-12-03T23:38:44.000Z
2021-08-08T04:52:30.000Z
lua/gamemodes/survival/commands.lua
codingwatching/LuaClassic
92beacaf8505fdff82fd25215bb15443601f8b68
[ "MIT" ]
4
2019-06-13T22:09:54.000Z
2022-03-04T14:20:20.000Z
--[[ Copyright (c) 2019 igor725, scaledteam released under The MIT license http://opensource.org/licenses/MIT ]] addCommand('give', function(isConsole, player, args) if #args < 1 then return false end local id, count, target if isConsole then if #args < 2 then return false end target = getPlayerByName(args[1...
24.966667
90
0.730879
3.03125
7f0eb80d8aa6256c4e622a142b8edadd7657c4c8
10,592
rs
Rust
base/src/error.rs
Snarpix/gluon
25d949b8836d0cd28adc027f8d0e4e20a102aca1
[ "MIT" ]
2,261
2016-10-07T19:32:31.000Z
2022-03-31T18:35:43.000Z
base/src/error.rs
Snarpix/gluon
25d949b8836d0cd28adc027f8d0e4e20a102aca1
[ "MIT" ]
636
2016-10-08T01:43:31.000Z
2022-02-04T18:12:38.000Z
base/src/error.rs
Snarpix/gluon
25d949b8836d0cd28adc027f8d0e4e20a102aca1
[ "MIT" ]
156
2016-10-08T19:17:17.000Z
2022-02-16T07:53:21.000Z
//! Module containing a few common error wrappers which allows more information to be saved for //! later display to the user use std::any::Any; use std::error::Error as StdError; use std::fmt; use std::iter::{Extend, FromIterator}; use std::ops::{Index, IndexMut}; use std::slice; use std::str; use std::vec; use code...
24.293578
98
0.525491
3.140625
8ac88f7873431cf53dfcb46d44cf51970fa164a5
6,279
kt
Kotlin
@old/korge-spriter/src/commonMain/kotlin/com/soywiz/korge/ext/spriter/com/brashmonkey/spriter/Calculator.kt
jfbilodeau/korge
fb2be4c25a32fa6a4a200badcf9b610f115f763c
[ "Apache-2.0" ]
1,212
2017-08-28T04:02:19.000Z
2022-03-30T04:32:23.000Z
@old/korge-spriter/src/commonMain/kotlin/com/soywiz/korge/ext/spriter/com/brashmonkey/spriter/Calculator.kt
jfbilodeau/korge
fb2be4c25a32fa6a4a200badcf9b610f115f763c
[ "Apache-2.0" ]
353
2017-10-26T10:39:30.000Z
2022-03-22T14:08:55.000Z
@old/korge-spriter/src/commonMain/kotlin/com/soywiz/korge/ext/spriter/com/brashmonkey/spriter/Calculator.kt
jfbilodeau/korge
fb2be4c25a32fa6a4a200badcf9b610f115f763c
[ "Apache-2.0" ]
77
2017-10-19T23:10:06.000Z
2022-02-22T22:42:40.000Z
package com.soywiz.korge.ext.spriter.com.brashmonkey.spriter import com.soywiz.korio.* import com.soywiz.korma.geom.* import kotlin.math.* /** * A utility class which provides methods to calculate Spriter specific issues, * like linear interpolation and rotation around a parent object. * Other interpolation types ...
24.916667
99
0.619525
3.328125
e0ccf24b6e7f58f48d1befa403f02482ef446a04
12,686
lua
Lua
ESX/server.lua
0resmon/0R-admin
25c6e0a1c0b9befdee372c50c7cb33cb28363ed1
[ "MIT" ]
8
2021-09-27T19:24:56.000Z
2022-03-19T00:10:46.000Z
ESX/server.lua
0resmon/0R-admin
25c6e0a1c0b9befdee372c50c7cb33cb28363ed1
[ "MIT" ]
1
2021-10-03T18:41:12.000Z
2021-10-03T18:41:12.000Z
ESX/server.lua
0resmon/0R-admin
25c6e0a1c0b9befdee372c50c7cb33cb28363ed1
[ "MIT" ]
9
2021-09-27T19:38:32.000Z
2022-03-13T19:38:54.000Z
ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) AddEventHandler('playerConnecting', function(name, setCallback, defer) defer.defer() local banned = false local src = source defer.update(L("CHECKING_BANLIST")) local bans = exports.ghmattimysql:executeSync("SELECT identi...
31.093137
178
0.674365
3.1875
ccffe8b77e927a8a8f1a62cf12062db15ffb09c5
1,841
lua
Lua
3DDemo1/assets/scenes/menu.lua
hgy29/GIDEROS_LUAU_SAMPLES
abedadd4542967042b99b0383aa60e9e3d15907b
[ "MIT" ]
null
null
null
3DDemo1/assets/scenes/menu.lua
hgy29/GIDEROS_LUAU_SAMPLES
abedadd4542967042b99b0383aa60e9e3d15907b
[ "MIT" ]
null
null
null
3DDemo1/assets/scenes/menu.lua
hgy29/GIDEROS_LUAU_SAMPLES
abedadd4542967042b99b0383aa60e9e3d15907b
[ "MIT" ]
1
2022-03-11T07:54:57.000Z
2022-03-11T07:54:57.000Z
Menu = Core.class(Sprite) function Menu:init() -- BG application:setBackgroundColor(0x1234AA) -- a button local btn01 = ButtonMonster.new({ pixelcolorup=0x00ff00, pixelcolordown=0x0000ff, text="let's go!", textscalexup=6, }, 1) -- position btn01:setPosition(myappwidth/2, 3*myappheight/10) -- or...
32.875
110
0.745247
3.203125
2e4c829fa6c657780dce45008da5142e943be37b
1,358
lua
Lua
src/main/lua/art/storage/cluster/space.lua
art-community/art-tarantool
4a1a0ecdfbeff958ca231500126a8bae463e9dbd
[ "Apache-2.0" ]
null
null
null
src/main/lua/art/storage/cluster/space.lua
art-community/art-tarantool
4a1a0ecdfbeff958ca231500126a8bae463e9dbd
[ "Apache-2.0" ]
null
null
null
src/main/lua/art/storage/cluster/space.lua
art-community/art-tarantool
4a1a0ecdfbeff958ca231500126a8bae463e9dbd
[ "Apache-2.0" ]
null
null
null
local space = { cancellerFiber = nil, checkOperationAvailability = function(operation, args) art.box.space.waitForClusterOperation() art.box.space.activeClusterOperation = true art.cluster.space.cancellerFiber = art.core.fiber.create(art.cluster.space.autoCanceller) local result...
30.863636
97
0.635493
3.03125
e2c450f08b2de7c75b8add925102f1f5cb976967
2,288
lua
Lua
mock/sqscript/SQNodeIf.lua
tommo/mock
276f0b5acf1ee41e84d5a80a5e12bf81ebaf8815
[ "MIT" ]
8
2015-12-14T16:09:13.000Z
2019-12-12T17:22:56.000Z
mock/sqscript/SQNodeIf.lua
tommo/mock
276f0b5acf1ee41e84d5a80a5e12bf81ebaf8815
[ "MIT" ]
null
null
null
mock/sqscript/SQNodeIf.lua
tommo/mock
276f0b5acf1ee41e84d5a80a5e12bf81ebaf8815
[ "MIT" ]
5
2015-02-16T08:47:31.000Z
2019-12-12T17:22:59.000Z
module 'mock' -------------------------------------------------------------------- CLASS: SQNodeIf ( SQNodeGroup ) :MODEL{} function SQNodeIf:__init() self.expr = false end function SQNodeIf:load( data ) self.expr = data.args[ 1 ] local valueFunc, err = loadEvalScriptWithEnv( self.expr ) if not valueFunc then ...
23.346939
68
0.659091
3.171875
b14d3262a54a8a0dbe965c24d5a7a90600966352
1,651
c
C
chapter_01/1-22.c
ryo-utsunomiya/answers_to_c_programming_language
b5a4ee2e2ef4c8273af3a2276a3a5f7a66012331
[ "MIT" ]
null
null
null
chapter_01/1-22.c
ryo-utsunomiya/answers_to_c_programming_language
b5a4ee2e2ef4c8273af3a2276a3a5f7a66012331
[ "MIT" ]
null
null
null
chapter_01/1-22.c
ryo-utsunomiya/answers_to_c_programming_language
b5a4ee2e2ef4c8273af3a2276a3a5f7a66012331
[ "MIT" ]
null
null
null
/** * Exercise 1-22 * * Write a program to “fold” long input lines into two or more shorter lines after the last non-blank character that * occurs before the n-th column of input. Make sure your program does something intelligent with very long lines, and * if there are no blanks or tabs before the specified colum...
22.930556
118
0.411266
3.3125
8688af2d119bbeb956d3989cf4bfe400516e7e0c
1,993
rs
Rust
examples/receive.rs
gitter-badger/coremidi
60d5bf18ecf3e4abb66f4830e6ece94558129fc1
[ "MIT" ]
null
null
null
examples/receive.rs
gitter-badger/coremidi
60d5bf18ecf3e4abb66f4830e6ece94558129fc1
[ "MIT" ]
null
null
null
examples/receive.rs
gitter-badger/coremidi
60d5bf18ecf3e4abb66f4830e6ece94558129fc1
[ "MIT" ]
null
null
null
extern crate coremidi; use std::env; fn main() { let source_index = get_source_index(); println!("Source index: {}", source_index); let source = coremidi::Source::from_index(source_index); println!("Source display name: {}", source.display_name().unwrap()); let client = coremidi::Client::new("ex...
30.19697
93
0.538384
3.28125
d4da4511b7d7a97d494cce68974850c235770652
1,683
rs
Rust
src/main.rs
jddf/jddf-codegen
5320efebbc407f76793129d008a3ab218c6fa57c
[ "MIT" ]
null
null
null
src/main.rs
jddf/jddf-codegen
5320efebbc407f76793129d008a3ab218c6fa57c
[ "MIT" ]
null
null
null
src/main.rs
jddf/jddf-codegen
5320efebbc407f76793129d008a3ab218c6fa57c
[ "MIT" ]
null
null
null
mod target; mod targets; use clap::{App, AppSettings, Arg}; use failure::Error; use jddf::{Schema, SerdeSchema}; use std::fs::File; use target::Target; fn main() -> Result<(), Error> { let app = App::new("jddf-codegen") .version("0.1") .about("Generates data structures from JDDF schemas") ...
27.145161
74
0.592989
3.015625
ebba17527a3b26dc119432db6fdce779c0d1bc78
3,914
lua
Lua
CommunityContent/NPC AI Kit/Scripts/NPCWaypoint.lua
evilotaku/MGD-Core-Tutorial
6ca2f592c55f42f9bc0194152acfdc0c7b0ff669
[ "MIT" ]
3
2021-03-27T00:20:13.000Z
2021-08-17T08:53:59.000Z
Data/Subfolders/NPC AI Kit/Scripts/NPCWaypoint.lua
Core-Team-META/CC-Quest-System
477ce5ad6e297642f9bae95596cf6569c604c8bb
[ "Apache-2.0" ]
null
null
null
Data/Subfolders/NPC AI Kit/Scripts/NPCWaypoint.lua
Core-Team-META/CC-Quest-System
477ce5ad6e297642f9bae95596cf6569c604c8bb
[ "Apache-2.0" ]
1
2021-06-15T03:59:23.000Z
2021-06-15T03:59:23.000Z
--[[ NPC Waypoint by: standardcombo v1.0.0 The waypoint detects NPCs entering its trigger and directs them to move to the next objective. Can be used for patrolling behaviors, random folks in town, traffic lanes, etc. See the "Waypoint Example" template that is part of this package. Any object that enters the waypo...
30.818898
109
0.753449
3.09375
efb7a6c2089d4ecc1b1947737290313d332ec7bb
1,148
kt
Kotlin
app/src/main/kotlin/com/vsouhrada/kotlin/android/anko/fibo/core/session/ISession.kt
Squibblet/206CDE_Attendance_System
8c72986ebecb845d71fb0bacdcfd5a05c53fff9b
[ "Apache-2.0" ]
null
null
null
app/src/main/kotlin/com/vsouhrada/kotlin/android/anko/fibo/core/session/ISession.kt
Squibblet/206CDE_Attendance_System
8c72986ebecb845d71fb0bacdcfd5a05c53fff9b
[ "Apache-2.0" ]
null
null
null
app/src/main/kotlin/com/vsouhrada/kotlin/android/anko/fibo/core/session/ISession.kt
Squibblet/206CDE_Attendance_System
8c72986ebecb845d71fb0bacdcfd5a05c53fff9b
[ "Apache-2.0" ]
null
null
null
package com.vsouhrada.kotlin.android.anko.fibo.core.session /** * @author vsouhrada * @since 0.1.0 */ interface ISession { /** * Method is call when session should be open and in case of that method *refresh* was called on [ISessionManager] * @since 0.1.0 */ fun openSession() /** * Called when s...
22.076923
116
0.63676
3.09375
0c85c0c3fc3e88d3d1512b447e6a7c16569279b2
1,376
py
Python
nginx_rtmp_wizard/models.py
Gerhut/nginx-rtmp-wizard
c821c3bb262503ee26408b8b3bf4a252b49a29d6
[ "Unlicense" ]
null
null
null
nginx_rtmp_wizard/models.py
Gerhut/nginx-rtmp-wizard
c821c3bb262503ee26408b8b3bf4a252b49a29d6
[ "Unlicense" ]
1
2021-06-10T20:32:59.000Z
2021-06-10T20:32:59.000Z
nginx_rtmp_wizard/models.py
Gerhut/nginx-rtmp-wizard
c821c3bb262503ee26408b8b3bf4a252b49a29d6
[ "Unlicense" ]
null
null
null
from django.conf import settings from django.core import validators from django.db import models DEFAULT_RTMP_PORT = 1935 class Server(models.Model): listen = models.PositiveIntegerField( default=DEFAULT_RTMP_PORT, unique=True, validators=[ validators.MinValueValidator(1024), ...
27.52
77
0.634448
3.296875
e74da2d78d304199dfccbeca07631b9f42b9d6aa
935
js
JavaScript
reactPrimerosPasos/basicos/src/components/Producto.js
maxicosia/maxicosia.github.io
36bd9d5dcb199b4cab890128624d45bb3450f34b
[ "MIT" ]
null
null
null
reactPrimerosPasos/basicos/src/components/Producto.js
maxicosia/maxicosia.github.io
36bd9d5dcb199b4cab890128624d45bb3450f34b
[ "MIT" ]
10
2020-05-08T22:33:38.000Z
2022-03-02T10:14:24.000Z
reactPrimerosPasos/basicos/src/components/Producto.js
maxicosia/maxicosia.github.io
36bd9d5dcb199b4cab890128624d45bb3450f34b
[ "MIT" ]
1
2020-05-08T18:54:14.000Z
2020-05-08T18:54:14.000Z
import React from "react"; const Producto = ({ producto, carrito, agregarProducto, productos }) => { const { nombre, precio, id } = producto; //Agregar producto al carrito const seleccionarProducto = (id) => { const producto = productos.filter((producto) => producto.id === id)[0]; agregarProducto([...ca...
23.974359
75
0.586096
3.03125
a07384c93e6f601fd0987241c409b99976c3d998
1,931
lua
Lua
kong/db/dao/vaults.lua
liyangau/kong
57f9ac4b92017ae34922773118e9d4caa9b19f08
[ "ECL-2.0", "Apache-2.0" ]
1
2022-03-12T22:13:37.000Z
2022-03-12T22:13:37.000Z
kong/db/dao/vaults.lua
johnfishbein/kong
6c0154e77985fc7b3bd5bdf6dfe924bf6dfd7ae3
[ "ECL-2.0", "Apache-2.0" ]
5
2022-02-16T15:57:27.000Z
2022-03-29T00:06:06.000Z
kong/db/dao/vaults.lua
johnfishbein/kong
6c0154e77985fc7b3bd5bdf6dfe924bf6dfd7ae3
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
local constants = require "kong.constants" local utils = require "kong.tools.utils" local vault_loader = require "kong.db.schema.vault_loader" local Vaults = {} local type = type local pairs = pairs local concat = table.concat local insert = table.insert local tostring = tostring local log = ngx.log local WARN = ...
21.943182
87
0.701191
3.34375
d45383d66c3a021c9c9768a3b0d28a1c7b9fdec4
3,933
lua
Lua
scripts/states/creeperEffect.lua
nanderv/LD41
1ccfa25fa76dfcf86e0dc314c0e13f3116904f72
[ "BSD-3-Clause" ]
null
null
null
scripts/states/creeperEffect.lua
nanderv/LD41
1ccfa25fa76dfcf86e0dc314c0e13f3116904f72
[ "BSD-3-Clause" ]
null
null
null
scripts/states/creeperEffect.lua
nanderv/LD41
1ccfa25fa76dfcf86e0dc314c0e13f3116904f72
[ "BSD-3-Clause" ]
null
null
null
-- -- Created by IntelliJ IDEA. -- User: nander -- Date: 21/04/2018 -- Time: 18:03 -- To change this template use File | Settings | File Templates. -- -- -- Created by IntelliJ IDEA. -- User: nander -- Date: 21/04/2018 -- Time: 18:25 -- To change this template use File | Settings | File Templates. -- local menu = {} ...
28.708029
156
0.660564
3.140625
9dd71fac75b849d02211ccd58050b9f05f9b57f2
3,086
swift
Swift
Sources/SwiftUIToolbox/Extensions/Publishers/Publishers+CombineLatestCollection.swift
devQQ/SwiftUIToolbox
c4286ea7fd19c24b92e7bb24cbe418a38b331dae
[ "MIT" ]
null
null
null
Sources/SwiftUIToolbox/Extensions/Publishers/Publishers+CombineLatestCollection.swift
devQQ/SwiftUIToolbox
c4286ea7fd19c24b92e7bb24cbe418a38b331dae
[ "MIT" ]
null
null
null
Sources/SwiftUIToolbox/Extensions/Publishers/Publishers+CombineLatestCollection.swift
devQQ/SwiftUIToolbox
c4286ea7fd19c24b92e7bb24cbe418a38b331dae
[ "MIT" ]
null
null
null
// // Publishers+CombineLatestCollection.swift // // // Created by Q Trang on 8/1/20. // import Foundation import Combine extension Collection where Element: Publisher { public func combineLatest(waitForAllPublishers wait: Bool = true) -> CombineLatestCollection<Self> { CombineLatestCollection(self, w...
33.912088
125
0.529488
3.109375
7ffe8d53372253ef7c79103b3298346a603047c0
1,328
go
Go
pkg/tile/proxy_test.go
fafeitsch/Open-Traffic-Sandbox
5682995e1956bcec07736007070d295f2a15007b
[ "MIT" ]
null
null
null
pkg/tile/proxy_test.go
fafeitsch/Open-Traffic-Sandbox
5682995e1956bcec07736007070d295f2a15007b
[ "MIT" ]
null
null
null
pkg/tile/proxy_test.go
fafeitsch/Open-Traffic-Sandbox
5682995e1956bcec07736007070d295f2a15007b
[ "MIT" ]
null
null
null
package tile import ( "fmt" "github.com/stretchr/testify/assert" "net/http" "net/http/httptest" "net/url" "testing" ) func TestNewProxy(t *testing.T) { t.Run("no redirect", func(t *testing.T) { server := httptest.NewServer(http.HandlerFunc(func(writer http.ResponseWriter, request *http.Request) { writer.W...
36.888889
128
0.685994
3.015625
54720744bdc96f85b7b00ede8f55486c542f3dec
3,387
go
Go
lib/quotes/yahoo/yahoo.go
sboehler/knut
f5b754b08c9c0f97db3bb237c0fbac7deb33baa4
[ "Apache-2.0" ]
42
2020-11-28T22:35:53.000Z
2022-03-05T19:15:44.000Z
lib/quotes/yahoo/yahoo.go
sboehler/knut
f5b754b08c9c0f97db3bb237c0fbac7deb33baa4
[ "Apache-2.0" ]
5
2021-01-03T21:51:47.000Z
2021-11-22T13:53:51.000Z
lib/quotes/yahoo/yahoo.go
sboehler/knut
f5b754b08c9c0f97db3bb237c0fbac7deb33baa4
[ "Apache-2.0" ]
7
2020-11-23T23:15:22.000Z
2022-02-20T12:08:31.000Z
// Copyright 2021 Silvio Böhler // // 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 ...
22.430464
78
0.656038
3.015625
86502ec9713367b4f1cb452d57f0f2214dee1027
18,390
rs
Rust
gui/src/rust/ide/src/double_representation/graph.rs
vitvakatu/enso
99053decd8790a7c533d56065d92548fcb512503
[ "Apache-2.0" ]
null
null
null
gui/src/rust/ide/src/double_representation/graph.rs
vitvakatu/enso
99053decd8790a7c533d56065d92548fcb512503
[ "Apache-2.0" ]
null
null
null
gui/src/rust/ide/src/double_representation/graph.rs
vitvakatu/enso
99053decd8790a7c533d56065d92548fcb512503
[ "Apache-2.0" ]
null
null
null
//! Code for retrieving graph description from AST. use crate::prelude::*; use crate::double_representation::definition::DefinitionInfo; use crate::double_representation::definition::DefinitionProvider; use crate::double_representation::node; use crate::double_representation::node::LocatedNode; use crate::double_repr...
37.302231
110
0.601958
3.125
5efd0672d9053fa4e6bd2901e58a4d2d802a8d92
6,895
asm
Assembly
Tools/System/Minnow5DataManipulation.asm
jaredwhitney/os3
05e0cda4670da093cc720d0dccbfeb29e788fa0f
[ "MIT" ]
5
2015-02-25T01:28:09.000Z
2021-05-22T09:03:04.000Z
Tools/System/Minnow5DataManipulation.asm
jaredwhitney/os3
05e0cda4670da093cc720d0dccbfeb29e788fa0f
[ "MIT" ]
38
2015-02-10T18:37:11.000Z
2017-10-03T03:08:50.000Z
Tools/System/Minnow5DataManipulation.asm
jaredwhitney/os3
05e0cda4670da093cc720d0dccbfeb29e788fa0f
[ "MIT" ]
2
2016-05-06T22:48:46.000Z
2017-01-12T19:28:49.000Z
Minnow5.appendDataBlock : ; qword buffer (file) in eax, returns eax=blockptr methodTraceEnter pusha push eax ; interface setting mov eax, [eax+0x0] call Minnow5.setInterfaceSmart pop eax mov eax, [eax+0x4] mov dword [.base], eax call Minnow5.findFreeBlock ; find a free block mov dword [.block], ebx...
20.893939
134
0.655112
3.078125
0e3a1fa6911fb97236da1ed645fbe345fb0b5239
5,205
lua
Lua
lua/starfall/preprocessor.lua
Mijyuoon/starfall
f5faa0750c9b9f9848a9e68d0d7b1753210e9db0
[ "BSD-3-Clause" ]
null
null
null
lua/starfall/preprocessor.lua
Mijyuoon/starfall
f5faa0750c9b9f9848a9e68d0d7b1753210e9db0
[ "BSD-3-Clause" ]
null
null
null
lua/starfall/preprocessor.lua
Mijyuoon/starfall
f5faa0750c9b9f9848a9e68d0d7b1753210e9db0
[ "BSD-3-Clause" ]
2
2021-04-20T14:50:10.000Z
2021-07-07T18:27:41.000Z
------------------------------------------------------------------------------- -- SF Preprocessor. -- Processes code for compile time directives. ------------------------------------------------------------------------------- -- TODO: Make an @include-only parser SF.Preprocessor = {} SF.Preprocessor.directives = {} ...
29.913793
92
0.640538
3.234375
95bb40c2fdede4768fb90c9d98aab2c147822ec5
43,938
sql
SQL
app/database/scripts/wellsearch/wells_replication_stored_functions.sql
cedar-technologies/gwells
9023034698a9c25e5a49193242678c1aee3c6f4d
[ "Apache-2.0" ]
1
2020-01-29T22:42:40.000Z
2020-01-29T22:42:40.000Z
app/database/scripts/wellsearch/wells_replication_stored_functions.sql
cedar-technologies/gwells
9023034698a9c25e5a49193242678c1aee3c6f4d
[ "Apache-2.0" ]
1
2018-05-02T05:28:33.000Z
2018-05-09T15:58:07.000Z
app/database/scripts/wellsearch/wells_replication_stored_functions.sql
cedar-technologies/gwells
9023034698a9c25e5a49193242678c1aee3c6f4d
[ "Apache-2.0" ]
1
2018-05-02T23:56:48.000Z
2018-05-02T23:56:48.000Z
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distrib...
42.411197
155
0.584414
3.015625
0b39211e58c62524837539f8c02eb738f733141e
1,037
py
Python
GraphSAGE/fix.py
attre2vec/attre2vec
f36a2581f3d17887d6201a76624d4ced93d6503f
[ "MIT" ]
null
null
null
GraphSAGE/fix.py
attre2vec/attre2vec
f36a2581f3d17887d6201a76624d4ced93d6503f
[ "MIT" ]
null
null
null
GraphSAGE/fix.py
attre2vec/attre2vec
f36a2581f3d17887d6201a76624d4ced93d6503f
[ "MIT" ]
null
null
null
import pickle import networkx as nx import numpy as np import torch for name in ('cora', 'citeseer', 'pubmed'): with open(f'data/datasets/{name}.pkl', 'rb') as fin: dataset = pickle.load(fin) test_graph = dataset['original_graph'] e2i = dataset['edge2idx'] H = dataset['H'] node_fts = to...
25.925
70
0.580521
3.125
cb8b3d39476b988461cc3bd81b209d2441d29158
2,859
go
Go
cmd/gopmctl/main.go
brettbuddin/gopm
c1f851755872a27f9f7e2f6a1ff8664b6198506d
[ "MIT" ]
null
null
null
cmd/gopmctl/main.go
brettbuddin/gopm
c1f851755872a27f9f7e2f6a1ff8664b6198506d
[ "MIT" ]
null
null
null
cmd/gopmctl/main.go
brettbuddin/gopm
c1f851755872a27f9f7e2f6a1ff8664b6198506d
[ "MIT" ]
null
null
null
package main import ( "fmt" "os" "strings" "text/tabwriter" "github.com/logrusorgru/aurora" "github.com/spf13/cobra" "github.com/stuartcarnie/gopm/config" "github.com/stuartcarnie/gopm/rpc" "google.golang.org/grpc" ) type Control struct { Configuration string Address string client rpc.GopmClient }...
23.056452
121
0.684855
3
0bcfb65f371793f7e6f494b825fee38b4329d334
7,098
js
JavaScript
src/parser.js
dragonhailstone/m42kup
d5561945a31c995e8b19d9c75ae2591ec3206bb9
[ "MIT" ]
null
null
null
src/parser.js
dragonhailstone/m42kup
d5561945a31c995e8b19d9c75ae2591ec3206bb9
[ "MIT" ]
null
null
null
src/parser.js
dragonhailstone/m42kup
d5561945a31c995e8b19d9c75ae2591ec3206bb9
[ "MIT" ]
null
null
null
function input2pt(input) { var levels = [], stack = []; function push(fragment) { // normalize text if (fragment.type == 'text' && stack.length && stack[stack.length - 1].type == 'text') { var prepend = stack.pop(); fragment = { type: 'text', start: prepend.start, end: fragment.end, ...
21.251497
111
0.554945
3.046875
c34e8d465fd7724ea767d7527c6612a040dd6fe2
1,299
go
Go
parse.go
mkeeler/pointerstructure
f252a8fd71c835fa8c8ead2ce2cc3a91e214cf83
[ "MIT" ]
null
null
null
parse.go
mkeeler/pointerstructure
f252a8fd71c835fa8c8ead2ce2cc3a91e214cf83
[ "MIT" ]
null
null
null
parse.go
mkeeler/pointerstructure
f252a8fd71c835fa8c8ead2ce2cc3a91e214cf83
[ "MIT" ]
1
2021-02-02T00:01:17.000Z
2021-02-02T00:01:17.000Z
package pointerstructure import ( "fmt" "strings" ) // Parse parses a pointer from the input string. The input string // is expected to follow the format specified by RFC 6901: '/'-separated // parts. Each part can contain escape codes to contain '/' or '~'. func Parse(input string) (*Pointer, error) { // Special ...
22.396552
72
0.640493
3.359375
9e9dd5978796a3c1d073a35cdc2594060765692b
2,386
rs
Rust
src/tooling/reader.rs
deltapi/aoc2020-rs
770fc31e7ce9101a9073321d7c2d0aa016d12266
[ "MIT" ]
1
2020-12-04T21:23:40.000Z
2020-12-04T21:23:40.000Z
src/tooling/reader.rs
deltapi/aoc2020-rs
770fc31e7ce9101a9073321d7c2d0aa016d12266
[ "MIT" ]
null
null
null
src/tooling/reader.rs
deltapi/aoc2020-rs
770fc31e7ce9101a9073321d7c2d0aa016d12266
[ "MIT" ]
null
null
null
use std::fs::File; use std::io::{self, BufRead}; use std::path::Path; pub fn read_file_to_vec(path: &str) -> Vec<usize> { let mut entries = vec![]; if let Ok(lines) = read_lines(path) { for line in lines { if let Ok(ip) = line { entries.push(ip.parse::<usize>().unwrap()); ...
25.655914
77
0.436714
3.078125
856ce1c3c2a2dcde8a5682cbfe0aa954e45042d7
3,256
js
JavaScript
crawler/fetchStandards.js
gnehs/ntut-course-crawler-node
2084e374e6930135ffcfaaa22604b357c47b43ec
[ "MIT" ]
2
2021-02-26T08:37:37.000Z
2021-02-28T18:43:10.000Z
crawler/fetchStandards.js
gnehs/ntut-course-crawler-node
2084e374e6930135ffcfaaa22604b357c47b43ec
[ "MIT" ]
null
null
null
crawler/fetchStandards.js
gnehs/ntut-course-crawler-node
2084e374e6930135ffcfaaa22604b357c47b43ec
[ "MIT" ]
null
null
null
const { fetchSinglePage } = require('./fetchSinglePage') const jsonfile = require('jsonfile'); const fs = require('fs'); const pangu = require('./tools/pangu').spacing; async function main() { let $ = await fetchSinglePage('https://aps.ntut.edu.tw/course/tw/Cprog.jsp?format=-1') let years = [] for (let yr o...
38.305882
126
0.558354
3.078125
1e42ea2deb67ec282bdca0b60a66ee53ccd30f42
3,828
lua
Lua
Start.lua
Venika/LuaPrograms
4c0cb662b0fd171192d0f661ce3b074de470764f
[ "MIT" ]
null
null
null
Start.lua
Venika/LuaPrograms
4c0cb662b0fd171192d0f661ce3b074de470764f
[ "MIT" ]
1
2018-01-29T07:53:29.000Z
2018-01-29T08:42:22.000Z
Start.lua
Venika/LuaRockPaperScissors
4c0cb662b0fd171192d0f661ce3b074de470764f
[ "MIT" ]
null
null
null
local composer = require( "composer" ) local scene = composer.newScene() local options ={ effect = "fade", time=200 } --------------------------------------------------------------------------------- -- All code outside of the listener functions will only be executed ONCE -- unless "composer.removeScene()...
28.355556
131
0.581766
3.078125
ae5568f97858db34d551a260f52a507d47adafe3
964
rs
Rust
src/utils.rs
EngineOrion/container
03bdd229cdf4ac25238314c4b60586d28c33c38e
[ "MIT" ]
null
null
null
src/utils.rs
EngineOrion/container
03bdd229cdf4ac25238314c4b60586d28c33c38e
[ "MIT" ]
null
null
null
src/utils.rs
EngineOrion/container
03bdd229cdf4ac25238314c4b60586d28c33c38e
[ "MIT" ]
null
null
null
pub fn print_startup() { println!( " +-------------+ | Container | | v{} | +-------------+ ", env!("CARGO_PKG_VERSION") ); } pub fn print_help() { println!( r#"Usage: ./container [options] start start the application help print this help text repl st...
25.368421
72
0.54668
3.125
4c9147e4b94c987c89cc00075bf420933d637454
2,969
swift
Swift
Tests/Rocc/AsyncWhileTests.swift
gswirski/rocc
57f7934c096c27efc12981b691a81e85359bcfb9
[ "MIT" ]
71
2019-02-26T20:11:59.000Z
2022-03-29T18:12:56.000Z
Tests/Rocc/AsyncWhileTests.swift
simonmitchell/rocc
b8b29207e808c1a2e5b397f4d4c0950149e8b76d
[ "MIT" ]
40
2019-04-24T08:03:17.000Z
2021-08-10T07:48:59.000Z
Tests/Rocc/AsyncWhileTests.swift
gswirski/rocc
57f7934c096c27efc12981b691a81e85359bcfb9
[ "MIT" ]
6
2019-08-11T12:44:45.000Z
2022-02-04T00:38:09.000Z
// // AsyncWhileTests.swift // RoccTests // // Created by Simon Mitchell on 19/11/2019. // Copyright © 2019 Simon Mitchell. All rights reserved. // import XCTest @testable import Rocc class AsyncWhileTests: XCTestCase { func testTimeoutCalledBeforeBreakingTwice() { var continueCalls: Int = 0...
26.990909
74
0.529471
3.109375
85bf0fed252edb69e5181ccd21ee2a61d4d1f97d
1,453
rs
Rust
backend/src/types/ws.rs
jay3332/KeyMaster
927b453c70d240bdfdc4c82c92de4ffc1756f966
[ "MIT" ]
2
2021-12-27T01:28:23.000Z
2021-12-28T00:46:34.000Z
backend/src/types/ws.rs
jay3332/KeyMaster
927b453c70d240bdfdc4c82c92de4ffc1756f966
[ "MIT" ]
null
null
null
backend/src/types/ws.rs
jay3332/KeyMaster
927b453c70d240bdfdc4c82c92de4ffc1756f966
[ "MIT" ]
null
null
null
use crate::types::Quote; use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize, Debug, Clone)] #[serde(tag = "op", content = "data")] pub enum WebSocketInboundEvent { /// Sends information about who is connecting to the websocket and for what intent. /// This operation is required before any oth...
27.942308
94
0.645561
3.359375
31f1e638594b126919fb5b25385de1d366ea1adc
5,932
lua
Lua
tank.lua
71460-4-F/Tank_WTISC_UFC
0b88988b1774c3441a8478c037a93c722423816a
[ "MIT" ]
null
null
null
tank.lua
71460-4-F/Tank_WTISC_UFC
0b88988b1774c3441a8478c037a93c722423816a
[ "MIT" ]
1
2019-02-05T00:04:02.000Z
2019-02-05T00:04:02.000Z
tank.lua
71460-4-F/Tank_WTISC_UFC
0b88988b1774c3441a8478c037a93c722423816a
[ "MIT" ]
null
null
null
bullet = class:new() bullet.x = 0 bullet.y = 0 bullet.speed = 1000 bullet.angle = 0 bullet.raio = 10 function bullet:draw() love.graphics.setColor(0, 0, 0) love.graphics.circle('fill', self.x, self.y, self.raio) end function bullet:update(dt) self.x = self.x + dt*self.speed*math.cos(self.angle) self.y...
28.382775
144
0.603675
3.171875
584baa75f023df3c6bd0fa4f8206cbac617d965f
2,910
kt
Kotlin
app/src/main/java/com/tardivon/quentin/hackoeur/Event.kt
quentin-tardivon/hackoeur-android
eb71cfece8dd9144a669f9b4cb84ab60752e3970
[ "MIT" ]
null
null
null
app/src/main/java/com/tardivon/quentin/hackoeur/Event.kt
quentin-tardivon/hackoeur-android
eb71cfece8dd9144a669f9b4cb84ab60752e3970
[ "MIT" ]
5
2018-01-20T14:51:52.000Z
2018-01-20T14:51:52.000Z
app/src/main/java/com/tardivon/quentin/hackoeur/Event.kt
quentin-tardivon/hackoeur-android
eb71cfece8dd9144a669f9b4cb84ab60752e3970
[ "MIT" ]
null
null
null
package com.tardivon.quentin.hackoeur import android.os.Parcel import android.os.Parcelable /** * Created by quentin on 11/13/17. */ class Event() : Parcelable { var name: String? =null internal set var description: String?=null internal set var location: String? =null internal s...
30
173
0.623711
3.21875
b7197765f83447df87de9671e0d83b600483e63e
2,568
kt
Kotlin
core/src/main/java/com/mobilejazz/harmony/kotlin/core/repository/datasource/file/FileStreamValueDataStorage.kt
mobilejazz/harmony-kotlin
364b610d9ed818ff102cfe779a7ee23f4d5595d5
[ "Apache-2.0" ]
10
2020-07-22T06:51:51.000Z
2022-03-29T17:05:18.000Z
core/src/main/java/com/mobilejazz/harmony/kotlin/core/repository/datasource/file/FileStreamValueDataStorage.kt
mobilejazz/harmony-kotlin
364b610d9ed818ff102cfe779a7ee23f4d5595d5
[ "Apache-2.0" ]
37
2019-07-23T09:41:09.000Z
2022-03-31T09:01:53.000Z
core/src/main/java/com/mobilejazz/harmony/kotlin/core/repository/datasource/file/FileStreamValueDataStorage.kt
mobilejazz/harmony-kotlin
364b610d9ed818ff102cfe779a7ee23f4d5595d5
[ "Apache-2.0" ]
null
null
null
package com.mobilejazz.harmony.kotlin.core.repository.datasource.file import com.mobilejazz.harmony.kotlin.core.repository.datasource.DeleteDataSource import com.mobilejazz.harmony.kotlin.core.repository.datasource.GetDataSource import com.mobilejazz.harmony.kotlin.core.repository.datasource.PutDataSource import com.m...
31.703704
108
0.67796
3.09375
de9bf10781608cc332e58d91b799e26a6f9d34a5
1,067
kt
Kotlin
App/app/src/test/java/at/tugraz/vaccinationpassport/UserTest.kt
sw21-tug/Team_20
04a904fada50a3a710e3163634ce38cf4b83d4c7
[ "MIT" ]
null
null
null
App/app/src/test/java/at/tugraz/vaccinationpassport/UserTest.kt
sw21-tug/Team_20
04a904fada50a3a710e3163634ce38cf4b83d4c7
[ "MIT" ]
33
2021-04-28T08:55:47.000Z
2021-06-10T20:03:58.000Z
App/app/src/test/java/at/tugraz/vaccinationpassport/UserTest.kt
sw21-tug/Team_20
04a904fada50a3a710e3163634ce38cf4b83d4c7
[ "MIT" ]
9
2021-04-28T09:02:41.000Z
2021-06-10T17:37:28.000Z
package at.tugraz.vaccinationpassport import org.junit.Test import org.junit.Assert.* class UserTest { @Test fun addVaccinesTest() { val user = User("John Doe", 27) user.addVaccination(Vaccination("Covid", "12-02-2018")) assertEquals(1, user.vaccines.size) assertEquals("Covi...
27.358974
63
0.564199
3.078125
dedef6f66c5decdf2a036615dd479ab1c9b6e034
6,741
rs
Rust
src/commands/dev/socket.rs
jashandeep-sohi/wrangler
e98bb95f000a7751297181577a7e62647309397b
[ "Apache-2.0", "MIT" ]
null
null
null
src/commands/dev/socket.rs
jashandeep-sohi/wrangler
e98bb95f000a7751297181577a7e62647309397b
[ "Apache-2.0", "MIT" ]
61
2021-07-19T14:40:18.000Z
2022-03-08T00:25:58.000Z
src/commands/dev/socket.rs
jashandeep-sohi/wrangler
e98bb95f000a7751297181577a7e62647309397b
[ "Apache-2.0", "MIT" ]
null
null
null
use std::time::Duration; use chrome_devtools as protocol; use futures_util::future::TryFutureExt; use futures_util::sink::SinkExt; use futures_util::stream::{SplitStream, StreamExt}; use tokio_stream::wrappers::UnboundedReceiverStream; use crate::terminal::colored_json_string; use crate::terminal::message::{Message,...
38.084746
94
0.601246
3.046875
d1b93711e70ce3c6de6ab7cd387a7081a626b0a4
12,530
rs
Rust
simple-dns/src/dns/mod.rs
Disasm/simple-dns
64248bae1f4a0e075cd1800ab9159cb1370cbff7
[ "MIT" ]
9
2021-06-02T12:33:10.000Z
2021-11-25T20:25:40.000Z
simple-dns/src/dns/mod.rs
Disasm/simple-dns
64248bae1f4a0e075cd1800ab9159cb1370cbff7
[ "MIT" ]
3
2021-07-31T10:33:19.000Z
2022-01-29T22:22:17.000Z
simple-dns/src/dns/mod.rs
Disasm/simple-dns
64248bae1f4a0e075cd1800ab9159cb1370cbff7
[ "MIT" ]
4
2021-09-07T14:51:17.000Z
2022-02-18T06:39:42.000Z
//! Provides parsing and manipulation for DNS packets mod character_string; mod name; mod packet; mod packet_header; mod question; pub mod rdata; mod resource_record; use std::{collections::HashMap, convert::TryFrom}; pub use character_string::CharacterString; pub use name::Name; pub use packet::{Packet, PacketBuf, ...
34.902507
135
0.58739
3.078125
52f4b4809d5b9283d35a309f086892764afc5863
845
kt
Kotlin
src/main/kotlin/com/flaidzeres/hid4kotlin/Example.kt
DmitriyGovorukhin/project-H
29c9c1146cc033d8be942599cbc5df692e11cccc
[ "MIT" ]
null
null
null
src/main/kotlin/com/flaidzeres/hid4kotlin/Example.kt
DmitriyGovorukhin/project-H
29c9c1146cc033d8be942599cbc5df692e11cccc
[ "MIT" ]
null
null
null
src/main/kotlin/com/flaidzeres/hid4kotlin/Example.kt
DmitriyGovorukhin/project-H
29c9c1146cc033d8be942599cbc5df692e11cccc
[ "MIT" ]
null
null
null
package com.flaidzeres.hid4kotlin import java.nio.ByteBuffer import java.util.* fun main(args: Array<String>) { val lsnr = object : HidDeviceListener { override fun onConnect(d: HidDevice) { println("Connected: $d") } override fun onDisconnect(d: HidDevice) { print...
18.777778
49
0.474556
3.125
0be05d4a2cf8a6a79eafd93aa3b055ae54cbe534
5,435
js
JavaScript
lib/nontree.js
calvinmetcalf/nontree
66b161dfb5c560e7f02366a91a095aacf106e41e
[ "MIT" ]
2
2015-07-02T21:49:36.000Z
2017-12-13T15:24:26.000Z
lib/nontree.js
calvinmetcalf/nontree
66b161dfb5c560e7f02366a91a095aacf106e41e
[ "MIT" ]
null
null
null
lib/nontree.js
calvinmetcalf/nontree
66b161dfb5c560e7f02366a91a095aacf106e41e
[ "MIT" ]
null
null
null
'use strict'; function getMid(box) { var dif = [(box[2]-box[0])/3,(box[3]-box[1])/3]; return [[box[0]+dif[0],box[1]+dif[1]],[box[2]-dif[0],box[3]-dif[1]]]; } var tiles = [ ['a','b','c'], ['f','e','d'], ['g','h','i'] ]; function whichNon(coord, mid, prev) { var x,y; if (coord[0] < mid[0][0]) { x = 0; ...
20.12963
93
0.478013
3.046875
4100fcac1b71200cd34bda2d68966cace9e69413
1,210
c
C
Tute04.c
IT1050-2022-Feb/tutorial-01-IT21285738
8021f3d96c31d5615ccaf60e804e28322499f254
[ "MIT" ]
null
null
null
Tute04.c
IT1050-2022-Feb/tutorial-01-IT21285738
8021f3d96c31d5615ccaf60e804e28322499f254
[ "MIT" ]
null
null
null
Tute04.c
IT1050-2022-Feb/tutorial-01-IT21285738
8021f3d96c31d5615ccaf60e804e28322499f254
[ "MIT" ]
null
null
null
/*Exercise 4 - Functions Implement the three functions minimum(), maximum() and multiply() below the main() function. Do not change the code given in the main() function when you are implementing your solution.*/ #include <stdio.h> //declaring Functions int minimum(int num1 , int num2); int maximum(int num1 , int n...
18.059701
94
0.612397
3.171875
49ff51d9d6190bc4654b92afbaeeea16863d3004
19,761
lua
Lua
spec/domain/trait/player/storage_spec.lua
czenker/lively-epsilon
8da2dd7912409378e7637d561363f623e5270bbe
[ "MIT" ]
9
2017-12-29T12:24:25.000Z
2021-04-26T15:48:09.000Z
spec/domain/trait/player/storage_spec.lua
czenker/lively-epsilon
8da2dd7912409378e7637d561363f623e5270bbe
[ "MIT" ]
3
2017-12-23T17:17:01.000Z
2018-01-09T22:05:13.000Z
spec/domain/trait/player/storage_spec.lua
czenker/lively-epsilon
8da2dd7912409378e7637d561363f623e5270bbe
[ "MIT" ]
2
2018-02-01T19:05:33.000Z
2018-02-11T01:42:00.000Z
insulate("Player:withStorage()", function() require "init" require "spec.mocks" require "spec.asserts" local product1 = productMock() local product2 = productMock() local product3 = productMock() it("creates a valid storage", function() local player = PlayerSpaceship() Pl...
46.170561
115
0.6527
3.0625
dbe35854154ff85524a983c24c0fea5447ab2392
1,851
lua
Lua
src/util/mbg/Event/DataOperateAction.lua
Karl5766/LuaSTG-x_BHElib
8f4504fb39d5081016b3b8a123b475a3a8087e07
[ "MIT" ]
9
2019-03-15T11:50:16.000Z
2021-06-03T12:52:30.000Z
src/util/mbg/Event/DataOperateAction.lua
Karl5766/LuaSTG-x_BHElib
8f4504fb39d5081016b3b8a123b475a3a8087e07
[ "MIT" ]
2
2019-08-28T10:35:33.000Z
2020-06-23T07:15:49.000Z
src/util/mbg/Event/DataOperateAction.lua
Karl5766/LuaSTG-x_BHElib
8f4504fb39d5081016b3b8a123b475a3a8087e07
[ "MIT" ]
5
2020-06-21T05:01:48.000Z
2022-01-16T17:02:20.000Z
--- --- DataOperateAction.lua --- --- Copyright (C) 2018 Xrysnow. All rights reserved. --- local mbg = require('util.mbg.main') local String = require('util.mbg.String') ---@class mbg.DataOperateAction:mbg.IAction local DataOperateAction = {} mbg.DataOperateAction = DataOperateAction local function _DataOperateActio...
24.355263
61
0.640735
3.09375
6b35382527aab887493e92af2c484b2a8c66c413
1,920
c
C
cli.c
mtratsiuk/b2c
ba23e5de130b9cbaaf42311c03865b83acf1c5f5
[ "MIT" ]
null
null
null
cli.c
mtratsiuk/b2c
ba23e5de130b9cbaaf42311c03865b83acf1c5f5
[ "MIT" ]
null
null
null
cli.c
mtratsiuk/b2c
ba23e5de130b9cbaaf42311c03865b83acf1c5f5
[ "MIT" ]
null
null
null
#include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "cli.h" #include "darray.h" Cli cli_create(void *state) { assert(state); Darray entries = darray_create(sizeof(CliEntry), 8); Cli cli = {.menu_entries = entries, .state = state}; return cli; } CliEntry cli_create_entry(...
18.823529
73
0.609375
3.25
19cc48afe8a6bcf2bffbab4b2a313a112ec7033f
2,885
sql
SQL
sql/_13_issues/_12_2h/cases/bug_bts_7856_4.sql
Zhaojia2019/cubrid-testcases
475a828e4d7cf74aaf2611fcf791a6028ddd107d
[ "BSD-3-Clause" ]
9
2016-03-24T09:51:52.000Z
2022-03-23T10:49:47.000Z
sql/_13_issues/_12_2h/cases/bug_bts_7856_4.sql
Zhaojia2019/cubrid-testcases
475a828e4d7cf74aaf2611fcf791a6028ddd107d
[ "BSD-3-Clause" ]
173
2016-04-13T01:16:54.000Z
2022-03-16T07:50:58.000Z
sql/_13_issues/_12_2h/cases/bug_bts_7856_4.sql
Zhaojia2019/cubrid-testcases
475a828e4d7cf74aaf2611fcf791a6028ddd107d
[ "BSD-3-Clause" ]
38
2016-03-24T17:10:31.000Z
2021-10-30T22:55:45.000Z
--TEST: [Merge Statement] The tuples that are not updated by the update_clause can be deleted by the delete_clause when the update_clause is with where conditions. drop table if exists t1, t2; create table t1(a int, b char(10)); insert into t1 values(1, 'aaa'); insert into t1 values(2, 'bbb'); insert into t1 values(...
26.46789
163
0.669671
3.203125
0cdb9744480da6f8e1b4899b7fcf04b7238e340b
1,551
py
Python
MachineLearning.BayesianNetwork/python-imp/bayes_core.py
JillyMan/decision-tree
8e2efc914aaade9cc97a2c94052bc909e50fdb48
[ "MIT" ]
null
null
null
MachineLearning.BayesianNetwork/python-imp/bayes_core.py
JillyMan/decision-tree
8e2efc914aaade9cc97a2c94052bc909e50fdb48
[ "MIT" ]
1
2019-12-29T13:49:52.000Z
2019-12-29T13:49:52.000Z
MachineLearning.BayesianNetwork/python-imp/bayes_core.py
JillyMan/MachineLerningFramework
8e2efc914aaade9cc97a2c94052bc909e50fdb48
[ "MIT" ]
null
null
null
import math RangeType = 'Range' BinaryType = 'Binary' class Hipothesis: def __init__(self, id, name, p): self.id = id self.name = name self.p = p class Attribute: def __init__(self, id, name, question, _type): self.id = id self.name = name self.question = quest...
23.149254
54
0.588008
3.328125
da2e3e68e442e1e9d9e4bc5a3b172b942b936234
4,113
rs
Rust
src/geometry.rs
White-Green/ray-tracing
da7c357bf88bb67429fef8f05d7eeb0c25bd1955
[ "MIT" ]
null
null
null
src/geometry.rs
White-Green/ray-tracing
da7c357bf88bb67429fef8f05d7eeb0c25bd1955
[ "MIT" ]
null
null
null
src/geometry.rs
White-Green/ray-tracing
da7c357bf88bb67429fef8f05d7eeb0c25bd1955
[ "MIT" ]
null
null
null
use std::ops::{Add, Div, Mul, Neg, Sub}; #[derive(Clone, Copy, PartialEq, Debug)] pub struct Vec3<V> { x: V, y: V, z: V, } #[derive(Clone, Copy, PartialEq, Debug)] pub struct NormalizedVec3<V> { x: V, y: V, z: V, } impl<V> Vec3<V> { pub fn new(x: V, y: V, z: V) -> Self { Self { x,...
23.912791
99
0.502796
3.203125
8ec21d06dd5d4c7578cf5d935a09e467c81e71a7
1,783
rb
Ruby
lib/office_quote_controller.rb
emhopkins/office-quote-cli-app
dd64ffa680aabb210ebe98c2b6e2a5387ba0ee0c
[ "MIT" ]
null
null
null
lib/office_quote_controller.rb
emhopkins/office-quote-cli-app
dd64ffa680aabb210ebe98c2b6e2a5387ba0ee0c
[ "MIT" ]
null
null
null
lib/office_quote_controller.rb
emhopkins/office-quote-cli-app
dd64ffa680aabb210ebe98c2b6e2a5387ba0ee0c
[ "MIT" ]
null
null
null
class OfficeQuoteController def initialize quotes = Scraper.new quotes.get_quote_pages start_cli end def start_cli input = "" puts "Welcome to The Office Quote Generator" while input != "exit" do puts "If you'd like to exit, enter \"exit\"" puts "Please select from the following options: " put...
25.84058
85
0.67134
3.234375
3d58729365cab6672b0e7b134b1b2395dcdc48f0
6,948
lua
Lua
Code/['World']['Global']['Weapon_Plugin_Package']['Module']['C_Module']['PlayerBehaviorModule'].ModuleScript.lua
lilith-avatar/rapid-duel
e91ce60e5dbd490763964f3449d5f907d7216742
[ "MIT" ]
8
2021-04-20T09:39:22.000Z
2021-10-19T06:08:29.000Z
Code/['World']['Global']['Weapon_Plugin_Package']['Module']['C_Module']['PlayerBehaviorModule'].ModuleScript.lua
lilith-avatar/rapid-duel
e91ce60e5dbd490763964f3449d5f907d7216742
[ "MIT" ]
null
null
null
Code/['World']['Global']['Weapon_Plugin_Package']['Module']['C_Module']['PlayerBehaviorModule'].ModuleScript.lua
lilith-avatar/rapid-duel
e91ce60e5dbd490763964f3449d5f907d7216742
[ "MIT" ]
2
2021-05-08T11:36:09.000Z
2021-05-12T09:59:50.000Z
--- @module PlayerBehavior 枪械模块:玩家行为树 --- @copyright Lilith Games, Avatar Team --- @author RopzTao local PlayerBehavior, this = { playerActionStateFunc = {} ---状态触发表 }, nil local firParam = nil local function OnKeyDown() ---按C下蹲 if Input.GetPressKeyData(Enum.KeyCode.C) ~= Enum.KeyState.Key...
27.035019
116
0.665803
3.125
016d368f13289f909c62b804612e30451d898657
3,083
sql
SQL
sql/cohort_sepsis.sql
benpopoff/hyperoxemia-mimic
6cb32fddd2bead6a2a904ff2bee81c163a73e3c4
[ "MIT" ]
null
null
null
sql/cohort_sepsis.sql
benpopoff/hyperoxemia-mimic
6cb32fddd2bead6a2a904ff2bee81c163a73e3c4
[ "MIT" ]
null
null
null
sql/cohort_sepsis.sql
benpopoff/hyperoxemia-mimic
6cb32fddd2bead6a2a904ff2bee81c163a73e3c4
[ "MIT" ]
null
null
null
-- ------------------------------------------------------------------ -- -- Cohort sepsis selection -- -- Collect data for population with relevant data and flags -- -- ------------------------------------------------------------------ DROP MATERIALIZED VIEW IF EXISTS cohort_sepsis CASCADE; CREATE MATERIALIZED VIEW c...
21.711268
75
0.674992
3.34375
da38b0e69516ed55dca4677ec6fda5a9f9130e89
4,719
rs
Rust
src/models/timestamp.rs
jay3332/rs-cord
0096062a8cccc4721d0fac3ac8b3db73eae4c34b
[ "MIT" ]
5
2022-01-05T16:17:55.000Z
2022-01-11T01:24:10.000Z
src/models/timestamp.rs
jay3332/rs-cord
0096062a8cccc4721d0fac3ac8b3db73eae4c34b
[ "MIT" ]
null
null
null
src/models/timestamp.rs
jay3332/rs-cord
0096062a8cccc4721d0fac3ac8b3db73eae4c34b
[ "MIT" ]
null
null
null
use std::time::Duration; #[cfg(feature = "chrono")] extern crate chrono; #[cfg(feature = "chrono")] use chrono::{DateTime, NaiveDateTime, Utc}; /// An enum to represent relative time. /// /// # See /// [`Timestamp::as_relative_time`] #[derive(Clone, Debug)] pub enum RelativeTime { /// This timestamp is in the pa...
29.867089
120
0.594194
3.359375