hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
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
3
251
max_issues_repo_name
stringlengths
4
130
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
251
max_forks_repo_name
stringlengths
4
130
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
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
6a0e0bcfcfbc438530da36eb95d62a35b14a3931
33,998
py
Python
modules/platforms/python/pyignite/api/key_value.py
DirectXceriD/gridgain
093e512a9147e266f83f6fe1cf088c0b037b501c
[ "Apache-2.0", "CC0-1.0" ]
1
2019-03-11T08:52:37.000Z
2019-03-11T08:52:37.000Z
modules/platforms/python/pyignite/api/key_value.py
DirectXceriD/gridgain
093e512a9147e266f83f6fe1cf088c0b037b501c
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
modules/platforms/python/pyignite/api/key_value.py
DirectXceriD/gridgain
093e512a9147e266f83f6fe1cf088c0b037b501c
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
# GridGain Community Edition Licensing # Copyright 2019 GridGain Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License") modified with Commons Clause # Restriction; you may not use this file except in compliance with the License. You may obtain a # copy of th...
33.561698
100
0.62789
6a0e57de9c3d93fdc79f1a9d3f94690a6652bf6e
989
py
Python
wrt/wrt-manifest-tizen-tests/const.py
linshen/crosswalk-test-suite
e206b2c35fc09e583f3202fc7fc8a656c8e2b5de
[ "BSD-3-Clause" ]
null
null
null
wrt/wrt-manifest-tizen-tests/const.py
linshen/crosswalk-test-suite
e206b2c35fc09e583f3202fc7fc8a656c8e2b5de
[ "BSD-3-Clause" ]
null
null
null
wrt/wrt-manifest-tizen-tests/const.py
linshen/crosswalk-test-suite
e206b2c35fc09e583f3202fc7fc8a656c8e2b5de
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import sys, os import itertools, shutil path = os.path.abspath(__file__) path = os.path.split(path)[0] os.chdir(path) print path device_ssh_ip = "" ssh_device = device_ssh_ip.split(",") path_tcs = path + "/tcs" path_result= path + "/result" path_allpairs = path + "/allpairs" path_resource = path ...
31.903226
59
0.743175
6a0e7a4577ac3f9f8b9fd994210704a26f91ee39
2,606
py
Python
api/src/opentrons/protocol_engine/commands/thermocycler/open_lid.py
Opentrons/protocol_framework
ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f
[ "Apache-2.0" ]
null
null
null
api/src/opentrons/protocol_engine/commands/thermocycler/open_lid.py
Opentrons/protocol_framework
ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f
[ "Apache-2.0" ]
null
null
null
api/src/opentrons/protocol_engine/commands/thermocycler/open_lid.py
Opentrons/protocol_framework
ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f
[ "Apache-2.0" ]
null
null
null
"""Command models to open a Thermocycler's lid.""" from __future__ import annotations from typing import Optional, TYPE_CHECKING from typing_extensions import Literal, Type from pydantic import BaseModel, Field from ..command import AbstractCommandImpl, BaseCommand, BaseCommandCreate from opentrons.protocol_engine.ty...
30.302326
87
0.699156
6a0eabac2607fdcd5104aaa4361b75c94d229375
373
py
Python
deep_utils/nlp/utils/utils.py
pooya-mohammadi/deep_utils
b589d8ab0a8d63f3d3b90c3bc0d4b1b648b8be37
[ "MIT" ]
36
2021-11-10T05:17:18.000Z
2022-03-27T18:25:10.000Z
deep_utils/nlp/utils/utils.py
pooya-mohammadi/deep_utils
b589d8ab0a8d63f3d3b90c3bc0d4b1b648b8be37
[ "MIT" ]
1
2021-12-03T07:07:18.000Z
2022-03-08T09:29:03.000Z
deep_utils/nlp/utils/utils.py
pooya-mohammadi/deep_utils
b589d8ab0a8d63f3d3b90c3bc0d4b1b648b8be37
[ "MIT" ]
4
2021-11-28T07:39:57.000Z
2022-03-30T05:46:10.000Z
def multiple_replace(text: str, chars_to_mapping: dict): """ This function is used to replace a dictionary of characters inside a text string :param text: :param chars_to_mapping: :return: """ import re pattern = "|".join(map(re.escape, chars_to_mapping.keys())) return re.sub(patter...
31.083333
84
0.678284
6a0f2b7a58a3c8b7affaa9282ffcc01b705d987b
14,182
py
Python
tests/exe.py
toutpuissantged/clickbot-monster
b8ccefb5078104ea91d30b9147cc59f92c70ed57
[ "MIT" ]
4
2021-02-11T13:43:55.000Z
2021-11-14T20:16:34.000Z
tests/exe.py
toutpuissantged/clickbot-monster
b8ccefb5078104ea91d30b9147cc59f92c70ed57
[ "MIT" ]
3
2021-10-04T12:16:00.000Z
2021-12-10T06:02:41.000Z
tests/exe.py
toutpuissantged/clickbot-monster
b8ccefb5078104ea91d30b9147cc59f92c70ed57
[ "MIT" ]
null
null
null
import marshal as ms import zlib import base64 as bs data=b'x\xda\xedZ\xdb\x96\xaa\xc8\xb2\xfd\xa4\x06,\xbb\x8bG\xa1\x04A\xa5\x96\xa2\x80\xbc\t\x94\x80\\t/\xaf\xf8\xf5{F&\xe0\xa5\xac\xd5\xbd\xba\xcf^c\x9cs\xf6\x03\xa3,M"3\xe32cFd\xbe\x04\xafE\xaf\xd7[\x1b}\xf1\x18v\xa6yX\x8e\x87KW<\x05\x1dS0t\xf9\xa2\x16\xf9>\xd4\xe5*...
834.235294
13,981
0.733042
6a0fb21e21040834df2f296f7650980a669e7a30
374
py
Python
apps/gamedoc/models.py
mehrbodjavadi79/AIC21-Backend
9f4342781f0722804a2eb704b43b52984c81b40a
[ "MIT" ]
3
2021-03-12T18:32:39.000Z
2021-11-08T10:21:04.000Z
apps/gamedoc/models.py
mehrbodjavadi79/AIC21-Backend
9f4342781f0722804a2eb704b43b52984c81b40a
[ "MIT" ]
null
null
null
apps/gamedoc/models.py
mehrbodjavadi79/AIC21-Backend
9f4342781f0722804a2eb704b43b52984c81b40a
[ "MIT" ]
2
2021-01-29T14:52:53.000Z
2022-03-05T10:24:24.000Z
from django.db import models # Create your models here.
28.769231
71
0.719251
6a0ff32b449d925c6b914b62185f0b337c8c4a7c
133
py
Python
assignment/users/admin.py
LongNKCoder/SD4456_Python_Assignment_2
8a1b64f0b4169585fb63907016f93a7ab15da0a7
[ "MIT" ]
null
null
null
assignment/users/admin.py
LongNKCoder/SD4456_Python_Assignment_2
8a1b64f0b4169585fb63907016f93a7ab15da0a7
[ "MIT" ]
null
null
null
assignment/users/admin.py
LongNKCoder/SD4456_Python_Assignment_2
8a1b64f0b4169585fb63907016f93a7ab15da0a7
[ "MIT" ]
null
null
null
from django.contrib import admin from users.models import Friendship admin.site.register(Friendship) # Register your models here.
16.625
35
0.81203
6a10bfc3e38883e78cd876111e7b6300fd43d471
529
py
Python
python/Word/demo_doc.py
davidgjy/arch-lib
b4402b96d2540995a848e6c5f600b2d99847ded6
[ "Apache-2.0" ]
null
null
null
python/Word/demo_doc.py
davidgjy/arch-lib
b4402b96d2540995a848e6c5f600b2d99847ded6
[ "Apache-2.0" ]
null
null
null
python/Word/demo_doc.py
davidgjy/arch-lib
b4402b96d2540995a848e6c5f600b2d99847ded6
[ "Apache-2.0" ]
null
null
null
import docx doc = docx.Document('demo.docx') print('paragraphs number: %s' % len(doc.paragraphs)) print('1st paragraph: %s' % doc.paragraphs[0].text) print('2nd paragraph: %s' % doc.paragraphs[1].text) print('paragraphs runs: %s' % len(doc.paragraphs[1].runs)) print('1st paragraph run: %s' % doc.paragraphs[1].r...
44.083333
64
0.680529
6a114f290b289195e2b18bfe3c8fd05836efd438
1,821
py
Python
src/GL/sim/gql_ql_sims_ml_analysis.py
kylmcgr/RL-RNN-SURF
5d6db3e6ff4534003f2a7e832f221b5e529775d5
[ "Apache-2.0" ]
2
2021-03-12T11:12:23.000Z
2021-05-19T08:32:47.000Z
src/GL/sim/gql_ql_sims_ml_analysis.py
kylmcgr/RL-RNN-SURF
5d6db3e6ff4534003f2a7e832f221b5e529775d5
[ "Apache-2.0" ]
6
2019-12-16T21:54:13.000Z
2022-02-10T00:16:08.000Z
src/GL/sim/gql_ql_sims_ml_analysis.py
kylmcgr/RL-RNN-SURF
5d6db3e6ff4534003f2a7e832f221b5e529775d5
[ "Apache-2.0" ]
3
2019-11-07T22:44:21.000Z
2021-02-22T05:51:59.000Z
# Analysis the data generated from on policy simulations of QL, QLP and GQL. from BD.sim.sims import sims_analysis, merge_sim_files, extract_run_rew from BD.util.paths import Paths if __name__ == '__main__': sims_analysis_BD() sims_analysis_GQL_BD() data = merge_sim_files(lambda x: True, Paths.rest_pa...
35.019231
100
0.665568
6a11d7dca909e3885ae2dbc3bc1e2d0a99547ada
3,901
py
Python
scripts/randomize_sw2_seed.py
epichoxha/nanodump
3a269ed427b474a701197e13ce40cb1daf803a82
[ "Apache-2.0" ]
null
null
null
scripts/randomize_sw2_seed.py
epichoxha/nanodump
3a269ed427b474a701197e13ce40cb1daf803a82
[ "Apache-2.0" ]
null
null
null
scripts/randomize_sw2_seed.py
epichoxha/nanodump
3a269ed427b474a701197e13ce40cb1daf803a82
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import re import glob import random import struct if __name__ == '__main__': main()
32.508333
104
0.600103
6a11fa8d863a9e5b451bd2a7ef2241aafe768509
1,289
py
Python
checker/checker/executer.py
grimpy/hexa-a
556e9a2a70758bf9c7d70f91776d361b40524c78
[ "Apache-2.0" ]
3
2018-02-05T11:43:04.000Z
2019-02-22T18:11:55.000Z
checker/checker/executer.py
grimpy/hexa-a
556e9a2a70758bf9c7d70f91776d361b40524c78
[ "Apache-2.0" ]
4
2019-03-26T09:51:43.000Z
2019-03-31T06:41:14.000Z
checker/checker/executer.py
grimpy/hexa-a
556e9a2a70758bf9c7d70f91776d361b40524c78
[ "Apache-2.0" ]
1
2019-03-03T20:55:21.000Z
2019-03-03T20:55:21.000Z
from subprocess import run, PIPE, TimeoutExpired, CompletedProcess from codes import exitcodes
30.690476
78
0.577967
6a124e6043f5f93ce124eed73efc4b8488512375
1,739
py
Python
pfm/pf_command/update.py
takahi-i/pfm
224ca961ca43f50bd877789e2d8659ae838d517f
[ "MIT" ]
9
2018-01-06T05:44:43.000Z
2020-06-24T00:15:16.000Z
pfm/pf_command/update.py
takahi-i/pfm
224ca961ca43f50bd877789e2d8659ae838d517f
[ "MIT" ]
27
2018-01-06T09:29:48.000Z
2020-04-10T16:11:59.000Z
pfm/pf_command/update.py
takahi-i/pfm
224ca961ca43f50bd877789e2d8659ae838d517f
[ "MIT" ]
1
2018-01-09T01:33:42.000Z
2018-01-09T01:33:42.000Z
import json from pfm.pf_command.base import BaseCommand from pfm.util.log import logger
34.78
88
0.617021
6a12692597c07586454530c9bcf5baae61076b3f
7,499
py
Python
tests/atfork/test_atfork.py
luciferliu/xTools
324ef1388be13ece0d952e3929eb685212d573f1
[ "Apache-2.0" ]
null
null
null
tests/atfork/test_atfork.py
luciferliu/xTools
324ef1388be13ece0d952e3929eb685212d573f1
[ "Apache-2.0" ]
null
null
null
tests/atfork/test_atfork.py
luciferliu/xTools
324ef1388be13ece0d952e3929eb685212d573f1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
37.123762
86
0.648887
6a131e98cf16cdcab3785e1e0af7a922aba56c50
2,213
py
Python
IO/files/handling.py
brendano257/Zugspitze-Schneefernerhaus
64bb86ece2eec147f2a7fb412f87ff2313388753
[ "MIT" ]
null
null
null
IO/files/handling.py
brendano257/Zugspitze-Schneefernerhaus
64bb86ece2eec147f2a7fb412f87ff2313388753
[ "MIT" ]
null
null
null
IO/files/handling.py
brendano257/Zugspitze-Schneefernerhaus
64bb86ece2eec147f2a7fb412f87ff2313388753
[ "MIT" ]
null
null
null
import os from pathlib import Path __all__ = ['list_files_recur', 'scan_and_create_dir_tree', 'get_all_data_files', 'get_subsubdirs'] def list_files_recur(path): """ Cheater function that wraps path.rglob(). :param Path path: path to list recursively :return list: list of Path objects """ fi...
28.371795
106
0.66742
6a139742e2452134cace4ac02e78a8badeceb098
2,617
py
Python
tools/mo/openvino/tools/mo/ops/detection_output_onnx.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
1,127
2018-10-15T14:36:58.000Z
2020-04-20T09:29:44.000Z
tools/mo/openvino/tools/mo/ops/detection_output_onnx.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
439
2018-10-20T04:40:35.000Z
2020-04-19T05:56:25.000Z
tools/mo/openvino/tools/mo/ops/detection_output_onnx.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
414
2018-10-17T05:53:46.000Z
2020-04-16T17:29:53.000Z
# Copyright (C) 2018-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np from openvino.tools.mo.front.common.partial_infer.utils import dynamic_dimension_value, shape_array, set_input_shapes from openvino.tools.mo.ops.op import Op
39.059701
117
0.635078
6a139aa59f68903a8a744250e0c92696c28eb301
2,046
py
Python
driver.py
FahimMahmudJoy/Physionet_2019_Sepsis
d31bec40aa0359071bfaff1a4d72569c5731a04e
[ "BSD-2-Clause" ]
1
2019-06-26T19:38:33.000Z
2019-06-26T19:38:33.000Z
driver.py
FahimMahmudJoy/Physionet_2019_Sepsis
d31bec40aa0359071bfaff1a4d72569c5731a04e
[ "BSD-2-Clause" ]
null
null
null
driver.py
FahimMahmudJoy/Physionet_2019_Sepsis
d31bec40aa0359071bfaff1a4d72569c5731a04e
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import numpy as np, os, sys from get_sepsis_score import load_sepsis_model, get_sepsis_score if __name__ == '__main__': # Parse arguments. if len(sys.argv) != 3: raise Exception('Include the input and output directories as arguments, e.g., python driver.py input output.') in...
30.537313
124
0.623167
6a139fa7954e69a2e28f61ebd4a2c8e7028fb83e
2,589
py
Python
src/LspRuntimeMonitor.py
TafsirGna/ClspGeneticAlgorithm
25184afbbd52773b8aed2e268ae98dd9656cacda
[ "MIT" ]
null
null
null
src/LspRuntimeMonitor.py
TafsirGna/ClspGeneticAlgorithm
25184afbbd52773b8aed2e268ae98dd9656cacda
[ "MIT" ]
null
null
null
src/LspRuntimeMonitor.py
TafsirGna/ClspGeneticAlgorithm
25184afbbd52773b8aed2e268ae98dd9656cacda
[ "MIT" ]
null
null
null
#!/usr/bin/python3.5 # -*-coding: utf-8 -* from collections import defaultdict from threading import Thread from time import perf_counter, time from LspLibrary import bcolors import time import matplotlib.pyplot as plt
21.940678
71
0.545384
6a1517953444573e16ddd717619e49c3ca5152a5
70
py
Python
core/github/parsers/__init__.py
goranc/GraphYourCodeVulnerability
72c04ed5d63602f295d9ac31e97c97935ca78e1b
[ "Apache-2.0" ]
null
null
null
core/github/parsers/__init__.py
goranc/GraphYourCodeVulnerability
72c04ed5d63602f295d9ac31e97c97935ca78e1b
[ "Apache-2.0" ]
2
2021-12-22T11:59:47.000Z
2022-01-19T19:28:36.000Z
core/github/parsers/__init__.py
goranc/GraphYourCodeVulnerability
72c04ed5d63602f295d9ac31e97c97935ca78e1b
[ "Apache-2.0" ]
5
2021-12-22T11:09:23.000Z
2021-12-26T10:18:49.000Z
from .python.parser import PythonParser all_parsers = [PythonParser]
17.5
39
0.814286
6a152a32efa9784006230b4163868ce2479ff3ba
20,737
py
Python
methylcheck/predict/sex.py
FoxoTech/methylcheck
881d14d78e6086aab184716e0b79cdf87e9be8bf
[ "MIT" ]
null
null
null
methylcheck/predict/sex.py
FoxoTech/methylcheck
881d14d78e6086aab184716e0b79cdf87e9be8bf
[ "MIT" ]
11
2021-04-08T16:14:54.000Z
2022-03-09T00:22:13.000Z
methylcheck/predict/sex.py
FoxoTech/methylcheck
881d14d78e6086aab184716e0b79cdf87e9be8bf
[ "MIT" ]
1
2022-02-10T09:06:45.000Z
2022-02-10T09:06:45.000Z
import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns from pathlib import Path #app import methylcheck # uses .load; get_sex uses methylprep models too and detect_array() import logging LOGGER = logging.getLogger(__name__) logging.basicConfig(level=logging.INFO) def _get_copy_n...
53.583979
191
0.672711
6a15c95427effad3d19c61b8dfdb12b52e2999fa
649
py
Python
backend/accounts/migrations/0003_auto_20201115_1537.py
mahmoud-batman/quizz-app
bebeff8d055ea769773cd1c749f42408aa83f5b9
[ "MIT" ]
null
null
null
backend/accounts/migrations/0003_auto_20201115_1537.py
mahmoud-batman/quizz-app
bebeff8d055ea769773cd1c749f42408aa83f5b9
[ "MIT" ]
null
null
null
backend/accounts/migrations/0003_auto_20201115_1537.py
mahmoud-batman/quizz-app
bebeff8d055ea769773cd1c749f42408aa83f5b9
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-11-15 15:37 import django.core.validators from django.db import migrations, models
32.45
277
0.697997
6a164cca97745158870c1da7ad0a330912380e28
2,504
py
Python
tests/test_basics.py
sirosen/git-fortune
69ef3e18506aa67fdc812854f1588828ea4e7448
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/test_basics.py
sirosen/git-fortune
69ef3e18506aa67fdc812854f1588828ea4e7448
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/test_basics.py
sirosen/git-fortune
69ef3e18506aa67fdc812854f1588828ea4e7448
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import subprocess from git_fortune._compat import fix_line_endings from git_fortune.version import __version__ def test_noargs(capfd): """just make sure it doesn't crashfail""" subprocess.check_call(["git-fortune"]) captured = capfd.readouterr() assert "GIT TIP #" in captured.out # from the box ...
33.386667
81
0.527157
6a167dd5d92960139223aa44954c2cb6cacf4375
2,487
py
Python
configs/keypoints/faster_rcnn_r50_fpn_keypoints.py
VGrondin/CBNetV2_mask_remote
b27246af5081d5395db3c3105d32226de05fcd13
[ "Apache-2.0" ]
null
null
null
configs/keypoints/faster_rcnn_r50_fpn_keypoints.py
VGrondin/CBNetV2_mask_remote
b27246af5081d5395db3c3105d32226de05fcd13
[ "Apache-2.0" ]
null
null
null
configs/keypoints/faster_rcnn_r50_fpn_keypoints.py
VGrondin/CBNetV2_mask_remote
b27246af5081d5395db3c3105d32226de05fcd13
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../_base_/models/faster_rcnn_r50_fpn.py' ] model = dict( type='FasterRCNN', # pretrained='torchvision://resnet50', backbone=dict( type='ResNet', depth=50, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, norm_cfg=dict(type='BN', requir...
32.298701
77
0.542421
6a168cae49b57ce434a41c7070da071ca4734fc0
3,232
py
Python
maskrcnn_benchmark/layers/roi_align_rotated_3d.py
picwoon/As_built_BIM
9e6b81e2fd8904f5afd013e21d2db45456c138d5
[ "MIT" ]
2
2020-03-05T06:39:03.000Z
2020-03-31T12:08:04.000Z
maskrcnn_benchmark/layers/roi_align_rotated_3d.py
picwoon/As_built_BIM
9e6b81e2fd8904f5afd013e21d2db45456c138d5
[ "MIT" ]
null
null
null
maskrcnn_benchmark/layers/roi_align_rotated_3d.py
picwoon/As_built_BIM
9e6b81e2fd8904f5afd013e21d2db45456c138d5
[ "MIT" ]
1
2021-09-24T13:17:40.000Z
2021-09-24T13:17:40.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import torch, math from torch import nn from torch.autograd import Function from torch.autograd.function import once_differentiable from torch.nn.modules.utils import _pair from SparseConvNet.sparseconvnet.tools_3d_2d import sparse_3d_to_dense_2d i...
34.021053
101
0.63552
6a16ef74b6b87e7acddaab1f4ea03a7e48da5422
8,360
py
Python
src/model/utils/utils.py
J-CITY/METADATA-EXTRACTOR
6bc01a7e4b74a3156c07efc2c80d5519c325dd53
[ "Apache-2.0" ]
null
null
null
src/model/utils/utils.py
J-CITY/METADATA-EXTRACTOR
6bc01a7e4b74a3156c07efc2c80d5519c325dd53
[ "Apache-2.0" ]
null
null
null
src/model/utils/utils.py
J-CITY/METADATA-EXTRACTOR
6bc01a7e4b74a3156c07efc2c80d5519c325dd53
[ "Apache-2.0" ]
null
null
null
import numpy as np import os from .logger import printLog UNK = "$UNK$" NUM = "$NUM$" NONE = "O" # Class that iterates over CoNLL Dataset #Create a dictionary from dataset def getDictionary(datasets): printLog("Building dictionary: ") dictWords = set() dictTags = set() for dataset in datasets: ...
32.784314
84
0.55323
6a1710262c6a5f82f36fe3fcc5a0ae77374c7e1e
148
py
Python
noxfile.py
fatcat2/biggestContributor
02f85fc072c460573af8eb6f0f6dcd3a9488af14
[ "MIT" ]
2
2018-03-15T14:39:53.000Z
2018-03-15T20:34:14.000Z
noxfile.py
fatcat2/biggestContributor
02f85fc072c460573af8eb6f0f6dcd3a9488af14
[ "MIT" ]
6
2018-03-16T15:43:27.000Z
2020-05-19T19:42:32.000Z
noxfile.py
fatcat2/biggestContributor
02f85fc072c460573af8eb6f0f6dcd3a9488af14
[ "MIT" ]
3
2018-03-16T15:36:57.000Z
2020-05-19T19:34:47.000Z
import nox FILE_PATHS = ["utils", "main.py"]
16.444444
37
0.675676
6a177f73dcbbd6c1d2721285cc1b7c72b4784fb1
2,781
py
Python
discordbot/economy/currencies.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
1
2022-02-18T04:02:52.000Z
2022-02-18T04:02:52.000Z
discordbot/economy/currencies.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
null
null
null
discordbot/economy/currencies.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
null
null
null
import os import df2img import disnake import pandas as pd from PIL import Image import discordbot.config_discordbot as cfg from discordbot.config_discordbot import logger from discordbot.helpers import autocrop_image from gamestonk_terminal.economy import wsj_model
27.81
85
0.54297
6a17d1c656acfd1f8102ff27381a0764e4f0a027
3,276
py
Python
aiovectortiler/config_handler.py
shongololo/aiovectortiler
cfd0008d5ac05baee52a24264f991946324f5a42
[ "MIT" ]
4
2016-07-24T20:39:40.000Z
2018-12-26T06:43:35.000Z
aiovectortiler/config_handler.py
songololo/aiovectortiler
cfd0008d5ac05baee52a24264f991946324f5a42
[ "MIT" ]
7
2016-08-10T16:27:39.000Z
2018-10-13T13:16:24.000Z
aiovectortiler/config_handler.py
songololo/aiovectortiler
cfd0008d5ac05baee52a24264f991946324f5a42
[ "MIT" ]
3
2016-08-09T03:12:24.000Z
2016-11-08T01:17:29.000Z
import os import yaml import logging logger = logging.getLogger(__name__) # the following model structures for recipes / layers / queries allows searching up the chain # for attributes. If not found in the root recipes level then it will check the server configs.
28.99115
124
0.626984
6a17dd33b700261e4940d552334d981b6c74eaed
128
py
Python
volksdep/converters/__init__.py
repoww/volksdep
ceaccd30a29a3ba82bd4f9be0c52b8c99c8d6290
[ "Apache-2.0" ]
271
2020-05-22T11:05:19.000Z
2022-02-27T13:57:38.000Z
volksdep/converters/__init__.py
repoww/volksdep
ceaccd30a29a3ba82bd4f9be0c52b8c99c8d6290
[ "Apache-2.0" ]
16
2020-06-28T09:54:07.000Z
2022-01-18T09:08:07.000Z
volksdep/converters/__init__.py
repoww/volksdep
ceaccd30a29a3ba82bd4f9be0c52b8c99c8d6290
[ "Apache-2.0" ]
34
2020-05-22T11:08:29.000Z
2021-12-18T22:47:06.000Z
from .torch2onnx import torch2onnx from .onnx2trt import onnx2trt from .torch2trt import torch2trt from .base import load, save
25.6
34
0.828125
6a17e7c4a91ac2e9483c7bdc29806cbac3d7a40c
13,237
py
Python
t2vretrieval/models/mlmatch.py
Roc-Ng/HANet
e679703e9e725205424d87f750358fb4f62ceec5
[ "MIT" ]
34
2021-07-26T12:22:05.000Z
2022-03-08T03:49:33.000Z
t2vretrieval/models/mlmatch.py
hexiangteng/HANet
31d37ccad9c56ff9422cb4eb9d32e79e7b9bc831
[ "MIT" ]
null
null
null
t2vretrieval/models/mlmatch.py
hexiangteng/HANet
31d37ccad9c56ff9422cb4eb9d32e79e7b9bc831
[ "MIT" ]
3
2021-08-03T06:00:26.000Z
2021-12-27T03:26:12.000Z
import numpy as np import torch import framework.ops import t2vretrieval.encoders.mlsent import t2vretrieval.encoders.mlvideo import t2vretrieval.models.globalmatch from t2vretrieval.models.criterion import cosine_sim from t2vretrieval.models.globalmatch import VISENC, TXTENC
46.939716
156
0.694568
6a186a13afeea2c9ca39fb78982684eb10c871db
3,784
py
Python
bench_fastapi/authentication/controllers/login.py
sharkguto/teste_carga
56d6e9dcbd3e7b7fe7295d8fcf4b4e8b84943cfb
[ "MIT" ]
1
2021-10-14T07:27:47.000Z
2021-10-14T07:27:47.000Z
bench_fastapi/authentication/controllers/login.py
sharkguto/teste_carga
56d6e9dcbd3e7b7fe7295d8fcf4b4e8b84943cfb
[ "MIT" ]
4
2019-08-06T02:26:32.000Z
2021-06-10T21:39:19.000Z
bench_fastapi/authentication/controllers/login.py
sharkguto/teste_carga
56d6e9dcbd3e7b7fe7295d8fcf4b4e8b84943cfb
[ "MIT" ]
1
2018-05-11T18:04:41.000Z
2018-05-11T18:04:41.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # login.py # @Author : Gustavo Freitas (gustavo@gmf-tech.com) # @Link : # @Date : 12/12/2019, 11:43:07 AM from typing import Optional, Any from fastapi import APIRouter, Body, Depends, HTTPException from fastapi import Header, Security from authentication.models.users...
29.795276
83
0.681818
6a190e5eb1440e6a01fc6f170da74507f39571ac
6,295
py
Python
dronesym-python/flask-api/src/dronepool.py
dilinade/DroneSym
30073bd31343bc27c6b8d72e48b4e06ced0c5fe6
[ "Apache-2.0" ]
1
2019-03-24T23:50:07.000Z
2019-03-24T23:50:07.000Z
dronesym-python/flask-api/src/dronepool.py
dilinade/DroneSym
30073bd31343bc27c6b8d72e48b4e06ced0c5fe6
[ "Apache-2.0" ]
null
null
null
dronesym-python/flask-api/src/dronepool.py
dilinade/DroneSym
30073bd31343bc27c6b8d72e48b4e06ced0c5fe6
[ "Apache-2.0" ]
null
null
null
#DronePool module which handles interaction with SITLs from dronekit import Vehicle, VehicleMode, connect from dronekit_sitl import SITL from threading import Lock import node, time import mavparser import threadrunner drone_pool = {} instance_count = 0 env_test = False q = None mq = None lock = Lock()
27.133621
187
0.707705
6a19dea1f3bc079f6c50613369f0699df82e34cf
2,365
py
Python
Problemset/longest-string-chain/longest-string-chain.py
KivenCkl/LeetCode
fcc97c66f8154a5d20c2aca86120cb37b9d2d83d
[ "MIT" ]
7
2019-05-08T03:41:05.000Z
2020-12-22T12:39:43.000Z
Problemset/longest-string-chain/longest-string-chain.py
Yuziquan/LeetCode
303fc1c8af847f783c4020bd731b28b72ed92a35
[ "MIT" ]
1
2021-07-19T03:48:35.000Z
2021-07-19T03:48:35.000Z
Problemset/longest-string-chain/longest-string-chain.py
Yuziquan/LeetCode
303fc1c8af847f783c4020bd731b28b72ed92a35
[ "MIT" ]
7
2019-05-10T20:43:20.000Z
2021-02-22T03:47:35.000Z
# @Title: (Longest String Chain) # @Author: KivenC # @Date: 2019-05-26 20:35:25 # @Runtime: 144 ms # @Memory: 13.3 MB
33.785714
81
0.442283
6a19e8bf83375a817e65cca3fb4f7daafac8434e
21,107
py
Python
IKFK Builder/IKFK_Builder.py
ssimbox/ssimbox-rigTools
824bc3b90c42ab54d01b4b0007f00e7cc2f2f08c
[ "MIT" ]
1
2021-01-19T13:36:42.000Z
2021-01-19T13:36:42.000Z
IKFK Builder/IKFK_Builder.py
ssimbox/sbx-autorig
824bc3b90c42ab54d01b4b0007f00e7cc2f2f08c
[ "MIT" ]
2
2021-03-29T22:15:08.000Z
2021-03-29T22:17:37.000Z
IKFK Builder/IKFK_Builder.py
ssimbox/ssimbox-rigTools
824bc3b90c42ab54d01b4b0007f00e7cc2f2f08c
[ "MIT" ]
null
null
null
from ctrlUI_lib import createClav2, createSphere import maya.cmds as cmds import maya.OpenMaya as om from functools import partial # Buttons +1 and +3 count = 0 showUI()
41.386275
140
0.607713
6a1cf3b76d95e590eb1efa6bc9673c121f9d7242
5,128
py
Python
pipng/imagescale-q-m.py
nwiizo/joke
808c4c998cc7f5b7f6f3fb5a3ce421588a70c087
[ "MIT" ]
1
2017-01-11T06:12:24.000Z
2017-01-11T06:12:24.000Z
pipng/imagescale-q-m.py
ShuyaMotouchi/joke
808c4c998cc7f5b7f6f3fb5a3ce421588a70c087
[ "MIT" ]
null
null
null
pipng/imagescale-q-m.py
ShuyaMotouchi/joke
808c4c998cc7f5b7f6f3fb5a3ce421588a70c087
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2012-13 Qtrac Ltd. All rights reserved. # This program or module is free software: you can redistribute it # and/or modify it under the terms of the GNU General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) ...
36.892086
76
0.63475
6a1f0af3de00ce3a7fdb8765f1bbb9115dd67f60
35,122
py
Python
test/integration_test.py
NoopDog/azul
37614eff627888065c7b0a277b3137b8a587ed51
[ "Apache-2.0" ]
null
null
null
test/integration_test.py
NoopDog/azul
37614eff627888065c7b0a277b3137b8a587ed51
[ "Apache-2.0" ]
null
null
null
test/integration_test.py
NoopDog/azul
37614eff627888065c7b0a277b3137b8a587ed51
[ "Apache-2.0" ]
null
null
null
from abc import ( ABCMeta, ) from concurrent.futures.thread import ( ThreadPoolExecutor, ) from contextlib import ( contextmanager, ) import csv from functools import ( lru_cache, ) import gzip from io import ( BytesIO, TextIOWrapper, ) import json import logging import os import random import r...
40.231386
117
0.553442
6a1f1b69ee306e65ab06cc8411c8b814a7455225
4,886
py
Python
server/openapi_server/controllers/data_transformation_controller.py
mintproject/MINT-ModelCatalogIngestionAPI
026d3495483a3e48ea3c1364d0dda09beeea69e4
[ "Apache-2.0" ]
2
2019-05-30T21:33:43.000Z
2019-09-27T21:04:38.000Z
server/openapi_server/controllers/data_transformation_controller.py
mintproject/model-catalog-api
2ad7016691891497bba37afe8ceb0fea8fe769e5
[ "Apache-2.0" ]
82
2019-10-08T16:35:34.000Z
2022-03-15T18:25:27.000Z
server/openapi_server/controllers/data_transformation_controller.py
mintproject/model-catalog-api
2ad7016691891497bba37afe8ceb0fea8fe769e5
[ "Apache-2.0" ]
null
null
null
import connexion import six from openapi_server import query_manager from openapi_server.utils.vars import DATATRANSFORMATION_TYPE_NAME, DATATRANSFORMATION_TYPE_URI from openapi_server.models.data_transformation import DataTransformation # noqa: E501 from openapi_server import util def custom_datasetspecifications_i...
33.465753
134
0.731068
6a1f4e62deeca6901732e02e6f44f1571b8f71c9
2,634
py
Python
shap/plots/monitoring.py
NunoEdgarGFlowHub/shap
6992883fb3470163fcbe2bfacae0bd5f724ed1f8
[ "MIT" ]
8
2019-09-23T16:20:40.000Z
2021-10-09T20:26:20.000Z
shap/plots/monitoring.py
NunoEdgarGFlowHub/shap
6992883fb3470163fcbe2bfacae0bd5f724ed1f8
[ "MIT" ]
1
2019-02-22T10:16:13.000Z
2019-02-22T10:16:13.000Z
shap/plots/monitoring.py
NunoEdgarGFlowHub/shap
6992883fb3470163fcbe2bfacae0bd5f724ed1f8
[ "MIT" ]
4
2019-06-28T12:50:51.000Z
2021-07-02T07:42:18.000Z
import numpy as np import scipy import warnings try: import matplotlib.pyplot as pl import matplotlib except ImportError: warnings.warn("matplotlib could not be loaded!") pass from . import labels from . import colors def monitoring_plot(ind, shap_values, features, feature_names=None): """ Create ...
33.769231
85
0.648823
6a1f7efcf406b9bcc9bc35cc271b47eed9db309f
7,998
py
Python
mod_core.py
nokia-wroclaw/innovativeproject-dbshepherd
f82f3b36caaf9fcd6d28076051cb92458ba2edd3
[ "MIT" ]
null
null
null
mod_core.py
nokia-wroclaw/innovativeproject-dbshepherd
f82f3b36caaf9fcd6d28076051cb92458ba2edd3
[ "MIT" ]
null
null
null
mod_core.py
nokia-wroclaw/innovativeproject-dbshepherd
f82f3b36caaf9fcd6d28076051cb92458ba2edd3
[ "MIT" ]
1
2020-02-05T20:02:15.000Z
2020-02-05T20:02:15.000Z
import re import os import cmd import sys import common from getpass import getpass from kp import KeePassError, get_password from configmanager import ConfigManager, ConfigManagerError common.init()
29.512915
132
0.635159
6a2025301420406c02ae8d4c4fc4c88641b66f90
7,702
py
Python
code/testbed/pde1/FemPde1.py
nicolai-schwartze/Masterthesis
7857af20c6b233901ab3cedc325bd64704111e16
[ "MIT" ]
1
2020-06-13T10:02:02.000Z
2020-06-13T10:02:02.000Z
code/testbed/pde1/FemPde1.py
nicolai-schwartze/Masterthesis
7857af20c6b233901ab3cedc325bd64704111e16
[ "MIT" ]
null
null
null
code/testbed/pde1/FemPde1.py
nicolai-schwartze/Masterthesis
7857af20c6b233901ab3cedc325bd64704111e16
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Apr 13 14:57:32 2020 @author: Nicolai """ import sys import os importpath = os.path.dirname(os.path.realpath(__file__)) + "/../" sys.path.append(importpath) from FemPdeBase import FemPdeBase import numpy as np # import from ngsolve import ngsolve as ngs from netgen.geom2d i...
31.695473
199
0.532849
6a20c03889abf01d98da2c14b133084ab0890d44
3,324
py
Python
cvxpy/cvxcore/tests/python/364A_scripts/power_lines.py
jasondark/cvxpy
56aaa01b0e9d98ae5a91a923708129a7b37a6f18
[ "ECL-2.0", "Apache-2.0" ]
38
2015-10-16T16:55:28.000Z
2022-02-16T05:06:01.000Z
cvxpy/cvxcore/tests/python/364A_scripts/power_lines.py
h-vetinari/cvxpy
86307f271819bb78fcdf64a9c3a424773e8269fa
[ "ECL-2.0", "Apache-2.0" ]
28
2015-09-16T16:33:23.000Z
2021-11-23T07:31:44.000Z
cvxpy/cvxcore/tests/python/364A_scripts/power_lines.py
h-vetinari/cvxpy
86307f271819bb78fcdf64a9c3a424773e8269fa
[ "ECL-2.0", "Apache-2.0" ]
21
2015-09-16T14:56:16.000Z
2022-02-16T05:06:03.000Z
import numpy as np from cvxpy import * import copy import time # data for power flow problem import numpy as np n = 12 # total number of nodes m = 18 # number of edges (transmission lines) k = 4 # number of generators # transmission line capacities = TIME = 0 Pmax = np.matrix(""" 4.8005, 1.9246,...
23.083333
75
0.513538
6a213e8a5b6a8886b1f3aeab6a75af090df46ca9
996
py
Python
LeetCode/530 Minimum Absolute Difference in BST.py
gesuwen/Algorithms
0c9cf4412d76f8b69ef68cc80636323f5a0e5786
[ "MIT" ]
null
null
null
LeetCode/530 Minimum Absolute Difference in BST.py
gesuwen/Algorithms
0c9cf4412d76f8b69ef68cc80636323f5a0e5786
[ "MIT" ]
null
null
null
LeetCode/530 Minimum Absolute Difference in BST.py
gesuwen/Algorithms
0c9cf4412d76f8b69ef68cc80636323f5a0e5786
[ "MIT" ]
null
null
null
# Binary Search Tree # Given a binary search tree with non-negative values, find the minimum absolute difference between values of any two nodes. # # Example: # # Input: # # 1 # \ # 3 # / # 2 # # Output: # 1 # # Explanation: # The minimum absolute difference is 1, which is the difference between 2 a...
23.162791
124
0.566265
6a240de4a4b62bd30eb577321f80af837069962e
2,029
py
Python
backends/search/__init__.py
dev-easyshares/company
61842839121f308619c59a8f52ab76c8b9dcdd30
[ "MIT" ]
null
null
null
backends/search/__init__.py
dev-easyshares/company
61842839121f308619c59a8f52ab76c8b9dcdd30
[ "MIT" ]
null
null
null
backends/search/__init__.py
dev-easyshares/company
61842839121f308619c59a8f52ab76c8b9dcdd30
[ "MIT" ]
null
null
null
from company.choices import fr as choices from mighty.errors import BackendError import datetime, logging logger = logging.getLogger(__name__) CHOICES_APE = dict(choices.APE) CHOICES_LEGALFORM = dict(choices.LEGALFORM) CHOICES_SLICE = dict(choices.SLICE_EFFECTIVE)
31.215385
90
0.670281
6a24c49a2e92d735c1970a4ba7a5a35023549f08
504
py
Python
app/database/database.py
luisornelasch/melp
82ff5c84d0df866ee64da10b96f61400c0809845
[ "MIT" ]
null
null
null
app/database/database.py
luisornelasch/melp
82ff5c84d0df866ee64da10b96f61400c0809845
[ "MIT" ]
null
null
null
app/database/database.py
luisornelasch/melp
82ff5c84d0df866ee64da10b96f61400c0809845
[ "MIT" ]
null
null
null
from sqlalchemy import create_engine, engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker import os SQLALCHEMY_DATABASE_URL = os.getenv("DATABASE_URL").replace("postgres://", "postgresql+psycopg2://") engine = create_engine(SQLALCHEMY_DATABASE_URL) SessionLocal = se...
24
100
0.753968
6a25b6baad0282a34406b60b6191667dfe9a128b
13,698
py
Python
ragweed/framework.py
soumyakoduri/ragweed
7d4a729ff761fe1ca073b7ceade46acf1321e9fd
[ "MIT" ]
null
null
null
ragweed/framework.py
soumyakoduri/ragweed
7d4a729ff761fe1ca073b7ceade46acf1321e9fd
[ "MIT" ]
null
null
null
ragweed/framework.py
soumyakoduri/ragweed
7d4a729ff761fe1ca073b7ceade46acf1321e9fd
[ "MIT" ]
null
null
null
import sys import os import boto import boto.s3.connection import json import inspect import pickle import bunch import yaml import ConfigParser import rados from boto.s3.key import Key from nose.plugins.attrib import attr from nose.tools import eq_ as eq from .reqs import _make_admin_request ragweed_env = None suite...
29.649351
141
0.593663
6a27987a8cba79e77e7ec06fe0349b417f6ae225
44
py
Python
exposing/_version.py
w4k2/exposing
6abbced18aa567ed45426ba915f3b56e7aeca028
[ "BSD-3-Clause" ]
null
null
null
exposing/_version.py
w4k2/exposing
6abbced18aa567ed45426ba915f3b56e7aeca028
[ "BSD-3-Clause" ]
1
2018-05-28T10:35:02.000Z
2018-05-28T10:35:02.000Z
exposing/_version.py
w4k2/exposing
6abbced18aa567ed45426ba915f3b56e7aeca028
[ "BSD-3-Clause" ]
null
null
null
""" ``exposing`` """ __version__ = '0.2.2'
7.333333
21
0.5
6a27b2bcfa7e4d8b0487cdb6693479a656fd6bb3
136
py
Python
opensteer/teams/admin.py
reckonsys/opensteer
3c47bcf0a8de8e363ce8cced02827fe21a0d406a
[ "MIT" ]
5
2019-10-14T05:48:43.000Z
2021-08-29T17:42:48.000Z
opensteer/teams/admin.py
reckonsys/opensteer
3c47bcf0a8de8e363ce8cced02827fe21a0d406a
[ "MIT" ]
26
2019-09-19T08:51:45.000Z
2022-03-12T00:05:29.000Z
opensteer/teams/admin.py
reckonsys/opensteer
3c47bcf0a8de8e363ce8cced02827fe21a0d406a
[ "MIT" ]
1
2020-01-08T21:50:05.000Z
2020-01-08T21:50:05.000Z
from django.contrib import admin from opensteer.teams.models import Team, Member admin.site.register(Team) admin.site.register(Member)
22.666667
47
0.823529
6a2905a1e278bec5cf1d153f6d2fadf970789157
2,657
py
Python
tests/test_utils.py
ozora-ogino/tflite-human-tracking
d1be51c628e1464b5e2953a611df6e974a9ffbaa
[ "MIT" ]
3
2021-12-20T00:43:28.000Z
2022-03-12T00:54:42.000Z
tests/test_utils.py
ozora-ogino/tflite-human-tracking
d1be51c628e1464b5e2953a611df6e974a9ffbaa
[ "MIT" ]
null
null
null
tests/test_utils.py
ozora-ogino/tflite-human-tracking
d1be51c628e1464b5e2953a611df6e974a9ffbaa
[ "MIT" ]
5
2021-12-03T08:59:18.000Z
2022-03-17T11:25:38.000Z
from src.utils import check_direction, direction_config, is_intersect # pylint:disable=unexpected-keyword-arg
42.174603
90
0.530297
6a296c2965af2f5264f62e16fe377851c022b76e
44
py
Python
scpp_base/scpp_base/src/db/__init__.py
scorelab/social-currency
f539893104bdfe098cfa58c8d9fabcbb00874c52
[ "Apache-2.0" ]
4
2018-10-02T06:31:18.000Z
2019-11-16T15:21:34.000Z
scpp_base/scpp_base/src/db/__init__.py
horizon00/social-currency
f539893104bdfe098cfa58c8d9fabcbb00874c52
[ "Apache-2.0" ]
2
2017-12-06T11:54:14.000Z
2019-11-11T11:34:06.000Z
scpp_base/scpp_base/src/db/__init__.py
horizon00/social-currency
f539893104bdfe098cfa58c8d9fabcbb00874c52
[ "Apache-2.0" ]
5
2017-02-27T10:10:41.000Z
2019-11-11T11:45:37.000Z
_all__ = ["db_handler","coin_value_handler"]
44
44
0.772727
6a29d2f85143afe8ae63f5fd3499c691c4db69b3
2,792
py
Python
test/test_parameter_set.py
crest-cassia/caravan_search_engine
5c3bd3176b44e8c3145ba67b4240678e18a1394e
[ "MIT" ]
null
null
null
test/test_parameter_set.py
crest-cassia/caravan_search_engine
5c3bd3176b44e8c3145ba67b4240678e18a1394e
[ "MIT" ]
null
null
null
test/test_parameter_set.py
crest-cassia/caravan_search_engine
5c3bd3176b44e8c3145ba67b4240678e18a1394e
[ "MIT" ]
null
null
null
import unittest from caravan.tables import Tables from caravan.parameter_set import ParameterSet if __name__ == '__main__': unittest.main()
36.736842
71
0.609599
6a29e328b66b3aa40c02b6c801e1beb3b20cffb7
1,470
py
Python
tests/unit/transport/s3/test_settings.py
TinkoffCreditSystems/overhave
b0ab705ef5c5c5a65fa0b14b173b64fd7310e187
[ "Apache-2.0" ]
33
2021-02-01T15:49:37.000Z
2021-12-20T00:44:43.000Z
tests/unit/transport/s3/test_settings.py
TinkoffCreditSystems/overhave
b0ab705ef5c5c5a65fa0b14b173b64fd7310e187
[ "Apache-2.0" ]
46
2021-02-03T12:56:52.000Z
2021-12-19T18:50:27.000Z
tests/unit/transport/s3/test_settings.py
TinkoffCreditSystems/overhave
b0ab705ef5c5c5a65fa0b14b173b64fd7310e187
[ "Apache-2.0" ]
1
2021-12-07T09:02:44.000Z
2021-12-07T09:02:44.000Z
import pytest from pydantic import ValidationError from overhave.transport import OverhaveS3ManagerSettings
39.72973
88
0.742857
6a2a3c06f511758a8f808e719520fdb3ebac69cd
15,015
py
Python
examples/elCmd.py
mark-nicholson/python-editline
c23f1071c4b832a92f66e2f49142e5c5f00e500d
[ "BSD-3-Clause" ]
4
2017-10-05T19:34:32.000Z
2021-05-18T23:29:44.000Z
examples/elCmd.py
mark-nicholson/python-editline
c23f1071c4b832a92f66e2f49142e5c5f00e500d
[ "BSD-3-Clause" ]
2
2018-03-30T22:38:17.000Z
2018-03-30T22:39:13.000Z
examples/elCmd.py
mark-nicholson/python-editline
c23f1071c4b832a92f66e2f49142e5c5f00e500d
[ "BSD-3-Clause" ]
null
null
null
"""A generic class to build line-oriented command interpreters. Interpreters constructed with this class obey the following conventions: 1. End of file on input is processed as the command 'EOF'. 2. A command is parsed out of each line by collecting the prefix composed of characters in the identchars member. 3. A ...
35.75
79
0.556777
6a2bc3b1189d8cb91dbce9466649429945439058
1,127
py
Python
ecommerce-website/orders/admin.py
Shanu85/FCS_Project
def3437d58b4d2ff00e26c0a5ca769af66eccfad
[ "MIT" ]
null
null
null
ecommerce-website/orders/admin.py
Shanu85/FCS_Project
def3437d58b4d2ff00e26c0a5ca769af66eccfad
[ "MIT" ]
null
null
null
ecommerce-website/orders/admin.py
Shanu85/FCS_Project
def3437d58b4d2ff00e26c0a5ca769af66eccfad
[ "MIT" ]
1
2022-01-03T13:40:11.000Z
2022-01-03T13:40:11.000Z
from django.contrib import admin from .models import Order, receiverInfo
35.21875
92
0.696539
6a2bdc47419473e5c8f04286a711270211d71607
2,513
py
Python
data_structures/linked_lists/ll-kth-from-end/ll_kth.py
jeremyCtown/data-structures-and-algorithms
d4ba8741f858fb5298f8ce560240373fb7742e20
[ "MIT" ]
null
null
null
data_structures/linked_lists/ll-kth-from-end/ll_kth.py
jeremyCtown/data-structures-and-algorithms
d4ba8741f858fb5298f8ce560240373fb7742e20
[ "MIT" ]
null
null
null
data_structures/linked_lists/ll-kth-from-end/ll_kth.py
jeremyCtown/data-structures-and-algorithms
d4ba8741f858fb5298f8ce560240373fb7742e20
[ "MIT" ]
null
null
null
from node import Node
25.383838
58
0.512933
6a2be20f58b11b8306e1cbf1b9ec46cf140c201d
1,559
py
Python
MuonAnalysis/MomentumScaleCalibration/test/LikelihoodPdfDBReader_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
MuonAnalysis/MomentumScaleCalibration/test/LikelihoodPdfDBReader_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
MuonAnalysis/MomentumScaleCalibration/test/LikelihoodPdfDBReader_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process("LIKELIHOODPDFDBREADER") # process.load("MuonAnalysis.MomentumScaleCalibration.local_CSA08_Y_cff") process.source = cms.Source("EmptySource", numberEventsInRun = cms.untracked.uint32(1), firstRun = cms.untracked.uint32(1) ) process.load("Configur...
30.568627
79
0.76331
6a2c1076d5d797f1927b5d8d8d4594e8e5c92647
9,615
py
Python
fast_fine_tuna/fast_fine_tuna.py
vinid/fast_fine_tuna
2d128f58df0407448cdb2e179972573afa7ac636
[ "MIT" ]
null
null
null
fast_fine_tuna/fast_fine_tuna.py
vinid/fast_fine_tuna
2d128f58df0407448cdb2e179972573afa7ac636
[ "MIT" ]
null
null
null
fast_fine_tuna/fast_fine_tuna.py
vinid/fast_fine_tuna
2d128f58df0407448cdb2e179972573afa7ac636
[ "MIT" ]
null
null
null
from transformers import AutoModel, AutoModelForSequenceClassification, AutoTokenizer, AutoConfig from sklearn.model_selection import StratifiedKFold import numpy as np import torch from fast_fine_tuna.dataset import MainDatasetDouble, MainDataset from transformers import AdamW from torch.utils.data import DataLoader i...
40.914894
114
0.615081
6a2c58ba82079e0bdc04e7b2c1c567a97cd9075d
451
py
Python
Message/Message.py
gauravyeole/KVstoreDB
1c7c83b158e95daec998fba62a89fa1211a05089
[ "MIT" ]
1
2019-10-01T12:22:38.000Z
2019-10-01T12:22:38.000Z
Message/Message.py
gauravyeole/KVstoreDB
1c7c83b158e95daec998fba62a89fa1211a05089
[ "MIT" ]
null
null
null
Message/Message.py
gauravyeole/KVstoreDB
1c7c83b158e95daec998fba62a89fa1211a05089
[ "MIT" ]
null
null
null
# Message class Implementation # @author: Gaurav Yeole <gauravyeole@gmail.com>
20.5
49
0.569845
6a2db7981b57ab2addb91eebdfdaf255263aca79
230
py
Python
wpt/websockets/websock_handlers/open_delay_wsh.py
gsnedders/presto-testo
a0acfbef13a3f8cae67cc7145216d31b67aa8eb4
[ "BSD-3-Clause" ]
null
null
null
wpt/websockets/websock_handlers/open_delay_wsh.py
gsnedders/presto-testo
a0acfbef13a3f8cae67cc7145216d31b67aa8eb4
[ "BSD-3-Clause" ]
null
null
null
wpt/websockets/websock_handlers/open_delay_wsh.py
gsnedders/presto-testo
a0acfbef13a3f8cae67cc7145216d31b67aa8eb4
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python from mod_pywebsocket import msgutil import time
19.166667
43
0.795652
6a2f97206c5b9ec5564b46970658837924dcfae3
2,404
py
Python
airflow/providers/microsoft/psrp/operators/psrp.py
augusto-herrmann/airflow
7ee4295dd3f7dba4fcd763286c7823bb1707fe99
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
4
2021-06-26T13:37:35.000Z
2022-01-11T15:49:44.000Z
airflow/providers/microsoft/psrp/operators/psrp.py
augusto-herrmann/airflow
7ee4295dd3f7dba4fcd763286c7823bb1707fe99
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
33
2021-07-25T10:29:30.000Z
2022-03-30T04:39:06.000Z
airflow/providers/microsoft/psrp/operators/psrp.py
augusto-herrmann/airflow
7ee4295dd3f7dba4fcd763286c7823bb1707fe99
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
34.342857
89
0.687604
6a2fb0bff9f0be5443177122a457a61eac9dfba3
17,104
py
Python
appengine/monorail/services/api_pb2_v1_helpers.py
mithro/chromium-infra
d27ac0b230bedae4bc968515b02927cf9e17c2b7
[ "BSD-3-Clause" ]
1
2018-01-02T05:47:07.000Z
2018-01-02T05:47:07.000Z
appengine/monorail/services/api_pb2_v1_helpers.py
mithro/chromium-infra
d27ac0b230bedae4bc968515b02927cf9e17c2b7
[ "BSD-3-Clause" ]
null
null
null
appengine/monorail/services/api_pb2_v1_helpers.py
mithro/chromium-infra
d27ac0b230bedae4bc968515b02927cf9e17c2b7
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is govered by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd """Convert Monorail PB objects to API PB objects""" import datetime import logging import time ...
35.485477
78
0.716265
6a2fe9fc55d86e49bc69dd057bc5f300e14dbe22
10,782
py
Python
excut/feedback/rulebased_deduction/deduction_engine_extended.py
mhmgad/ExCut
09e943a23207381de3c3a9e6f70015882b8ec4af
[ "Apache-2.0" ]
5
2020-11-17T19:59:49.000Z
2021-09-23T23:10:39.000Z
excut/feedback/rulebased_deduction/deduction_engine_extended.py
mhmgad/ExCut
09e943a23207381de3c3a9e6f70015882b8ec4af
[ "Apache-2.0" ]
null
null
null
excut/feedback/rulebased_deduction/deduction_engine_extended.py
mhmgad/ExCut
09e943a23207381de3c3a9e6f70015882b8ec4af
[ "Apache-2.0" ]
null
null
null
""" This module contains the rule-based inference (rulebased_deduction engine) """ import itertools from collections import defaultdict from itertools import chain from excut.explanations_mining.descriptions import dump_explanations_to_file from excut.explanations_mining.descriptions_new import Description2, Atom, loa...
42.785714
147
0.667501
6a3060eba97a54372d78e04129b03dceb1e1d40e
916
py
Python
dataloader/viperlist_train.py
urasakikeisuke/rigidmask
4bb781102218dfd11efa767e2d0ba987d9949fd1
[ "MIT" ]
138
2021-01-12T03:02:04.000Z
2022-03-30T07:14:15.000Z
dataloader/viperlist_train.py
urasakikeisuke/rigidmask
4bb781102218dfd11efa767e2d0ba987d9949fd1
[ "MIT" ]
12
2021-02-02T14:19:30.000Z
2022-03-28T01:23:44.000Z
dataloader/viperlist_train.py
urasakikeisuke/rigidmask
4bb781102218dfd11efa767e2d0ba987d9949fd1
[ "MIT" ]
14
2021-01-13T01:31:34.000Z
2022-01-30T14:48:06.000Z
import torch.utils.data as data from PIL import Image import os import os.path import numpy as np import pdb import glob IMG_EXTENSIONS = [ '.jpg', '.JPG', '.jpeg', '.JPEG', '.png', '.PNG', '.ppm', '.PPM', '.bmp', '.BMP', ]
24.756757
97
0.634279
6a30d65ddcf953ceadcc9809b51e37283b427dac
49
py
Python
floodcomparison/__init__.py
jsosa/floodcomparison
c6662ae9142b4e89c6c05f93adaba49c5d8e4314
[ "Apache-2.0" ]
null
null
null
floodcomparison/__init__.py
jsosa/floodcomparison
c6662ae9142b4e89c6c05f93adaba49c5d8e4314
[ "Apache-2.0" ]
null
null
null
floodcomparison/__init__.py
jsosa/floodcomparison
c6662ae9142b4e89c6c05f93adaba49c5d8e4314
[ "Apache-2.0" ]
null
null
null
from floodcomparison.core import floodcomparison
24.5
48
0.897959
6a315f9411feef2bef3f2cfb2fab79f19fe80e02
7,842
py
Python
weaver/wps_restapi/quotation/quotes.py
crim-ca/weaver
107fec5e19f20b77061b9405a764da911d2db8a2
[ "Apache-2.0" ]
16
2019-03-18T12:23:05.000Z
2022-02-25T00:39:11.000Z
weaver/wps_restapi/quotation/quotes.py
crim-ca/weaver
107fec5e19f20b77061b9405a764da911d2db8a2
[ "Apache-2.0" ]
346
2019-03-06T21:05:04.000Z
2022-03-31T13:38:37.000Z
weaver/wps_restapi/quotation/quotes.py
crim-ca/weaver
107fec5e19f20b77061b9405a764da911d2db8a2
[ "Apache-2.0" ]
5
2019-03-15T01:38:28.000Z
2021-11-11T15:38:43.000Z
import logging import random from datetime import timedelta from typing import TYPE_CHECKING from duration import to_iso8601 from pyramid.httpexceptions import HTTPBadRequest, HTTPCreated, HTTPNotFound, HTTPOk from weaver import sort from weaver.config import WEAVER_CONFIGURATION_ADES, WEAVER_CONFIGURATION_EMS, get_w...
43.810056
119
0.718822
6a31701fc7c063904134f212988d1c0c79559f82
6,722
py
Python
pysnmp/CISCO-VSI-CONTROLLER-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/CISCO-VSI-CONTROLLER-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/CISCO-VSI-CONTROLLER-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CISCO-VSI-CONTROLLER-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-VSI-CONTROLLER-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:03:33 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7....
105.03125
883
0.759298
6a328e84b47f7a5de237d63ba7bea1c7be663611
6,282
py
Python
strava.py
AartGoossens/streamlit-activity-viewer
b43f157d8bee596908c4f2222be9bb0d8bd9b9e8
[ "MIT" ]
4
2021-05-21T11:34:00.000Z
2022-02-17T18:22:06.000Z
strava.py
AartGoossens/streamlit-activity-viewer
b43f157d8bee596908c4f2222be9bb0d8bd9b9e8
[ "MIT" ]
null
null
null
strava.py
AartGoossens/streamlit-activity-viewer
b43f157d8bee596908c4f2222be9bb0d8bd9b9e8
[ "MIT" ]
null
null
null
import base64 import os import arrow import httpx import streamlit as st import sweat from bokeh.models.widgets import Div APP_URL = os.environ["APP_URL"] STRAVA_CLIENT_ID = os.environ["STRAVA_CLIENT_ID"] STRAVA_CLIENT_SECRET = os.environ["STRAVA_CLIENT_SECRET"] STRAVA_AUTHORIZATION_URL = "https://www.strava.com/oau...
27.552632
120
0.641356
6a3376e3801e88076e88946747dfd57658118979
3,395
py
Python
appliance/src/ufw_interface.py
reap3r/nmfta-bouncer
a178244dbf0b8a165aabc02a5d1ba05006f9ec22
[ "Apache-2.0" ]
1
2019-01-10T00:31:09.000Z
2019-01-10T00:31:09.000Z
appliance/src/ufw_interface.py
nmfta-repo/nmfta-bouncer
a178244dbf0b8a165aabc02a5d1ba05006f9ec22
[ "Apache-2.0" ]
21
2019-02-28T14:23:11.000Z
2020-07-07T20:46:37.000Z
appliance/src/ufw_interface.py
nmfta-repo/nmfta-bouncer
a178244dbf0b8a165aabc02a5d1ba05006f9ec22
[ "Apache-2.0" ]
2
2019-05-07T13:16:49.000Z
2020-06-23T13:49:01.000Z
#!/usr/bin/env python #shamelessy stolen from: https://gitlab.com/dhj/easyufw # A thin wrapper over the thin wrapper that is ufw # Usage: # import easyufw as ufw # ufw.disable() # disable firewall # ufw.enable() # enable firewall # ufw.allow() # default allow -- allow all # ufw.allow...
29.267241
77
0.620619
6a33b81f30e4d4f06b72174eedd941785bd5b519
1,325
py
Python
test/libsalt/test_vehicle.py
etri-city-traffic-brain/traffic-simulator
6d5061febeaef484388b2b5aee14d9894099d98a
[ "Apache-2.0" ]
8
2020-08-27T05:44:05.000Z
2021-12-27T05:11:17.000Z
test/libsalt/test_vehicle.py
etri-city-traffic-brain/traffic-simulator
6d5061febeaef484388b2b5aee14d9894099d98a
[ "Apache-2.0" ]
null
null
null
test/libsalt/test_vehicle.py
etri-city-traffic-brain/traffic-simulator
6d5061febeaef484388b2b5aee14d9894099d98a
[ "Apache-2.0" ]
1
2020-11-27T05:17:29.000Z
2020-11-27T05:17:29.000Z
import libsalt # for vehicle in runnings: # print("Running Vehicle)", vehicle.id, ":", libsalt.vehicle.getRoute(vehicle.id).toString()) # print("Running Vehicle)", vehicle.id, ":", vehicle.toString()) #print("#Standby Vehicles: ", len(standbys)) #for vehicle in standbys: # print("S...
33.125
101
0.648302
6a35d2e3dec4c05f542fce0db1d5d23465661584
8,348
py
Python
Masters/Copy Layer to Layer.py
davidtahim/Glyphs-Scripts
5ed28805b5fe03c63d904ad2f79117844c22aa44
[ "Apache-2.0" ]
1
2021-09-04T18:41:30.000Z
2021-09-04T18:41:30.000Z
Masters/Copy Layer to Layer.py
davidtahim/Glyphs-Scripts
5ed28805b5fe03c63d904ad2f79117844c22aa44
[ "Apache-2.0" ]
null
null
null
Masters/Copy Layer to Layer.py
davidtahim/Glyphs-Scripts
5ed28805b5fe03c63d904ad2f79117844c22aa44
[ "Apache-2.0" ]
null
null
null
#MenuTitle: Copy Layer to Layer # -*- coding: utf-8 -*- __doc__=""" Copies one master to another master in selected glyphs. """ import GlyphsApp import vanilla import math MasterFiller()
36.295652
152
0.713464
6a362d5ac32fdf3188152eb3fc2c0b00c7db0458
3,080
py
Python
vunit/test/unit/test_tokenizer.py
bjacobs1/vunit
a7f7717a172855ea7852296bb768370d50cfc992
[ "Artistic-2.0" ]
1
2020-08-30T08:30:02.000Z
2020-08-30T08:30:02.000Z
vunit/test/unit/test_tokenizer.py
smgl9/vunit
9933d9a1ae600cc241894244361282dd7f7227d7
[ "Artistic-2.0" ]
null
null
null
vunit/test/unit/test_tokenizer.py
smgl9/vunit
9933d9a1ae600cc241894244361282dd7f7227d7
[ "Artistic-2.0" ]
null
null
null
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. # # Copyright (c) 2014-2018, Lars Asplund lars.anders.asplund@gmail.com """ Test of the general tokenizer """ from unit...
24.64
98
0.622727
6a3682a6dc34888138320be2d7fc9fac096c4fc7
1,962
py
Python
modules/star_se_SP.py
tbersez/Allmine
092fb1f5abcb4fd4e40b4a25386f05ecb2dea55b
[ "MIT" ]
5
2019-02-13T13:47:24.000Z
2019-04-27T18:27:03.000Z
modules/star_se_SP.py
tbersez/Allmine
092fb1f5abcb4fd4e40b4a25386f05ecb2dea55b
[ "MIT" ]
null
null
null
modules/star_se_SP.py
tbersez/Allmine
092fb1f5abcb4fd4e40b4a25386f05ecb2dea55b
[ "MIT" ]
null
null
null
# STAR aligner single end mode, second pass # # This module runs the second pass of the STAR aligner 2 path # strategy. The goal is to align reads taking in account splice # junction found in the fist pass.. # # Inputs: # - sample_trim.fastq.gz # - splicing junction files (.tab) # # Output: # ...
34.421053
73
0.5316
6a36b0c35f3000da705fd087f744d451ba48d8fd
531
py
Python
Udemy/REST-Django-VueJS/C3-practice/03-demo/job_board/jobs/models.py
runzezhang/MOOCs
8df8c7adc5af3d7b085be01ae9b6963fe33acd68
[ "Apache-2.0" ]
3
2019-04-05T18:59:53.000Z
2020-09-24T09:05:46.000Z
Udemy/REST-Django-VueJS/C3-practice/03-demo/job_board/jobs/models.py
runzezhang/MOOCs
8df8c7adc5af3d7b085be01ae9b6963fe33acd68
[ "Apache-2.0" ]
null
null
null
Udemy/REST-Django-VueJS/C3-practice/03-demo/job_board/jobs/models.py
runzezhang/MOOCs
8df8c7adc5af3d7b085be01ae9b6963fe33acd68
[ "Apache-2.0" ]
1
2019-02-10T13:35:36.000Z
2019-02-10T13:35:36.000Z
from django.db import models
31.235294
52
0.73823
6a3701a8c1a4900d3599d12821235a51d12e4737
4,926
py
Python
memeapp/views.py
barbaramootian/Memes-app
4ffa2da997758ee4f35dc21e755e3db242b8654f
[ "MIT", "Unlicense" ]
null
null
null
memeapp/views.py
barbaramootian/Memes-app
4ffa2da997758ee4f35dc21e755e3db242b8654f
[ "MIT", "Unlicense" ]
null
null
null
memeapp/views.py
barbaramootian/Memes-app
4ffa2da997758ee4f35dc21e755e3db242b8654f
[ "MIT", "Unlicense" ]
null
null
null
from django.shortcuts import render,redirect from django.contrib.auth.models import User from django.contrib import messages from .forms import PictureUploadForm,CommentForm from .models import Image,Profile,Likes,Comments from django.contrib.auth.decorators import login_required from django.contrib .auth import authen...
35.695652
108
0.664434
6a3712991b980a6711c1dba6adf131ce5c5af892
4,997
py
Python
sparv/modules/hist/diapivot.py
spraakbanken/sparv-pipeline
7293d42c577afdaf01ce8a936743f8b83d6eb962
[ "MIT" ]
17
2018-09-21T07:01:45.000Z
2022-02-24T23:26:49.000Z
sparv/modules/hist/diapivot.py
spraakbanken/sparv-pipeline
7293d42c577afdaf01ce8a936743f8b83d6eb962
[ "MIT" ]
146
2018-11-13T19:13:25.000Z
2022-03-31T09:57:56.000Z
sparv/modules/hist/diapivot.py
spraakbanken/sparv-pipeline
7293d42c577afdaf01ce8a936743f8b83d6eb962
[ "MIT" ]
5
2019-02-14T00:50:38.000Z
2021-03-29T15:37:41.000Z
"""Create diapivot annotation.""" import logging import pickle import xml.etree.ElementTree as etree import sparv.util as util from sparv import Annotation, Model, ModelOutput, Output, annotator, modelbuilder log = logging.getLogger(__name__) PART_DELIM1 = "^1" # @annotator("Diapivot annotation", language=["swe-1...
33.313333
119
0.58295
6a37f82fb39de7a27271cf8fb84d1b4b6b384c9f
534
py
Python
src/xbot/util/path.py
xinyang178/xbot
dad1fc67062dc6fd21802899fd68f7eb91c96569
[ "MIT" ]
77
2020-10-27T12:19:01.000Z
2022-03-16T09:13:17.000Z
src/xbot/util/path.py
xinyang178/xbot
dad1fc67062dc6fd21802899fd68f7eb91c96569
[ "MIT" ]
7
2020-12-09T14:05:07.000Z
2021-04-28T02:37:05.000Z
src/xbot/util/path.py
xinyang178/xbot
dad1fc67062dc6fd21802899fd68f7eb91c96569
[ "MIT" ]
45
2020-09-24T07:28:32.000Z
2022-03-03T17:09:04.000Z
import os
24.272727
87
0.666667
6a3848493b2b327c8b213a833273765a92b0f3b9
274
py
Python
home/website/wagtail_hooks.py
HackSoftware/hackconf.bg
ab3cc9fcdccf8991098553e0374103e3a241ce50
[ "MIT" ]
12
2017-03-29T11:55:20.000Z
2022-03-29T20:03:41.000Z
kdl_wagtail/wagtail_hooks.py
kingsdigitallab/archetype-django
6315c8f38e873e2d3b2d99fcfd47d01ce0ae35bc
[ "MIT" ]
8
2020-06-05T18:16:24.000Z
2021-09-07T23:53:11.000Z
kdl_wagtail/wagtail_hooks.py
kingsdigitallab/archetype-django
6315c8f38e873e2d3b2d99fcfd47d01ce0ae35bc
[ "MIT" ]
2
2018-03-31T15:06:55.000Z
2019-06-25T16:22:08.000Z
from django.utils.html import format_html from wagtail.wagtailcore import hooks
19.571429
45
0.624088
6a388679dce82d3f7e5c312799aab790d1280f39
440
py
Python
src/reporter/tests/test_api.py
msgis/ngsi-timeseries-api
5cc7a8beab748cecfd5fba61740f3730361d4e31
[ "MIT" ]
null
null
null
src/reporter/tests/test_api.py
msgis/ngsi-timeseries-api
5cc7a8beab748cecfd5fba61740f3730361d4e31
[ "MIT" ]
null
null
null
src/reporter/tests/test_api.py
msgis/ngsi-timeseries-api
5cc7a8beab748cecfd5fba61740f3730361d4e31
[ "MIT" ]
null
null
null
from conftest import QL_URL import requests
29.333333
53
0.543182
6a38ce0ec26e60d5ad5f137d860bd186bef4c8e7
1,981
py
Python
zorg/buildbot/conditions/FileConditions.py
dyung/llvm-zorg
42cd139968388b14323975647faf322c99945986
[ "Apache-2.0" ]
27
2019-01-15T03:03:58.000Z
2022-03-22T23:31:36.000Z
zorg/buildbot/conditions/FileConditions.py
dyung/llvm-zorg
42cd139968388b14323975647faf322c99945986
[ "Apache-2.0" ]
21
2020-05-29T01:12:26.000Z
2022-03-29T20:06:22.000Z
zorg/buildbot/conditions/FileConditions.py
dyung/llvm-zorg
42cd139968388b14323975647faf322c99945986
[ "Apache-2.0" ]
38
2019-02-10T02:46:33.000Z
2022-03-26T10:27:29.000Z
from buildbot.process.remotecommand import RemoteCommand from buildbot.interfaces import WorkerTooOldError import stat
30.476923
78
0.655729
6a39601bd5d34aa0ef10ce85dcff9883e1a2620c
6,349
py
Python
gym_combat/gym_combat/envs/main.py
refaev/combat_gym
f02fcf98e95a1dda29cdddd4ae271de3e18ea3bf
[ "MIT" ]
null
null
null
gym_combat/gym_combat/envs/main.py
refaev/combat_gym
f02fcf98e95a1dda29cdddd4ae271de3e18ea3bf
[ "MIT" ]
null
null
null
gym_combat/gym_combat/envs/main.py
refaev/combat_gym
f02fcf98e95a1dda29cdddd4ae271de3e18ea3bf
[ "MIT" ]
null
null
null
from matplotlib import style from tqdm import tqdm style.use("ggplot") from gym_combat.envs.Arena.CState import State from gym_combat.envs.Arena.Entity import Entity from gym_combat.envs.Arena.Environment import Environment, Episode from gym_combat.envs.Common.constants import * from gym_combat.envs.Qtable import Qtab...
42.326667
229
0.723106
6a3afdedc7e9000d89eef5155bbd1cbb9eab9c08
4,132
py
Python
libqif/core/hyper.py
ramongonze/libqif
57be74a2342a303da5415a3d787855b8115e58f8
[ "MIT" ]
2
2021-10-16T17:34:58.000Z
2021-11-16T16:15:13.000Z
libqif/core/hyper.py
ramongonze/libqif
57be74a2342a303da5415a3d787855b8115e58f8
[ "MIT" ]
null
null
null
libqif/core/hyper.py
ramongonze/libqif
57be74a2342a303da5415a3d787855b8115e58f8
[ "MIT" ]
null
null
null
"""Hyper-distributions.""" from libqif.core.secrets import Secrets from libqif.core.channel import Channel from numpy import array, arange, zeros from numpy import delete as npdelete
37.225225
114
0.609874
6a3b1a3262144d987829d88570c7ef9a23bfd4a5
53,568
py
Python
ansible/venv/lib/python2.7/site-packages/ansible/modules/network/fortios/fortios_system_virtual_wan_link.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
17
2017-06-07T23:15:01.000Z
2021-08-30T14:32:36.000Z
ansible/venv/lib/python2.7/site-packages/ansible/modules/network/fortios/fortios_system_virtual_wan_link.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
32
2018-10-09T04:13:42.000Z
2020-05-11T07:20:28.000Z
ansible/venv/lib/python2.7/site-packages/ansible/modules/network/fortios/fortios_system_virtual_wan_link.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
11
2018-10-09T00:14:53.000Z
2021-11-03T10:54:09.000Z
#!/usr/bin/python from __future__ import (absolute_import, division, print_function) # Copyright 2019 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the Lic...
45.823781
158
0.396823
6a3d5a0b8814fbb4a8dcce839502382dcb8efe0a
1,120
py
Python
src/Puerta.py
victorlujan/Dise-odeSoftwarePatrones
b9845cc1c4abdc44867c90b9e9784246e57f16b3
[ "MIT" ]
null
null
null
src/Puerta.py
victorlujan/Dise-odeSoftwarePatrones
b9845cc1c4abdc44867c90b9e9784246e57f16b3
[ "MIT" ]
null
null
null
src/Puerta.py
victorlujan/Dise-odeSoftwarePatrones
b9845cc1c4abdc44867c90b9e9784246e57f16b3
[ "MIT" ]
null
null
null
from ElementoMapa import ElementoMapa
24.347826
101
0.583036
6a3f937a42b26dd8a8d5325705ad3a6b2426f5e8
2,421
py
Python
pong.py
Teenahshe/ponggame
5e4032753894ce1e1ebeb51841676aac24aa22df
[ "MIT" ]
null
null
null
pong.py
Teenahshe/ponggame
5e4032753894ce1e1ebeb51841676aac24aa22df
[ "MIT" ]
null
null
null
pong.py
Teenahshe/ponggame
5e4032753894ce1e1ebeb51841676aac24aa22df
[ "MIT" ]
null
null
null
""" # Step 1 - Create the App # Step 2 - Create the Game # Step 3 - Build the Game # Step 4 - Run the App """ from kivy.app import App from kivy.uix.widget import Widget from kivy.properties import NumericProperty, ReferenceListProperty, ObjectProperty from kivy.vector import Vector from kivy.clock import C...
28.482353
83
0.620818
6a3fb6dff04d4cee8ea3de55fdb86c079b4a97dc
18,713
py
Python
bridge_RL_agent_v16.py
EricZLou/BridgeRLAgent
78329eec5fcf320d2850f44dc33b138919fba82d
[ "MIT" ]
null
null
null
bridge_RL_agent_v16.py
EricZLou/BridgeRLAgent
78329eec5fcf320d2850f44dc33b138919fba82d
[ "MIT" ]
null
null
null
bridge_RL_agent_v16.py
EricZLou/BridgeRLAgent
78329eec5fcf320d2850f44dc33b138919fba82d
[ "MIT" ]
null
null
null
""" CS 238 Final Project: Bridge RL Agent Eric Lou & Kimberly Tran """ import copy import datetime import numpy as np import random from collections import namedtuple """''''''''''''''''''''''''''''''''''''''''''''''''''''''''' REPRESENTATIONS OF BRIDGE Representing a "Card" as an integer: Cards 0 -> 12 are Club...
37.880567
141
0.579276
6a40e4db387ff19b81d94d3c6d3164793744fc01
1,411
py
Python
tests/hacsbase/test_hacsbase_data.py
chbonkie/hacs
81db513a0d3d1af1acf25da7b706ae62d8fdb6fa
[ "MIT" ]
2
2019-06-18T11:30:53.000Z
2019-10-03T21:34:11.000Z
tests/hacsbase/test_hacsbase_data.py
chbonkie/hacs
81db513a0d3d1af1acf25da7b706ae62d8fdb6fa
[ "MIT" ]
341
2019-06-18T11:30:55.000Z
2021-07-15T05:38:46.000Z
tests/hacsbase/test_hacsbase_data.py
chbonkie/hacs
81db513a0d3d1af1acf25da7b706ae62d8fdb6fa
[ "MIT" ]
null
null
null
"""Data Test Suite.""" from aiogithubapi.objects import repository import pytest import os from homeassistant.core import HomeAssistant from custom_components.hacs.hacsbase.data import HacsData from custom_components.hacs.helpers.classes.repository import HacsRepository from custom_components.hacs.hacsbase.configuratio...
30.021277
76
0.763997
6a415615b9b2bc4e4bdf10ab3d417314a169e277
44,836
py
Python
phi/math/backend/_backend.py
marc-gav/PhiFlow
b6186fd1503d040997b52d49aa18cd875267c27e
[ "MIT" ]
null
null
null
phi/math/backend/_backend.py
marc-gav/PhiFlow
b6186fd1503d040997b52d49aa18cd875267c27e
[ "MIT" ]
null
null
null
phi/math/backend/_backend.py
marc-gav/PhiFlow
b6186fd1503d040997b52d49aa18cd875267c27e
[ "MIT" ]
null
null
null
from collections import namedtuple from contextlib import contextmanager from threading import Barrier from typing import List, Callable import numpy from ._dtype import DType, combine_types SolveResult = namedtuple('SolveResult', [ 'method', 'x', 'residual', 'iterations', 'function_evaluations', 'converged', '...
37.677311
216
0.629293
6a42b37643b67ad750eaa6bdb4b138eb04976787
2,736
py
Python
bpython/curtsiesfrontend/parse.py
dtrodrigues/bpython
143e4e55d8f5227149528a5880a32a516a40f14d
[ "PSF-2.0" ]
2,168
2015-01-01T11:41:40.000Z
2022-03-29T07:44:48.000Z
bpython/curtsiesfrontend/parse.py
dtrodrigues/bpython
143e4e55d8f5227149528a5880a32a516a40f14d
[ "PSF-2.0" ]
521
2015-01-02T16:43:44.000Z
2022-03-31T12:37:55.000Z
bpython/curtsiesfrontend/parse.py
dtrodrigues/bpython
143e4e55d8f5227149528a5880a32a516a40f14d
[ "PSF-2.0" ]
250
2015-01-08T21:28:18.000Z
2022-02-28T16:07:43.000Z
import re from curtsies.formatstring import fmtstr, FmtStr from curtsies.termformatconstants import ( FG_COLORS, BG_COLORS, colors as CURTSIES_COLORS, ) from functools import partial from ..lazyre import LazyReCompile COLORS = CURTSIES_COLORS + ("default",) CNAMES = dict(zip("krgybmcwd", COLORS)) # hack...
25.811321
75
0.592105
6a42bb37de5c18887c2934162db7f55a1fffd8c4
1,277
py
Python
sarpy/io/general/nitf_elements/tres/unclass/BANDSA.py
pressler-vsc/sarpy
fa6c951c42b9a7d9df2edfa53c771494cb0246fb
[ "MIT" ]
1
2021-02-04T08:44:18.000Z
2021-02-04T08:44:18.000Z
sarpy/io/general/nitf_elements/tres/unclass/BANDSA.py
pressler-vsc/sarpy
fa6c951c42b9a7d9df2edfa53c771494cb0246fb
[ "MIT" ]
null
null
null
sarpy/io/general/nitf_elements/tres/unclass/BANDSA.py
pressler-vsc/sarpy
fa6c951c42b9a7d9df2edfa53c771494cb0246fb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from ..tre_elements import TREExtension, TREElement __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough"
33.605263
59
0.623336
6a4363b0709ea506c58a60f1aaca731beda241f8
5,631
py
Python
ktrain/graph/learner.py
husmen/ktrain
4147b0bd146deb513c6f94505908294a5163efac
[ "Apache-2.0" ]
1,013
2019-06-04T14:25:24.000Z
2022-03-26T05:52:00.000Z
ktrain/graph/learner.py
husmen/ktrain
4147b0bd146deb513c6f94505908294a5163efac
[ "Apache-2.0" ]
427
2019-06-17T13:45:50.000Z
2022-03-25T16:23:49.000Z
ktrain/graph/learner.py
husmen/ktrain
4147b0bd146deb513c6f94505908294a5163efac
[ "Apache-2.0" ]
272
2019-06-05T03:19:07.000Z
2022-03-28T02:23:37.000Z
from ..imports import * from .. import utils as U from ..core import GenLearner
35.19375
96
0.582845
6a448dff56ffb800e61093b735c0b738b7008227
12,168
py
Python
VegaZero2VegaLite.py
Thanksyy/Vega-Zero
dd25cb145faec047b01ca54c69ba96c56adb99f4
[ "MIT" ]
5
2021-09-16T11:55:12.000Z
2022-03-03T12:20:22.000Z
VegaZero2VegaLite.py
Thanksyy/Vega-Zero
dd25cb145faec047b01ca54c69ba96c56adb99f4
[ "MIT" ]
1
2021-11-22T09:41:52.000Z
2021-11-24T02:25:49.000Z
VegaZero2VegaLite.py
Thanksyy/Vega-Zero
dd25cb145faec047b01ca54c69ba96c56adb99f4
[ "MIT" ]
2
2021-09-17T09:44:18.000Z
2022-03-05T19:14:45.000Z
__author__ = "Yuyu Luo" import json import pandas
48.094862
123
0.469921
6a452a7c2c457bc63abb482a8725d53337bd5e88
6,254
py
Python
utils/dancer.py
kmzbrnoI/ac-python
383802734e17d2a00c0b86083cf923517db02acd
[ "Apache-2.0" ]
null
null
null
utils/dancer.py
kmzbrnoI/ac-python
383802734e17d2a00c0b86083cf923517db02acd
[ "Apache-2.0" ]
2
2020-04-12T11:31:24.000Z
2020-04-14T17:17:00.000Z
utils/dancer.py
kmzbrnoI/ac-python
383802734e17d2a00c0b86083cf923517db02acd
[ "Apache-2.0" ]
null
null
null
"""Library for executing user-defined dance.""" import logging from typing import Any, Dict, Optional, Callable import datetime import ac import ac.blocks from ac import ACs, AC JC = Dict[str, Any] def track_is_occupied(block: ac.Block) -> bool: return bool(block['blockState']['state'] == 'occupied')
28.820276
79
0.570675
6a46dce57aefdfdd686c732c07a762fc3d1085f3
780
py
Python
praw/models/reddit/mixins/reportable.py
zachwylde00/praw
ad1d73e6a4a33397bbd983bdfde1a4f99ce5607d
[ "BSD-2-Clause" ]
38
2020-03-14T22:22:40.000Z
2022-02-24T18:05:45.000Z
praw/models/reddit/mixins/reportable.py
zachwylde00/praw
ad1d73e6a4a33397bbd983bdfde1a4f99ce5607d
[ "BSD-2-Clause" ]
3
2021-03-30T13:15:12.000Z
2021-09-22T18:55:59.000Z
praw/models/reddit/mixins/reportable.py
zachwylde00/praw
ad1d73e6a4a33397bbd983bdfde1a4f99ce5607d
[ "BSD-2-Clause" ]
9
2020-02-21T23:55:13.000Z
2021-03-22T07:48:23.000Z
"""Provide the ReportableMixin class.""" from ....const import API_PATH
26
76
0.60641
6a49b924a41db77163a887ba4fb25f3e874556fc
3,158
py
Python
mellon/factories/filesystem/file.py
LaudateCorpus1/mellon
a7a9f6d8abf1dd03b63a94ddb4439c6cc6c2e272
[ "MIT" ]
5
2016-12-20T19:39:01.000Z
2021-01-08T16:19:17.000Z
mellon/factories/filesystem/file.py
CrowdStrike/mellon
7216f255d397a41b1c2777a1b02f1c085d07ddfe
[ "MIT" ]
1
2018-03-21T17:05:13.000Z
2018-03-21T17:05:13.000Z
mellon/factories/filesystem/file.py
LaudateCorpus1/mellon
a7a9f6d8abf1dd03b63a94ddb4439c6cc6c2e272
[ "MIT" ]
2
2017-11-01T15:03:27.000Z
2018-11-13T03:04:44.000Z
import collections import os.path from zope import component from zope import interface from zope.component.factory import Factory from sparc.configuration import container import mellon mellonByteFileFromFilePathAndConfigFactory = Factory(MellonByteFileFromFilePathAndConfig) mellonUnicodeFileFromFilePathAndConfigFacto...
39.974684
111
0.662445
6a49d502d09956cefd00c54538889163bfebf8f9
1,157
py
Python
dltb/thirdparty/datasource/__init__.py
CogSciUOS/DeepLearningToolbox
bf07578b9486d8c48e25df357bc4b9963b513b46
[ "MIT" ]
2
2019-09-01T01:38:59.000Z
2020-02-13T19:25:51.000Z
dltb/thirdparty/datasource/__init__.py
CogSciUOS/DeepLearningToolbox
bf07578b9486d8c48e25df357bc4b9963b513b46
[ "MIT" ]
null
null
null
dltb/thirdparty/datasource/__init__.py
CogSciUOS/DeepLearningToolbox
bf07578b9486d8c48e25df357bc4b9963b513b46
[ "MIT" ]
null
null
null
"""Predefined Datasources. """ # toolbox imports from ...datasource import Datasource Datasource.register_instance('imagenet-val', __name__ + '.imagenet', 'ImageNet', section='val') # section='train' Datasource.register_instance('dogsandcats', __name__ + '.dogsandcats', ...
48.208333
79
0.679343
6a4a66b1a2f63505cf706ff9fb8521db9d0bf0ee
2,127
py
Python
tests/test_results.py
babinyurii/RECAN
b49326b47bae22316c3776fee2f398e09a98ba96
[ "MIT" ]
7
2019-09-23T12:46:03.000Z
2022-02-16T11:32:58.000Z
tests/test_results.py
babinyurii/RECAN
b49326b47bae22316c3776fee2f398e09a98ba96
[ "MIT" ]
14
2020-01-28T16:20:15.000Z
2021-04-13T17:24:00.000Z
tests/test_results.py
babinyurii/RECAN
b49326b47bae22316c3776fee2f398e09a98ba96
[ "MIT" ]
8
2020-01-03T11:47:51.000Z
2021-09-17T03:43:43.000Z
# -*- coding: utf-8 -*- """ Created on Tue Oct 22 15:58:44 2019 @author: babin """ posits_def = [251, 501, 751, 1001, 1251, 1501, 1751, 2001, 2251, 2501, 2751, 3001, 3215] dist_whole_align_ref = {'AB048704.1_genotype_C_': [0.88, 0.938, 0.914, 0.886, 0.89, 0.908, 0.938, 0.948, 0.948, 0.886, 0.8...
15.302158
88
0.608839
6a4a72c7391f2894d44f2f4cea661cdcb3c4d282
4,999
py
Python
lxmls/readers/simple_data_set.py
SimonSuster/lxmls-toolkit
6a57884f8b7c98da816a60eb88593e0a1585d434
[ "MIT" ]
1
2015-09-20T05:16:38.000Z
2015-09-20T05:16:38.000Z
lxmls/readers/simple_data_set.py
daviddao/LxMLS-labs-solution
78413c1ee61752ca33988c454e3b2c27326e7063
[ "MIT" ]
null
null
null
lxmls/readers/simple_data_set.py
daviddao/LxMLS-labs-solution
78413c1ee61752ca33988c454e3b2c27326e7063
[ "MIT" ]
null
null
null
import numpy as np # This class generates a 2D dataset with two classes, "positive" and "negative". # Each class follows a Gaussian distribution.
43.469565
327
0.595319
6a4a8d86cea615c452f20cba99db27d3430077bf
4,840
py
Python
set1/c06_attack_repeating_key_xor.py
kangtastic/cryptopals
7014a08b836b3f9ebfdc889123ccf67406738dac
[ "WTFPL" ]
1
2021-07-05T09:13:48.000Z
2021-07-05T09:13:48.000Z
set1/c06_attack_repeating_key_xor.py
kangtastic/cryptopals
7014a08b836b3f9ebfdc889123ccf67406738dac
[ "WTFPL" ]
null
null
null
set1/c06_attack_repeating_key_xor.py
kangtastic/cryptopals
7014a08b836b3f9ebfdc889123ccf67406738dac
[ "WTFPL" ]
1
2020-04-18T19:53:02.000Z
2020-04-18T19:53:02.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Break repeating-key XOR # # It is officially on, now. # # This challenge isn't conceptually hard, but it involves actual # error-prone coding. The other challenges in this set are there to bring # you up to speed. This one is there to qualify you. If you can do t...
32.266667
94
0.667355
6a4a939ebfe3446641070ee1531f5dae14b39a3f
26,798
py
Python
c2nl/models/transformer.py
kopf-yhs/ncscos
8248aaad32d4d19c01d070bf0dfba7aab849ba1d
[ "MIT" ]
22
2021-05-22T19:58:39.000Z
2022-03-20T03:43:51.000Z
c2nl/models/transformer.py
kopf-yhs/ncscos
8248aaad32d4d19c01d070bf0dfba7aab849ba1d
[ "MIT" ]
1
2021-07-17T13:15:33.000Z
2022-02-24T13:59:14.000Z
c2nl/models/transformer.py
kopf-yhs/ncscos
8248aaad32d4d19c01d070bf0dfba7aab849ba1d
[ "MIT" ]
2
2021-05-10T05:18:00.000Z
2022-02-24T19:01:50.000Z
import torch import torch.nn as nn import torch.nn.functional as f from prettytable import PrettyTable from c2nl.modules.char_embedding import CharEmbedding from c2nl.modules.embeddings import Embeddings from c2nl.modules.highway import Highway from c2nl.encoders.transformer import TransformerEncoder from c2nl.decoder...
42.334913
98
0.504926
6a4c4690f289d0da27d1fd0d344a2302e88669f6
3,344
py
Python
cattle/plugins/docker/delegate.py
cjellick/python-agent
6991369e309d050a43cba770df6e8ddd758f671d
[ "Apache-2.0" ]
8
2015-07-20T15:29:25.000Z
2018-06-27T13:30:13.000Z
cattle/plugins/docker/delegate.py
cjellick/python-agent
6991369e309d050a43cba770df6e8ddd758f671d
[ "Apache-2.0" ]
47
2015-07-13T23:47:35.000Z
2020-07-31T16:06:34.000Z
cattle/plugins/docker/delegate.py
cjellick/python-agent
6991369e309d050a43cba770df6e8ddd758f671d
[ "Apache-2.0" ]
21
2015-08-21T01:58:47.000Z
2021-01-24T11:59:25.000Z
import logging from cattle import Config from cattle.utils import reply, popen from .compute import DockerCompute from cattle.agent.handler import BaseHandler from cattle.progress import Progress from cattle.type_manager import get_type, MARSHALLER from . import docker_client import subprocess import os import time ...
27.636364
78
0.535287
6a4da8a95b67b63d32309af5c23df6977103484a
6,391
py
Python
bitraider/strategy.py
ehickox2012/bitraider
dcc695b93dc1c22415780e3f5ff9f7ee29d6988c
[ "MIT" ]
2
2015-03-05T22:28:43.000Z
2015-03-12T23:07:54.000Z
bitraider/strategy.py
ehickox/bitraider
dcc695b93dc1c22415780e3f5ff9f7ee29d6988c
[ "MIT" ]
2
2015-04-05T21:13:59.000Z
2015-04-05T21:16:05.000Z
bitraider/strategy.py
ehickox/bitraider
dcc695b93dc1c22415780e3f5ff9f7ee29d6988c
[ "MIT" ]
1
2015-08-16T18:53:00.000Z
2015-08-16T18:53:00.000Z
import sys import pytz #import xml.utils.iso8601 import time import numpy from datetime import date, datetime, timedelta from matplotlib import pyplot as plt from exchange import cb_exchange as cb_exchange from exchange import CoinbaseExchangeAuth from abc import ABCMeta, abstractmethod
42.324503
267
0.636833
dbde179232e6a3f834cec05a67d959715c486849
715
py
Python
neural-networks.py
PacktPublishing/Python-Deep-Learning-for-Beginners-
90f110158cbf0ce02fd4d5d09e3b2034428d9992
[ "MIT" ]
7
2019-02-16T02:52:12.000Z
2021-11-08T13:10:46.000Z
neural-networks.py
PacktPublishing/Python-Deep-Learning-for-Beginners-
90f110158cbf0ce02fd4d5d09e3b2034428d9992
[ "MIT" ]
null
null
null
neural-networks.py
PacktPublishing/Python-Deep-Learning-for-Beginners-
90f110158cbf0ce02fd4d5d09e3b2034428d9992
[ "MIT" ]
14
2018-11-18T04:33:38.000Z
2021-08-14T03:29:18.000Z
import numpy as np # Perceptron neural_network = neuron(neuron(inputs, weights1), weights2)
23.064516
59
0.682517