hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
b9ec0989ffea31805326a339eed2f349af98bd0e
153
py
Python
src/transition.py
AI-Gio/LunarLander
867425223a186bc0dd3378e3bd2888cd525d2834
[ "MIT" ]
null
null
null
src/transition.py
AI-Gio/LunarLander
867425223a186bc0dd3378e3bd2888cd525d2834
[ "MIT" ]
null
null
null
src/transition.py
AI-Gio/LunarLander
867425223a186bc0dd3378e3bd2888cd525d2834
[ "MIT" ]
null
null
null
from dataclasses import dataclass @dataclass class Transition: state: list action: float reward: float next_state: list done: bool
13.909091
33
0.699346
61ef4c906783e342fcac4da5868727ea4e76f3fb
5,077
py
Python
rest_tools/utils/json_util.py
WIPACrepo/rest-tools
01f5822db4c8d2546cf3a8cdfaaae6afd1e96679
[ "MIT" ]
1
2020-08-24T19:05:57.000Z
2020-08-24T19:05:57.000Z
rest_tools/utils/json_util.py
WIPACrepo/rest-tools
01f5822db4c8d2546cf3a8cdfaaae6afd1e96679
[ "MIT" ]
32
2020-05-15T20:14:31.000Z
2022-03-16T15:01:45.000Z
rest_tools/utils/json_util.py
WIPACrepo/rest-tools
01f5822db4c8d2546cf3a8cdfaaae6afd1e96679
[ "MIT" ]
null
null
null
"""Some JSON encoding and decoding utilities.""" # fmt:off # pylint: skip-file import ast import base64 import json import logging import zlib from datetime import date, datetime, time from typing import Any, Optional, Union from tornado.escape import recursive_unicode logger = logging.getLogger('jsonUtil') JSONT...
27.895604
84
0.598385
3a098eea41d9fe35f96a6235550a98d311ab166a
616
py
Python
test/test_rate.py
iknaio/graphsense-python
b61c66b6ec0bb9720036ae61777e90ce63a971cc
[ "MIT" ]
null
null
null
test/test_rate.py
iknaio/graphsense-python
b61c66b6ec0bb9720036ae61777e90ce63a971cc
[ "MIT" ]
1
2022-02-24T11:21:49.000Z
2022-02-24T11:21:49.000Z
test/test_rate.py
iknaio/graphsense-python
b61c66b6ec0bb9720036ae61777e90ce63a971cc
[ "MIT" ]
null
null
null
""" GraphSense API GraphSense API # noqa: E501 The version of the OpenAPI document: 0.5.1 Generated by: https://openapi-generator.tech """ import sys import unittest import graphsense from graphsense.model.rate import Rate class TestRate(unittest.TestCase): """Rate unit test stubs""" de...
17.111111
79
0.633117
b788074d9f6e60de5ac0eea67b0ca9a8b1ef225c
3,781
py
Python
youtube_audio_matcher/__main__.py
nrsyed/youtube-audio-matcher
d6a65d2e824f4e8f363c49341896612978b7318c
[ "MIT" ]
1
2020-11-26T00:55:55.000Z
2020-11-26T00:55:55.000Z
youtube_audio_matcher/__main__.py
nrsyed/youtube-audio-matcher
d6a65d2e824f4e8f363c49341896612978b7318c
[ "MIT" ]
null
null
null
youtube_audio_matcher/__main__.py
nrsyed/youtube-audio-matcher
d6a65d2e824f4e8f363c49341896612978b7318c
[ "MIT" ]
null
null
null
import argparse from datetime import datetime import logging import os import youtube_audio_matcher from .database import _argparsers as db_argparsers from .download import _argparsers as dl_argparsers from .audio import _argparsers as fp_argparsers def get_parser(): """ TODO """ # TODO: add log arg....
32.042373
79
0.656705
0239453546c17dd0aa40a24658798c7c2d795261
4,295
py
Python
zipline/utils/final.py
lv-cha/zipline-chinese
65928d98db46568409add0a9a404bc41729d0bb5
[ "Apache-2.0" ]
606
2017-04-07T03:49:37.000Z
2022-03-21T06:56:14.000Z
zipline/utils/final.py
pm58/zipline-chinese
86904cac4b6e928271f640910aa83675ce945b8b
[ "Apache-2.0" ]
6
2017-10-04T06:03:14.000Z
2020-06-05T06:49:49.000Z
zipline/utils/final.py
pm58/zipline-chinese
86904cac4b6e928271f640910aa83675ce945b8b
[ "Apache-2.0" ]
251
2017-04-07T00:55:17.000Z
2022-03-31T05:33:14.000Z
from abc import ABCMeta, abstractmethod from weakref import WeakKeyDictionary from six import with_metaclass, iteritems from toolz import memoize # Consistent error to be thrown in various cases regarding overriding # `final` attributes. _type_error = TypeError('Cannot override final attribute') def bases_mro(bases...
30.899281
78
0.629104
0c284b5b62fb5d21c39b29bd1229a0522aefbc02
892
py
Python
language_acts/cms/migrations/0026_recordentrym2m.py
kingsdigitallab/language-acts-docker
5597804d16604b525795d3cde3d968028807d7e0
[ "MIT" ]
null
null
null
language_acts/cms/migrations/0026_recordentrym2m.py
kingsdigitallab/language-acts-docker
5597804d16604b525795d3cde3d968028807d7e0
[ "MIT" ]
null
null
null
language_acts/cms/migrations/0026_recordentrym2m.py
kingsdigitallab/language-acts-docker
5597804d16604b525795d3cde3d968028807d7e0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2019-01-10 16:28 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import modelcluster.fields class Migration(migrations.Migration): dependencies = [ ('cms', '0025_loaded_meanings_models...
34.307692
168
0.662556
78bd0526df6cecfd1c7a96d4556ff9b05c99adc8
1,752
py
Python
BBclient.py
moldiscovery/bbapiclient
f93dceb1e8d3dfe2e4c4727eb8284adc45404823
[ "MIT" ]
null
null
null
BBclient.py
moldiscovery/bbapiclient
f93dceb1e8d3dfe2e4c4727eb8284adc45404823
[ "MIT" ]
null
null
null
BBclient.py
moldiscovery/bbapiclient
f93dceb1e8d3dfe2e4c4727eb8284adc45404823
[ "MIT" ]
null
null
null
from requests_oauthlib import OAuth2Session from os import environ import sys class AuthClient: client_id = None client_secret = None account_id = None redirect_uris = [ 'https://localhost' ] auth_uri = 'https://bitbucket.org/site/oauth2/authorize' token_uri = 'https://bitbucket.o...
29.694915
109
0.658105
08ac720dde2fad15236ebd066814a6ed62c13df3
2,541
py
Python
webapi/tct-csp-w3c-tests/csp-py/csp_frame-src_asterisk_allowed_ext-manual.py
zhuyongyong/crosswalk-test-suite
24f3f8cfa663a365b0a22685d5bd096a637f72db
[ "BSD-3-Clause" ]
3
2015-08-12T03:39:31.000Z
2019-09-18T04:37:54.000Z
webapi/tct-csp-w3c-tests/csp-py/csp_frame-src_asterisk_allowed_ext-manual.py
zhuyongyong/crosswalk-test-suite
24f3f8cfa663a365b0a22685d5bd096a637f72db
[ "BSD-3-Clause" ]
23
2015-01-19T03:10:13.000Z
2016-06-13T03:08:51.000Z
webapi/tct-csp-w3c-tests/csp-py/csp_frame-src_asterisk_allowed_ext-manual.py
zhuyongyong/crosswalk-test-suite
24f3f8cfa663a365b0a22685d5bd096a637f72db
[ "BSD-3-Clause" ]
18
2015-02-28T21:29:55.000Z
2022-01-20T10:06:28.000Z
def main(request, response): import simplejson as json f = file('config.json') source = f.read() s = json.JSONDecoder().decode(source) url1 = "http://" + s['host'] + ":" + str(s['ports']['http'][1]) url2 = "http://" + s['host'] + ":" + str(s['ports']['http'][0]) response.headers.set("Content...
44.578947
100
0.719402
1f156f868bb4994beabda4ae0ced2afe649df0a2
125,263
py
Python
modin/pandas/dataframe.py
rolveb/modin
d0c84590798f33358dc896eef9d7cd9c519b6289
[ "ECL-2.0", "Apache-2.0" ]
1
2021-02-23T00:01:02.000Z
2021-02-23T00:01:02.000Z
modin/pandas/dataframe.py
rolveb/modin
d0c84590798f33358dc896eef9d7cd9c519b6289
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
modin/pandas/dataframe.py
rolveb/modin
d0c84590798f33358dc896eef9d7cd9c519b6289
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Licensed to Modin Development Team under one or more contributor license agreements. # See the NOTICE file distributed with this work for additional information regarding # copyright ownership. The Modin Development Team licenses this file to you under the # Apache License, Version 2.0 (the "License"); you may not u...
37.159003
127
0.565091
eecfcb388ace84526b9bee1dc7bb2a205eb59406
891
py
Python
django/accounts/admin.py
bear-rsg/experiences-of-landscape-workers
a3676ec1c7b1d4a146d8796bb44370012e129952
[ "MIT" ]
2
2020-10-07T11:28:27.000Z
2020-10-07T12:35:14.000Z
django/accounts/admin.py
bear-rsg/experiences-of-landscape-workers
a3676ec1c7b1d4a146d8796bb44370012e129952
[ "MIT" ]
16
2020-10-24T10:41:36.000Z
2021-03-31T11:28:16.000Z
django/accounts/admin.py
bear-rsg/experiences-of-landscape-workers
a3676ec1c7b1d4a146d8796bb44370012e129952
[ "MIT" ]
1
2020-10-07T12:47:47.000Z
2020-10-07T12:47:47.000Z
from django.contrib import admin from .forms import CustomUserCreationForm, CustomUserChangeForm from .models import CustomUser, Project, Title class CustomUserAdmin(admin.ModelAdmin): """ Display custom user in the Django admin """ add_form = CustomUserCreationForm form = CustomUserChangeForm ...
24.081081
87
0.710438
3b7c10be2f508ee8b612a94a17122121bbf48d8d
17,079
py
Python
python/fbprophet/plot.py
expobrain/prophet
40afef26b459f93763279ad44edae86207c1f319
[ "BSD-3-Clause" ]
3
2018-12-11T18:38:34.000Z
2018-12-17T11:32:24.000Z
python/fbprophet/plot.py
expobrain/prophet
40afef26b459f93763279ad44edae86207c1f319
[ "BSD-3-Clause" ]
null
null
null
python/fbprophet/plot.py
expobrain/prophet
40afef26b459f93763279ad44edae86207c1f319
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. from __future__ import a...
35.28719
100
0.636747
52f81abb6da524413f31e0ef9eefca5978b46a20
3,068
py
Python
src/bitcoin_acks/scripts/send_tweet.py
PierreRochard/bitcoin-acks
80decab2b8fada7e19b4666979d1eab6697319c9
[ "MIT" ]
43
2018-04-29T03:30:18.000Z
2021-02-11T05:24:49.000Z
src/bitcoin_acks/scripts/send_tweet.py
PierreRochard/bitcoin-acks
80decab2b8fada7e19b4666979d1eab6697319c9
[ "MIT" ]
46
2018-05-02T01:27:34.000Z
2022-03-26T13:29:55.000Z
src/bitcoin_acks/scripts/send_tweet.py
PierreRochard/bitcoin-acks
80decab2b8fada7e19b4666979d1eab6697319c9
[ "MIT" ]
11
2018-05-15T23:47:47.000Z
2021-01-27T14:57:54.000Z
import datetime import os import requests from twython import Twython from bitcoin_acks.database.session import session_scope from bitcoin_acks.logging import log from bitcoin_acks.models import PullRequests from bitcoin_acks.models.tweets import Tweets def send_tweet(pull_request_number=None): with session_sco...
38.835443
85
0.583768
0414faf0f4497e90430ce81745f64b588e9711d5
251,472
py
Python
Python/klampt/robotsim.py
mshicom/Klampt
79f983a790a0ac201af484ba64f68ebc21acc6c3
[ "BSD-3-Clause" ]
238
2015-01-09T15:21:27.000Z
2022-03-30T22:48:45.000Z
Python/klampt/robotsim.py
mshicom/Klampt
79f983a790a0ac201af484ba64f68ebc21acc6c3
[ "BSD-3-Clause" ]
89
2015-08-26T16:56:42.000Z
2022-03-29T23:45:46.000Z
Python/klampt/robotsim.py
mshicom/Klampt
79f983a790a0ac201af484ba64f68ebc21acc6c3
[ "BSD-3-Clause" ]
84
2015-01-10T18:41:52.000Z
2022-03-30T03:32:50.000Z
# This file was automatically generated by SWIG (http://www.swig.org). # Version 4.0.2 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. """ Klamp't Core Python bindings ------------------------------ """ from sys import version_info as _swig_python_ve...
31.088144
255
0.62288
6710b12a8d2ae353de8351d72308bc996113e9e6
97
py
Python
records/constants.py
SNFernandes24/church-ims
944b7e65e926276adfe376ace01cf0adf135b954
[ "MIT" ]
1
2021-09-11T17:22:37.000Z
2021-09-11T17:22:37.000Z
records/constants.py
SNFernandes24/church-ims
944b7e65e926276adfe376ace01cf0adf135b954
[ "MIT" ]
39
2021-06-26T02:01:37.000Z
2021-07-14T17:11:53.000Z
records/constants.py
SNFernandes24/church-ims
944b7e65e926276adfe376ace01cf0adf135b954
[ "MIT" ]
2
2021-07-19T08:00:58.000Z
2022-02-05T16:38:02.000Z
from decimal import Decimal MAX_HUMAN_BODY_TEMP = Decimal(45) MIN_HUMAN_BODY_TEMP = Decimal(30)
19.4
33
0.824742
a30837abda84efcaeed947a61df130066afb1e40
353
py
Python
Library_Tester/CalculatingModules/simd_popcount.py
mendlin/SIMD-libgen
0f386bb639c829275a00f46c4b31d59c5ed84a28
[ "AFL-1.1" ]
1
2021-01-07T03:18:27.000Z
2021-01-07T03:18:27.000Z
Library_Tester/CalculatingModules/simd_popcount.py
Logicalmars/SIMD-libgen
0f386bb639c829275a00f46c4b31d59c5ed84a28
[ "AFL-1.1" ]
null
null
null
Library_Tester/CalculatingModules/simd_popcount.py
Logicalmars/SIMD-libgen
0f386bb639c829275a00f46c4b31d59c5ed84a28
[ "AFL-1.1" ]
1
2021-11-29T07:28:13.000Z
2021-11-29T07:28:13.000Z
# Copyright (c) 2011, Hua Huang and Robert D. Cameron. # Licensed under the Academic Free License 3.0. import utility def GetResult(fw, data): arg1 = data[0] (i, sz, ans) = (0, len(arg1), "") while i<sz: ct = 0 for j in range(fw): ct += 1 if arg1[i+j]=="1" else 0 ans += utility.GetBinaryRepresentation...
18.578947
54
0.623229
d868ead3e08623e22595bc167cbaed5b94a295a4
3,330
py
Python
guba/guba/settings.py
LuWinter/GubaSpider
d460fb0e4d90d0ae362a6481eed4860fb915dfe4
[ "MIT" ]
3
2021-08-20T02:54:30.000Z
2022-02-15T03:05:19.000Z
guba/guba/settings.py
LuWinter/GubaSpider
d460fb0e4d90d0ae362a6481eed4860fb915dfe4
[ "MIT" ]
2
2021-08-20T02:42:51.000Z
2022-02-10T13:11:17.000Z
guba/guba/settings.py
LuWinter/GubaSpider
d460fb0e4d90d0ae362a6481eed4860fb915dfe4
[ "MIT" ]
1
2021-08-20T02:54:34.000Z
2021-08-20T02:54:34.000Z
# Scrapy settings for guba project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://docs.scrapy.org/en/latest/topics/settings.html # https://docs.scrapy.org/en/latest/topics/downloader-middleware.ht...
34.329897
146
0.776276
c880ce49ebe44415fcc35f8b7e5bada6be189747
99
py
Python
tasks.py
pauleveritt/sphinxstrap4
d3cc0fc057b1eaf509501ba0af648443720f5986
[ "BSD-3-Clause" ]
null
null
null
tasks.py
pauleveritt/sphinxstrap4
d3cc0fc057b1eaf509501ba0af648443720f5986
[ "BSD-3-Clause" ]
null
null
null
tasks.py
pauleveritt/sphinxstrap4
d3cc0fc057b1eaf509501ba0af648443720f5986
[ "BSD-3-Clause" ]
null
null
null
from invoke import Collection from invocations.packaging import release ns = Collection(release)
16.5
41
0.828283
6feb0ff3ff5d24de8724b8dd0028062868542f91
1,068
py
Python
Tree/129. Sum Root to Leaf Numbers.py
Rage-ops/Leetcode-Solutions
48d4ecbb92a0bb7a7bb74a1445b593a67357ac02
[ "MIT" ]
1
2020-11-23T13:52:11.000Z
2020-11-23T13:52:11.000Z
Tree/129. Sum Root to Leaf Numbers.py
harsha-sam/Leetcode-Solutions
48d4ecbb92a0bb7a7bb74a1445b593a67357ac02
[ "MIT" ]
null
null
null
Tree/129. Sum Root to Leaf Numbers.py
harsha-sam/Leetcode-Solutions
48d4ecbb92a0bb7a7bb74a1445b593a67357ac02
[ "MIT" ]
null
null
null
# Medium # https://leetcode.com/problems/sum-root-to-leaf-numbers/ # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right # DFS # Time complexity : O(N) we'll visit each node at mos...
32.363636
131
0.590824
051d3223eda727d8a829966e575c495b1d946081
801
py
Python
mysite/manage.py
timmahrt/gamecorpus
6ce170f3d590475a320410c9d937039555207ee9
[ "MIT" ]
null
null
null
mysite/manage.py
timmahrt/gamecorpus
6ce170f3d590475a320410c9d937039555207ee9
[ "MIT" ]
null
null
null
mysite/manage.py
timmahrt/gamecorpus
6ce170f3d590475a320410c9d937039555207ee9
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys # TODO: This should probably actually become an environment variable os.environ["DJANGO_SETTINGS_MODULE"] = "mysite.development_settings" def main(): """Run administrative tasks.""" os.environ.setdefault(...
30.807692
73
0.702871
587a4795910560a33b4ac684b8971e3a1bc433bb
12,980
py
Python
code/stmtBL.py
monperrus/iFixR
5548f3ba91341dc9e73057269f8c01a0b1b6fc68
[ "MIT" ]
8
2019-07-23T15:03:50.000Z
2021-02-08T11:06:53.000Z
code/stmtBL.py
monperrus/iFixR
5548f3ba91341dc9e73057269f8c01a0b1b6fc68
[ "MIT" ]
null
null
null
code/stmtBL.py
monperrus/iFixR
5548f3ba91341dc9e73057269f8c01a0b1b6fc68
[ "MIT" ]
4
2019-09-19T08:23:46.000Z
2021-03-05T13:57:40.000Z
from common.commons import * CODE_PATH = os.environ["CODE_PATH"] DATA_PATH = os.environ["DATA_PATH"] ROOT_DIR = os.environ["ROOT_DIR"] DEFECTS4J = os.environ["DEFECTS4J"] jdk8 = os.environ["JDK8"] def locationsCore(t,filter=50): try: res, defects4jbug = t columns = ['bugReport', 'filename', 'meth...
40.5625
143
0.532049
2bc8577c029d34df575d65e41d917f2eddb7b525
652
py
Python
named-entity-recognition/charting-practice.py
SebastianMM-96/regex-wordToken
1e707f03638ebe9365974bcced8ab8b0d42c1295
[ "MIT" ]
null
null
null
named-entity-recognition/charting-practice.py
SebastianMM-96/regex-wordToken
1e707f03638ebe9365974bcced8ab8b0d42c1295
[ "MIT" ]
null
null
null
named-entity-recognition/charting-practice.py
SebastianMM-96/regex-wordToken
1e707f03638ebe9365974bcced8ab8b0d42c1295
[ "MIT" ]
null
null
null
from collections import defaultdict import nltk import matplotlib.pyplot as plt # Create the defaultdict: ner_categories ner_categories = defaultdict(int) # Create the nested for loop for sent in chunked_sentences: for chunk in sent: if hasattr(chunk, 'label'): ner_categories[chunk.label()] +=...
27.166667
69
0.720859
0fe41ade7b66ad87960c8af3d2434e93cd38533f
358
py
Python
myexample/t8.py
johnson7788/transformers
005519f2c50851b219d6946ea4d6ef9ec4f87bbc
[ "Apache-2.0" ]
null
null
null
myexample/t8.py
johnson7788/transformers
005519f2c50851b219d6946ea4d6ef9ec4f87bbc
[ "Apache-2.0" ]
null
null
null
myexample/t8.py
johnson7788/transformers
005519f2c50851b219d6946ea4d6ef9ec4f87bbc
[ "Apache-2.0" ]
null
null
null
from transformers import AutoTokenizer tokenizer = AutoTokenizer.from_pretrained('bert-base-cased') batch_sentences = ["Hello I'm a single sentence", "And another sentence", "And the very very last one"] batch = tokenizer(batch_sentences, padding=True, truncation=True, max_length=...
44.75
102
0.709497
896a1490a6c6490624c6128147f51aad60506bae
75,372
py
Python
evok/evok.py
robertsLando/evok
4ecc8f9ddb3d3457238cfae9b6541b172b6055ad
[ "Apache-2.0" ]
null
null
null
evok/evok.py
robertsLando/evok
4ecc8f9ddb3d3457238cfae9b6541b172b6055ad
[ "Apache-2.0" ]
null
null
null
evok/evok.py
robertsLando/evok
4ecc8f9ddb3d3457238cfae9b6541b172b6055ad
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import os import ConfigParser import tornado.httpserver import tornado.httpclient import tornado.ioloop import tornado.web import schemas from operator import methodcaller from tornado import gen from tornado.options import define, options from tornado import websocket from tornado import escape fr...
41.481563
141
0.574563
ada710fa9592a8ab04b1bbe4a9520a3edec5a51d
23,036
py
Python
lib/nets/network.py
EkaterinaPogodina/tf-faster-rcnn
3e0580fd67bc1093a9f33d6a8fa0b15b274710a5
[ "MIT" ]
null
null
null
lib/nets/network.py
EkaterinaPogodina/tf-faster-rcnn
3e0580fd67bc1093a9f33d6a8fa0b15b274710a5
[ "MIT" ]
null
null
null
lib/nets/network.py
EkaterinaPogodina/tf-faster-rcnn
3e0580fd67bc1093a9f33d6a8fa0b15b274710a5
[ "MIT" ]
null
null
null
# -------------------------------------------------------- # Tensorflow Faster R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Xinlei Chen # -------------------------------------------------------- from __future__ import absolute_import from __future__ import division from __future__ impor...
48.091858
144
0.660531
b43636a1196ca150055181e409ca36285f322da4
9,713
py
Python
slicedpy/disaggregator.py
JackKelly/slicedpy
c2fa7eb4c7b7374f8192a43d8e617b63c9e25e62
[ "Apache-2.0" ]
3
2017-02-03T22:05:25.000Z
2017-08-29T19:06:17.000Z
slicedpy/disaggregator.py
JackKelly/slicedpy
c2fa7eb4c7b7374f8192a43d8e617b63c9e25e62
[ "Apache-2.0" ]
null
null
null
slicedpy/disaggregator.py
JackKelly/slicedpy
c2fa7eb4c7b7374f8192a43d8e617b63c9e25e62
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function, division import subprocess from sklearn.neighbors import KNeighborsClassifier from sklearn import tree from sklearn import mixture import slicedpy.feature_detectors as fd import pandas as pd import numpy as np import matplotlib.pyplot as plt import math from slicedpy.plot import p...
34.565836
85
0.573664
2bafaa1cd7a65030deb7e93569160131d3999eed
941
py
Python
python/phonenumbers/shortdata/region_CM.py
vishnuku/python-phonenumbers
6ac2cdd06b7ccf709a8efb21629cf2c5f030e627
[ "Apache-2.0" ]
3
2018-12-02T23:09:00.000Z
2018-12-02T23:16:59.000Z
python/phonenumbers/shortdata/region_CM.py
carljm/python-phonenumbers
494044aaf75443dbfd62b8d1352b441af6a458ae
[ "Apache-2.0" ]
null
null
null
python/phonenumbers/shortdata/region_CM.py
carljm/python-phonenumbers
494044aaf75443dbfd62b8d1352b441af6a458ae
[ "Apache-2.0" ]
null
null
null
"""Auto-generated file, do not edit by hand. CM metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_CM = PhoneMetadata(id='CM', country_code=None, international_prefix=None, general_desc=PhoneNumberDesc(national_number_pattern='[18]\\d{1,3}', possible_number_pattern=...
72.384615
156
0.760893
35d989a1a23bc582da405769fc1a5eb7431d2c1e
13,048
py
Python
nas_algorithms.py
ZachZhu7/banana-git
09e049b91d9b5c39b44191318b7b22692d38d5dd
[ "Apache-2.0" ]
167
2019-10-26T19:54:49.000Z
2021-12-14T15:25:32.000Z
nas_algorithms.py
ZachZhu7/banana-git
09e049b91d9b5c39b44191318b7b22692d38d5dd
[ "Apache-2.0" ]
8
2019-10-28T12:40:13.000Z
2020-07-26T03:19:43.000Z
nas_algorithms.py
ZachZhu7/banana-git
09e049b91d9b5c39b44191318b7b22692d38d5dd
[ "Apache-2.0" ]
23
2019-10-28T12:26:32.000Z
2020-10-12T12:31:39.000Z
import itertools import os import pickle import sys import copy import numpy as np import tensorflow as tf from argparse import Namespace from data import Data def run_nas_algorithm(algo_params, search_space, mp): # run nas algorithm ps = copy.deepcopy(algo_params) algo_name = ps.pop('algo_name') i...
36.963173
111
0.555334
c925fc5cdffd8807a467a991734e8fce23d7c29b
104,400
py
Python
contrib/tools/python3/src/Lib/doctest.py
ZhekehZ/catboost
3f774da539b8e57cca25686b89c473cbd1f61a6c
[ "Apache-2.0" ]
2
2019-07-10T10:49:09.000Z
2020-06-19T11:40:04.000Z
contrib/tools/python3/src/Lib/doctest.py
ZhekehZ/catboost
3f774da539b8e57cca25686b89c473cbd1f61a6c
[ "Apache-2.0" ]
6
2020-02-18T22:12:29.000Z
2020-02-18T22:31:26.000Z
contrib/tools/python3/src/Lib/doctest.py
ZhekehZ/catboost
3f774da539b8e57cca25686b89c473cbd1f61a6c
[ "Apache-2.0" ]
null
null
null
# Module doctest. # Released to the public domain 16-Jan-2001, by Tim Peters (tim@python.org). # Major enhancements and refactoring by: # Jim Fulton # Edward Loper # Provided as-is; use at your own risk; no warranty; no promises; enjoy! r"""Module doctest -- a framework for running examples in docstrings. In...
37.419355
94
0.581619
5fcfbf31811da2cb603052a82f6490adfc0fcd88
1,618
py
Python
PLC/Accessors/Accessors_sliverauth.py
dreibh/planetlab-lxc-plcapi
065dfc54a2b668e99eab343d113f1a31fb154b13
[ "BSD-3-Clause" ]
null
null
null
PLC/Accessors/Accessors_sliverauth.py
dreibh/planetlab-lxc-plcapi
065dfc54a2b668e99eab343d113f1a31fb154b13
[ "BSD-3-Clause" ]
null
null
null
PLC/Accessors/Accessors_sliverauth.py
dreibh/planetlab-lxc-plcapi
065dfc54a2b668e99eab343d113f1a31fb154b13
[ "BSD-3-Clause" ]
null
null
null
# # Thierry Parmentelat - INRIA # from PLC.Nodes import Node from PLC.Interfaces import Interface from PLC.Slices import Slice from PLC.Sites import Site from PLC.Persons import Person from PLC.Accessors.Factory import define_accessors, admin_roles, all_roles, tech_roles import sys current_module = sys.modules[__name...
41.487179
104
0.719407
d638e25198530eb3bf2c2c10262acbc90f18723c
4,847
py
Python
ai/model.py
baraazain/checkers-server
3d4588f89cf97dfa9babc4618f0e4f1b1475220f
[ "MIT" ]
null
null
null
ai/model.py
baraazain/checkers-server
3d4588f89cf97dfa9babc4618f0e4f1b1475220f
[ "MIT" ]
null
null
null
ai/model.py
baraazain/checkers-server
3d4588f89cf97dfa9babc4618f0e4f1b1475220f
[ "MIT" ]
null
null
null
import tensorflow as tf import tensorflow.keras as tk def softmax_cross_entropy_with_logits(y_true, y_pred): """Calculates the loss for the policy head of AlphaZero model :param y_true: :param y_pred: :return: """ p = y_pred pi = y_true # Mask the illegal actions zero = tf.zeros(...
29.919753
116
0.621415
b88305f3b89eb2a5abbdfa713c3cc9d43ec6cebd
1,009
py
Python
addons/nextcloud/tests/test_serializer.py
tsukaeru/RDM-osf.io
2dc3e539322b6110e51772f8bd25ebdeb8e12d0e
[ "Apache-2.0" ]
11
2018-12-11T16:39:40.000Z
2022-02-26T09:51:32.000Z
addons/nextcloud/tests/test_serializer.py
tsukaeru/RDM-osf.io
2dc3e539322b6110e51772f8bd25ebdeb8e12d0e
[ "Apache-2.0" ]
52
2018-04-13T05:03:21.000Z
2022-03-22T02:56:19.000Z
addons/nextcloud/tests/test_serializer.py
tsukaeru/RDM-osf.io
2dc3e539322b6110e51772f8bd25ebdeb8e12d0e
[ "Apache-2.0" ]
16
2018-07-09T01:44:51.000Z
2021-06-30T01:57:16.000Z
import mock import pytest from tests.base import OsfTestCase from addons.base.tests.serializers import StorageAddonSerializerTestSuiteMixin from addons.nextcloud.tests.factories import NextcloudAccountFactory from addons.nextcloud.serializer import NextcloudSerializer pytestmark = pytest.mark.django_db class TestNex...
34.793103
115
0.782953
cb01ab07623e27d908c3f6d0dca734ad9d0ae9da
647
py
Python
code/513.Find-Bottom-Left-Tree-Values.py
Aden-Q/leetcode
ebd4804edd4f172b9981b22c18d9ff654cf20762
[ "Apache-2.0" ]
1
2019-09-22T03:08:14.000Z
2019-09-22T03:08:14.000Z
code/513.Find-Bottom-Left-Tree-Values.py
Aden-Q/leetcode
ebd4804edd4f172b9981b22c18d9ff654cf20762
[ "Apache-2.0" ]
null
null
null
code/513.Find-Bottom-Left-Tree-Values.py
Aden-Q/leetcode
ebd4804edd4f172b9981b22c18d9ff654cf20762
[ "Apache-2.0" ]
null
null
null
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right from collections import deque class Solution: def findBottomLeftValue(self, root: Optional[TreeNode]) -> int: q = d...
32.35
67
0.542504
7a16c6e4526435a689169b46ee9c1add6236a13e
6,626
py
Python
nipype/interfaces/niftyreg/tests/test_auto_RegTransform.py
dPys/nipype
75030b29297808e7c9a9e91b411b685154dff60b
[ "Apache-2.0" ]
1
2019-03-25T14:11:18.000Z
2019-03-25T14:11:18.000Z
nipype/interfaces/niftyreg/tests/test_auto_RegTransform.py
dPys/nipype
75030b29297808e7c9a9e91b411b685154dff60b
[ "Apache-2.0" ]
1
2017-01-05T01:24:33.000Z
2017-01-05T01:24:33.000Z
nipype/interfaces/niftyreg/tests/test_auto_RegTransform.py
wtriplett/nipype
388f140fceaf55438a987e9cdfa2a8e995428afd
[ "Apache-2.0" ]
1
2020-12-16T16:36:48.000Z
2020-12-16T16:36:48.000Z
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from ..regutils import RegTransform def test_RegTransform_inputs(): input_map = dict( aff_2_rig_input=dict( argstr="-aff2rig %s", extensions=None, position=-2, xor=[ "def_input", ...
30.118182
85
0.424238
3642d6dd01f3017d9b8286de71aa2c4e51598e29
14,296
py
Python
models/nn/vnn.py
uyeongkim/moca
8a5870898b6d59258ce1064bab440b7e8107e9b4
[ "MIT" ]
null
null
null
models/nn/vnn.py
uyeongkim/moca
8a5870898b6d59258ce1064bab440b7e8107e9b4
[ "MIT" ]
null
null
null
models/nn/vnn.py
uyeongkim/moca
8a5870898b6d59258ce1064bab440b7e8107e9b4
[ "MIT" ]
null
null
null
import torch from torch import nn from torch.nn import functional as F import numpy as np class SelfAttn(nn.Module): ''' self-attention with learnable parameters ''' def __init__(self, dhid): super().__init__() self.scorer = nn.Linear(dhid, 1) def forward(self, inp): score...
38.122667
200
0.622902
f362e5cdbe1d9e6ccbf8c42ea957be9dfcec6887
3,045
py
Python
A3/A3_V3/Packet.py
lingt-xyz/Data-Communications-Computer-Networks
79490b7177010525976fcad5ca3aa846765d4b2b
[ "MIT" ]
2
2019-11-07T20:31:30.000Z
2022-02-10T20:24:24.000Z
A3/A3_V3/Packet.py
lingt-xyz/Data-Communications-Computer-Networks
79490b7177010525976fcad5ca3aa846765d4b2b
[ "MIT" ]
null
null
null
A3/A3_V3/Packet.py
lingt-xyz/Data-Communications-Computer-Networks
79490b7177010525976fcad5ca3aa846765d4b2b
[ "MIT" ]
null
null
null
import ipaddress PACKET_TYPE_NONE = 0 PACKET_TYPE_DATA = 1 PACKET_TYPE_SYN = 2 PACKET_TYPE_SYN_AK = 3 PACKET_TYPE_AK = 4 PACKET_TYPE_SIZE = 1 SEQUENCE_SIZE = 4 DESTINATION_ADDRESS_SIZE = 4 DESTINATION_PORT_SIZE = 2 PAYLOAD_SIZE = 1013 PACKET_SIZE = PACKET_TYPE_SIZE + SEQUENCE_SIZE + DESTINATION_ADDRESS_SIZE + DESTIN...
32.052632
147
0.619704
8a8da62a20b78dc75e84ac5d77f7311f74ec0434
528
py
Python
tic_tac_toe/RandomPlayer.py
fcarsten/ai_playground
ba52378a56b8a4400d594ae70ff03af2a0e36f12
[ "Apache-2.0" ]
null
null
null
tic_tac_toe/RandomPlayer.py
fcarsten/ai_playground
ba52378a56b8a4400d594ae70ff03af2a0e36f12
[ "Apache-2.0" ]
null
null
null
tic_tac_toe/RandomPlayer.py
fcarsten/ai_playground
ba52378a56b8a4400d594ae70ff03af2a0e36f12
[ "Apache-2.0" ]
null
null
null
# # Copyright 2017 Carsten Friedrich (Carsten.Friedrich@gmail.com). All rights reserved # from tic_tac_toe.Board import NEUTRAL class RandomPlayer: def __init__(self): self.side = None self.result = NEUTRAL def move(self, sess, board): _, res, finished = board.move(board.random_empty...
22
85
0.653409
5339db4096503e889452e8d7f58df90dce41d75f
2,199
py
Python
dist/client/buffer_test.py
teru01/AStream
c0bf97e88be64f9925abc5af69113589f1c64761
[ "MIT" ]
3
2021-04-14T10:41:29.000Z
2022-03-24T14:52:02.000Z
dist/client/buffer_test.py
teru01/AStream
c0bf97e88be64f9925abc5af69113589f1c64761
[ "MIT" ]
null
null
null
dist/client/buffer_test.py
teru01/AStream
c0bf97e88be64f9925abc5af69113589f1c64761
[ "MIT" ]
1
2020-12-19T09:47:41.000Z
2020-12-19T09:47:41.000Z
#!/usr/bin/env python # # AStream: Python based DASH player emulator to evaluate the rate adaptation algorithms # for DASH. # Copyright (C) 2015, Parikshit Juluri # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as pu...
35.467742
90
0.643929
13b2f3e093ca291085dc9432fc1dcaa2d19ed6e1
1,417
py
Python
Geometry/GEMGeometryBuilder/test/python/dumpME0GeometryDD4Hep_cfg.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
6
2017-09-08T14:12:56.000Z
2022-03-09T23:57:01.000Z
Geometry/GEMGeometryBuilder/test/python/dumpME0GeometryDD4Hep_cfg.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
545
2017-09-19T17:10:19.000Z
2022-03-07T16:55:27.000Z
Geometry/GEMGeometryBuilder/test/python/dumpME0GeometryDD4Hep_cfg.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
14
2017-10-04T09:47:21.000Z
2019-10-23T18:04:45.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process('DUMP') process.load("FWCore.MessageLogger.MessageLogger_cfi") process.load("Geometry.MuonNumbering.muonGeometryConstants_cff") process.load("Geometry.GEMGeometryBuilder.gemGeometry_cff") process.load("Geometry.GEMGeometryBuilder.me0Geometry_cff") process...
38.297297
132
0.712068
623bb16d58a39c74ba118d0071c3600ed635927f
3,258
py
Python
DataAnalysis/stock_list.py
yuxiang-zhou/MarketAnalysor
4d19d2589d07409cd699f394921d1a95f3097e94
[ "MIT" ]
null
null
null
DataAnalysis/stock_list.py
yuxiang-zhou/MarketAnalysor
4d19d2589d07409cd699f394921d1a95f3097e94
[ "MIT" ]
null
null
null
DataAnalysis/stock_list.py
yuxiang-zhou/MarketAnalysor
4d19d2589d07409cd699f394921d1a95f3097e94
[ "MIT" ]
null
null
null
import urllib2 import threading import json import time from django.utils import timezone from bs4 import BeautifulSoup from tools import safe_request # stock list def getlist(stock): stocks = [] stock_list_query = 'http://shareprices.com/{}' html = urllib2.urlopen(stock_list_query.format(stock)).read() ...
30.735849
154
0.531001
032d583cc2aa0cbead046f333a641bdc551c4eba
1,089
py
Python
SMS-Classifier-App/Python-flask-app/app.py
Kapish0104/Text-message-Spam-Classifier-app
85daa08ab427800f4d4c237f27d64300ed96b69a
[ "MIT" ]
null
null
null
SMS-Classifier-App/Python-flask-app/app.py
Kapish0104/Text-message-Spam-Classifier-app
85daa08ab427800f4d4c237f27d64300ed96b69a
[ "MIT" ]
null
null
null
SMS-Classifier-App/Python-flask-app/app.py
Kapish0104/Text-message-Spam-Classifier-app
85daa08ab427800f4d4c237f27d64300ed96b69a
[ "MIT" ]
null
null
null
from flask import Flask, request, render_template from sklearn.feature_extraction.text import CountVectorizer from sklearn.naive_bayes import MultinomialNB import pickle def classifyMessage(message_text): nb_model = pickle.load(open('naive_bayes_model', 'rb')) vectorizer = pickle.load(open('vectorizer', 'rb'))...
30.25
65
0.683196
7ca88fbbb2201e89a72e1e24688e379c044437d9
477
py
Python
meiduo_mall/meiduo_mall/apps/orders/urls.py
lhz0707/meiduo
5ba6bbb82a28f5c93e7c8d40cdab7ee41b6593d0
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/orders/urls.py
lhz0707/meiduo
5ba6bbb82a28f5c93e7c8d40cdab7ee41b6593d0
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/orders/urls.py
lhz0707/meiduo
5ba6bbb82a28f5c93e7c8d40cdab7ee41b6593d0
[ "MIT" ]
null
null
null
from django.conf.urls import url from django.contrib import admin from . import views urlpatterns = [ url(r'^orders/settlement/$', views.OrderView.as_view()), url(r'^orders/commit/$', views.OrderCommitView.as_view()), # 获取订单成功页面 url(r'^orders/success/$', views.OrderSuccessView.as_view()), # 用户中心获取当前...
34.071429
70
0.681342
b7e8de336598504f553d985f96f524f17595da21
715
py
Python
spiral_aggregation/make_pipelines.py
tingard/Galaxy-builder-aggregation
78fec76eeb2ab4b38e241b66fa5643e0002ba3a7
[ "MIT" ]
1
2018-05-16T14:48:43.000Z
2018-05-16T14:48:43.000Z
spiral_aggregation/make_pipelines.py
tingard/Galaxy-builder-aggregation
78fec76eeb2ab4b38e241b66fa5643e0002ba3a7
[ "MIT" ]
null
null
null
spiral_aggregation/make_pipelines.py
tingard/Galaxy-builder-aggregation
78fec76eeb2ab4b38e241b66fa5643e0002ba3a7
[ "MIT" ]
null
null
null
import numpy as np from tqdm import tqdm import lib.galaxy_utilities as gu from gzbuilderspirals.oo import Pipeline import warnings from astropy.utils.exceptions import AstropyWarning warnings.simplefilter('ignore', category=AstropyWarning) sid_list = sorted(np.loadtxt('lib/subject-id-list.csv', dtype='u8')) for sub...
34.047619
68
0.725874
baa3ade2afd9a76636abfb5d76ffd0a4363ed991
863
py
Python
email_obfuscator/templatetags/email_obfuscator.py
marcinn/django-email-obfuscator
751166fb8bf7045a3efe22d0c426d8089062f127
[ "MIT" ]
28
2015-06-16T19:55:52.000Z
2020-07-09T11:28:36.000Z
email_obfuscator/templatetags/email_obfuscator.py
marcinn/django-email-obfuscator
751166fb8bf7045a3efe22d0c426d8089062f127
[ "MIT" ]
1
2015-03-30T15:06:46.000Z
2016-03-21T17:51:46.000Z
email_obfuscator/templatetags/email_obfuscator.py
marcinn/django-email-obfuscator
751166fb8bf7045a3efe22d0c426d8089062f127
[ "MIT" ]
5
2015-02-04T13:11:55.000Z
2021-03-24T00:36:25.000Z
from django import template from django.template.defaultfilters import stringfilter from django.utils.safestring import mark_safe register = template.Library() def obfuscate_string(value): return ''.join(['&#{0:s};'.format(str(ord(char))) for char in value]) @register.filter @stringfilter def obfuscate(value): ...
27.83871
73
0.645423
8ec2b9d6160cbe57f2371762568b1f13e378ea8d
39,941
py
Python
art/attacks/evasion/carlini.py
minaremeli/adversarial-robustness-toolbox
3454f7f11c3ade9317d11637c8c8621c9f44e8fd
[ "MIT" ]
1
2021-08-27T23:02:02.000Z
2021-08-27T23:02:02.000Z
art/attacks/evasion/carlini.py
minaremeli/adversarial-robustness-toolbox
3454f7f11c3ade9317d11637c8c8621c9f44e8fd
[ "MIT" ]
34
2021-06-23T09:14:19.000Z
2022-03-24T09:16:11.000Z
art/attacks/evasion/carlini.py
minaremeli/adversarial-robustness-toolbox
3454f7f11c3ade9317d11637c8c8621c9f44e8fd
[ "MIT" ]
1
2021-06-07T22:46:25.000Z
2021-06-07T22:46:25.000Z
# MIT License # # Copyright (C) The Adversarial Robustness Toolbox (ART) Authors 2018 # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated # documentation files (the "Software"), to deal in the Software without restriction, including without limitation the # r...
47.492271
120
0.585338
3dab209d2cf85908a64913046cc9da0650c79ea3
14,282
py
Python
mem-axc-64/apps/macsim.r.d.b.s/macsim-mem-axc-64/gems-lib-ooo/simics/src/extensions/x86-linux-process-tracker/x86_linux_process_tracker.py
vnaveen0/nachos
99933b0da5474bf43bd167d2540438375237b2d9
[ "MIT" ]
1
2018-02-28T10:00:00.000Z
2018-02-28T10:00:00.000Z
mem-axc-64/apps/macsim.r.d.b.s/macsim-mem-axc-64/gems-lib-ooo/simics/src/extensions/x86-linux-process-tracker/x86_linux_process_tracker.py
vnaveen0/nachos
99933b0da5474bf43bd167d2540438375237b2d9
[ "MIT" ]
1
2020-04-06T22:30:00.000Z
2020-04-06T22:30:00.000Z
mem-axc-64/apps/macsim.r.d.b.s/macsim-mem-axc-64/gems-lib-ooo/simics/src/extensions/x86-linux-process-tracker/x86_linux_process_tracker.py
vnaveen0/nachos
99933b0da5474bf43bd167d2540438375237b2d9
[ "MIT" ]
null
null
null
# # x86_linux_process_tracker.py - a process tracker for linux on x86 # # Copyright (C) 2005 Virtutech AB, All Rights Reserved # # This program is a component ("Component") of Virtutech Simics and is # being distributed under Section 1(a)(iv) of the Virtutech Simics # Software License Agreement (the "Agreement"). ...
35.794486
79
0.648299
666fbcd52c9c5abfca8e2803ff858bb205f92b04
1,734
py
Python
crawler/Test/websocket_scrapy.py
UniBell/crawler
39bf28b57f5cb35af8032254cee710c5be663fd6
[ "Apache-2.0" ]
null
null
null
crawler/Test/websocket_scrapy.py
UniBell/crawler
39bf28b57f5cb35af8032254cee710c5be663fd6
[ "Apache-2.0" ]
null
null
null
crawler/Test/websocket_scrapy.py
UniBell/crawler
39bf28b57f5cb35af8032254cee710c5be663fd6
[ "Apache-2.0" ]
null
null
null
import asyncio import websockets import json from crawler.manager import db from crawler.manager.model import OrderBook async def bitmex(): async with websockets.connect( 'wss://www.bitmex.com/realtime') as websocket: param = {"op": "subscribe", "args": ["orderBook10:XBTUSD"]} await websock...
28.42623
67
0.534025
9c5d867c2e3d921dbd67d2a7876cb6fce4bc2a62
217
py
Python
dailybbble/templates/service.py
ahmetb/dailybbble
7a067e30d709ebc1a9b4932320794c484a04c4f5
[ "Apache-2.0" ]
2
2019-01-12T11:31:55.000Z
2020-01-09T22:37:59.000Z
dailybbble/templates/service.py
ahmetalpbalkan/dailybbble
7a067e30d709ebc1a9b4932320794c484a04c4f5
[ "Apache-2.0" ]
null
null
null
dailybbble/templates/service.py
ahmetalpbalkan/dailybbble
7a067e30d709ebc1a9b4932320794c484a04c4f5
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 import database """ Provides information from database to front-end methods by adding a caching layer """ def popular_shots_of_day(day, count): return database.popular_shots_of_day(day, count)
15.5
67
0.764977
9edc44a795b60da29fb283901fd6239dd7d79b84
920
py
Python
game.py
ThatFlyGuy000/Rock_Paper_Scissor
41166f5c6384311becaad7fd17591fba97c29425
[ "MIT" ]
null
null
null
game.py
ThatFlyGuy000/Rock_Paper_Scissor
41166f5c6384311becaad7fd17591fba97c29425
[ "MIT" ]
null
null
null
game.py
ThatFlyGuy000/Rock_Paper_Scissor
41166f5c6384311becaad7fd17591fba97c29425
[ "MIT" ]
null
null
null
import random option=['Rock','Paper','Scissor'] computer=random.choice(option) Player_score=0 Comp_score=0 Player=False while True: Player=str(input()) ##Logic if(Player==computer): print('Tie') elif(Player=='Rock'): if(computer=='Paper'): print('Round Lost',computer,'Covers',Player) Comp_score+=1...
16.727273
48
0.66413
4193e7d67b6cc3dbc53e2f77631a31ca99501214
2,260
py
Python
src/arch/x86/isa/insts/x87/arithmetic/partial_remainder.py
hyu-iot/gem5
aeccc8bd8e9a86f96fc7a6f40d978f8494337fc5
[ "BSD-3-Clause" ]
765
2015-01-14T16:17:04.000Z
2022-03-28T07:46:28.000Z
src/arch/x86/isa/insts/x87/arithmetic/partial_remainder.py
hyu-iot/gem5
aeccc8bd8e9a86f96fc7a6f40d978f8494337fc5
[ "BSD-3-Clause" ]
148
2018-07-20T00:58:36.000Z
2021-11-16T01:52:33.000Z
src/arch/x86/isa/insts/x87/arithmetic/partial_remainder.py
hyu-iot/gem5
aeccc8bd8e9a86f96fc7a6f40d978f8494337fc5
[ "BSD-3-Clause" ]
807
2015-01-06T09:55:38.000Z
2022-03-30T10:23:36.000Z
# Copyright (c) 2007 The Hewlett-Packard Development Company # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implemen...
50.222222
72
0.784513
c32302f8153746087e860587ed230b5b318f7e79
1,966
py
Python
src/transformersX/models/cutoffroberta/__init__.py
stevezheng23/fewshot_nlp_pt
aaca4658aaa48a5a45dfd7d5ee7282d7f7c74be2
[ "Apache-2.0" ]
2
2021-08-06T05:43:55.000Z
2022-03-17T22:31:21.000Z
src/transformersX/models/cutoffroberta/__init__.py
stevezheng23/fewshot_nlp_pt
aaca4658aaa48a5a45dfd7d5ee7282d7f7c74be2
[ "Apache-2.0" ]
null
null
null
src/transformersX/models/cutoffroberta/__init__.py
stevezheng23/fewshot_nlp_pt
aaca4658aaa48a5a45dfd7d5ee7282d7f7c74be2
[ "Apache-2.0" ]
null
null
null
# flake8: noqa # There's no way to ignore "F401 '...' imported but unused" warnings in this # module, but to preserve other warnings. So, don't check this module at all. # Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
36.407407
118
0.758901
6262ee3dc7bea11e9b12dd0617f09ea4f551715a
1,062
py
Python
posts/admin.py
RomanMelnikS/Yatube
ae146c5d0ab448fcf5d5437bc8cc3041b04551d1
[ "BSD-3-Clause" ]
null
null
null
posts/admin.py
RomanMelnikS/Yatube
ae146c5d0ab448fcf5d5437bc8cc3041b04551d1
[ "BSD-3-Clause" ]
null
null
null
posts/admin.py
RomanMelnikS/Yatube
ae146c5d0ab448fcf5d5437bc8cc3041b04551d1
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from django.utils.html import format_html from .models import Comment, Group, Post, Follow class CommentInLine(admin.StackedInline): model = Comment @admin.register(Post) class PostAdmin(admin.ModelAdmin): list_display = ('pk', 'text', 'pub_date', 'author', 'image_tag', 'im...
26.55
77
0.645009
487b491acc82229a42e41ed2ff379fa0a0230f7a
1,659
py
Python
tests/end_to_end/test_dataset_dict_from_separate_steps.py
allenai/tango
80c90caefae4ad1c3f8472718ddada912cd8fcf9
[ "Apache-2.0" ]
52
2021-09-24T17:52:34.000Z
2022-03-29T22:55:02.000Z
tests/end_to_end/test_dataset_dict_from_seperate_steps.py
keppy/tango
fbb78935a1c8a88c049e5ace0a2d0c7eeb4c8893
[ "Apache-2.0" ]
90
2021-09-29T04:23:29.000Z
2022-03-31T21:23:02.000Z
tests/end_to_end/test_dataset_dict_from_seperate_steps.py
keppy/tango
fbb78935a1c8a88c049e5ace0a2d0c7eeb4c8893
[ "Apache-2.0" ]
8
2021-11-13T01:56:22.000Z
2022-02-27T03:29:42.000Z
from typing import Any, Sequence from tango import Format, JsonFormat, Step from tango.common import DatasetDict from tango.common.testing import run_experiment @Step.register("train_data") class TrainData(Step): DETERMINISTIC = True CACHEABLE = False def run(self) -> Sequence[int]: # type: ignore ...
26.333333
74
0.503315
f0f3632a1f72de0ae943724b83a8fd250b661d27
4,968
py
Python
run_all/run_all.py
jchen706/heteromarkexperiment
6604a794db1f596d3fef46f7d13f1942543a1168
[ "NCSA" ]
null
null
null
run_all/run_all.py
jchen706/heteromarkexperiment
6604a794db1f596d3fef46f7d13f1942543a1168
[ "NCSA" ]
null
null
null
run_all/run_all.py
jchen706/heteromarkexperiment
6604a794db1f596d3fef46f7d13f1942543a1168
[ "NCSA" ]
null
null
null
#!/usr/bin/env python """This file automatically runs all the benchmarks of Heter-Mark """ from __future__ import print_function import os import re import sys import subprocess import argparse from bcolors import bcolors from benchmark import FirBenchmark from benchmark import AesBenchmark from benchmark import Hist...
32.470588
81
0.608696
8b012e704d682230f84d9e70ce9d2d396e644427
24,577
py
Python
causalnlp/meta/rlearner.py
vishalbelsare/causalnlp
c21406f3ca40fd951e52e777d923c4331b2d46d1
[ "Apache-2.0" ]
66
2021-05-30T08:15:39.000Z
2022-02-03T11:29:50.000Z
causalnlp/meta/rlearner.py
vishalbelsare/causalnlp
c21406f3ca40fd951e52e777d923c4331b2d46d1
[ "Apache-2.0" ]
1
2021-10-20T04:51:27.000Z
2021-10-20T04:51:27.000Z
causalnlp/meta/rlearner.py
vishalbelsare/causalnlp
c21406f3ca40fd951e52e777d923c4331b2d46d1
[ "Apache-2.0" ]
4
2021-08-24T14:24:03.000Z
2022-01-23T03:41:40.000Z
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/05e_meta.rlearner.ipynb (unless otherwise specified). __all__ = ['BaseRLearner', 'BaseRRegressor', 'BaseRClassifier', 'XGBRRegressor', 'logger'] # Cell # REFERENCE: https://github.com/uber/causalml # Copyright 2019 Uber Technology, Inc. # Licensed under the Apache Li...
45.682156
118
0.604101
cc2f2cd391eda41a055ad3fc5f141e8ccb76f2d3
2,829
py
Python
datautils/parsing/common.py
tttzof351/lrpd-paper-code
e61af61a9fe6a30e2111aacd80fe43e629ed45cc
[ "MIT" ]
null
null
null
datautils/parsing/common.py
tttzof351/lrpd-paper-code
e61af61a9fe6a30e2111aacd80fe43e629ed45cc
[ "MIT" ]
null
null
null
datautils/parsing/common.py
tttzof351/lrpd-paper-code
e61af61a9fe6a30e2111aacd80fe43e629ed45cc
[ "MIT" ]
1
2021-10-05T20:50:45.000Z
2021-10-05T20:50:45.000Z
import warnings from collections import defaultdict from pathlib import Path from typing import Dict, List import numpy as np from sklearn.model_selection import train_test_split from tqdm import tqdm def get_file_list_from_folder(root, glob_expr="**/*.wav"): root = Path(root).resolve() return list( ...
35.810127
186
0.640156
00964766e2ea5b7dfeafdbc3504fe7a32c17b354
1,014
py
Python
docs/conf.py
azafred/skeletor
af0652c88522fb2ad70803e19c6e78587141d52b
[ "BSD-2-Clause" ]
null
null
null
docs/conf.py
azafred/skeletor
af0652c88522fb2ad70803e19c6e78587141d52b
[ "BSD-2-Clause" ]
null
null
null
docs/conf.py
azafred/skeletor
af0652c88522fb2ad70803e19c6e78587141d52b
[ "BSD-2-Clause" ]
null
null
null
import sys, os, subprocess from recommonmark.parser import CommonMarkParser app_path = os.path.abspath('../sample') sys.path.insert(0, app_path) print sys.path try: version_git = subprocess.check_output(["git", "describe", "--tags"]).rstrip() except: version_git = '0.0.0' extensions = [] source_parsers = { ...
25.35
81
0.690335
a78f479a638999553972ade0e1016c6d7b0ae708
1,089
py
Python
lib/pylint/test/input/func_w0302.py
willemneal/Docky
d3504e1671b4a6557468234c263950bfab461ce4
[ "MIT" ]
3
2018-11-25T01:09:55.000Z
2021-08-24T01:56:36.000Z
lib/pylint/test/input/func_w0302.py
willemneal/Docky
d3504e1671b4a6557468234c263950bfab461ce4
[ "MIT" ]
7
2021-02-08T20:22:15.000Z
2022-03-11T23:19:41.000Z
lib/pylint/test/input/func_w0302.py
willemneal/Docky
d3504e1671b4a6557468234c263950bfab461ce4
[ "MIT" ]
3
2018-11-09T03:38:09.000Z
2020-02-24T06:26:10.000Z
"""test too much line in modules """ __revision__ = 0 ...
1.070796
32
0.048669
b1b9ea7e559cf8f310dd345d377d69f19bd2129f
10,674
py
Python
poky-dunfell/meta/lib/oeqa/selftest/cases/buildoptions.py
lacie-life/YoctoPi
3412e78468a9b84da50bb1aadb12b459001a3712
[ "MIT" ]
null
null
null
poky-dunfell/meta/lib/oeqa/selftest/cases/buildoptions.py
lacie-life/YoctoPi
3412e78468a9b84da50bb1aadb12b459001a3712
[ "MIT" ]
null
null
null
poky-dunfell/meta/lib/oeqa/selftest/cases/buildoptions.py
lacie-life/YoctoPi
3412e78468a9b84da50bb1aadb12b459001a3712
[ "MIT" ]
null
null
null
# # SPDX-License-Identifier: MIT # import os import re import glob as g import shutil import tempfile from oeqa.selftest.case import OESelftestTestCase from oeqa.selftest.cases.buildhistory import BuildhistoryBase from oeqa.utils.commands import runCmd, bitbake, get_bb_var, get_bb_vars import oeqa.utils.ftools as ftoo...
53.638191
213
0.672663
2c43b69685c6f23461181fe9f4bda3e2bf77add0
1,496
py
Python
src/pywink/devices/sensor.py
vickyg3/python-wink
1b9f4acd22a6784023ae57c2ff0ef4e26b9a38f7
[ "MIT" ]
null
null
null
src/pywink/devices/sensor.py
vickyg3/python-wink
1b9f4acd22a6784023ae57c2ff0ef4e26b9a38f7
[ "MIT" ]
null
null
null
src/pywink/devices/sensor.py
vickyg3/python-wink
1b9f4acd22a6784023ae57c2ff0ef4e26b9a38f7
[ "MIT" ]
null
null
null
from pywink.devices.base import WinkDevice SENSOR_FIELDS_TO_UNITS = {"humidity": "%", "temperature": u'\N{DEGREE SIGN}', "brightness": "%", "proximity": ""} class WinkSensor(WinkDevice): """ Represents a Wink sensor. """ def __init__(self, device_state_as_json, api_interface, sensor_type_i...
34
114
0.639706
6475fe81311e428dce4b5aa025a589bdd4d6d413
14,760
py
Python
mnist_vdsp_multiple_tio2.py
nikhil-garg/VDSP_ocl
906867f8cd8a899a1ce309c5ec843fa1ce865373
[ "MIT" ]
null
null
null
mnist_vdsp_multiple_tio2.py
nikhil-garg/VDSP_ocl
906867f8cd8a899a1ce309c5ec843fa1ce865373
[ "MIT" ]
null
null
null
mnist_vdsp_multiple_tio2.py
nikhil-garg/VDSP_ocl
906867f8cd8a899a1ce309c5ec843fa1ce865373
[ "MIT" ]
1
2021-03-17T20:04:08.000Z
2021-03-17T20:04:08.000Z
import nengo import numpy as np from numpy import random import matplotlib.pyplot as plt import matplotlib.cm as cm import os from nengo.dists import Choice from datetime import datetime import pickle from nengo.utils.matplotlib import rasterplot import time from InputData import PresentInputWithPause from nengo.neuro...
35.480769
355
0.642683
123ab816b0bb039ae3617996dce9aaf4843f1459
5,377
py
Python
rabbit_force/__main__.py
elaredo/rabbit-force-wefox
ec5108f9341ace8a6d44d424c8174bba41558ba3
[ "MIT" ]
19
2018-10-25T15:31:14.000Z
2022-01-18T17:47:39.000Z
rabbit_force/__main__.py
elaredo/rabbit-force-wefox
ec5108f9341ace8a6d44d424c8174bba41558ba3
[ "MIT" ]
1
2021-01-13T13:28:35.000Z
2021-01-13T13:28:35.000Z
rabbit_force/__main__.py
elaredo/rabbit-force-wefox
ec5108f9341ace8a6d44d424c8174bba41558ba3
[ "MIT" ]
1
2019-05-10T10:44:48.000Z
2019-05-10T10:44:48.000Z
"""rabbit_force application entrypoint""" import logging from enum import IntEnum from collections import namedtuple import click from .config import load_config from .app import Application from ._metadata import TITLE, VERSION class Verbosity(IntEnum): """Logging detail level""" #: Application messages wi...
36.828767
79
0.686628
815c6573ac699eb62100bf3a8032f33047941b40
944
py
Python
mactrack/db.py
vrde/mactrack
b6880aa8b1ba7f1583bdf8fd96d332f2167c227a
[ "MIT" ]
4
2017-06-25T16:09:01.000Z
2022-03-21T23:55:53.000Z
mactrack/db.py
vrde/mactrack
b6880aa8b1ba7f1583bdf8fd96d332f2167c227a
[ "MIT" ]
null
null
null
mactrack/db.py
vrde/mactrack
b6880aa8b1ba7f1583bdf8fd96d332f2167c227a
[ "MIT" ]
null
null
null
import sqlite3 import logging log = logging.getLogger(__name__) FILENAME = 'mactrack.db' TABLES = { 'beacons': '''CREATE TABLE beacons ( id TEXT PRIMARY KEY, dt TEXT, dbm INTEGER, sa TEXT, sa_resolved TEXT, lat REAL, lon REAL)''' } INSERTS = { 'beaco...
17.811321
81
0.549788
7ad053a26160e3e1d608151a073496d134db0e39
157
py
Python
core/urls.py
TonyLuque/marketing_website
2ebbbf7788c439afc8192926fa3dc3e231b1e69e
[ "MIT" ]
null
null
null
core/urls.py
TonyLuque/marketing_website
2ebbbf7788c439afc8192926fa3dc3e231b1e69e
[ "MIT" ]
null
null
null
core/urls.py
TonyLuque/marketing_website
2ebbbf7788c439afc8192926fa3dc3e231b1e69e
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.home, name='home'), path('detail/', views.detail, name='detail'), ]
19.625
49
0.649682
3f07de0b522f7de561dc2970355c1cedacab6050
1,230
py
Python
ros/src/can_com/scripts/chaotic_good.py
purduerov/X12-Repo
33574a9a07c3512d6db3a513d13a5666f60fc1f7
[ "MIT" ]
2
2020-01-13T17:28:59.000Z
2020-02-14T01:00:14.000Z
ros/src/can_com/scripts/chaotic_good.py
purduerov/X12-Repo
33574a9a07c3512d6db3a513d13a5666f60fc1f7
[ "MIT" ]
2
2019-10-23T23:16:36.000Z
2020-10-10T17:52:27.000Z
ros/src/can_com/scripts/chaotic_good.py
purduerov/X12-Repo
33574a9a07c3512d6db3a513d13a5666f60fc1f7
[ "MIT" ]
2
2020-02-15T19:00:38.000Z
2020-02-15T19:00:40.000Z
#! /usr/bin/python import sys import can import time IDS = [513, 514, 515] POS_RANGE = 4 DEFAULT_POWER = 146 ZERO_POWER = 127 # This is a test script intended to simplify identification of hardware thruster # configuration by sending commands to each possible thruster position one at a time. if __name__ == "__main_...
27.954545
85
0.638211
c985e9d19a94eaefff8285b8261459b83b31aff6
6,444
py
Python
first-neural-network/my_answers.py
acarerdinc/deep-learning
a5ba0be730eda7c3dfaecb52cb47c84a401d5af9
[ "MIT" ]
null
null
null
first-neural-network/my_answers.py
acarerdinc/deep-learning
a5ba0be730eda7c3dfaecb52cb47c84a401d5af9
[ "MIT" ]
null
null
null
first-neural-network/my_answers.py
acarerdinc/deep-learning
a5ba0be730eda7c3dfaecb52cb47c84a401d5af9
[ "MIT" ]
null
null
null
import numpy as np class NeuralNetwork(object): def __init__(self, input_nodes, hidden_nodes, output_nodes, learning_rate): # Set number of nodes in input, hidden and output layers. self.input_nodes = input_nodes self.hidden_nodes = hidden_nodes self.output_nodes = output_nodes ...
43.836735
141
0.624767
ad1022cd95927cd7cdd41a554dc237fd21bb0197
15,463
py
Python
tests/unit/extractor/test_bigquery_usage_extractor.py
saulius/amundsendatabuilder
142600c001726607545f96d774aa5d5364acd07c
[ "Apache-2.0" ]
null
null
null
tests/unit/extractor/test_bigquery_usage_extractor.py
saulius/amundsendatabuilder
142600c001726607545f96d774aa5d5364acd07c
[ "Apache-2.0" ]
null
null
null
tests/unit/extractor/test_bigquery_usage_extractor.py
saulius/amundsendatabuilder
142600c001726607545f96d774aa5d5364acd07c
[ "Apache-2.0" ]
null
null
null
from mock import patch, Mock import base64 import tempfile import unittest import six import pytest from pyhocon import ConfigFactory from databuilder import Scoped from databuilder.extractor.bigquery_usage_extractor import BigQueryTableUsageExtractor from databuilder.extractor.bigquery_usage_extractor import TableCo...
42.597796
119
0.669986
940e22da38da101ea692bd58b4d0251077bc1f1f
14,882
py
Python
optimizer/grid2.py
santala/layout-server
59d02a5cfc31295c7ac5db4e3c8dc0dc370422d4
[ "MIT" ]
null
null
null
optimizer/grid2.py
santala/layout-server
59d02a5cfc31295c7ac5db4e3c8dc0dc370422d4
[ "MIT" ]
null
null
null
optimizer/grid2.py
santala/layout-server
59d02a5cfc31295c7ac5db4e3c8dc0dc370422d4
[ "MIT" ]
null
null
null
from itertools import product, permutations from math import ceil, floor, sqrt from typing import List from gurobipy import GRB, GenExpr, LinExpr, Model, tupledict, abs_, and_, max_, min_, or_, QuadExpr, GurobiError, Var from .classes import Layout, Element from optimizer import util def equal_width_columns(m: Mod...
40.997245
154
0.640505
7c03211d0fb4fa8a2fde0749554cb244adbeda30
1,398
py
Python
venv/Lib/site-packages/tensorflow_core/_api/v2/compat/v1/summary/__init__.py
TEDxVienna/continuum
85cefbc274fc59e2059c313bc0d3b9b93a34ba6d
[ "MIT" ]
2
2020-09-30T00:11:09.000Z
2021-10-04T13:00:38.000Z
venv/Lib/site-packages/tensorflow_core/_api/v2/compat/v1/summary/__init__.py
TEDxVienna/continuum
85cefbc274fc59e2059c313bc0d3b9b93a34ba6d
[ "MIT" ]
null
null
null
venv/Lib/site-packages/tensorflow_core/_api/v2/compat/v1/summary/__init__.py
TEDxVienna/continuum
85cefbc274fc59e2059c313bc0d3b9b93a34ba6d
[ "MIT" ]
1
2020-06-28T11:47:47.000Z
2020-06-28T11:47:47.000Z
# This file is MACHINE GENERATED! Do not edit. # Generated by: tensorflow/python/tools/api/generator/create_python_api.py script. """Operations for writing summary data, for use in analysis and visualization. See the [Summaries and TensorBoard](https://www.tensorflow.org/guide/summaries_and_tensorboard) guide. """ f...
41.117647
82
0.856938
d2671fad998591cda0dd6aa581a63124d18545c9
1,959
py
Python
cirtorch/geometry/epipolar/triangulation.py
Tarekbouamer/Image-Retrieval-for-Image-Based-Localization
fcad9af4f558bebb3cbec1d08e49603a452f439d
[ "BSD-3-Clause" ]
3
2021-01-15T13:58:22.000Z
2021-01-22T00:03:34.000Z
cirtorch/geometry/epipolar/triangulation.py
Tarekbouamer/Image-Retrieval-for-Image-Based-Localization
fcad9af4f558bebb3cbec1d08e49603a452f439d
[ "BSD-3-Clause" ]
null
null
null
cirtorch/geometry/epipolar/triangulation.py
Tarekbouamer/Image-Retrieval-for-Image-Based-Localization
fcad9af4f558bebb3cbec1d08e49603a452f439d
[ "BSD-3-Clause" ]
null
null
null
import torch from ..conversions import convert_points_from_homogeneous # https://github.com/opencv/opencv_contrib/blob/master/modules/sfm/src/triangulation.cpp#L68 def triangulate_points(P1, P2, points1, points2): """ Reconstructs a bunch of points by triangulation. Triangulates the 3d position o...
47.780488
93
0.622767
d7cf25364ad357a19c589244bf7d6f8fe78e5174
1,251
py
Python
control_relay_via_Flask/flask_for_relay.py
daineseh/linkit-smart-7688-duo-example
368fb4cda51600918b0a5d1eb47469cd80449049
[ "MIT" ]
null
null
null
control_relay_via_Flask/flask_for_relay.py
daineseh/linkit-smart-7688-duo-example
368fb4cda51600918b0a5d1eb47469cd80449049
[ "MIT" ]
null
null
null
control_relay_via_Flask/flask_for_relay.py
daineseh/linkit-smart-7688-duo-example
368fb4cda51600918b0a5d1eb47469cd80449049
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Usage: Type the url in a browser that turn on/off the relay. # http://<IP Address>/api/switchRelay?status=[0|1] from flask import Flask, request, abort import json import os import serial s = None #f = os.popen('ifconfig br-lan | grep "inet\ addr" | cut -d: -f2 | cut -d" " -f1') # AP m...
28.431818
99
0.639488
9623dd762c89c11536e139a19ead5982e745eb73
1,447
py
Python
PyFlooder-master/pyflooder.py
Marzooq13579/Hack-Gadgets
4b9351c4465f3e01fb0390b1e86dfe7c26237a19
[ "MIT" ]
8
2019-02-17T20:11:46.000Z
2019-10-18T06:27:16.000Z
PyFlooder-master/pyflooder.py
Marzooq13579/Hack-Gadgets
4b9351c4465f3e01fb0390b1e86dfe7c26237a19
[ "MIT" ]
null
null
null
PyFlooder-master/pyflooder.py
Marzooq13579/Hack-Gadgets
4b9351c4465f3e01fb0390b1e86dfe7c26237a19
[ "MIT" ]
4
2019-02-17T23:00:18.000Z
2019-10-18T06:27:14.000Z
# -*- coding: utf-8 -*- #Author : D4Vinci #All copyrights to Squnity team import socket,sys,random,time,string,threading try: host = str(sys.argv[1]).replace("https://","").replace("http://","").replace("www","") ip = socket.gethostbyname( host ) except: print " Error:\nMake sure you entered the correct w...
22.968254
93
0.604008
297c7f401167665db55c810c71ad69181311867b
789
py
Python
setup.py
StOriJimmy/building-boundary
db582c40f46f250a6fa8244a867501cf3149330a
[ "MIT" ]
null
null
null
setup.py
StOriJimmy/building-boundary
db582c40f46f250a6fa8244a867501cf3149330a
[ "MIT" ]
null
null
null
setup.py
StOriJimmy/building-boundary
db582c40f46f250a6fa8244a867501cf3149330a
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages def read(filename): with open(filename) as f: return f.read() setup( name="buildingboundary", version="0.3.0", author="Chris Lucas", author_email="chris.lucas@geodan.nl", description=( "A script to trace the boundary of a building (...
23.205882
79
0.602028
034a62cfba7d1aa7ee48fc4d551acb6a319f3bb0
96
py
Python
groupme/reminderbot/src/controllers/Log.py
nfernan1/house_groupme_bot
e2ac30bc5ef9899af627c0e48dc7d47f8ff3311f
[ "MIT" ]
null
null
null
groupme/reminderbot/src/controllers/Log.py
nfernan1/house_groupme_bot
e2ac30bc5ef9899af627c0e48dc7d47f8ff3311f
[ "MIT" ]
null
null
null
groupme/reminderbot/src/controllers/Log.py
nfernan1/house_groupme_bot
e2ac30bc5ef9899af627c0e48dc7d47f8ff3311f
[ "MIT" ]
null
null
null
import sys class Log: def debug(msg): print(str(msg)) sys.stdout.flush()
10.666667
26
0.552083
baff53264f3fac3716048047125111553a3b9c7f
536
py
Python
catkin_ws/build/image_geometry/catkin_generated/pkg.develspace.context.pc.py
vipulkumbhar/AuE893Spring19_VipulKumbhar
f741d5299b2804fd541b2bba64b8a4fba8521f33
[ "MIT" ]
3
2020-12-04T22:00:12.000Z
2022-02-09T15:53:14.000Z
catkin_ws/build/image_geometry/catkin_generated/pkg.develspace.context.pc.py
vipulkumbhar/AuE893Spring19_VipulKumbhar
f741d5299b2804fd541b2bba64b8a4fba8521f33
[ "MIT" ]
1
2020-04-15T19:58:30.000Z
2020-04-15T19:58:30.000Z
catkin_ws/build/image_geometry/catkin_generated/pkg.develspace.context.pc.py
vipulkumbhar/AuE893Spring19_VipulKumbhar
f741d5299b2804fd541b2bba64b8a4fba8521f33
[ "MIT" ]
1
2020-05-21T21:59:21.000Z
2020-05-21T21:59:21.000Z
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/vipulkumbhar/catkin_ws/src/image_geometry/include".split(';') if "/home/vipulkumbhar/catkin_ws/src/image_geometry/include" != "" else [] PROJECT_CATKIN_DEPENDS = "sensor_msgs".replace(';', ' ') P...
59.555556
177
0.768657
f8b9e44b70b6560d141d9de6259d7b6dbe1cdb39
1,002
py
Python
xblock/__init__.py
ffedoroff/XBlock
ce5a02aff444bb2c3134ae03853f5b7add0ba308
[ "Apache-2.0" ]
null
null
null
xblock/__init__.py
ffedoroff/XBlock
ce5a02aff444bb2c3134ae03853f5b7add0ba308
[ "Apache-2.0" ]
null
null
null
xblock/__init__.py
ffedoroff/XBlock
ce5a02aff444bb2c3134ae03853f5b7add0ba308
[ "Apache-2.0" ]
null
null
null
""" XBlock Courseware Components """ # For backwards compatibility, provide the XBlockMixin in xblock.fields # without causing a circular import from __future__ import absolute_import, division, print_function, unicode_literals import codecs import os import warnings import xblock.core import xblock.fields class ...
27.081081
104
0.760479
ddcee46f5ef5a3f9782d6f4889352df8432e6b82
855
py
Python
droxi/drox/dscdbase/prog2/null.py
andydude/droxtools
d608ceb715908fb00398c0d28eee74286fef3750
[ "MIT" ]
null
null
null
droxi/drox/dscdbase/prog2/null.py
andydude/droxtools
d608ceb715908fb00398c0d28eee74286fef3750
[ "MIT" ]
null
null
null
droxi/drox/dscdbase/prog2/null.py
andydude/droxtools
d608ceb715908fb00398c0d28eee74286fef3750
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # droxi # Copyright (c) 2014, Andrew Robbins, All rights reserved. # # This library ("it") is free software; it is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; you can redistribute it and/or modify it under the terms of the # GNU Lesser Gen...
30.535714
93
0.676023
43e2545d5ff98fe86fde5358dd858a43241cbefc
2,068
py
Python
python/benchmarks/benchmark.py
smearle/Griddly
e621285b15fdc45689c08536ab8c3e0f7b52d5cb
[ "MIT" ]
null
null
null
python/benchmarks/benchmark.py
smearle/Griddly
e621285b15fdc45689c08536ab8c3e0f7b52d5cb
[ "MIT" ]
null
null
null
python/benchmarks/benchmark.py
smearle/Griddly
e621285b15fdc45689c08536ab8c3e0f7b52d5cb
[ "MIT" ]
null
null
null
#!/home/bam4d/anaconda3/envs/griddly/bin/python3 from timeit import default_timer as timer import numpy as np import gym import os import psutil from gym import register process = psutil.Process(os.getpid()) def griddly(gdy_file): from griddly import GymWrapperFactory, gd wrapper = GymWrapperFactory() w...
24.619048
112
0.632979
ce1fde8a642a2ac501228e9caf4d78805e4f72f9
3,326
py
Python
danmufm/settings.py
twocucao/danmu.fm
3e813f7095b45fea8cf6c43f4148934673edf5c5
[ "MIT" ]
376
2016-02-14T06:34:08.000Z
2022-01-13T08:03:13.000Z
danmufm/settings.py
jose-alves-maciel-junior/danmu.fm
3e813f7095b45fea8cf6c43f4148934673edf5c5
[ "MIT" ]
19
2016-06-16T06:18:13.000Z
2018-11-14T18:23:19.000Z
danmufm/settings.py
jose-alves-maciel-junior/danmu.fm
3e813f7095b45fea8cf6c43f4148934673edf5c5
[ "MIT" ]
109
2016-02-28T13:10:44.000Z
2020-08-08T09:02:26.000Z
#!/usr/bin/env python # encoding: utf-8 #!/usr/bin/env python # encoding: utf-8 ''' 静态配置 ''' import logging from logging.config import dictConfig import sys import os import shutil from os.path import expanduser VERSION = "0.3.0" PROJECT_NAME = "danmufm" MODULE_NAME = PROJECT_NAME.lo...
25.389313
108
0.58178
b1591c097cc09d0ad72b24a736159eedad06d7df
58,734
py
Python
monai/apps/detection/transforms/dictionary.py
function2-llx/MONAI
4cddaa830b61b88ec78e089bb5f21e05bb1a78f4
[ "Apache-2.0" ]
null
null
null
monai/apps/detection/transforms/dictionary.py
function2-llx/MONAI
4cddaa830b61b88ec78e089bb5f21e05bb1a78f4
[ "Apache-2.0" ]
null
null
null
monai/apps/detection/transforms/dictionary.py
function2-llx/MONAI
4cddaa830b61b88ec78e089bb5f21e05bb1a78f4
[ "Apache-2.0" ]
null
null
null
# Copyright (c) MONAI Consortium # 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, so...
49.986383
128
0.651173
9e5823f23ab1320637221bc8235455e85e0da5ee
9,835
py
Python
Flask/app.py
aatman-19/Recipe_detection_CNN_VGG16
469012e1f13457b829138ecac876a52e201976f5
[ "MIT" ]
1
2022-03-17T17:20:31.000Z
2022-03-17T17:20:31.000Z
Flask/app.py
aatman-19/Recipe_detection_CNN_VGG16
469012e1f13457b829138ecac876a52e201976f5
[ "MIT" ]
null
null
null
Flask/app.py
aatman-19/Recipe_detection_CNN_VGG16
469012e1f13457b829138ecac876a52e201976f5
[ "MIT" ]
1
2022-03-17T16:52:05.000Z
2022-03-17T16:52:05.000Z
from flask import Flask,request,render_template,redirect,flash,url_for import os import sys app = Flask(__name__) from werkzeug.utils import secure_filename from tensorflow.keras.models import load_model from tensorflow.keras.preprocessing import image import numpy as np basedir = os.path.abspath(os.path.dirname(__fil...
73.947368
569
0.667717
319d56e75f7b2e706ad2d5c62be382f33d4cc489
999
py
Python
pybeerxml/json.py
etnmich/pybeerxml
310df8f8a38b56091daccb45c41204a72d25b51d
[ "MIT" ]
null
null
null
pybeerxml/json.py
etnmich/pybeerxml
310df8f8a38b56091daccb45c41204a72d25b51d
[ "MIT" ]
null
null
null
pybeerxml/json.py
etnmich/pybeerxml
310df8f8a38b56091daccb45c41204a72d25b51d
[ "MIT" ]
null
null
null
from .recipe import Recipe from .style import Style from .fermentable import Fermentable from .hop import Hop from .misc import Misc from .mash import Mash from .mash_step import MashStep from .yeast import Yeast import json class BeerXMLtoJSONEncoder(json.JSONEncoder): def default(self, obj): # pylint: disable=E...
34.448276
91
0.591592
37f8b3face6aa161c7f5932a9aff7ac7994042b5
2,193
py
Python
tests/float/float1.py
andihoff98/micropython
b0ef4364db9a75f761adf07c0f300cb0704fdf19
[ "MIT" ]
3
2020-07-22T02:40:16.000Z
2021-11-05T04:17:03.000Z
tests/float/float1.py
andihoff98/micropython
b0ef4364db9a75f761adf07c0f300cb0704fdf19
[ "MIT" ]
19
2022-01-31T20:43:43.000Z
2022-03-30T18:26:37.000Z
tests/float/float1.py
andihoff98/micropython
b0ef4364db9a75f761adf07c0f300cb0704fdf19
[ "MIT" ]
1
2022-03-30T18:38:08.000Z
2022-03-30T18:38:08.000Z
# test basic float capabilities # literals print(0.12) print(1.0) print(1.2) print(0e0) print(0e0) print(0e-0) # float construction print(float(1.2)) print(float("1.2")) print(float("+1")) print(float("1e1")) print(float("1e+1")) print(float("1e-1")) print(float("inf")) print(float("-inf")) print(float("INF")) print(...
17.97541
302
0.692658
edd4ae9143a5f19459d0cc6af9b7578dd0dea619
4,814
py
Python
apps/jwt.py
kavehbc/crypto-tools
316279262dc3f3eac08230c25cc6796dda3e643a
[ "Apache-2.0" ]
null
null
null
apps/jwt.py
kavehbc/crypto-tools
316279262dc3f3eac08230c25cc6796dda3e643a
[ "Apache-2.0" ]
null
null
null
apps/jwt.py
kavehbc/crypto-tools
316279262dc3f3eac08230c25cc6796dda3e643a
[ "Apache-2.0" ]
null
null
null
import streamlit as st import jwt import json import time import datetime def main(): st.title("JWT - JSON Web Token") algorithms = ["HS256", "HS384", "HS512", "ES256", "ES256K", "ES384", "ES512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "EdDSA"] rsa_key = None required...
38.512
101
0.553594
64d7f455f940823275eb2eb40c4e90efbcc167ce
785
py
Python
datahub/omis/quote/admin.py
Staberinde/data-hub-api
3d0467dbceaf62a47158eea412a3dba827073300
[ "MIT" ]
6
2019-12-02T16:11:24.000Z
2022-03-18T10:02:02.000Z
datahub/omis/quote/admin.py
Staberinde/data-hub-api
3d0467dbceaf62a47158eea412a3dba827073300
[ "MIT" ]
1,696
2019-10-31T14:08:37.000Z
2022-03-29T12:35:57.000Z
datahub/omis/quote/admin.py
Staberinde/data-hub-api
3d0467dbceaf62a47158eea412a3dba827073300
[ "MIT" ]
9
2019-11-22T12:42:03.000Z
2021-09-03T14:25:05.000Z
from django.contrib import admin from datahub.omis.quote.models import TermsAndConditions @admin.register(TermsAndConditions) class TermsAndConditionsAdmin(admin.ModelAdmin): """Admin for TermsAndConditions.""" fields = ( 'id', 'name', 'created_on', 'content', ) list_...
22.428571
56
0.605096
0d69da675b59df1a150dd70cd463aaf54b5e0fda
4,386
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/bookmarks/services.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/bookmarks/services.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/bookmarks/services.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
""" Bookmarks service. """ import logging from django.core.exceptions import ObjectDoesNotExist from edx_django_utils.cache import DEFAULT_REQUEST_CACHE from xmodule.modulestore.django import modulestore from xmodule.modulestore.exceptions import ItemNotFoundError from . import DEFAULT_FIELDS, api log = logging.g...
31.328571
102
0.641131
f42ce0b3d24bb5acabe2257e4bfa667323a4a7c8
6,311
py
Python
output.py
ilmariMantysaari/KD-coursework
cfaa43143082757137a5032d6748fdc9ef5e50bd
[ "MIT" ]
null
null
null
output.py
ilmariMantysaari/KD-coursework
cfaa43143082757137a5032d6748fdc9ef5e50bd
[ "MIT" ]
null
null
null
output.py
ilmariMantysaari/KD-coursework
cfaa43143082757137a5032d6748fdc9ef5e50bd
[ "MIT" ]
null
null
null
# Class for outputtings simple scatter plot images of clustersself. # Create a new instance for each clustering job. import copy import datetime import glob import imageio import matplotlib.pyplot as plt import matplotlib.patches as mpatches # Utility method for finding unique cluster names from data def parseCluster...
43.826389
173
0.64855
18328640db3b2dff9ee1f17a7055be3f65cf015f
1,676
py
Python
mdreg/models/DWI_simple.py
JSousa-UoL/mdreg
50641e67cef9ef70132bd8482bac5d718ed55b11
[ "Apache-2.0" ]
null
null
null
mdreg/models/DWI_simple.py
JSousa-UoL/mdreg
50641e67cef9ef70132bd8482bac5d718ed55b11
[ "Apache-2.0" ]
null
null
null
mdreg/models/DWI_simple.py
JSousa-UoL/mdreg
50641e67cef9ef70132bd8482bac5d718ed55b11
[ "Apache-2.0" ]
1
2022-03-31T22:23:58.000Z
2022-03-31T22:23:58.000Z
""" @author: Steven Sourbron DWI monoexponential model fit for mdreg 2022 """ import numpy as np from .exp_decay import main as exp_decay def pars(): return ['S0', 'ADC'] def bounds(): lower = [0,0] upper = [np.inf, 1.0] return lower, upper def main(images, bvalues): """ main function that ...
28.896552
152
0.603819
4d245cb382d03a6ad32c71274178b8f279fe30a0
306
py
Python
app.py
dr-yali/Bone-MRI
54c50b2da26190575ad0913f715bc15a7dbd857f
[ "MIT" ]
null
null
null
app.py
dr-yali/Bone-MRI
54c50b2da26190575ad0913f715bc15a7dbd857f
[ "MIT" ]
null
null
null
app.py
dr-yali/Bone-MRI
54c50b2da26190575ad0913f715bc15a7dbd857f
[ "MIT" ]
null
null
null
from flask import Flask from config import config app = Flask(__name__) app.config['DEBUG'] = config.DEBUG app.config['SECRET_KEY'] = config.SECRET app.config["SQLALCHEMY_DATABASE_URI"] = config.DB_URL app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False app.config['SQLALCHEMY_ECHO'] = config.PRINT_SQL
27.818182
53
0.787582
aaa173db25b8686cf53efd92940dffa943e73085
213
py
Python
authors/apps/ratings/urls.py
andela/ah-the-jedi-backend
ba429dfcec577bd6d52052673c1c413835f65988
[ "BSD-3-Clause" ]
1
2019-12-25T18:59:34.000Z
2019-12-25T18:59:34.000Z
authors/apps/ratings/urls.py
katherine95/ah-the-jedi-backend
ba429dfcec577bd6d52052673c1c413835f65988
[ "BSD-3-Clause" ]
26
2019-04-23T11:20:35.000Z
2022-03-11T23:45:54.000Z
authors/apps/ratings/urls.py
katherine95/ah-the-jedi-backend
ba429dfcec577bd6d52052673c1c413835f65988
[ "BSD-3-Clause" ]
8
2019-05-21T06:54:34.000Z
2019-11-18T19:45:22.000Z
""" urls for rating an article """ from django.urls import path from .views import RatingsAPIView app_name = "ratings" urlpatterns = [ path("articles/<slug>/rate/", RatingsAPIView.as_view(), name='rate') ]
16.384615
72
0.704225
d08f69f132c7c586979fc59c39d9135d8a05bca5
23,151
py
Python
chatbot_env/Lib/site-packages/scipy/interpolate/tests/test_fitpack2.py
rakmakan/Chatbot
d04bc1526b56961a16c25148d9ef18c4f157e9c4
[ "MIT" ]
15
2020-06-29T08:33:39.000Z
2022-02-12T00:28:51.000Z
chatbot_env/Lib/site-packages/scipy/interpolate/tests/test_fitpack2.py
rakmakan/Chatbot
d04bc1526b56961a16c25148d9ef18c4f157e9c4
[ "MIT" ]
30
2020-04-15T19:37:40.000Z
2020-04-22T21:19:35.000Z
chatbot_env/Lib/site-packages/scipy/interpolate/tests/test_fitpack2.py
rakmakan/Chatbot
d04bc1526b56961a16c25148d9ef18c4f157e9c4
[ "MIT" ]
11
2020-06-29T08:40:24.000Z
2022-02-24T17:39:16.000Z
# Created by Pearu Peterson, June 2003 from __future__ import division, print_function, absolute_import import numpy as np from numpy.testing import (assert_equal, assert_almost_equal, assert_array_equal, assert_array_almost_equal, assert_allclose) from scipy._lib._numpy_compat import suppress_warnings from py...
41.788809
98
0.535614
2cc1eeccf74c81bc344e3a6e4cac0739ae4f6996
672
py
Python
.venv/lib/python3.8/site-packages/jupyterlab/_version.py
eo1989/VectorBTanalysis
bea3deaf2ee3fc114b308146f2af3e4f35f70197
[ "MIT" ]
null
null
null
.venv/lib/python3.8/site-packages/jupyterlab/_version.py
eo1989/VectorBTanalysis
bea3deaf2ee3fc114b308146f2af3e4f35f70197
[ "MIT" ]
null
null
null
.venv/lib/python3.8/site-packages/jupyterlab/_version.py
eo1989/VectorBTanalysis
bea3deaf2ee3fc114b308146f2af3e4f35f70197
[ "MIT" ]
null
null
null
# Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. from collections import namedtuple VersionInfo = namedtuple('VersionInfo', [ 'major', 'minor', 'micro', 'releaselevel', 'serial' ]) # DO NOT EDIT THIS DIRECTLY! It is managed by bumpversion versi...
25.846154
73
0.668155
024fb90c08b80024eb0bc4831648e1fccccaf60e
2,296
py
Python
paperfigures/savebestseed.py
emily-gordy/Decadal-SST-prediction
2982d0f089351cbc02acf56eaa8dc06675e95eac
[ "CC0-1.0" ]
null
null
null
paperfigures/savebestseed.py
emily-gordy/Decadal-SST-prediction
2982d0f089351cbc02acf56eaa8dc06675e95eac
[ "CC0-1.0" ]
null
null
null
paperfigures/savebestseed.py
emily-gordy/Decadal-SST-prediction
2982d0f089351cbc02acf56eaa8dc06675e95eac
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Feb 15 12:22:22 2022 @author: emgordy """ #extract best random seed from validation data import xarray as xr import glob import numpy as np import matplotlib.pyplot as plt import sys import matplotlib as mpl sys.path.append('functions/') import nnda...
27.011765
133
0.6777
a7fe1fd7c40407412c23c5bc12b46d81bb6142a2
602
py
Python
2019/aoc2019_4b.py
ByteCommander/AdventOfCode
daf8ffd88892e997e0cc763a29eaf2122585c4f9
[ "MIT" ]
2
2017-12-03T23:56:52.000Z
2017-12-04T09:49:48.000Z
2019/aoc2019_4b.py
ByteCommander/AdventOfCode
daf8ffd88892e997e0cc763a29eaf2122585c4f9
[ "MIT" ]
null
null
null
2019/aoc2019_4b.py
ByteCommander/AdventOfCode
daf8ffd88892e997e0cc763a29eaf2122585c4f9
[ "MIT" ]
null
null
null
# Advent Of Code 2019, day 4, part 2) # http://adventofcode.com/2019/day/4 # solution by ByteCommander, 2019-12-04 import re def main(): wires = [] with open("inputs/aoc2019_4.txt") as file: a, b = map(int, file.read().split("-")) count = sum( 1 for x in range(a, b + 1) if ( ...
24.08
93
0.548173
5239e933eefedd817a179864018c5d7b08c4fcf9
10,372
py
Python
double_rfcn/core/metric.py
xvjiarui/Flow-Guided-Feature-Aggregation
68e6c749e68b490fba1e771353a076b2fbab945c
[ "MIT" ]
1
2019-06-19T09:23:41.000Z
2019-06-19T09:23:41.000Z
double_rfcn/core/metric.py
chengdazhi/Flow-Guided-Feature-Aggregation
63cdffb3d4837d87fb590530b1d16dd59ccb292b
[ "MIT" ]
null
null
null
double_rfcn/core/metric.py
chengdazhi/Flow-Guided-Feature-Aggregation
63cdffb3d4837d87fb590530b1d16dd59ccb292b
[ "MIT" ]
1
2018-07-10T06:36:12.000Z
2018-07-10T06:36:12.000Z
# -------------------------------------------------------- # Flow-Guided Feature Aggregation # Copyright (c) 2017 Microsoft # Licensed under The MIT License [see LICENSE for details] # Modified by Yuwen Xiong # -------------------------------------------------------- # Based on: # MX-RCNN # Copyright (c) 2016 by Contri...
35.159322
115
0.596413
2ae65b2b34350ae4e87e54fbc53da07d517a7e48
14,108
py
Python
tests/test_middleware.py
jorgegarcia7/flumine
d9c0d51a94c32cb5972d45a0806791cd1e72e56b
[ "MIT" ]
1
2021-03-20T15:13:17.000Z
2021-03-20T15:13:17.000Z
tests/test_middleware.py
jorgegarcia7/flumine
d9c0d51a94c32cb5972d45a0806791cd1e72e56b
[ "MIT" ]
null
null
null
tests/test_middleware.py
jorgegarcia7/flumine
d9c0d51a94c32cb5972d45a0806791cd1e72e56b
[ "MIT" ]
null
null
null
import unittest from unittest import mock from flumine.markets.middleware import ( Middleware, SimulatedMiddleware, RunnerAnalytics, OrderStatus, OrderTypes, WIN_MINIMUM_ADJUSTMENT_FACTOR, PLACE_MINIMUM_ADJUSTMENT_FACTOR, ) class MiddlewareTest(unittest.TestCase): def setUp(self) -> N...
45.509677
88
0.692444
a4edcc7ebb3fbcd7f6a69b58c7f36a7ebeec288e
1,404
py
Python
bin/ckan-validate.py
busterbeam/CKAN
a6e97bcb6cb7b7356a4303db6edbc0a333693744
[ "MIT" ]
null
null
null
bin/ckan-validate.py
busterbeam/CKAN
a6e97bcb6cb7b7356a4303db6edbc0a333693744
[ "MIT" ]
null
null
null
bin/ckan-validate.py
busterbeam/CKAN
a6e97bcb6cb7b7356a4303db6edbc0a333693744
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from os.path import exists from sys import argv, exit from json import load from jsonschema import validate, ValidationError if __name__ == "__main__": if len(argv) == 1: print(f"Usage: {argv[0]} <.ckan files>") exit(0) SCHEMA_PATH = "CKAN.schema" if not exists(SCHEMA_PATH): print(f"Can...
27.529412
68
0.67735
1c9b0ade13f9e5f31ad0a4d4bff423b1f0ce3550
5,805
py
Python
capsul/qt_apps/utils/application.py
M40V/capsul
38331bd47e7b815e6d5162f7973e33088320af6e
[ "CECILL-B" ]
null
null
null
capsul/qt_apps/utils/application.py
M40V/capsul
38331bd47e7b815e6d5162f7973e33088320af6e
[ "CECILL-B" ]
null
null
null
capsul/qt_apps/utils/application.py
M40V/capsul
38331bd47e7b815e6d5162f7973e33088320af6e
[ "CECILL-B" ]
null
null
null
########################################################################## # CAPSUL - Copyright (C) CEA, 2013 # Distributed under the terms of the CeCILL-B license, as published by # the CEA-CNRS-INRIA. Refer to the LICENSE file or to # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html # for details. ########...
33.171429
76
0.55056
35c64fca892f795052ae14587256e54f813976be
2,042
py
Python
tests/bot/cogs/test_security.py
ItsDrike/CommandBot
b7409ada15d0b692e9e123a81181c6e99685d755
[ "MIT" ]
1
2020-04-24T14:00:00.000Z
2020-04-24T14:00:00.000Z
tests/bot/cogs/test_security.py
ItsDrike/CommandBot
b7409ada15d0b692e9e123a81181c6e99685d755
[ "MIT" ]
36
2020-05-22T03:28:49.000Z
2020-10-02T21:37:23.000Z
tests/bot/cogs/test_security.py
itsdrike/CommandBot
b7409ada15d0b692e9e123a81181c6e99685d755
[ "MIT" ]
2
2020-09-12T10:11:03.000Z
2020-09-15T14:39:24.000Z
import unittest from unittest.mock import MagicMock from discord.ext.commands import NoPrivateMessage from bot.cogs import security from tests.helpers import MockBot, MockContext class SecurityCogTests(unittest.TestCase): """Tests the `Security` cog.""" def setUp(self): """Attach an instance of the...
37.127273
105
0.700294
39e30a768c30ae94a431f9434b3633c0732f74a7
2,530
py
Python
src/coolbeans/tools/namematch.py
runarp/coolbeans
128a7f2e45690d2d22b05608e555c44334f46859
[ "MIT" ]
5
2020-05-17T04:48:25.000Z
2022-01-27T09:36:45.000Z
src/coolbeans/tools/namematch.py
runarp/coolbeans
128a7f2e45690d2d22b05608e555c44334f46859
[ "MIT" ]
1
2020-05-17T06:21:52.000Z
2020-05-22T13:49:33.000Z
src/coolbeans/tools/namematch.py
runarp/coolbeans
128a7f2e45690d2d22b05608e555c44334f46859
[ "MIT" ]
1
2021-01-28T03:00:27.000Z
2021-01-28T03:00:27.000Z
import re import typing import dataclasses import logging import datetime import pathlib # Probably remove this support from beancount.ingest.cache import _FileMemo as FileMemo FILE_REX = ( r"^(?P<year>\d\d\d\d)-(?P<month>\d\d)-(?P<day>\d\d)" r"[-.](s(?P<from_date>\d\d\d\d-\d\d-\d\d).)?" r"(?P<slug>[\w-...
26.914894
95
0.599605
28cc0d0a2d23856de6b0296c5bdcc33faceda081
2,167
py
Python
app/recipe/tests/test_ingredients_api.py
jorgemaciel/recipe-app-api
79ed9718572ac6fcd0a56a0436fbb2d2b3d2c91d
[ "MIT" ]
null
null
null
app/recipe/tests/test_ingredients_api.py
jorgemaciel/recipe-app-api
79ed9718572ac6fcd0a56a0436fbb2d2b3d2c91d
[ "MIT" ]
null
null
null
app/recipe/tests/test_ingredients_api.py
jorgemaciel/recipe-app-api
79ed9718572ac6fcd0a56a0436fbb2d2b3d2c91d
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.urls import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from core.models import Ingredient from recipe.serializers import IngredientSerializer INGREDIENTS_URL = reverse('recipe:ingred...
31.405797
78
0.693586