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
0c865092d1b024900a20974bf4805c2c027168ad
1,337
asm
Assembly
src/primes.asm
rprouse/8088
7cba221d5dd515144afa0d7bdd875f914e0e8c9a
[ "MIT" ]
null
null
null
src/primes.asm
rprouse/8088
7cba221d5dd515144afa0d7bdd875f914e0e8c9a
[ "MIT" ]
null
null
null
src/primes.asm
rprouse/8088
7cba221d5dd515144afa0d7bdd875f914e0e8c9a
[ "MIT" ]
null
null
null
; Calculate primes using the Sieve of Eratosthenes cpu 8086 bits 16 org 0x0100 table: equ 0x8000 table_size: equ 1000 jmp start %include 'library.inc' start: mov bx,table mov cx,table_size mov al,0 ; Initialize the memory in the table to zero .zero_loop: mov [bx],al ; ...
25.711538
93
0.615557
3.28125
284b2688717d354ae6e7444f223b3fae0698eee2
1,513
rb
Ruby
lib/cute_print/formatter.rb
wconrad/cute_print
9df8f056579324d329030ef0bd6621b3f0fa2aa8
[ "MIT" ]
2
2015-06-19T17:31:24.000Z
2017-09-27T19:44:50.000Z
lib/cute_print/formatter.rb
wconrad/cute_print
9df8f056579324d329030ef0bd6621b3f0fa2aa8
[ "MIT" ]
5
2015-02-25T20:51:57.000Z
2018-03-13T19:29:21.000Z
lib/cute_print/formatter.rb
wconrad/cute_print
9df8f056579324d329030ef0bd6621b3f0fa2aa8
[ "MIT" ]
null
null
null
require "pp" require "stringio" require_relative "format" require_relative "labeler" require_relative "location" require_relative "location_label" require_relative "source_label" require_relative "values" module CutePrint # @api private class Formatter def initialize(opts = {}) @method = opts.fetch(:me...
20.173333
64
0.611368
3.015625
0ce5d95f10a05417cb3b6fc154c24d7adc27cf45
1,877
py
Python
scripts/baxter_find_tf.py
mkrizmancic/qlearn_baxter
0498315212cacb40334cbb97a858c6ba317f52a3
[ "MIT" ]
4
2017-11-11T18:16:22.000Z
2018-11-08T13:31:09.000Z
scripts/baxter_find_tf.py
mkrizmancic/qlearn_baxter
0498315212cacb40334cbb97a858c6ba317f52a3
[ "MIT" ]
null
null
null
scripts/baxter_find_tf.py
mkrizmancic/qlearn_baxter
0498315212cacb40334cbb97a858c6ba317f52a3
[ "MIT" ]
2
2019-09-04T12:28:58.000Z
2021-09-27T13:02:48.000Z
#!/usr/bin/env python """Calculate transformation matrices and broadcast transform from robot's base to head markers.""" import rospy import tf import math from PyKDL import Vector, Frame, Rotation if __name__ == '__main__': rospy.init_node('baxter_find_transformation') listener = tf.TransformListener() b...
39.93617
104
0.64731
3.140625
ade1192e66419a4f1a0f70babfae972e654e2cc0
13,712
lua
Lua
3DreamEngine/loader/dae.lua
sewbacca/3DreamEngine
d688b7d04fd7ffdbedaa55b0d26785e78304bbca
[ "MIT" ]
209
2019-04-01T20:58:05.000Z
2022-03-30T20:02:26.000Z
3DreamEngine/loader/dae.lua
sewbacca/3DreamEngine
d688b7d04fd7ffdbedaa55b0d26785e78304bbca
[ "MIT" ]
54
2019-03-30T23:58:34.000Z
2022-02-01T14:20:57.000Z
3DreamEngine/loader/dae.lua
sewbacca/3DreamEngine
d688b7d04fd7ffdbedaa55b0d26785e78304bbca
[ "MIT" ]
12
2019-03-31T09:50:25.000Z
2022-03-03T09:52:04.000Z
--[[ #dae - COLLADA --]] --load space seperated arrays as floats or as strings local function loadFloatArray(arr) local t = { } for w in arr:gmatch("%S+") do t[#t+1] = tonumber(w) end return t end local function loadArray(arr) local t = { } for w in arr:gmatch("%S+") do t[#t+1] = w end return t end --load...
26.573643
184
0.589192
3.296875
f024f2d1468cd63a89d1e5336dc2508a4542b04f
1,476
py
Python
Stack/10-stack-special-design-and-implement.py
mahmutcankurt/DataStructures_Python
bfb81e3530b535c4e48c07548dc4a4f9a648bab2
[ "MIT" ]
1
2022-01-25T22:17:55.000Z
2022-01-25T22:17:55.000Z
Stack/10-stack-special-design-and-implement.py
mahmutcankurt/DataStructures_Python
bfb81e3530b535c4e48c07548dc4a4f9a648bab2
[ "MIT" ]
null
null
null
Stack/10-stack-special-design-and-implement.py
mahmutcankurt/DataStructures_Python
bfb81e3530b535c4e48c07548dc4a4f9a648bab2
[ "MIT" ]
null
null
null
class Stack: def __init__(self): self.array = [] self.top = -1 self.max = 100 def isEmpty(self): if(self.top == -1): return True else: return False def isFull(self): if(self.top == self.max -1): return True else: ...
20.219178
36
0.443767
3.5
2069a8783ef5257f23ae89a2c54877facee8a7e6
1,961
lua
Lua
lua/twilight/colors/init.lua
jzone1366/twilight.nvim
da72643da7b73745ce5b56dd79340446949acf7f
[ "MIT" ]
1
2022-03-14T23:15:29.000Z
2022-03-14T23:15:29.000Z
lua/twilight/colors/init.lua
jzone1366/twilight.nvim
da72643da7b73745ce5b56dd79340446949acf7f
[ "MIT" ]
1
2022-03-15T08:23:39.000Z
2022-03-15T14:31:22.000Z
lua/twilight/colors/init.lua
jzone1366/twilight.nvim
da72643da7b73745ce5b56dd79340446949acf7f
[ "MIT" ]
null
null
null
local M = {} M.styles = { "light", "dark", } -- Adds subtle and harsh colors depending if the colors are dark or light -- @param colors table -- @return table of colors local function construct(colors) colors.harsh = colors.meta.light and colors.black or colors.white colors.subtle = colors.meta.light and colors.w...
29.712121
87
0.720551
3.421875
43c9ae59a393ebfbeb768d3575fb36a4c0db3588
1,578
go
Go
storage/s3_func.go
OgreCase/kit
bebf00292e30262a2fc33b0c544e3e3de27194de
[ "Apache-2.0" ]
null
null
null
storage/s3_func.go
OgreCase/kit
bebf00292e30262a2fc33b0c544e3e3de27194de
[ "Apache-2.0" ]
null
null
null
storage/s3_func.go
OgreCase/kit
bebf00292e30262a2fc33b0c544e3e3de27194de
[ "Apache-2.0" ]
1
2022-01-10T09:13:38.000Z
2022-01-10T09:13:38.000Z
package storage import ( "bytes" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/s3" "github.com/globalsign/mgo/bson" "mime/multipart" "net/http" "path/filepath" ) func UploadFileToS3(s *session.Session, fileHeader *multipart.FileHeader) (string, erro...
32.204082
123
0.680608
3.140625
0cdcd31b1d541c0b2fc7fa87f9fe6a1fb877291b
4,997
py
Python
rdsslib/kinesis/client.py
JiscSD/rdss-shared-libraries
cf07cad3f176ef8be1410fc29b240fb4791e607a
[ "Apache-2.0" ]
null
null
null
rdsslib/kinesis/client.py
JiscSD/rdss-shared-libraries
cf07cad3f176ef8be1410fc29b240fb4791e607a
[ "Apache-2.0" ]
4
2018-02-15T12:32:26.000Z
2018-03-06T16:33:34.000Z
rdsslib/kinesis/client.py
JiscSD/rdss-shared-libraries
cf07cad3f176ef8be1410fc29b240fb4791e607a
[ "Apache-2.0" ]
1
2018-03-13T19:38:54.000Z
2018-03-13T19:38:54.000Z
import json import logging from .errors import MaxRetriesExceededException, DecoratorApplyException MAX_ATTEMPTS = 6 class KinesisClient(object): def __init__(self, writer, reader): """ Writes and reads messages to and from Kinesis streams :param writer: handles writing of payloads to K...
39.346457
79
0.626976
3.34375
70b4a560218bd2b4ae7350c0aabd5d5072a724e9
2,089
go
Go
pkg/util/file/volatile_file/volatile_file.go
dizzy57/flow
cc1282eb8a54943686115a95468101835cdce481
[ "MIT" ]
null
null
null
pkg/util/file/volatile_file/volatile_file.go
dizzy57/flow
cc1282eb8a54943686115a95468101835cdce481
[ "MIT" ]
null
null
null
pkg/util/file/volatile_file/volatile_file.go
dizzy57/flow
cc1282eb8a54943686115a95468101835cdce481
[ "MIT" ]
null
null
null
package file import ( "fmt" "io/ioutil" "sync" log "github.com/sirupsen/logrus" event "github.com/awesome-flow/flow/pkg/util/file/event" "github.com/fsnotify/fsnotify" ) const ( VFPermDefault = 0644 ) type VolatileFile struct { path string once *sync.Once watcher *fsnotify.Watcher notify chan *ev...
20.281553
70
0.662518
3.03125
14992220885c7a8d417972337b8a383c2ae2eb5f
2,756
lua
Lua
Aetheri/aetheri/species/appearance.lua
cuteBoiButt/sb.StardustSuite
3c442c94192df257f46e08afc9f3ff8b5a6f2016
[ "MIT" ]
30
2016-09-17T21:28:00.000Z
2022-03-31T04:59:51.000Z
Aetheri/aetheri/species/appearance.lua
cuteBoiButt/sb.StardustSuite
3c442c94192df257f46e08afc9f3ff8b5a6f2016
[ "MIT" ]
22
2016-10-16T01:37:24.000Z
2021-11-29T20:47:52.000Z
Aetheri/aetheri/species/appearance.lua
cuteBoiButt/sb.StardustSuite
3c442c94192df257f46e08afc9f3ff8b5a6f2016
[ "MIT" ]
14
2016-12-17T18:59:03.000Z
2022-03-03T00:58:22.000Z
-- handles all appearance and animation apart from the HUD require "/lib/stardust/color.lua" appearance = { baseDirectives = "", } local bodyReplacePalette = { "dafafafa", "caeaeafa", "badadafa", "aacacafa" } local function generatePalette(tbl) local hue = tbl[1] local sat = tbl[2] local lumBright = tbl[3...
35.333333
177
0.714078
3.125
74d046024ccef2a8077c21d99f32704efcf988c9
6,818
js
JavaScript
myqq-webapp/src/views/Login/index.js
WHUT-XGP/chat-webapp
53eba4e223411ca5b988857c56a38cc962d3c27e
[ "MIT" ]
23
2020-12-25T08:39:11.000Z
2022-03-23T07:12:23.000Z
myqq-webapp/src/views/Login/index.js
WHUT-XGP/chat-webapp
53eba4e223411ca5b988857c56a38cc962d3c27e
[ "MIT" ]
1
2022-01-02T14:31:28.000Z
2022-01-02T14:31:28.000Z
myqq-webapp/src/views/Login/index.js
WHUT-XGP/chat-webapp
53eba4e223411ca5b988857c56a38cc962d3c27e
[ "MIT" ]
null
null
null
import React, { useState, useEffect, useCallback } from 'react' import { connect } from 'react-redux' // 导入store相关 import { actionCreator } from './store' // 导入CSS import { LoginStyle } from './style' // 导入组件 import Icon from '../../components/context/Icon' import LoginInput from '../../components/common/LoginInput' im...
35.510417
236
0.512174
3.078125
0be4094ec9c88b491ea00f03e9587e97033d9ed4
5,404
js
JavaScript
src/app/main/registros/Registros.js
lucianoarmoa98/indufar_prospeccion_medica-campos-recetas-main
bb075c325597be524f58a74f5a8ae6a9ba59291c
[ "MIT" ]
null
null
null
src/app/main/registros/Registros.js
lucianoarmoa98/indufar_prospeccion_medica-campos-recetas-main
bb075c325597be524f58a74f5a8ae6a9ba59291c
[ "MIT" ]
null
null
null
src/app/main/registros/Registros.js
lucianoarmoa98/indufar_prospeccion_medica-campos-recetas-main
bb075c325597be524f58a74f5a8ae6a9ba59291c
[ "MIT" ]
null
null
null
// React y Redux. import React from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import * as registrosActions from './store/actions'; // Material UI. import MaterialTable, {MTableToolbar} from 'material-table-hotfix-initial-page-remote-data'; // Otros. import {FusePageSimple} ...
33.358025
92
0.477979
3
f51ea74045d5aa8e7f16bc66c89fef08f2dc1661
677
lua
Lua
plugin/src/FormatScript/Vendor/Llama/List/zip.lua
howmanysmall/StyluaPlugin
a5f10432a82f68f2d746723007638e6240f759e9
[ "MIT" ]
null
null
null
plugin/src/FormatScript/Vendor/Llama/List/zip.lua
howmanysmall/StyluaPlugin
a5f10432a82f68f2d746723007638e6240f759e9
[ "MIT" ]
null
null
null
plugin/src/FormatScript/Vendor/Llama/List/zip.lua
howmanysmall/StyluaPlugin
a5f10432a82f68f2d746723007638e6240f759e9
[ "MIT" ]
null
null
null
local Debug = require(script.Parent.Parent.Parent.Debug) local Typer = require(script.Parent.Parent.Parent.Typer) local Debug_Assert = Debug.Assert local Typer_Array = Typer.Array local function zip(...) local new = {} local argCount = select("#", ...) if argCount <= 0 then return new end local firstList = D...
17.358974
60
0.661743
3.09375
e8e12c70a26b28e73712420fd03691434cb4267c
13,354
py
Python
adversarial-transfer-nlp/CW_attack.py
AI-secure/Uncovering-the-Connections-BetweenAdversarial-Transferability-and-Knowledge-Transferability
a2fb10f56618c6d6dd1638967d59c4a83ffa1c05
[ "CC0-1.0" ]
8
2021-06-18T10:32:27.000Z
2022-01-16T06:46:25.000Z
adversarial-transfer-nlp/CW_attack.py
AI-secure/Does-Adversairal-Transferability-Indicate-Knowledge-Transferability
a2fb10f56618c6d6dd1638967d59c4a83ffa1c05
[ "CC0-1.0" ]
2
2021-08-25T15:14:12.000Z
2022-02-09T23:55:46.000Z
adversarial-transfer-nlp/CW_attack.py
AI-secure/Does-Adversairal-Transferability-Indicate-Knowledge-Transferability
a2fb10f56618c6d6dd1638967d59c4a83ffa1c05
[ "CC0-1.0" ]
null
null
null
import sys import torch import numpy as np from torch import optim from util import args class CarliniL2: def __init__(self, targeted=True, search_steps=None, max_steps=None, cuda=True, debug=False, num_classes=14): self.debug = debug self.targeted = targeted self.num_classes = num_class...
44.962963
126
0.543582
3.03125
85963afcca8eca6c1bb7832716a10d2260d05acc
1,474
js
JavaScript
client/src/components/utils/InfiniteScroll.js
palaumarc/flickr_gallery
e6a194955016fa696610176c897aca1f88ab7acd
[ "MIT" ]
null
null
null
client/src/components/utils/InfiniteScroll.js
palaumarc/flickr_gallery
e6a194955016fa696610176c897aca1f88ab7acd
[ "MIT" ]
null
null
null
client/src/components/utils/InfiniteScroll.js
palaumarc/flickr_gallery
e6a194955016fa696610176c897aca1f88ab7acd
[ "MIT" ]
null
null
null
import React, { Component, Fragment } from 'react'; import PropTypes from 'prop-types'; import Spin from './Spin'; class InfiniteScroll extends Component { static propTypes = { loadMore: PropTypes.func.isRequired, hasMore: PropTypes.bool } static defaultProps = { hasMore: true } state =...
24.163934
110
0.630258
3.265625
a8dbe5bd998d90d98e3c8c88c85874a068d84095
5,205
rs
Rust
rs/replicated_state/src/page_map/tests.rs
audieleon/ic
35dd8f93dec82662ed4df35664a9c0be6dbf203a
[ "Apache-2.0" ]
1
2021-07-20T21:44:44.000Z
2021-07-20T21:44:44.000Z
rs/replicated_state/src/page_map/tests.rs
AmoretAaron/ic
d9202bc7f6d16b2777d4e092ee1b7ad5899aae2b
[ "Apache-2.0" ]
null
null
null
rs/replicated_state/src/page_map/tests.rs
AmoretAaron/ic
d9202bc7f6d16b2777d4e092ee1b7ad5899aae2b
[ "Apache-2.0" ]
1
2022-01-13T13:37:41.000Z
2022-01-13T13:37:41.000Z
use super::{allocate_pages, checkpoint::Checkpoint, Buffer, PageDelta, PageIndex, PageMap}; use ic_sys::PAGE_SIZE; use std::fs::OpenOptions; #[test] fn can_debug_display_a_page_map() { let page_map = PageMap::new(); assert_eq!(format!("{:?}", page_map), "{}"); } #[test] fn can_create_an_empty_checkpoint() { ...
27.68617
99
0.578866
3.09375
71e68956d75edcf9698c155dfeb03a06cc6ecaee
1,472
kt
Kotlin
modules/drawing/src/main/kotlin/silentorb/mythic/drawing/drawText.kt
silentorb/mythic-kotlin
74462fcba9e7805dddec1bfcb3431665df7d0dee
[ "MIT" ]
1
2020-06-24T02:01:23.000Z
2020-06-24T02:01:23.000Z
modules/drawing/src/main/kotlin/silentorb/mythic/drawing/drawText.kt
silentorb/mythic-kotlin
74462fcba9e7805dddec1bfcb3431665df7d0dee
[ "MIT" ]
5
2019-12-24T17:14:43.000Z
2021-01-26T22:33:47.000Z
modules/drawing/src/main/kotlin/silentorb/mythic/drawing/drawText.kt
silentorb/mythic-kotlin
74462fcba9e7805dddec1bfcb3431665df7d0dee
[ "MIT" ]
null
null
null
package silentorb.mythic.drawing import silentorb.mythic.glowing.DrawMethod import silentorb.mythic.glowing.VertexSchema import silentorb.mythic.glowing.globalState import silentorb.mythic.spatial.Matrix import silentorb.mythic.spatial.Vector2 import silentorb.mythic.typography.TextConfiguration import silentorb.mythi...
36.8
119
0.796196
3.109375
f6743e007e18ef6144696c5a28916071fb960531
1,915
kt
Kotlin
src/main/kotlin/ui/util/swing/Tables.kt
marshallbrain/pulsar-java
fed43a0164421b27056045446f07982e0313452d
[ "MIT" ]
null
null
null
src/main/kotlin/ui/util/swing/Tables.kt
marshallbrain/pulsar-java
fed43a0164421b27056045446f07982e0313452d
[ "MIT" ]
null
null
null
src/main/kotlin/ui/util/swing/Tables.kt
marshallbrain/pulsar-java
fed43a0164421b27056045446f07982e0313452d
[ "MIT" ]
null
null
null
package ui.util.swing import java.awt.Dimension import javax.swing.BorderFactory import javax.swing.JScrollPane import javax.swing.JTable import javax.swing.ListSelectionModel import javax.swing.border.Border import javax.swing.table.DefaultTableModel fun createScrollTable( table: JTable, maxVisibleRows: Int = tabl...
23.641975
77
0.746214
3.140625
124f49977e548fd065352dda1813f453f87675ba
5,700
h
C
src/backgroundprocess/app.h
Skycoder42/QBackgroundProcess
9681aa736729ce1b7985e8664e0f05729235e0c4
[ "BSD-3-Clause" ]
10
2017-08-17T16:34:03.000Z
2021-02-16T17:42:30.000Z
src/backgroundprocess/app.h
Skycoder42/QBackgroundProcess
9681aa736729ce1b7985e8664e0f05729235e0c4
[ "BSD-3-Clause" ]
null
null
null
src/backgroundprocess/app.h
Skycoder42/QBackgroundProcess
9681aa736729ce1b7985e8664e0f05729235e0c4
[ "BSD-3-Clause" ]
4
2018-08-27T06:15:11.000Z
2021-03-08T10:10:34.000Z
#ifndef QTBACKGROUNDPROCESS_APP_H #define QTBACKGROUNDPROCESS_APP_H #include "QtBackgroundProcess/qtbackgroundprocess_global.h" #include <QtCore/qcommandlineparser.h> #include <QtCore/qcoreapplication.h> #include <QtCore/qexception.h> #include <functional> //! The Namespace containing all classes of the QtBackgroun...
41.605839
105
0.792982
3.140625
f037e3032ce0ce519e6e32edcbecb11a4130e35e
1,595
js
JavaScript
www/js/search_worker.js
xqqy/myfuzhong
25e7f6e79b65a4e2c550f4b8d43a35f5030fcf1b
[ "Apache-2.0" ]
1
2018-01-27T15:48:01.000Z
2018-01-27T15:48:01.000Z
www/js/search_worker.js
xqqy/myfuzhong
25e7f6e79b65a4e2c550f4b8d43a35f5030fcf1b
[ "Apache-2.0" ]
null
null
null
www/js/search_worker.js
xqqy/myfuzhong
25e7f6e79b65a4e2c550f4b8d43a35f5030fcf1b
[ "Apache-2.0" ]
null
null
null
var list,all; function dialogAlert(message, title, buttonname, callback) { //通知服务 title = title || "错误"; buttonname = buttonname || "确定"; callback = callback || function () { return; } if(navigator.notification){ navigator.notification.alert(message, callback, title, buttonname); ...
29
136
0.485893
3.140625
0bc6ef3ed241becc1afee395cbae4a3b843d3a02
1,342
js
JavaScript
app/components/layout/Header.js
yarikgenza/trello
a95f9418757aedd696ee24ee9c4be4fd4ab01a67
[ "MIT" ]
1
2017-01-07T23:57:15.000Z
2017-01-07T23:57:15.000Z
app/components/layout/Header.js
yarikgenza/trello
a95f9418757aedd696ee24ee9c4be4fd4ab01a67
[ "MIT" ]
null
null
null
app/components/layout/Header.js
yarikgenza/trello
a95f9418757aedd696ee24ee9c4be4fd4ab01a67
[ "MIT" ]
null
null
null
import React, {Component} from 'react'; import {Button} from 'react-bootstrap'; export default class Header extends Component { constructor() { super(); this.state = { text: '' } } componentDidMount() { const token = localStorage.getItem('token'); const {text} = this.state; if (t...
20.333333
81
0.481371
3.046875
11c17cffca45808b3ff136341eb793f249307f98
2,384
rs
Rust
src/pointer.rs
sim82/game1
e4cd03c91421dea3234eaf7b4f9fabbae30312be
[ "MIT" ]
null
null
null
src/pointer.rs
sim82/game1
e4cd03c91421dea3234eaf7b4f9fabbae30312be
[ "MIT" ]
null
null
null
src/pointer.rs
sim82/game1
e4cd03c91421dea3234eaf7b4f9fabbae30312be
[ "MIT" ]
null
null
null
use bevy::{ input::mouse::{MouseButtonInput, MouseMotion}, prelude::*, }; pub struct MouseGrabState { pub shall_grab: bool, known_state: bool, } fn mouse_grab_system( mut grab_state: ResMut<MouseGrabState>, mut windows: ResMut<Windows>, keyboard_input: Res<Input<KeyCode>>, ) { let updat...
26.786517
74
0.630453
3.078125
18bf1a0139d71e8ef2b676cb4ba44ba527cc0964
1,872
sql
SQL
Behavior_Analysis_Setup/StudentTimeAndPoints.sql
bbrub49/SQL-Code-Examples
8c4be22f31e52b906d324174a93486a1ace0c4eb
[ "MIT" ]
null
null
null
Behavior_Analysis_Setup/StudentTimeAndPoints.sql
bbrub49/SQL-Code-Examples
8c4be22f31e52b906d324174a93486a1ace0c4eb
[ "MIT" ]
null
null
null
Behavior_Analysis_Setup/StudentTimeAndPoints.sql
bbrub49/SQL-Code-Examples
8c4be22f31e52b906d324174a93486a1ace0c4eb
[ "MIT" ]
null
null
null
/* * Establishes the reason and minutes a student is absent * if the absence is excused in order to remove those * minutes from the students total time and total points * possible to earn that day */ DECLARE @yeartype as varchar(15) SET @yeartype = (SELECT [Type] FROM NSSEOPulse.dbo.ZM_TEST_BB_SchoolYear WHERE...
42.545455
143
0.76015
3.203125
f07411bf6835efa66845aedc9d0915e9f4597ba2
1,138
py
Python
UnitTests/FullAtomModel/CoordsTransform/test_forward.py
johahi/TorchProteinLibrary
b1fc9faa9b51c4550e5f754d075766ba38e0f8a0
[ "MIT" ]
null
null
null
UnitTests/FullAtomModel/CoordsTransform/test_forward.py
johahi/TorchProteinLibrary
b1fc9faa9b51c4550e5f754d075766ba38e0f8a0
[ "MIT" ]
null
null
null
UnitTests/FullAtomModel/CoordsTransform/test_forward.py
johahi/TorchProteinLibrary
b1fc9faa9b51c4550e5f754d075766ba38e0f8a0
[ "MIT" ]
null
null
null
import sys import os import torch import numpy as np from TorchProteinLibrary.FullAtomModel.CoordsTransform import CoordsTranslate, getRandomTranslation, getBBox, CoordsRotate, getRandomRotation from TorchProteinLibrary.FullAtomModel import Angles2Coords, Coords2TypedCoords def test_translation(coords, num_atoms): tr...
25.863636
141
0.748682
3.203125
a179af87613d1e41c4a92bf0b289fa58d5086d23
2,360
go
Go
server/server.go
asommer70/evergreeen-new-releases
ebf1a02a2b199d68a138ad4b5e3b76ae63aa272a
[ "MIT" ]
null
null
null
server/server.go
asommer70/evergreeen-new-releases
ebf1a02a2b199d68a138ad4b5e3b76ae63aa272a
[ "MIT" ]
null
null
null
server/server.go
asommer70/evergreeen-new-releases
ebf1a02a2b199d68a138ad4b5e3b76ae63aa272a
[ "MIT" ]
null
null
null
package main import ( "fmt" "github.com/anaskhan96/soup" "net/http" //"io/ioutil" "encoding/json" "os" "strconv" "strings" "time" ) type TitleSearchResult struct { Query string Results []TitleResult } type TitleResult struct { Name, Description, Url []string } func main() { // titles := getSearchPage()...
23.6
327
0.665254
3.09375
20f45f70e14928808cae9d38bd843ce4c03dd39d
2,739
lua
Lua
rot/rot/noise/simplex.lua
LJNIC/Collaborogue
9c333e790f043087045d9236ccde0e496ebfc96b
[ "MIT" ]
4
2020-11-09T23:33:48.000Z
2021-04-19T23:14:50.000Z
rot/rot/noise/simplex.lua
LJNIC/Collaborogue
9c333e790f043087045d9236ccde0e496ebfc96b
[ "MIT" ]
1
2021-11-13T15:53:53.000Z
2021-11-13T15:53:53.000Z
rot/rot/noise/simplex.lua
LJNIC/Collaborogue
9c333e790f043087045d9236ccde0e496ebfc96b
[ "MIT" ]
2
2021-11-11T03:25:30.000Z
2022-02-13T13:05:00.000Z
--- Simplex Noise Generator. -- Based on a simple 2d implementation of simplex noise by Ondrej Zara -- Which is based on a speed-improved simplex noise algorithm for 2D, 3D and 4D in Java. -- Which is based on example code by Stefan Gustavson (stegu@itn.liu.se). -- With Optimisations by Peter Eastman (peastman@drizzle....
25.12844
88
0.586345
3.328125
330bc2029c1246f778fe532317958ef2c30db80a
10,719
py
Python
touca/_case.py
trytouca/touca-python
dab4bb6760a173952b63ea14fd4bc30c3877744e
[ "Apache-2.0" ]
11
2021-06-29T04:51:28.000Z
2022-03-22T05:58:44.000Z
touca/_case.py
trytouca/touca-python
dab4bb6760a173952b63ea14fd4bc30c3877744e
[ "Apache-2.0" ]
null
null
null
touca/_case.py
trytouca/touca-python
dab4bb6760a173952b63ea14fd4bc30c3877744e
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Touca, Inc. Subject to Apache-2.0 License. from ._types import IntegerType, VectorType, ToucaType from datetime import datetime, timedelta from enum import Enum from typing import Dict, Tuple class ResultCategory(Enum): """ """ Check = 1 Assert = 2 class ResultEntry: """ Wrapp...
35.376238
88
0.612184
3.21875
198f09ec70a864f74973126efad673b62438636e
2,138
lua
Lua
gateway/src/apicast/loader.lua
SpillChek2/apicast
55011497b6a2badd1ca1097c4d5221a842d80faf
[ "Apache-2.0" ]
null
null
null
gateway/src/apicast/loader.lua
SpillChek2/apicast
55011497b6a2badd1ca1097c4d5221a842d80faf
[ "Apache-2.0" ]
null
null
null
gateway/src/apicast/loader.lua
SpillChek2/apicast
55011497b6a2badd1ca1097c4d5221a842d80faf
[ "Apache-2.0" ]
1
2018-04-09T08:45:39.000Z
2018-04-09T08:45:39.000Z
--- APIcast source loader -- Loading this module will add a new source code loaders to package.searchers. -- The searcher is going to print deprecation warnings when apicast source is loaded -- through old or non prefixed paths. -- We can rename files and set up an alias here so we don't break customer's code and -- pr...
26.073171
111
0.717025
3.125
85cb68d2f275c7ab63531b3fa937fa3e509ed2a7
1,258
c
C
sdk/openrtos/boot/fa626/lcd_clear.c
doyaGu/C0501Q_HWJL01
07a71328bd9038453cbb1cf9c276a3dd1e416d63
[ "MIT" ]
1
2021-10-09T08:05:50.000Z
2021-10-09T08:05:50.000Z
sdk/openrtos/boot/fa626/lcd_clear.c
doyaGu/C0501Q_HWJL01
07a71328bd9038453cbb1cf9c276a3dd1e416d63
[ "MIT" ]
null
null
null
sdk/openrtos/boot/fa626/lcd_clear.c
doyaGu/C0501Q_HWJL01
07a71328bd9038453cbb1cf9c276a3dd1e416d63
[ "MIT" ]
null
null
null
#include "ite/ith.h" #define REMAP_ADDR 0x80000000 // _start is default function name of entry point. void _start(void) { uint32_t* ptr; uint32_t size; uint32_t color, i; asm volatile("mcr p15, 0, %0, c7, c14, 0" : : "r"(0)); // clean and invalidate D-Cache all asm volatile("mcr p15, 0, %0, c7,...
26.208333
125
0.556439
3.078125
0cc14f945ff11b1ec78d14d582d03623e82355fd
4,657
py
Python
tools/multiscale_shape.py
marvin-eisenberger/hamiltonian-interpolation
d18c2f401feffc672998c5fa1d50c1de03dba902
[ "MIT" ]
5
2021-01-05T23:16:55.000Z
2021-07-23T12:26:06.000Z
tools/multiscale_shape.py
marvin-eisenberger/hamiltonian-interpolation
d18c2f401feffc672998c5fa1d50c1de03dba902
[ "MIT" ]
null
null
null
tools/multiscale_shape.py
marvin-eisenberger/hamiltonian-interpolation
d18c2f401feffc672998c5fa1d50c1de03dba902
[ "MIT" ]
1
2021-02-22T08:31:05.000Z
2021-02-22T08:31:05.000Z
import torch from shape_utils import Shape, load_shape_pair, scatter_shape_pair from torch_geometric.nn import knn from param import * from arap_potential import arap_vert def load_multiscale_shapes(folder_path, file_name, scales, offset=0.5*torch.ones([3], device=device, dtype=torch.float32)): """Like 'load_shap...
33.503597
126
0.665235
3.34375
f05bdaed59cf5073cab62db01710a16ba5ff7771
7,597
py
Python
app/views.py
PaulMurrayCbr/GameNight
838c19dda765027abbe8e12e331268b01cb859c2
[ "Unlicense" ]
null
null
null
app/views.py
PaulMurrayCbr/GameNight
838c19dda765027abbe8e12e331268b01cb859c2
[ "Unlicense" ]
null
null
null
app/views.py
PaulMurrayCbr/GameNight
838c19dda765027abbe8e12e331268b01cb859c2
[ "Unlicense" ]
null
null
null
from app import app, db from flask import render_template, flash, redirect, get_flashed_messages import forms import models import Character from flask.globals import request from sqlalchemy.orm.exc import NoResultFound, MultipleResultsFound def menugear() : return { 'pcs': models.Character.query.all() } @a...
26.939716
94
0.612874
3.03125
e73fffbbf34519bd85db2a58a307b41246e8a610
1,101
js
JavaScript
src/0648.replace-words.648/0648.replace-words.648.js
jiangshanmeta/meta
8f9d084cda91988d42208ac7a029612e9edc693b
[ "MIT" ]
221
2018-10-26T07:05:12.000Z
2022-03-30T03:23:10.000Z
src/0648.replace-words.648/0648.replace-words.648.js
ralap18/meta
82d660a6eabb15e398a7dcc2a0fa99342143bb12
[ "MIT" ]
23
2018-09-24T14:50:58.000Z
2020-09-17T14:23:45.000Z
src/0648.replace-words.648/0648.replace-words.648.js
ralap18/meta
82d660a6eabb15e398a7dcc2a0fa99342143bb12
[ "MIT" ]
45
2019-03-29T03:36:19.000Z
2022-03-25T20:57:13.000Z
/** * @param {string[]} dict * @param {string} sentence * @return {string} */ // 前缀树 function findRoot (trie, string) { const list = []; for (let i = 0; i < string.length; i++) { if (!trie) { break; } list.push(string[i]); trie = trie[string[i]]; } return...
26.214286
65
0.482289
3.234375
7a97019e955f84d6270a6a63776af848923fd024
2,666
rs
Rust
engine/src/math/vector4.rs
monadgroup/re19
80989ebf8ae2a3e203a443e583a7f359f0114333
[ "Apache-2.0" ]
47
2021-10-04T13:51:31.000Z
2022-03-27T17:23:50.000Z
engine/src/math/vector4.rs
monadgroup/re19
80989ebf8ae2a3e203a443e583a7f359f0114333
[ "Apache-2.0" ]
null
null
null
engine/src/math/vector4.rs
monadgroup/re19
80989ebf8ae2a3e203a443e583a7f359f0114333
[ "Apache-2.0" ]
null
null
null
use super::{Float, Vector3}; use core::ops; #[derive(Clone, Copy, PartialEq, PartialOrd, Default, Debug)] #[repr(C)] pub struct Vector4 { pub x: f32, pub y: f32, pub z: f32, pub w: f32, } impl Vector4 { pub fn with_x(self, x: f32) -> Self { Vector4 { x, ..self } } pub fn with_y(se...
19.895522
81
0.445236
3.078125
7541b62a34467e2119df5125dde81063db36ce24
2,467
rs
Rust
core/src/eval/arithmetic.rs
contractshark/rust-cevm
35cdefb760d41197ccfadc8c446343f20eba9080
[ "Apache-2.0" ]
47
2020-08-01T19:50:19.000Z
2022-03-29T16:23:40.000Z
core/src/eval/arithmetic.rs
gakonst/rust-cevm
35cdefb760d41197ccfadc8c446343f20eba9080
[ "Apache-2.0" ]
null
null
null
core/src/eval/arithmetic.rs
gakonst/rust-cevm
35cdefb760d41197ccfadc8c446343f20eba9080
[ "Apache-2.0" ]
4
2020-12-30T06:43:30.000Z
2021-09-08T11:41:14.000Z
use crate::utils::I256; use core::convert::TryInto; use core::ops::Rem; use primitive_types::{U256, U512}; pub fn div(op1: U256, op2: U256) -> U256 { if op2 == U256::zero() { U256::zero() } else { op1 / op2 } } pub fn sdiv(op1: U256, op2: U256) -> U256 { let op1: I256 = op1.into(); ...
23.495238
87
0.478719
3.21875
7f1887ad8207d20aadee5914b8aa3df9a823555d
5,156
go
Go
request/queue.go
KillianMeersman/wander
e8fab5fd01aad4be4cf835a6c6447e2491a51bc1
[ "MIT" ]
null
null
null
request/queue.go
KillianMeersman/wander
e8fab5fd01aad4be4cf835a6c6447e2491a51bc1
[ "MIT" ]
null
null
null
request/queue.go
KillianMeersman/wander
e8fab5fd01aad4be4cf835a6c6447e2491a51bc1
[ "MIT" ]
null
null
null
package request import ( "fmt" "io" "sync" ) type QueueResult struct { Error error Request *Request } // Queue is a prioritized FIFO queue for requests type Queue interface { io.Closer // Enqueue adds the request to the queue, returns an error if no more space is available. Enqueue(req *Request, priority i...
21.663866
100
0.662917
3.328125
b4e0e572c835c484c0f44eb853b3fc2721f8cb63
1,033
kt
Kotlin
roboquant-core/test/feeds/TestFeedTest.kt
jetonbacaj/roboquant
11136be3cb62870532dc7e1888c5ea88ba17bcab
[ "Apache-2.0" ]
null
null
null
roboquant-core/test/feeds/TestFeedTest.kt
jetonbacaj/roboquant
11136be3cb62870532dc7e1888c5ea88ba17bcab
[ "Apache-2.0" ]
null
null
null
roboquant-core/test/feeds/TestFeedTest.kt
jetonbacaj/roboquant
11136be3cb62870532dc7e1888c5ea88ba17bcab
[ "Apache-2.0" ]
null
null
null
package org.roboquant.feeds import kotlinx.coroutines.* import org.junit.Test import kotlin.test.* import org.roboquant.TestData import org.roboquant.common.Background import org.roboquant.common.TimeFrame import org.roboquant.feeds.test.TestFeed fun play(feed:Feed, timeFrame: TimeFrame = TimeFrame.FULL): EventChanne...
23.477273
81
0.631171
3.140625
af6f779fbe9f9d336e37d83d5ee4446277505939
1,614
rb
Ruby
features/step_definitions/work_unit_steps.rb
AdGitHub2023/xrono
1cdaebe285ee6115e948c7c0a43f34e2393d4b4a
[ "MIT" ]
11
2015-03-16T14:45:03.000Z
2019-02-09T08:03:41.000Z
features/step_definitions/work_unit_steps.rb
AdGitHub2023/xrono
1cdaebe285ee6115e948c7c0a43f34e2393d4b4a
[ "MIT" ]
3
2015-03-11T21:29:36.000Z
2018-06-26T17:38:05.000Z
features/step_definitions/work_unit_steps.rb
AdGitHub2023/xrono
1cdaebe285ee6115e948c7c0a43f34e2393d4b4a
[ "MIT" ]
2
2015-12-13T17:33:51.000Z
2019-07-21T20:20:18.000Z
Given /^I have (?:a|an) "([^\"]*)" work unit scheduled today for "([^\"]*)" hours$/ do |hours_type, hours| WorkUnit.make(:hours_type => hours_type, :scheduled_at => Date.current, :user => @current_user, :hours => hours) end Then /^I should see the following work_units:$/ do |expected_work_units_table| expected_wor...
40.35
121
0.703222
3.0625
0ff2a8b6d1a72c706df715b01c61d59991920bb5
10,259
kt
Kotlin
baseLib/src/main/java/com/gas/ext/file/ZipExt.kt
alinainai/MvvmJetpack
7a7d524ec6d5adb013e4aa83bc6e01ec689c435a
[ "Apache-2.0" ]
null
null
null
baseLib/src/main/java/com/gas/ext/file/ZipExt.kt
alinainai/MvvmJetpack
7a7d524ec6d5adb013e4aa83bc6e01ec689c435a
[ "Apache-2.0" ]
null
null
null
baseLib/src/main/java/com/gas/ext/file/ZipExt.kt
alinainai/MvvmJetpack
7a7d524ec6d5adb013e4aa83bc6e01ec689c435a
[ "Apache-2.0" ]
null
null
null
package com.gas.ext.file import android.util.Log import com.gas.ext.app.debug import com.gas.ext.io.toFile import com.gas.ext.isSpace import java.io.* import java.util.* import java.util.zip.ZipEntry import java.util.zip.ZipException import java.util.zip.ZipFile import java.util.zip.ZipOutputStream /** * ===========...
29.736232
123
0.610001
3.0625
8599ffe35407070cd185c4dc33fdccea1859108b
3,269
js
JavaScript
pages/product.js
DCKT/next-blog
85d0cd455685929f841c07dfad8d6abf5af99780
[ "MIT" ]
null
null
null
pages/product.js
DCKT/next-blog
85d0cd455685929f841c07dfad8d6abf5af99780
[ "MIT" ]
14
2020-06-11T05:36:12.000Z
2022-03-15T20:23:36.000Z
pages/product.js
DCKT/next-blog
85d0cd455685929f841c07dfad8d6abf5af99780
[ "MIT" ]
null
null
null
// @flow import React from 'react' import Layout from '../components/Layout' import * as Moltin from '../utils/js/moltin' import Button from '../components/Button' import { addProduct } from '../actions/cart' import type { TMoltinProduct, TMoltinImage } from '../utils/js/types' import classNames from 'classnames' impor...
27.940171
122
0.576017
3.25
79fa2b212057659746f9224f97fb012e1eed02f8
5,410
lua
Lua
PersonalAssistant/PersonalAssistantJunk/PAJunk/PAJunkCustom.lua
Nesferatum/ESO-PersonalAssistant
fb1063438999ab3a7a75923a196591133ec83fee
[ "Zlib" ]
null
null
null
PersonalAssistant/PersonalAssistantJunk/PAJunk/PAJunkCustom.lua
Nesferatum/ESO-PersonalAssistant
fb1063438999ab3a7a75923a196591133ec83fee
[ "Zlib" ]
null
null
null
PersonalAssistant/PersonalAssistantJunk/PAJunk/PAJunkCustom.lua
Nesferatum/ESO-PersonalAssistant
fb1063438999ab3a7a75923a196591133ec83fee
[ "Zlib" ]
null
null
null
-- Local instances of Global tables -- local PA = PersonalAssistant local PAJ = PA.Junk local PAHF = PA.HelperFunctions -- --------------------------------------------------------------------------------------------------------------------- local function _unmarkAllPAItemIdsFromJunk(paItemId) PAJ.debugln("#_unmar...
42.265625
123
0.661922
3.03125
2fba1f787fafcd9f89766b0283db8d121a83b471
2,283
rs
Rust
foundationdb/src/directory/node.rs
foundationdb-rs/foundationdb-rs
a309d67946a272d245b6d1d1072b2196d5951655
[ "Apache-2.0", "MIT" ]
13
2021-12-09T07:05:11.000Z
2022-02-12T18:43:27.000Z
foundationdb/src/directory/node.rs
foundationdb-rs/foundationdb-rs
a309d67946a272d245b6d1d1072b2196d5951655
[ "Apache-2.0", "MIT" ]
37
2021-12-08T16:24:05.000Z
2022-03-24T13:19:57.000Z
foundationdb/src/directory/node.rs
foundationdb-rs/foundationdb-rs
a309d67946a272d245b6d1d1072b2196d5951655
[ "Apache-2.0", "MIT" ]
3
2021-12-08T18:27:11.000Z
2021-12-29T03:41:27.000Z
use crate::directory::directory_layer::{ DirectoryLayer, DEFAULT_SUB_DIRS, LAYER_SUFFIX, PARTITION_LAYER, }; use crate::directory::error::DirectoryError; use crate::directory::DirectoryOutput; use crate::tuple::Subspace; use crate::RangeOption; use crate::Transaction; #[derive(Debug, Clone)] pub(super) struct Node...
34.074627
90
0.64608
3.0625
125eef5327aeb1c7b10700015c0e568e63b49d63
1,348
c
C
docs/examples_src/pbuf_extract.c
jbrryhooves/lwgsm
98924cfb5008e290f15f617755bdc8ca54c9ca04
[ "MIT" ]
130
2020-07-15T01:12:52.000Z
2022-03-24T09:34:57.000Z
docs/examples_src/pbuf_extract.c
jbrryhooves/lwgsm
98924cfb5008e290f15f617755bdc8ca54c9ca04
[ "MIT" ]
31
2020-08-05T12:43:08.000Z
2022-03-21T10:21:08.000Z
docs/examples_src/pbuf_extract.c
jbrryhooves/lwgsm
98924cfb5008e290f15f617755bdc8ca54c9ca04
[ "MIT" ]
57
2018-02-09T10:49:30.000Z
2019-12-05T08:35:38.000Z
const void* data; size_t pos, len; lwgsm_pbuf_p a, b, c; const char str_a[] = "This is one long"; const char str_a[] = "string. We want to save"; const char str_a[] = "chain of pbufs to file"; /* Create pbufs to hold these strings */ a = lwgsm_pbuf_new(strlen(str_a)); b = lwgsm_pbuf_new(strlen(str_b)); c = lwgsm_pbuf...
28.083333
80
0.688427
3.203125
015a0ac5c71bd1d99d1ec8db59a466b5521d34a8
2,968
lua
Lua
dev/spark/gamemode/hookwars/game.lua
chrisinajar/spark
3c6b30592c00bc38738cc3aaca2144edfc6cc8b2
[ "AML" ]
2
2020-08-20T03:40:24.000Z
2021-02-07T20:31:43.000Z
dev/spark/gamemode/hookwars/game.lua
chrisinajar/spark
3c6b30592c00bc38738cc3aaca2144edfc6cc8b2
[ "AML" ]
null
null
null
dev/spark/gamemode/hookwars/game.lua
chrisinajar/spark
3c6b30592c00bc38738cc3aaca2144edfc6cc8b2
[ "AML" ]
5
2020-08-27T20:44:18.000Z
2021-08-21T22:54:11.000Z
require "scripts.info"; require "scripts.core.unit" Require("CommonCheatCodes") Game={} function Game:OnActivate (gameMode) self.gameMode = gameMode Debug.Log("Game:OnActivate()") Debug.Log("gamemode is " .. self.gameMode); if( self:IsAuthoritative() ) then GameManagerRequestBus.Broadcast.CreateUnitWithJson("b...
23.935484
92
0.753369
3.03125
7b62bb4e5d5cfb098274e782be30d68abcb706bc
945
rb
Ruby
src/assignments/age-verifier/solution.rb
leojh/learning-ruby
db3abdba7f8d974127c3eb7f592cc52cb81c169a
[ "MIT" ]
null
null
null
src/assignments/age-verifier/solution.rb
leojh/learning-ruby
db3abdba7f8d974127c3eb7f592cc52cb81c169a
[ "MIT" ]
null
null
null
src/assignments/age-verifier/solution.rb
leojh/learning-ruby
db3abdba7f8d974127c3eb7f592cc52cb81c169a
[ "MIT" ]
null
null
null
#As a developer on the App Store team, you are required to check the age of every user. #Due to US law, users wishing to open accounts online but be at least 13 years of age. #Your job as a developer is to write a module that takes in a user's date of birth #and makes sure that the user is at least 13 years old. requi...
27.794118
102
0.716402
3
750883f83933d9cbc5118238951e80289a752496
42,857
c
C
libsignaletic/src/libsignaletic.c
continuing-creativity/signaletic
4a91207c8b2ca1a67f72402975e9348a4bed3d13
[ "MIT" ]
null
null
null
libsignaletic/src/libsignaletic.c
continuing-creativity/signaletic
4a91207c8b2ca1a67f72402975e9348a4bed3d13
[ "MIT" ]
14
2022-01-31T21:01:59.000Z
2022-02-22T03:17:28.000Z
libsignaletic/src/libsignaletic.c
continuing-creativity/signaletic
4a91207c8b2ca1a67f72402975e9348a4bed3d13
[ "MIT" ]
null
null
null
#include <math.h> // For powf, fmodf, sinf, roundf, fabsf, rand #include <stdlib.h> // For RAND_MAX #include <tlsf.h> // Includes assert.h, limits.h, stddef.h // stdio.h, stdlib.h, string.h (for errors etc.) #include <libsignaletic.h> float sig_fminf(float a, float b) { float r; #ifdef __ar...
32.74026
110
0.668222
3.015625
645ce9eb8368ef45d1d5f1eef02a4449c64f98e2
15,808
lua
Lua
dataseries/init.lua
LuaDist-testing/torch-dataframe
d6437ce987e55779090552d3b81c66a156f535e5
[ "MIT" ]
77
2016-04-01T14:11:26.000Z
2022-02-02T17:17:27.000Z
dataseries/init.lua
LuaDist-testing/torch-dataframe
d6437ce987e55779090552d3b81c66a156f535e5
[ "MIT" ]
26
2016-04-01T11:28:52.000Z
2017-04-12T08:31:23.000Z
dataseries/init.lua
LuaDist-testing/torch-dataframe
d6437ce987e55779090552d3b81c66a156f535e5
[ "MIT" ]
11
2015-11-19T11:14:19.000Z
2022-02-17T09:50:46.000Z
-- Main Dataseries file require 'torch' local argcheck = require "argcheck" local doc = require "argcheck.doc" doc[[ ## Dataseries The Dataseries is an array of data with an additional layer of missing data info. The class contains two main elements: * A data container * A hash with the missing data positions The ...
22.016713
126
0.700025
3.25
7ab38b9c934e0c8138b2c54e7fc5fa13dfb45949
2,384
rs
Rust
src/days/day12.rs
fxwiegand/advent-of-code-2021
c164630bb2567585ff3e8574892eb67e4d777243
[ "MIT" ]
null
null
null
src/days/day12.rs
fxwiegand/advent-of-code-2021
c164630bb2567585ff3e8574892eb67e4d777243
[ "MIT" ]
null
null
null
src/days/day12.rs
fxwiegand/advent-of-code-2021
c164630bb2567585ff3e8574892eb67e4d777243
[ "MIT" ]
1
2021-12-01T17:47:04.000Z
2021-12-01T17:47:04.000Z
use std::collections::HashMap; pub(crate) fn solve_day12() -> u32 { let input = include_str!("../puzzles/day12.txt"); let mut map = HashMap::new(); for line in input.lines() { let (cave, cave2) = line.split_once('-').unwrap(); let entry = map.entry(cave.to_owned()).or_insert_with(Vec::new);...
34.550725
93
0.567953
3.171875
9c2bef9eec101c417b13e58d3bcb3bee40a4d3ba
1,371
js
JavaScript
src/js/04-fav.js
Adalab/modulo-2-evaluacion-final-LuciaRoNova3005
b22f782a732c56189ab231e2d327fbc0fb661ecf
[ "MIT" ]
null
null
null
src/js/04-fav.js
Adalab/modulo-2-evaluacion-final-LuciaRoNova3005
b22f782a732c56189ab231e2d327fbc0fb661ecf
[ "MIT" ]
null
null
null
src/js/04-fav.js
Adalab/modulo-2-evaluacion-final-LuciaRoNova3005
b22f782a732c56189ab231e2d327fbc0fb661ecf
[ "MIT" ]
null
null
null
//Si el array que guarda la informacion del local tiene contenido me ejecutas Recupero los datos y lo pinto //Funcion que escucha click en las peliculas y en las peliculas de favoritas con la js-shows// function addListenShow() { const cardShows = document.querySelectorAll(".js-shows"); for (const card of car...
38.083333
112
0.699489
3.46875
4a3594a8bd9b3628a0f6f39f6b4e27c03f08a727
1,893
sql
SQL
src/BugNET.Database/Stored Procedures/BugNet_IssueNotification_GetIssueNotificationsByIssueId.sql
thaihoc2/bugnet
440bfd93d231c95acf20cf67d99a222d35bd7a4f
[ "MS-PL" ]
200
2015-01-07T11:32:41.000Z
2021-08-13T00:42:12.000Z
src/BugNET.Database/Stored Procedures/BugNet_IssueNotification_GetIssueNotificationsByIssueId.sql
China-HD/bugnet
cfab4aeacc7224425db86f0e1f94cf24e22acf2a
[ "MS-PL" ]
203
2015-01-02T14:49:30.000Z
2019-01-17T02:36:42.000Z
src/BugNET.Database/Stored Procedures/BugNet_IssueNotification_GetIssueNotificationsByIssueId.sql
China-HD/bugnet
cfab4aeacc7224425db86f0e1f94cf24e22acf2a
[ "MS-PL" ]
236
2015-01-09T22:44:16.000Z
2022-03-22T11:10:16.000Z
 CREATE PROCEDURE [dbo].[BugNet_IssueNotification_GetIssueNotificationsByIssueId] @IssueId Int AS SET NOCOUNT ON DECLARE @DefaultCulture NVARCHAR(50) SET @DefaultCulture = (SELECT ISNULL(SettingValue, 'en-US') FROM BugNet_HostSettings WHERE SettingName = 'ApplicationDefaultLanguage') DECLARE @tmpTable TABLE (Issu...
32.084746
237
0.820391
3.078125
5a069359e73e90f9d16604bca6fef4b522a68a42
2,516
rs
Rust
rust/day-2/src/lib.rs
nathankleyn/advent-of-code-2017
25e3681af98f9979989e94c75a4728334b11f054
[ "MIT" ]
null
null
null
rust/day-2/src/lib.rs
nathankleyn/advent-of-code-2017
25e3681af98f9979989e94c75a4728334b11f054
[ "MIT" ]
null
null
null
rust/day-2/src/lib.rs
nathankleyn/advent-of-code-2017
25e3681af98f9979989e94c75a4728334b11f054
[ "MIT" ]
null
null
null
#[allow(dead_code)] fn day_2_part_1(input: &str) -> i64 { input.lines().map(|row| { let state = row.split_whitespace().fold(ChecksumState::zero(), |acc, c| { let incoming: i64 = c.parse().unwrap(); acc.update(incoming) }); state.largest.unwrap_or(0) - state.smallest....
22.872727
93
0.459062
3.34375
f04859b27ee91e595f5a5127a619b6f6d8f15b47
5,391
py
Python
extract_embeddings.py
Artem531/opencv-face-recognition-with-YOLOv3
53a93711a079ea3739cab068aeaf5c684f6e53c4
[ "MIT" ]
null
null
null
extract_embeddings.py
Artem531/opencv-face-recognition-with-YOLOv3
53a93711a079ea3739cab068aeaf5c684f6e53c4
[ "MIT" ]
null
null
null
extract_embeddings.py
Artem531/opencv-face-recognition-with-YOLOv3
53a93711a079ea3739cab068aeaf5c684f6e53c4
[ "MIT" ]
null
null
null
# USAGE # python extract_embeddings.py --dataset dataset --embeddings output/embeddings.pickle \ # --detector face_detection_model --embedding-model openface_nn4.small2.v1.t7 # import the necessary packages from imutils.face_utils import FaceAligner from imutils import paths import numpy as np import argparse import i...
32.475904
88
0.708959
3
c3697edfe68dc21de74545afcefdff8f0ea10ab1
2,695
go
Go
drpcsignal/signal.go
unistack-org/drpc
7713ed76eb9b15259c57f7b85a1230628cf400ec
[ "MIT" ]
992
2019-10-02T17:04:48.000Z
2022-03-31T20:17:50.000Z
drpcsignal/signal.go
unistack-org/drpc
7713ed76eb9b15259c57f7b85a1230628cf400ec
[ "MIT" ]
23
2020-03-18T18:15:15.000Z
2022-03-27T10:53:46.000Z
drpcsignal/signal.go
unistack-org/drpc
7713ed76eb9b15259c57f7b85a1230628cf400ec
[ "MIT" ]
29
2019-10-23T12:19:03.000Z
2022-03-26T02:37:55.000Z
// Copyright (C) 2019 Storj Labs, Inc. // See LICENSE for copying information. package drpcsignal import ( "sync" "sync/atomic" ) type signalStatus = uint32 const ( statusErrorSet = 0b10 statusChannelCreated = 0b01 ) // Signal contains an error value that can be set one and exports // a number of ways to...
24.724771
80
0.696104
3.046875
538de2e23f77840afb56e0666eb83b2a87142fb9
9,246
swift
Swift
Select_Assignment1_Sorts.playground/Sources/XCTestAsserts.swift
huydangquoc/select_w1_assignment
721c2c5d7b598a15aab1cdcfbfa608cc6b0e9ea8
[ "Apache-2.0" ]
null
null
null
Select_Assignment1_Sorts.playground/Sources/XCTestAsserts.swift
huydangquoc/select_w1_assignment
721c2c5d7b598a15aab1cdcfbfa608cc6b0e9ea8
[ "Apache-2.0" ]
1
2016-06-30T17:16:10.000Z
2016-07-04T05:25:23.000Z
Select_Assignment1_Sorts.playground/Sources/XCTestAsserts.swift
huydangquoc/select_w1_assignment
721c2c5d7b598a15aab1cdcfbfa608cc6b0e9ea8
[ "Apache-2.0" ]
null
null
null
// Playground Tests import Foundation let defaultMessage = "" /// Emits a test failure if the general `Boolean` expression passed /// to it evaluates to `false`. /// /// - Requires: This and all other XCTAssert* functions must be called from /// within a test method, as passed to `XCTMain`. /// Assertion failure...
34.5
85
0.574519
3
35cb0b95eb8ab7de23bd8cecd4b371610c69f84e
7,687
lua
Lua
system_drive/libs/window.lua
poeticAndroid/homegirl_pro
224f7060423ed3d615baf0116029c9cf8eeb6c3d
[ "MIT" ]
7
2020-05-09T06:12:53.000Z
2021-05-29T02:50:45.000Z
system_drive/libs/window.lua
poeticAndroid/homegirl_pro
224f7060423ed3d615baf0116029c9cf8eeb6c3d
[ "MIT" ]
1
2020-08-16T13:44:11.000Z
2020-08-18T09:35:59.000Z
system_drive/libs/window.lua
poeticAndroid/homegirl_pro
224f7060423ed3d615baf0116029c9cf8eeb6c3d
[ "MIT" ]
null
null
null
local Widget = require("widget") local Window = Widget:extend() do function Window:constructor(title, left, top, width, height, parent) self.children = {} self:attachto(nil, parent, parent) self:size(width, height) self:position(left, top) self:title(title) end function Window:attachto(...) ...
28.261029
82
0.605958
3.09375
dd66aeadc83afe26033cefc1913ea0c459cc15c2
4,345
swift
Swift
OktoIDE/Pods/Prestyler/Prestyler/Classes/Extensions.swift
MediBoss/OktoIDE
e34fa137b5f093c32b7f2ad7a016f5ecacf4cf36
[ "Apache-2.0" ]
null
null
null
OktoIDE/Pods/Prestyler/Prestyler/Classes/Extensions.swift
MediBoss/OktoIDE
e34fa137b5f093c32b7f2ad7a016f5ecacf4cf36
[ "Apache-2.0" ]
2
2019-07-08T23:43:09.000Z
2019-07-17T16:43:50.000Z
OktoIDE/Pods/Prestyler/Prestyler/Classes/Extensions.swift
mediassumani/OktoIDE
e34fa137b5f093c32b7f2ad7a016f5ecacf4cf36
[ "Apache-2.0" ]
null
null
null
// // StringExtension.swift // Pods-Prestyler_Example // // Created by Ilya Krupko on 28/02/2019. // import Foundation /// Prestyler uses a public extension to provide access to string formatting. Next methods can be used for every string. public extension String { /// Convert string to attributed string by ...
35.040323
120
0.588953
3.15625
5ae222da8ce3145238c55a2bbf4a71a4f81e8c8a
5,657
rs
Rust
layout21raw/src/bbox.rs
colepoirier/Layout21
227c0a317619176e9b4ca87aa23cbd99526f260c
[ "BSD-3-Clause" ]
null
null
null
layout21raw/src/bbox.rs
colepoirier/Layout21
227c0a317619176e9b4ca87aa23cbd99526f260c
[ "BSD-3-Clause" ]
null
null
null
layout21raw/src/bbox.rs
colepoirier/Layout21
227c0a317619176e9b4ca87aa23cbd99526f260c
[ "BSD-3-Clause" ]
null
null
null
//! //! # Rectangular Bounding Boxes and Associated Trait //! // Crates.io use serde::{Deserialize, Serialize}; // Local imports use crate::{ geom::{Point, Shape}, Int, Rect, }; /// # Axis-Aligned Rectangular Bounding Box /// /// Points `p0` and `p1` represent opposite corners of a bounding rectangle. /// `p...
33.473373
89
0.574156
3.53125
f0430557dbfd094f1b6f8f4b8c1e8e82129f2452
6,822
js
JavaScript
dist/models/state-models.js
a9udn9u/last-step
7e7e95ed52f8f8af9cb0621ac618859f95843cc1
[ "MIT" ]
2
2017-03-28T00:16:40.000Z
2018-11-18T06:24:54.000Z
dist/models/state-models.js
a9udn9u/last-step
7e7e95ed52f8f8af9cb0621ac618859f95843cc1
[ "MIT" ]
null
null
null
dist/models/state-models.js
a9udn9u/last-step
7e7e95ed52f8f8af9cb0621ac618859f95843cc1
[ "MIT" ]
null
null
null
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("~/utils"); /** * Simple 1-to-M mapping */ class OneToMany extends Map { constructor() { super(); } } /** * Target to sources mapping */ class TargetToSources extends OneToMany { /** * Key i...
100.323529
4,970
0.880827
3.09375
4c00a61ce18e0e6bf38c4294d512c9e1642981fe
1,121
kt
Kotlin
Boats_to_Save_People_v1.kt
xiekc/leetcode
56dc65850ac68752f7c6f50f8b35eb23bfafed93
[ "MIT" ]
null
null
null
Boats_to_Save_People_v1.kt
xiekc/leetcode
56dc65850ac68752f7c6f50f8b35eb23bfafed93
[ "MIT" ]
null
null
null
Boats_to_Save_People_v1.kt
xiekc/leetcode
56dc65850ac68752f7c6f50f8b35eb23bfafed93
[ "MIT" ]
null
null
null
class Solution { fun numRescueBoats(people: IntArray, limit: Int): Int { people.sort() var left = 0 var right = people.size - 1 var result = 0 while (right >= left) { var sum = 0 var count = 0 while (right >= left && sum + people[right] <= ...
30.297297
101
0.482605
3.296875
9c0464d3febf40d0d8a4cd5697b9e27ca24b15b7
2,912
js
JavaScript
src/domains/components/SlaveZone.js
mighteejim/manager
86365b7142a78956e04821c0cb9e0adadaf0de3c
[ "BSD-3-Clause" ]
null
null
null
src/domains/components/SlaveZone.js
mighteejim/manager
86365b7142a78956e04821c0cb9e0adadaf0de3c
[ "BSD-3-Clause" ]
null
null
null
src/domains/components/SlaveZone.js
mighteejim/manager
86365b7142a78956e04821c0cb9e0adadaf0de3c
[ "BSD-3-Clause" ]
null
null
null
import React, { Component, PropTypes } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import { replace } from 'react-router-redux'; import { Card, CardHeader } from 'linode-components/cards'; import { Table } from 'linode-components/tables'; import { ButtonCell } from 'linode...
26.472727
70
0.522665
3.171875
653d695cd3021eadcb097d2dd9fa97ca942ec702
10,454
py
Python
etc/check-python.py
maxzheng/auto-update
7d9afa139f890ff9a6bbeb01549a311bdb5168d0
[ "MIT" ]
7
2018-08-22T21:03:54.000Z
2022-02-04T20:31:20.000Z
etc/check-python.py
maxzheng/auto-update
7d9afa139f890ff9a6bbeb01549a311bdb5168d0
[ "MIT" ]
null
null
null
etc/check-python.py
maxzheng/auto-update
7d9afa139f890ff9a6bbeb01549a311bdb5168d0
[ "MIT" ]
2
2019-04-24T20:49:01.000Z
2019-10-30T17:45:19.000Z
#!/usr/bin/env python import argparse import os import platform import re import shutil import subprocess import sys SUPPORTED_VERSIONS = ('3.6', '3.7') IS_DEBIAN = platform.system() == 'Linux' and os.path.exists('/etc/debian_version') IS_OLD_UBUNTU = (IS_DEBIAN and os.path.exists('/etc/lsb-release') ...
34.730897
117
0.583604
3.140625
7932ee22245535cb2f3a6aaa3cca03f8b87a4bd8
6,704
kt
Kotlin
src/test/kotlin/com/github/vertical_blank/sqlformatter/N1qlFormatterTest.kt
Willam2004/sql-formatter
bb9d26533e417378730aed91fc3e75f0994d1fb5
[ "MIT" ]
106
2019-06-04T13:57:09.000Z
2022-03-17T12:44:45.000Z
src/test/kotlin/com/github/vertical_blank/sqlformatter/N1qlFormatterTest.kt
Willam2004/sql-formatter
bb9d26533e417378730aed91fc3e75f0994d1fb5
[ "MIT" ]
42
2019-04-04T16:42:27.000Z
2022-03-01T14:13:35.000Z
src/test/kotlin/com/github/vertical_blank/sqlformatter/N1qlFormatterTest.kt
Willam2004/sql-formatter
bb9d26533e417378730aed91fc3e75f0994d1fb5
[ "MIT" ]
25
2019-10-02T07:29:29.000Z
2022-01-21T02:46:27.000Z
package com.github.vertical_blank.sqlformatter import com.github.vertical_blank.sqlformatter.features.supportsBetween import com.github.vertical_blank.sqlformatter.features.supportsJoin import com.github.vertical_blank.sqlformatter.features.supportsOperators import com.github.vertical_blank.sqlformatter.features.suppo...
30.894009
100
0.459427
3.015625
f01114fcd31b24a944a91cf16636601c7b3cffa8
6,134
py
Python
src/func.py
yygr/datascience_utility
aa6aa37508e46ab3568805dd1bb514ef10652240
[ "MIT" ]
null
null
null
src/func.py
yygr/datascience_utility
aa6aa37508e46ab3568805dd1bb514ef10652240
[ "MIT" ]
null
null
null
src/func.py
yygr/datascience_utility
aa6aa37508e46ab3568805dd1bb514ef10652240
[ "MIT" ]
null
null
null
from pdb import set_trace from time import time import matplotlib.pyplot as plt import numpy as np from numpy import random from scipy.stats import chi2 import renom as rm class Enc(rm.Model): def __init__( self, pre, latent_dim, output_act = None, ): self.pre = pre self.l...
31.137056
80
0.5
3.046875
85709306e36a3164506f46bde9238c0cc13c1a5c
3,859
js
JavaScript
src/components/Contact.js
MarcinRapacz/project1
009326f0b645d295b87e5207d9313c59395660b8
[ "MIT" ]
null
null
null
src/components/Contact.js
MarcinRapacz/project1
009326f0b645d295b87e5207d9313c59395660b8
[ "MIT" ]
4
2021-05-10T09:26:07.000Z
2022-02-18T08:14:11.000Z
src/components/Contact.js
MarcinRapacz/project1
009326f0b645d295b87e5207d9313c59395660b8
[ "MIT" ]
null
null
null
import React, { useState } from "react" import { FaAtom } from "react-icons/fa" import axios from "axios" import validator from "validator" const Contact = () => { const defaultForm = { name: { value: "", error: false, }, email: { value: "", error: false, }, message: { ...
25.726667
79
0.524747
3.109375
0eb9d5c7436f5a67ee5b0c847a9ed2b7e2f98a6e
775
sql
SQL
createDataBase.sql
fatemehMirabdollahi/to-do_frontEnd
a209229407d1b1e724559f85c2dd2be5faf3faa1
[ "MIT" ]
3
2021-04-22T19:09:44.000Z
2021-08-07T19:14:15.000Z
createDataBase.sql
fatemehMirabdollahi/to-do_frontEnd
a209229407d1b1e724559f85c2dd2be5faf3faa1
[ "MIT" ]
1
2021-02-28T19:17:41.000Z
2021-02-28T19:18:42.000Z
createDataBase.sql
fatemehMirabdollahi/to-do_frontEnd
a209229407d1b1e724559f85c2dd2be5faf3faa1
[ "MIT" ]
null
null
null
CREATE TABLE list ( list_title VARCHAR(50) NOT NULL, undone INTEGER DEFAULT 0 PRIMARY KEY(list_title) ); CREATE TABLE task ( task_id INT GENERATED ALWAYS AS IDENTITY, task_title VARCHAR(50) NOT NULL, important BOOLEAN DEFAULT FALSE, myday BOOLEAN DEFAULT FALSE, done BOOLEAN DEFAULT FALSE, step_num ...
25
43
0.734194
3
280efac39846b803b9ee69f6d22bf6a79e31e3b4
1,311
rb
Ruby
app/controllers/admin/admin_users_controller.rb
paa-yaw/referral_system
7d101fd3eef4020e3b2107f7cb75a174350332f1
[ "Unlicense" ]
1
2019-06-17T15:10:14.000Z
2019-06-17T15:10:14.000Z
app/controllers/admin/admin_users_controller.rb
paa-yaw/referral_system
7d101fd3eef4020e3b2107f7cb75a174350332f1
[ "Unlicense" ]
5
2021-05-18T22:43:47.000Z
2022-03-30T22:50:59.000Z
app/controllers/admin/admin_users_controller.rb
paa-yaw/referral_system
7d101fd3eef4020e3b2107f7cb75a174350332f1
[ "Unlicense" ]
null
null
null
class Admin::AdminUsersController < Admin::ApplicationController before_action :set_user, only: [:show, :edit, :update, :destroy, :update_button] layout "admin" def index @admins = User.all.includes(:companies).where(admin: true, admin_status: 1) end def show end def new @admin = User.new en...
19
83
0.650648
3.109375
f0425b1ddda33471bcd698350aad4a8f84b9b335
1,837
py
Python
mnt/us/kapps/apps/gallery/gallery.py
PhilippMundhenk/kapps
eed07669d8554393bfbd40acd8d255475e90b88e
[ "MIT" ]
1
2021-11-19T08:40:44.000Z
2021-11-19T08:40:44.000Z
mnt/us/kapps/apps/gallery/gallery.py
PhilippMundhenk/kapps
eed07669d8554393bfbd40acd8d255475e90b88e
[ "MIT" ]
null
null
null
mnt/us/kapps/apps/gallery/gallery.py
PhilippMundhenk/kapps
eed07669d8554393bfbd40acd8d255475e90b88e
[ "MIT" ]
null
null
null
from core.kapp import Kapp from core.httpResponse import HTTPResponse from core.Kcommand import Kcommand import uuid import os class GetImage(Kcommand): getImageHash = str(uuid.uuid4()) def __init__(self): super(GetImage, self).__init__( "GetImage", self.getImageHash) class ViewImage(Kc...
30.114754
138
0.619488
3.359375
004e9101a653a8b4f1ea24fed6f1c40459546fad
1,952
kt
Kotlin
app/src/main/java/com/zdog/demo/ui/effects/sunny/Clouds.kt
DavosLi3hn9g/legal-informaticsp
a80c79cc0afeae6161eefbe69d7ab9cbb3cbd85c
[ "MIT" ]
21
2019-09-27T11:21:47.000Z
2022-03-03T20:32:27.000Z
app/src/main/java/com/zdog/demo/ui/effects/sunny/Clouds.kt
DavosLi3hn9g/legal-informaticsp
a80c79cc0afeae6161eefbe69d7ab9cbb3cbd85c
[ "MIT" ]
null
null
null
app/src/main/java/com/zdog/demo/ui/effects/sunny/Clouds.kt
DavosLi3hn9g/legal-informaticsp
a80c79cc0afeae6161eefbe69d7ab9cbb3cbd85c
[ "MIT" ]
5
2019-10-15T01:56:50.000Z
2021-04-16T14:08:16.000Z
package com.zdog.demo.ui.effects.sunny import com.zdog.demo.ui.effects.Entity import com.zdog.demo.ui.effects.cloud1 import com.zdog.demo.ui.effects.cloud2 import com.zdog.demo.ui.effects.layerSpace import com.zdog.demo.ui.shapes.* import com.zdog.demo.ui.shapes.Colors.white import com.zdog.library.render.* class Clo...
31.483871
87
0.589652
3.015625
74f7a9f85e2f12e783f94c8cb23678707be4a8b2
654
asm
Assembly
NASM/SpojNASM/Basic/XOR.asm
gabriel88766/SmallProjects
deef95631369ac6378448ab3e8e1f52d7a78ea6b
[ "MIT" ]
1
2021-08-28T17:22:57.000Z
2021-08-28T17:22:57.000Z
NASM/SpojNASM/Basic/XOR.asm
gabriel88766/SmallProjects
deef95631369ac6378448ab3e8e1f52d7a78ea6b
[ "MIT" ]
null
null
null
NASM/SpojNASM/Basic/XOR.asm
gabriel88766/SmallProjects
deef95631369ac6378448ab3e8e1f52d7a78ea6b
[ "MIT" ]
null
null
null
; https://www.spoj.com/problems/BSCXOR/ ; Input X and Y, two numbers: "X Y" ; Output X^Y ; global _start section .data section .bss ;Uninitialized data line resb 3 resp resb 1 section .text _start: read1: mov eax, 3 mov ebx, 0 mov ecx, line mov edx, 3 int 80h movzx eax,...
13.914894
46
0.54893
3.078125
c526affb7d5de98fb84232129dd552fa2ec5252a
3,791
asm
Assembly
Max/min.asm
miguel2192/CSC211-Assembly
39cd43026f07e443d9809fb7ec229303522ecab9
[ "MIT" ]
null
null
null
Max/min.asm
miguel2192/CSC211-Assembly
39cd43026f07e443d9809fb7ec229303522ecab9
[ "MIT" ]
null
null
null
Max/min.asm
miguel2192/CSC211-Assembly
39cd43026f07e443d9809fb7ec229303522ecab9
[ "MIT" ]
null
null
null
########### max.asm ############################## # Miguel Rodriguez # # max.asm # # Description # # Determines the max of two floating numbers # # Program Logic # # 1. Ask for ...
29.617188
88
0.363756
3.125
1685774039ca58fd0124e74dc4bbc3c0a0d3b484
1,921
h
C
include/tweedledum/IR/Qubit.h
paniash/tweedledum
fe997bea3413a02033d76b20034e3a24b840bffb
[ "MIT" ]
76
2018-07-21T08:12:17.000Z
2022-01-25T06:22:25.000Z
include/tweedledum/IR/Qubit.h
paniash/tweedledum
fe997bea3413a02033d76b20034e3a24b840bffb
[ "MIT" ]
44
2018-10-26T10:44:39.000Z
2022-02-07T01:07:38.000Z
include/tweedledum/IR/Qubit.h
paniash/tweedledum
fe997bea3413a02033d76b20034e3a24b840bffb
[ "MIT" ]
23
2018-09-27T15:28:48.000Z
2022-03-07T12:21:37.000Z
/*------------------------------------------------------------------------------ | Part of Tweedledum Project. This file is distributed under the MIT License. | See accompanying file /LICENSE for details. *-----------------------------------------------------------------------------*/ #pragma once #include <cassert> ...
19.40404
80
0.52785
3.0625
c310a18d5accf2c0cabd35c4376b3dad1321920e
1,034
go
Go
content/code/go-iterate-all-elements/handleHtmlLink.go
eduard1963/userpages
98a00c9ef3d82363dba1a89375574daaa5a86d14
[ "Unlicense" ]
77
2015-07-18T15:56:54.000Z
2022-03-10T06:22:06.000Z
content/code/go-iterate-all-elements/handleHtmlLink.go
vicmanbrile/userpages
76d540b447ea0baccc91e1db5f9c22408fe420f4
[ "Unlicense" ]
5
2017-02-23T10:17:21.000Z
2022-01-13T19:51:15.000Z
content/code/go-iterate-all-elements/handleHtmlLink.go
vicmanbrile/userpages
76d540b447ea0baccc91e1db5f9c22408fe420f4
[ "Unlicense" ]
35
2015-04-22T05:10:00.000Z
2022-01-21T12:34:50.000Z
package main import ( "errors" "fmt" "golang.org/x/net/html" "os" "strings" ) func isAnchorElement(n *html.Node) bool { return n.Type == html.ElementNode && n.Data == "a" } func isTextNode(n *html.Node) bool { return n.Type == html.TextNode } func isHasOnlyOneChild(n *html.Node) bool { return n.FirstChild !...
19.148148
61
0.648936
3.125
7e6f37b7f882863d339e0a504bceebce9b16dadb
1,615
lua
Lua
learn-corona-sdk-game-dev/chapter-11-code/listing_11-2.lua
portal-webstore/books
689eb33ca0ef96d459e7cf3f3b15f35383b8c601
[ "MIT" ]
null
null
null
learn-corona-sdk-game-dev/chapter-11-code/listing_11-2.lua
portal-webstore/books
689eb33ca0ef96d459e7cf3f3b15f35383b8c601
[ "MIT" ]
null
null
null
learn-corona-sdk-game-dev/chapter-11-code/listing_11-2.lua
portal-webstore/books
689eb33ca0ef96d459e7cf3f3b15f35383b8c601
[ "MIT" ]
null
null
null
function utils:showFPSAndMem() local prevTime = 0; local curTime = 0; local dt = 0; local fps = 60; local mem = 0; local frameCount = 0; local avg = 0; local slowest = 1000; underlay = display.newRect( 0, display.contentHeight - 30, display.contentWidth, 34 ); underlay:setReferencePoint(disp...
29.907407
79
0.609288
3.15625
2f72ba28d9cb6ac5fe8a0b376754d94338a16de4
1,156
rs
Rust
src/bin/parol/tools/follow.rs
jsinger67/parol
80fd8e97d3659b3a3a0c6f87f8c089acd04e5f84
[ "MIT" ]
9
2021-11-04T00:57:09.000Z
2022-03-09T16:15:21.000Z
src/bin/parol/tools/follow.rs
jsinger67/parol
80fd8e97d3659b3a3a0c6f87f8c089acd04e5f84
[ "MIT" ]
10
2021-12-27T08:06:01.000Z
2022-01-23T10:42:31.000Z
src/bin/parol/tools/follow.rs
jsinger67/parol
80fd8e97d3659b3a3a0c6f87f8c089acd04e5f84
[ "MIT" ]
2
2021-12-30T05:34:04.000Z
2022-01-22T17:52:24.000Z
use miette::{bail, Result}; use parol::analysis::follow_k; use parol::analysis::FirstCache; use parol::generators::generate_terminal_names; use parol::{obtain_grammar_config, MAX_K}; use std::path::PathBuf; /// Calculates the FOLLOW(k) sets for each non-terminal. #[derive(clap::Parser)] #[clap(name = "follow")] pub st...
30.421053
67
0.653979
3.015625
2104689fc7f2ffa86469a776372852ba26bb8302
1,857
rs
Rust
crate/state_play/src/system/state_id_event_system.rs
Lighty0410/autexousious
99d142d8fdbf2076f3fd929f61b8140d47cf6b86
[ "Apache-2.0", "MIT" ]
41
2020-03-13T04:45:03.000Z
2022-01-17T18:13:09.000Z
crate/state_play/src/system/state_id_event_system.rs
Lighty0410/autexousious
99d142d8fdbf2076f3fd929f61b8140d47cf6b86
[ "Apache-2.0", "MIT" ]
61
2016-06-19T01:28:12.000Z
2021-07-17T08:21:44.000Z
crate/state_play/src/system/state_id_event_system.rs
Lighty0410/autexousious
99d142d8fdbf2076f3fd929f61b8140d47cf6b86
[ "Apache-2.0", "MIT" ]
3
2020-03-21T21:53:36.000Z
2021-01-30T01:10:55.000Z
use amethyst::{ ecs::{ReadExpect, System, World, Write}, shred::{ResourceId, SystemData}, shrev::EventChannel, }; use derivative::Derivative; use derive_new::new; use log::debug; use state_registry::{StateId, StateIdUpdateEvent}; use tracker::Prev; /// Emits `StateIdUpdateEvent`s when the `StateId` changes...
32.017241
93
0.632741
3.09375
feb4363a02c7a9a4c0bb028597ed04facbbde4bf
4,646
lua
Lua
tabuleiro.lua
Mario-Nakazato/jogoVelhaMultiplayer
00a5583b8223cdbef79dce5955a52d027fadae6d
[ "Apache-2.0" ]
1
2022-02-26T03:37:02.000Z
2022-02-26T03:37:02.000Z
tabuleiro.lua
Mario-Nakazato/jogoVelhaMultiplayer
00a5583b8223cdbef79dce5955a52d027fadae6d
[ "Apache-2.0" ]
null
null
null
tabuleiro.lua
Mario-Nakazato/jogoVelhaMultiplayer
00a5583b8223cdbef79dce5955a52d027fadae6d
[ "Apache-2.0" ]
null
null
null
--[[ Tabuleiro # . --]] require "palavra" local function novo(x, y, tamanho, jogador) local tabuleiro = { x = x or 0, y = y or 0, tamanho = tamanho or 128, jogador = jogador or "X", jogada = 9, venceu = nil, quadrado = { [1] = {"", "",...
31.821918
158
0.522815
3
e731212e08145b2ed50c248d854bb965f757e62d
1,773
js
JavaScript
src/services/metric.js
media-network/media-api
292fbf8eb2c490dd2c39d376979b70f0dbde3ac5
[ "MIT" ]
1
2020-05-18T09:45:29.000Z
2020-05-18T09:45:29.000Z
src/services/metric.js
media-network/media-api
292fbf8eb2c490dd2c39d376979b70f0dbde3ac5
[ "MIT" ]
null
null
null
src/services/metric.js
media-network/media-api
292fbf8eb2c490dd2c39d376979b70f0dbde3ac5
[ "MIT" ]
1
2022-01-03T07:15:40.000Z
2022-01-03T07:15:40.000Z
import elasticsearchService from 'services/elasticsearch' import elasticsearchInfra from 'infrastructure/elasticsearch' import config from 'infrastructure/config' import mapping from 'mapping/metric' const DATAPOINT_VERSION = config.elasticsearch.datapointVersion const head = async (projectIdentifier, metricName, tim...
21.107143
70
0.602933
3.15625
f031c64cd48b598cd3b616708c05819e454b8bc1
2,870
py
Python
core/translator.py
bfu4/mdis
fac5ec078ffeaa9339df4b31b9b71140563f4f14
[ "MIT" ]
13
2021-05-17T06:38:50.000Z
2022-03-27T15:39:57.000Z
core/translator.py
bfu4/mdis
fac5ec078ffeaa9339df4b31b9b71140563f4f14
[ "MIT" ]
null
null
null
core/translator.py
bfu4/mdis
fac5ec078ffeaa9339df4b31b9b71140563f4f14
[ "MIT" ]
null
null
null
from typing import List from parser import parse_bytes, split_bytes_from_lines, get_bytes, parse_instruction_set, wrap_parsed_set from reader import dump_file_hex_with_locs class Translator: """ Class handling file translations from *.mpy to hex dumps and opcodes """ def __init__(self, file: str): ...
28.7
105
0.591289
3.40625
643b6b320d6dcee16060090daaeb32870d38900b
2,905
rs
Rust
src/lib.rs
KJ002/anagram_solver
5c8c86fb19211d414acf9593fb4ceb6e2c2d9930
[ "MIT" ]
null
null
null
src/lib.rs
KJ002/anagram_solver
5c8c86fb19211d414acf9593fb4ceb6e2c2d9930
[ "MIT" ]
null
null
null
src/lib.rs
KJ002/anagram_solver
5c8c86fb19211d414acf9593fb4ceb6e2c2d9930
[ "MIT" ]
null
null
null
use itertools::Itertools; use std::cmp::{Ordering, Reverse}; use std::fs; use std::thread; use pyo3::prelude::*; fn contains_any_characters(word: &str, characters: Vec<char>) -> bool { for character in characters { if word .to_lowercase() .contains(&character.to_lowercase().to_st...
24.008264
82
0.549053
3.296875
e725ca8b93021d84822bf6d286bdba3a6bcfd6e6
3,120
js
JavaScript
app/components/Player/PlayerComponent.js
popcorn-official/popcorn-time-desktop
2dcdc61d0d22ecc6f46d85bd61b6f0c55b6b0d32
[ "MIT" ]
9
2020-03-28T14:21:31.000Z
2021-07-30T22:22:00.000Z
app/components/Player/PlayerComponent.js
TriPSs/popcorn-time-desktop
2dcdc61d0d22ecc6f46d85bd61b6f0c55b6b0d32
[ "MIT" ]
21
2017-07-10T08:12:09.000Z
2017-08-18T12:22:47.000Z
app/components/Player/PlayerComponent.js
popcorn-official/popcorn-time-desktop
2dcdc61d0d22ecc6f46d85bd61b6f0c55b6b0d32
[ "MIT" ]
10
2020-05-06T07:43:32.000Z
2022-01-14T16:49:49.000Z
// @flow import React from 'react' import classNames from 'classnames' import Player from 'api/Player' import * as PlayerConstants from 'api/Player/PlayerConstants' import * as TorrentConstants from 'api/Torrent/TorrentConstants' import type { Props } from './PlayerTypes' import classes from './Player.scss' import St...
26.218487
108
0.583333
3.171875
c3dfda3fd9302489e3607feef4f356f8a71fa4c0
12,508
go
Go
session_handshake.go
moroen/dtls
8868b17f6698d0759906307ebf0cb0aca15ff499
[ "MIT" ]
null
null
null
session_handshake.go
moroen/dtls
8868b17f6698d0759906307ebf0cb0aca15ff499
[ "MIT" ]
null
null
null
session_handshake.go
moroen/dtls
8868b17f6698d0759906307ebf0cb0aca15ff499
[ "MIT" ]
null
null
null
package dtls import ( "bytes" "encoding/hex" "errors" "reflect" "time" ) func (s *session) parseRecord(data []byte) (*record, []byte, error) { rec, rem, err := parseRecord(data) if err != nil { logWarn(s.peer.String(), "dtls: parse record: %s", err.Error()) return nil, nil, err } if s.decrypt { if s....
28.107865
122
0.669012
3.046875
0b28b47566a0388433df755a312dddf760b4c430
1,250
py
Python
onebarangay_psql/users/tests/test_admin.py
PrynsTag/oneBarangay-PostgreSQL
11d7b97b57603f4c88948905560a22a5314409ce
[ "Apache-2.0" ]
null
null
null
onebarangay_psql/users/tests/test_admin.py
PrynsTag/oneBarangay-PostgreSQL
11d7b97b57603f4c88948905560a22a5314409ce
[ "Apache-2.0" ]
43
2022-02-07T00:18:35.000Z
2022-03-21T04:42:48.000Z
onebarangay_psql/users/tests/test_admin.py
PrynsTag/oneBarangay-PostgreSQL
11d7b97b57603f4c88948905560a22a5314409ce
[ "Apache-2.0" ]
null
null
null
"""Create your tests for the admin app here.""" import pytest from django.contrib.auth import get_user_model from django.urls import reverse pytestmark = pytest.mark.django_db User = get_user_model() class TestUserAdmin: """Test the admin interface.""" def test_changelist(self, admin_client): """Tes...
33.783784
79
0.668
3.125
650d0ad17e404144a026ce3f06aafc17ea1fda8f
1,962
py
Python
sparse gamma def/gamma_def_score.py
blei-lab/ars-reparameterization
b20a84c28537d85e0aaf62cbbaacb6de9370f0a3
[ "MIT" ]
33
2017-03-11T10:00:32.000Z
2022-03-08T14:23:45.000Z
ars-reparameterization/sparse gamma def/gamma_def_score.py
astirn/neural-inverse-cdf-sampling
80eb2eb7cf396a4e53df62bc126e9a1828f55ca9
[ "MIT" ]
2
2018-02-05T17:14:00.000Z
2019-08-02T14:37:25.000Z
ars-reparameterization/sparse gamma def/gamma_def_score.py
astirn/neural-inverse-cdf-sampling
80eb2eb7cf396a4e53df62bc126e9a1828f55ca9
[ "MIT" ]
10
2017-03-05T13:31:01.000Z
2020-03-29T01:09:01.000Z
from autograd import grad import autograd.numpy as np import autograd.numpy.random as npr import autograd.scipy.special as sp from gamma_def import * # Define helper functions for score fnc estimator def logQ(sample, alpha, m): """ Evaluates log of variational approximation, vectorized. """ temp = alp...
29.727273
104
0.574414
3.453125
3590c07c413ceb5ce35b81b4a4ffbcc37aa29cf1
2,197
sql
SQL
master2021/company_secProc.sql
MoDELSVGU/SQLSI
54e8039cad17f69bb9c20847db69c7ac22875405
[ "MIT" ]
null
null
null
master2021/company_secProc.sql
MoDELSVGU/SQLSI
54e8039cad17f69bb9c20847db69c7ac22875405
[ "MIT" ]
null
null
null
master2021/company_secProc.sql
MoDELSVGU/SQLSI
54e8039cad17f69bb9c20847db69c7ac22875405
[ "MIT" ]
null
null
null
DROP PROCEDURE IF EXISTS Query1; /* SELECT email FROM Employee */ DELIMITER // CREATE PROCEDURE Query1(in kcaller varchar(250), in krole varchar(250)) BEGIN DECLARE _rollback int DEFAULT 0; DECLARE EXIT HANDLER FOR SQLEXCEPTION BEGIN SET _rollback = 1; GET STACKED DIAGNOSTICS CONDITION 1 @p1 = RETURNED_SQLSTATE, @p...
31.84058
151
0.778334
3.203125
7fd3b2d2bf1b371d0081780ffac85d0eab4453e0
1,731
go
Go
service/UserService.go
watter08/NotitiaGolang
cef8ba1c6d92e3700fafc17f9c3d062738c467ad
[ "MIT" ]
5
2017-11-20T17:38:41.000Z
2021-11-25T09:11:06.000Z
service/UserService.go
watter08/NotitiaGolang
cef8ba1c6d92e3700fafc17f9c3d062738c467ad
[ "MIT" ]
null
null
null
service/UserService.go
watter08/NotitiaGolang
cef8ba1c6d92e3700fafc17f9c3d062738c467ad
[ "MIT" ]
5
2018-09-07T13:27:50.000Z
2021-03-12T09:54:36.000Z
package service import ( "go-restful-mvc/model" ) func NewUser(user *model.User) (int, interface{}) { // Your db call service implementation instead of resSuccess:= resSuccess := model.BaseResponse{ Status: 200, Message: "Success create new user, email: " + user.Email, } return 200, resSuccess } func Find...
20.127907
63
0.641248
3.15625
9c68062a58c52bec86735b0eb7c560dfe7a5284a
2,096
js
JavaScript
waltz-ng/client/common/svelte/calendar-heatmap/calendar-heatmap-utils.js
G-Research/waltz
512049af0fd117af68f16bf6dd10c12207e8623f
[ "Apache-2.0" ]
77
2016-06-17T11:01:16.000Z
2020-02-28T04:00:31.000Z
waltz-ng/client/common/svelte/calendar-heatmap/calendar-heatmap-utils.js
khartec/waltz
fdfa6f386b70f2308b9abeecf804be350707b398
[ "Apache-2.0" ]
2,778
2016-01-21T20:44:52.000Z
2020-03-09T13:27:07.000Z
waltz-ng/client/common/svelte/calendar-heatmap/calendar-heatmap-utils.js
G-Research/waltz
512049af0fd117af68f16bf6dd10c12207e8623f
[ "Apache-2.0" ]
42
2016-01-21T21:54:58.000Z
2020-03-05T21:06:46.000Z
import _ from "lodash"; export function prepareMonthData(data = [], startDate, endDate) { let months = []; const startMonth = startDate.getMonth(); const startYear = startDate.getFullYear(); let initialCalendarDate = new Date(startYear, startMonth, 1); while (initialCalendarDate < endDate) { ...
23.288889
111
0.619275
3.125
168b54e73d5a4d57fae827d58cdc591a06aa87c1
1,455
h
C
include/FrameBuffer.h
danielabbott/Painting-Application-prototype
96de14a184f8649b609d618c6b24ea6b0c580c68
[ "MIT" ]
null
null
null
include/FrameBuffer.h
danielabbott/Painting-Application-prototype
96de14a184f8649b609d618c6b24ea6b0c580c68
[ "MIT" ]
1
2018-11-04T08:12:43.000Z
2019-02-10T14:18:23.000Z
include/FrameBuffer.h
danielabbott/Painting-Application-prototype
96de14a184f8649b609d618c6b24ea6b0c580c68
[ "MIT" ]
null
null
null
#pragma once #include <ArrayTexture.h> // Use glBindFragDataLocation to bind fragment shader outputs to a colour attachment class ArrayTextureFrameBuffer { GLuint frameBufferName = 0; unsigned int size = 0; ArrayTexture * arrayTexture; public: ArrayTextureFrameBuffer(ArrayTexture & arrayTexture, unsigned int ar...
25.982143
103
0.77457
3.03125
59452a77e1114367768125aa4e3d4d08a8301a28
4,957
lua
Lua
projects/tutorials/tutscripts/T009-udp_network.lua
pixeljetstream/luxinia1
5d69b2d47d5ed4501dc155cfef999475f2fdfe2a
[ "Unlicense", "MIT" ]
31
2015-01-05T18:22:15.000Z
2020-12-07T03:21:50.000Z
projects/tutorials/tutscripts/T009-udp_network.lua
pixeljetstream/luxinia1
5d69b2d47d5ed4501dc155cfef999475f2fdfe2a
[ "Unlicense", "MIT" ]
null
null
null
projects/tutorials/tutscripts/T009-udp_network.lua
pixeljetstream/luxinia1
5d69b2d47d5ed4501dc155cfef999475f2fdfe2a
[ "Unlicense", "MIT" ]
12
2015-01-05T19:17:44.000Z
2021-01-15T08:56:06.000Z
-- UDP Server/Client application view = UtilFunctions.simplerenderqueue() view.rClear:colorvalue(0.0,0.0,0.0,0) dofile "T009/udp.lua" mainframe = TitleFrame:new(0,0,180,80,nil,"Main Menu") mainframe.startserver = mainframe:add( Button:new(5,25,170,25,"Start server")) mainframe.startclient = mainframe:add( Butto...
26.089474
61
0.692556
3.453125
e3c933775877e1a29db56b69abdf7df09bfbc274
1,185
go
Go
packetizer_test.go
lightsofapollo/rtp
cfeee237106ea293979796c30a3a1e1fbafaa355
[ "MIT" ]
null
null
null
packetizer_test.go
lightsofapollo/rtp
cfeee237106ea293979796c30a3a1e1fbafaa355
[ "MIT" ]
null
null
null
packetizer_test.go
lightsofapollo/rtp
cfeee237106ea293979796c30a3a1e1fbafaa355
[ "MIT" ]
null
null
null
package rtp import ( "fmt" "testing" "time" "github.com/pion/rtp/codecs" "github.com/stretchr/testify/assert" ) func TestNtpConversion(t *testing.T) { loc := time.FixedZone("UTC-5", -5*60*60) tests := []struct { t time.Time n uint64 }{ {t: time.Date(1985, time.June, 23, 4, 0, 0, 0, loc), n: 0xa0c65b10...
26.931818
103
0.662447
3.03125
1b156cb4ea5bde552c19b3569a25db9f053abd1e
689
lua
Lua
src/ServerScriptService/temporary/Footsteps/Pitch.server.lua
DevArke/starstream
79af1414f5140519951ed023883ad2144b36a198
[ "Apache-2.0" ]
null
null
null
src/ServerScriptService/temporary/Footsteps/Pitch.server.lua
DevArke/starstream
79af1414f5140519951ed023883ad2144b36a198
[ "Apache-2.0" ]
null
null
null
src/ServerScriptService/temporary/Footsteps/Pitch.server.lua
DevArke/starstream
79af1414f5140519951ed023883ad2144b36a198
[ "Apache-2.0" ]
null
null
null
while wait(.3) do x = script.Parent:GetChildren() for i = 1,#x do if x[i]:IsA("Sound") then x[i].Pitch = x[i].Pitch - 0.1 end end wait(.3) x = script.Parent:GetChildren() for i = 1,#x do if x[i]:IsA("Sound") then x[i].Pitch = x[i].Pitch - 0.1 end end wait(.3) x = script.Parent:GetChildren...
14.978261
32
0.558781
3.015625
967516e82be9ecdb82149ef6fb8f5a617ce39ec4
1,738
kt
Kotlin
retroauth-android/src/main/java/com/andretietz/retroauth/WeakActivityStack.kt
moovel/retroauth
b5334f354c5d04f8f3d39af72cbd6fb79aaa10c3
[ "Apache-2.0" ]
279
2015-06-29T08:08:16.000Z
2015-09-24T04:02:06.000Z
retroauth-android/src/main/java/com/andretietz/retroauth/WeakActivityStack.kt
moovel/retroauth
b5334f354c5d04f8f3d39af72cbd6fb79aaa10c3
[ "Apache-2.0" ]
51
2015-10-24T21:50:13.000Z
2020-12-22T19:52:33.000Z
retroauth-android/src/main/java/com/andretietz/retroauth/WeakActivityStack.kt
moovel/retroauth
b5334f354c5d04f8f3d39af72cbd6fb79aaa10c3
[ "Apache-2.0" ]
34
2015-10-06T17:34:48.000Z
2021-03-19T15:50:14.000Z
/* * Copyright (c) 2016 Andre Tietz * * 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 ...
24.828571
75
0.679517
3.03125
ae0d3d1794bfbcd39384438b73c4f828a5dd067e
1,629
sql
SQL
sql/create_indiv_seg_support.sql
crashka/fecdb
b5c35ae782c24fc6a64c989e0107074d1684879f
[ "MIT" ]
null
null
null
sql/create_indiv_seg_support.sql
crashka/fecdb
b5c35ae782c24fc6a64c989e0107074d1684879f
[ "MIT" ]
null
null
null
sql/create_indiv_seg_support.sql
crashka/fecdb
b5c35ae782c24fc6a64c989e0107074d1684879f
[ "MIT" ]
null
null
null
-- -- Individual Segment -- CREATE TABLE IF NOT EXISTS indiv_seg ( id BIGINT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, name TEXT NOT NULL, description TEXT ) WITH (FILLFACTOR=70); -- -- Individual Segment Members (composed of `indiv` records) -- CREATE TABLE...
30.735849
102
0.668508
3.015625
503e5c546d7eb8c9659d6bad2509bf26a67cef4c
1,454
lua
Lua
examples/game_server.lua
samuelwbaird/brogue
2eb185698f1fe94cc3ed6f72360c29203342fe8b
[ "MIT" ]
1
2020-06-17T06:11:37.000Z
2020-06-17T06:11:37.000Z
examples/game_server.lua
samuelwbaird/brogue
2eb185698f1fe94cc3ed6f72360c29203342fe8b
[ "MIT" ]
null
null
null
examples/game_server.lua
samuelwbaird/brogue
2eb185698f1fe94cc3ed6f72360c29203342fe8b
[ "MIT" ]
null
null
null
-- demonstration game server -- copyright 2014 Samuel Baird MIT Licence -- reference the brogue libraries package.path = '../source/?.lua;' .. package.path -- demonstrate a game server with the following features -- sessions using cookies (no real security) -- long polling status updates -- rascal proxies used to run...
25.964286
72
0.700825
3.125
545fa3602157682276f1fc088fdd2cb3a9d2e535
5,097
go
Go
model/mock/interfaces.go
developertask/multiwallet
cbc739f642604647d6698a4a5cb7621dc7f66afa
[ "MIT" ]
null
null
null
model/mock/interfaces.go
developertask/multiwallet
cbc739f642604647d6698a4a5cb7621dc7f66afa
[ "MIT" ]
null
null
null
model/mock/interfaces.go
developertask/multiwallet
cbc739f642604647d6698a4a5cb7621dc7f66afa
[ "MIT" ]
null
null
null
package mock import ( "encoding/hex" "errors" "fmt" "sync" gosocketio "github.com/developertask/golang-socketio" "github.com/developertask/multiwallet/client" "github.com/developertask/multiwallet/model" "github.com/btcsuite/btcutil" ) type MockAPIClient struct { blockChan chan model.Block txChan chan m...
26.968254
95
0.701982
3
103cd0ece26ced39ee383132870ac9dfb2e6d259
1,492
sql
SQL
amps-maven-plugin/src/main/resources/com/atlassian/maven/plugins/amps/product/jira/oracle12c-template.sql
acidburn0zzz/atlassian-amps
c69bd0a64173325d3a0304362ee8537ee32a30b7
[ "Apache-2.0" ]
null
null
null
amps-maven-plugin/src/main/resources/com/atlassian/maven/plugins/amps/product/jira/oracle12c-template.sql
acidburn0zzz/atlassian-amps
c69bd0a64173325d3a0304362ee8537ee32a30b7
[ "Apache-2.0" ]
2
2021-02-03T19:35:38.000Z
2021-08-02T17:04:27.000Z
amps-maven-plugin/src/main/resources/com/atlassian/maven/plugins/amps/product/jira/oracle12c-template.sql
Acidburn0zzz/atlassian-amps
c69bd0a64173325d3a0304362ee8537ee32a30b7
[ "Apache-2.0" ]
null
null
null
-- This script must be run as a user with the "SYSDBA" role DECLARE v_count INTEGER := 0; v_sid VARCHAR2(20); BEGIN SELECT SYS_CONTEXT('userenv','instance_name') INTO v_sid FROM DUAL; -- Ensure we're in the root container EXECUTE IMMEDIATE 'ALTER SESSION SET CONTAINER=CDB$ROOT'; -- Configure the Data Pump...
43.882353
151
0.720509
3.125
e949c7d4a2f90769f80d4f95462eae913f888637
1,627
kt
Kotlin
src/test/kotlin/pro/devil/ex/collections/LinkedListTests.kt
pro-devil-repos/collections-examples
8c9b8adb98afb42389faeeccf60b826d18593eb0
[ "Apache-2.0" ]
null
null
null
src/test/kotlin/pro/devil/ex/collections/LinkedListTests.kt
pro-devil-repos/collections-examples
8c9b8adb98afb42389faeeccf60b826d18593eb0
[ "Apache-2.0" ]
null
null
null
src/test/kotlin/pro/devil/ex/collections/LinkedListTests.kt
pro-devil-repos/collections-examples
8c9b8adb98afb42389faeeccf60b826d18593eb0
[ "Apache-2.0" ]
null
null
null
package pro.devil.ex.collections import org.junit.jupiter.api.Test import org.junit.jupiter.api.TestInstance import org.junit.jupiter.api.assertDoesNotThrow import pro.devil.ex.collections.linkedList.LinkedList import pro.devil.ex.collections.linkedList.linkedListOf import pro.devil.ex.collections.linkedList.mutableLi...
27.116667
62
0.666872
3.0625
21ac000fb70ccae8e3253f3990a55f0b3d2efcff
962
rs
Rust
common/dnode-rest-client/src/ds.rs
villesundell/move-tools
3af57b46f897ab8fb4430f00442fba7f47be440b
[ "MIT" ]
10
2020-06-10T03:51:28.000Z
2022-03-16T18:38:43.000Z
common/dnode-rest-client/src/ds.rs
villesundell/move-tools
3af57b46f897ab8fb4430f00442fba7f47be440b
[ "MIT" ]
8
2020-10-28T09:11:24.000Z
2021-03-22T18:43:15.000Z
common/dnode-rest-client/src/ds.rs
villesundell/move-tools
3af57b46f897ab8fb4430f00442fba7f47be440b
[ "MIT" ]
10
2020-06-28T07:34:39.000Z
2021-05-07T10:16:23.000Z
use serde::{Serialize, Deserialize}; /// Block number pub type Block = u128; /// Data Api response #[derive(Serialize, Deserialize, Debug, Clone)] pub struct Response { /// Current block number #[serde(deserialize_with = "block::deserialize")] pub height: Block, #[serde(flatten)] pub body: Respons...
21.377778
74
0.601871
3.140625
e981e6e71fed00b795cc49b3b4f0dd2f3b55439c
7,916
rb
Ruby
test/support/base_test_model.rb
deivid-rodriguez/activerecord_where_assoc
100318de80dea5f3c177526c3f824fda307ebc04
[ "MIT" ]
150
2017-09-26T13:39:58.000Z
2022-02-28T07:20:51.000Z
test/support/base_test_model.rb
deivid-rodriguez/activerecord_where_assoc
100318de80dea5f3c177526c3f824fda307ebc04
[ "MIT" ]
6
2017-07-29T20:33:08.000Z
2021-02-23T19:47:48.000Z
test/support/base_test_model.rb
deivid-rodriguez/activerecord_where_assoc
100318de80dea5f3c177526c3f824fda307ebc04
[ "MIT" ]
6
2018-02-21T19:34:28.000Z
2022-02-15T20:40:37.000Z
# frozen_string_literal: true require "prime" class BaseTestModel < ActiveRecord::Base self.abstract_class = true # We give a distinct prime number to ever conditions we use as part of associations # and default_scopes, and we record it, do that we can easily get a number that would match # each of them by ...
38.995074
130
0.743305
3.03125
330597e751b125d41e61a3b1d6607b8ceee7379c
21,902
py
Python
annotator_web.py
j20100/Seg_Annotator
49b2806be9450c901cf4977633a4ec29b3b6bdca
[ "CC-BY-4.0" ]
null
null
null
annotator_web.py
j20100/Seg_Annotator
49b2806be9450c901cf4977633a4ec29b3b6bdca
[ "CC-BY-4.0" ]
null
null
null
annotator_web.py
j20100/Seg_Annotator
49b2806be9450c901cf4977633a4ec29b3b6bdca
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- import argparse import base64 from bson import ObjectId import datetime from flask import Flask, Markup, Response, abort, escape, flash, redirect, \ render_template, request, url_for from flask_login import LoginManager, UserMixin, current_user, login_requir...
34.98722
103
0.630079
3.1875
aeeb164f3196df5d2c983cc8756ef9c6cb06c63c
1,845
rs
Rust
tarpc/src/util.rs
slickbench/tarpc
4b7b16345a393af07304a3b184a6660792a2d6ca
[ "MIT" ]
null
null
null
tarpc/src/util.rs
slickbench/tarpc
4b7b16345a393af07304a3b184a6660792a2d6ca
[ "MIT" ]
null
null
null
tarpc/src/util.rs
slickbench/tarpc
4b7b16345a393af07304a3b184a6660792a2d6ca
[ "MIT" ]
null
null
null
// Copyright 2018 Google LLC // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. use std::{ collections::HashMap, hash::{BuildHasher, Hash}, time::{Duration, SystemTime}, }; #[cfg(feature = "serde1")] #[cf...
25.625
94
0.64878
3.046875
282d7a20637ef5424c62014c2108bf41ec668fcc
2,423
lua
Lua
InGameAvatarEditor/src/ServerScriptService/AvatarEditorInGameSetup/AvatarEditorInGame/Modules/Packages/UIBlox/App/InputButton/Checkbox.spec.lua
MirayXS/avatar
7c78513fbe9587915700a0a5fd3c15d5f23596d2
[ "RSA-MD" ]
41
2021-04-30T18:27:45.000Z
2022-03-23T21:12:57.000Z
InGameAvatarEditor/src/ServerScriptService/AvatarEditorInGameSetup/AvatarEditorInGame/Modules/Packages/UIBlox/App/InputButton/Checkbox.spec.lua
MirayXS/avatar
7c78513fbe9587915700a0a5fd3c15d5f23596d2
[ "RSA-MD" ]
3
2021-08-24T20:07:47.000Z
2022-02-15T19:40:13.000Z
InGameAvatarEditor/src/ServerScriptService/AvatarEditorInGameSetup/AvatarEditorInGame/Modules/Packages/UIBlox/App/InputButton/Checkbox.spec.lua
MirayXS/avatar
7c78513fbe9587915700a0a5fd3c15d5f23596d2
[ "RSA-MD" ]
25
2021-05-02T14:33:04.000Z
2022-03-17T20:28:07.000Z
return function() local Packages = script.Parent.Parent.Parent.Parent local Roact = require(Packages.Roact) local Checkbox = require(script.Parent.Checkbox) local mockStyleComponent = require(Packages.UIBlox.Utility.mockStyleComponent) local Images = require(Packages.UIBlox.App.ImageSet.Images) describe("lifecyc...
31.064103
85
0.682625
3