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
7d088e8ad48a298f700c49b458a6cd8398f17041
19,511
py
Python
FortressOfSolitude/_FortressOfSolitude/NeutrinoKey/models.py
BDD16/FortressOfSolitude
51070d3ffa78262d823ae8ccce4f8ae3c7ed83ac
[ "MIT" ]
null
null
null
FortressOfSolitude/_FortressOfSolitude/NeutrinoKey/models.py
BDD16/FortressOfSolitude
51070d3ffa78262d823ae8ccce4f8ae3c7ed83ac
[ "MIT" ]
6
2021-07-26T14:07:30.000Z
2022-01-09T01:06:40.000Z
FortressOfSolitude/_FortressOfSolitude/NeutrinoKey/models.py
BDD16/FortressOfSolitude
51070d3ffa78262d823ae8ccce4f8ae3c7ed83ac
[ "MIT" ]
null
null
null
""" DBA 1337_TECH, AUSTIN TEXAS MAY 2020 Proof of Concept code, No liabilities or warranties expressed or implied. """ # -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from datetime import datetime from .cryptoutils import CryptoTools from base64 import b64encode, b64deco...
39.576065
194
0.621906
7d08e0455217002dd24efe02680fa2c013e09769
9,946
py
Python
tests/test_bitshares.py
silverchen0402/python-bitshares
aafbcf5cd09e7bca99dd156fd60b9df8ba508630
[ "MIT" ]
102
2018-04-08T23:05:00.000Z
2022-03-31T10:10:03.000Z
tests/test_bitshares.py
silverchen0402/python-bitshares
aafbcf5cd09e7bca99dd156fd60b9df8ba508630
[ "MIT" ]
246
2018-04-03T12:35:49.000Z
2022-02-28T10:44:28.000Z
tests/test_bitshares.py
silverchen0402/python-bitshares
aafbcf5cd09e7bca99dd156fd60b9df8ba508630
[ "MIT" ]
128
2018-04-14T01:39:12.000Z
2022-03-25T08:56:51.000Z
# -*- coding: utf-8 -*- import mock import string import unittest import random from pprint import pprint from bitshares import BitShares from bitshares.account import Account from bitsharesbase.operationids import getOperationNameForId from bitshares.amount import Amount from bitsharesbase.account import PrivateKey fr...
36.973978
88
0.584356
7d0bbe8da578c249333be408a98ef7bf3a18a601
2,068
py
Python
wms/config/wms.py
bhavesh95863/WMS
c45858a943a607e5d0b49f698e469f3362aae001
[ "MIT" ]
null
null
null
wms/config/wms.py
bhavesh95863/WMS
c45858a943a607e5d0b49f698e469f3362aae001
[ "MIT" ]
null
null
null
wms/config/wms.py
bhavesh95863/WMS
c45858a943a607e5d0b49f698e469f3362aae001
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from frappe import _
29.126761
55
0.287718
7d0e753b01114266b3974061310dec6cde76f5b2
7,424
py
Python
medicalseg/utils/utils.py
onecatcn/MedicalSeg
ba490c5c4541ac5bad0aefad6453ce0a48241ec7
[ "Apache-2.0" ]
null
null
null
medicalseg/utils/utils.py
onecatcn/MedicalSeg
ba490c5c4541ac5bad0aefad6453ce0a48241ec7
[ "Apache-2.0" ]
null
null
null
medicalseg/utils/utils.py
onecatcn/MedicalSeg
ba490c5c4541ac5bad0aefad6453ce0a48241ec7
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # 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 applic...
37.685279
151
0.620824
7d10929e0f7464895fe68437ba3cbfe2769eb71c
16,828
py
Python
src/specific_models/bot-iot/attack_identification/lstm.py
kaylani2/sbseg2020
055e403cdf5a3484d4d66e5dbe20a498af6669e0
[ "MIT" ]
7
2019-11-06T14:35:37.000Z
2022-03-06T03:55:06.000Z
src/specific_models/bot-iot/attack_identification/lstm.py
kaylani2/sbseg2020
055e403cdf5a3484d4d66e5dbe20a498af6669e0
[ "MIT" ]
10
2020-05-16T02:38:35.000Z
2021-04-11T23:55:35.000Z
src/specific_models/bot-iot/attack_identification/lstm.py
kaylani2/sbseg2020
055e403cdf5a3484d4d66e5dbe20a498af6669e0
[ "MIT" ]
2
2020-06-26T21:39:41.000Z
2020-09-15T03:38:32.000Z
# Author: Kaylani Bochie # github.com/kaylani2 # kaylani AT gta DOT ufrj DOT br ### K: Model: LSTM import sys import time import pandas as pd import os import math import numpy as np from numpy import mean, std from unit import remove_columns_with_one_value, remove_nan_columns, load_dataset from unit import display_ge...
42.175439
109
0.590504
7d124f218a5ee0a4b8f0187b77fddb8e78f5822d
866
py
Python
ledis/datastructures.py
gianghta/Ledis
a6b31617621746344408ee411cf510ef3cfb2e7b
[ "MIT" ]
null
null
null
ledis/datastructures.py
gianghta/Ledis
a6b31617621746344408ee411cf510ef3cfb2e7b
[ "MIT" ]
null
null
null
ledis/datastructures.py
gianghta/Ledis
a6b31617621746344408ee411cf510ef3cfb2e7b
[ "MIT" ]
null
null
null
from enum import unique, Enum from typing import Union
21.121951
62
0.614319
7d12d17fb491fc8c8fc02644cb8aec6502ee03f9
6,350
py
Python
pychpp/ht_matches_archive.py
PiGo86/pychpp
052c2ea96b170118fc51b9a72f00995cb7465290
[ "Apache-2.0" ]
1
2021-11-01T11:58:47.000Z
2021-11-01T11:58:47.000Z
pychpp/ht_matches_archive.py
PiGo86/pychpp
052c2ea96b170118fc51b9a72f00995cb7465290
[ "Apache-2.0" ]
null
null
null
pychpp/ht_matches_archive.py
PiGo86/pychpp
052c2ea96b170118fc51b9a72f00995cb7465290
[ "Apache-2.0" ]
1
2020-08-27T13:56:16.000Z
2020-08-27T13:56:16.000Z
import datetime from pychpp import ht_model from pychpp import ht_xml from pychpp import ht_team, ht_match, ht_datetime
40.189873
79
0.59685
7d13b825db8617c1324456436c859711871cf5e3
46,339
py
Python
langcodes/__init__.py
garyd203/langcodes
0cedf9ca257ebf7250de5d3a63ec33a7d198db58
[ "MIT" ]
null
null
null
langcodes/__init__.py
garyd203/langcodes
0cedf9ca257ebf7250de5d3a63ec33a7d198db58
[ "MIT" ]
null
null
null
langcodes/__init__.py
garyd203/langcodes
0cedf9ca257ebf7250de5d3a63ec33a7d198db58
[ "MIT" ]
null
null
null
""" langcodes knows what languages are. It knows the standardized codes that refer to them, such as `en` for English, `es` for Spanish and `hi` for Hindi. Often, it knows what these languages are called *in* a language, and that language doesn't have to be English. See README.md for the main documentation, or read it ...
37.673984
134
0.620665
7d15587f60cf0a944a8221741a2723b9c690ebb1
2,892
py
Python
tests/integration/suites/sensitive/update.py
bularcasergiu/Anjay
a76399199dc9569d58aebc4bf18c494ca2127292
[ "Apache-2.0" ]
null
null
null
tests/integration/suites/sensitive/update.py
bularcasergiu/Anjay
a76399199dc9569d58aebc4bf18c494ca2127292
[ "Apache-2.0" ]
null
null
null
tests/integration/suites/sensitive/update.py
bularcasergiu/Anjay
a76399199dc9569d58aebc4bf18c494ca2127292
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2017-2020 AVSystem <avsystem@avsystem.com> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
37.076923
84
0.687759
7d15e1ed8db34e13a2c5028eba86c509926087ab
829
py
Python
dataset/gnn_dataset.py
Yu-Yy/MathPoseGNN
9759955957b4cca192f5a98031245277c12750f3
[ "Apache-2.0" ]
1
2022-01-08T07:39:49.000Z
2022-01-08T07:39:49.000Z
dataset/gnn_dataset.py
Yu-Yy/MathPoseGNN
9759955957b4cca192f5a98031245277c12750f3
[ "Apache-2.0" ]
null
null
null
dataset/gnn_dataset.py
Yu-Yy/MathPoseGNN
9759955957b4cca192f5a98031245277c12750f3
[ "Apache-2.0" ]
null
null
null
import torch from torch.utils.data import Dataset import os import pickle
27.633333
80
0.639324
7d168979294284d9641a5164cc03767fec0a51c9
701
py
Python
autonapt.py
rainforest-tokyo/AutoNaptPython
5c021ca18e7a8280b52fd168ff6c443321ff3e31
[ "MIT" ]
null
null
null
autonapt.py
rainforest-tokyo/AutoNaptPython
5c021ca18e7a8280b52fd168ff6c443321ff3e31
[ "MIT" ]
null
null
null
autonapt.py
rainforest-tokyo/AutoNaptPython
5c021ca18e7a8280b52fd168ff6c443321ff3e31
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys from types import MethodType sys.path.append(os.path.dirname(os.path.realpath(__file__)) + '/detail') from Utils import Utils try: from AutoNapt import AutoNapt except Exception as ex: Utils.print_exception(ex) if __name__ == '__main__': ...
21.90625
77
0.684736
7d175bf034fa65f7ae66fd6150ae4013621d9935
16,355
py
Python
tests/normalizer/test_number_normalizer.py
tkscode/pyNormalizeNumExp
ac7df9b49153d9b792f5c8087b17c0d8c4a615b2
[ "BSD-3-Clause" ]
2
2021-11-09T06:18:21.000Z
2021-12-04T10:58:26.000Z
tests/normalizer/test_number_normalizer.py
tkscode/pyNormalizeNumExp
ac7df9b49153d9b792f5c8087b17c0d8c4a615b2
[ "BSD-3-Clause" ]
null
null
null
tests/normalizer/test_number_normalizer.py
tkscode/pyNormalizeNumExp
ac7df9b49153d9b792f5c8087b17c0d8c4a615b2
[ "BSD-3-Clause" ]
1
2021-11-09T03:33:33.000Z
2021-11-09T03:33:33.000Z
import pytest from pynormalizenumexp.expression.base import NNumber, NotationType from pynormalizenumexp.utility.dict_loader import DictLoader from pynormalizenumexp.normalizer.number_normalizer import NumberNormalizer
50.478395
123
0.667869
7d176782197a481d98435dbbce03b227e4fc2703
253
py
Python
kivy/tests/pyinstaller/simple_widget/project/widget.py
Galland/kivy
95a6bf279883d706f645e4629c16d5ee1038f0ec
[ "MIT" ]
13,889
2015-01-01T06:43:41.000Z
2022-03-31T17:37:56.000Z
kivy/tests/pyinstaller/simple_widget/project/widget.py
Galland/kivy
95a6bf279883d706f645e4629c16d5ee1038f0ec
[ "MIT" ]
4,570
2015-01-01T17:58:52.000Z
2022-03-31T18:42:16.000Z
kivy/tests/pyinstaller/simple_widget/project/widget.py
Galland/kivy
95a6bf279883d706f645e4629c16d5ee1038f0ec
[ "MIT" ]
3,786
2015-01-01T09:20:45.000Z
2022-03-30T21:15:05.000Z
from kivy.uix.widget import Widget
19.461538
48
0.58498
7d17c5d4335dc7c37aaf77acd240d8436fc7dcc4
69
py
Python
sample/core.py
trs319843/mypackage
cdcefaac5635805a577c26bea8e3437dc3f7e049
[ "MIT" ]
null
null
null
sample/core.py
trs319843/mypackage
cdcefaac5635805a577c26bea8e3437dc3f7e049
[ "MIT" ]
null
null
null
sample/core.py
trs319843/mypackage
cdcefaac5635805a577c26bea8e3437dc3f7e049
[ "MIT" ]
null
null
null
# sample\core.py
9.857143
32
0.652174
7d17d2a8d99333e35f8e555eee507303861ac334
18,537
py
Python
userbot/plugins/spam.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
userbot/plugins/spam.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
userbot/plugins/spam.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
import asyncio import base64 import os from telethon import functions, types from telethon.tl.functions.messages import ImportChatInviteRequest as Get from userbot import CMD_HELP from userbot.plugins import BOTLOG, BOTLOG_CHATID from userbot.utils import lightning_cmd, edit_or_reply, sudo_cmd CMD_HELP.up...
39.950431
141
0.496413
7d187ae720e582888dbe9f2c84697c0a7a77dbce
352
py
Python
curso_em_video/mundo_1/exs_python/ExPy011.py
LuiZamberlan/Ex.-Python
f5b6e4782e0ce0e3fead82b126b52588e1bc21b0
[ "MIT" ]
1
2020-09-19T21:39:12.000Z
2020-09-19T21:39:12.000Z
curso_em_video/mundo_1/exs_python/ExPy011.py
LuiZamberlan/Ex.-Python
f5b6e4782e0ce0e3fead82b126b52588e1bc21b0
[ "MIT" ]
null
null
null
curso_em_video/mundo_1/exs_python/ExPy011.py
LuiZamberlan/Ex.-Python
f5b6e4782e0ce0e3fead82b126b52588e1bc21b0
[ "MIT" ]
null
null
null
l = float(input('Digite a largura da parede em metros: ')) al = float(input('Digite a altura da parede em metros: ')) #Um litro de tinta pinta 2m, largura * altura da parede obtemos a rea dela em m e dividimos por dois para obter a quantidade de tinta necessria. lt = (l * al) / 2 print(f'Com uma parede {l}x{al}, voc ...
44
148
0.704545
7d18dd3203b7119834318c4470153b6b81e4c9b8
1,840
py
Python
generators/name.py
vickio/compgen
7bb9a473622e53df18501b577dca4a33fc83922c
[ "MIT" ]
2
2018-11-24T05:52:48.000Z
2018-11-29T20:46:18.000Z
generators/name.py
vickio/compgen
7bb9a473622e53df18501b577dca4a33fc83922c
[ "MIT" ]
null
null
null
generators/name.py
vickio/compgen
7bb9a473622e53df18501b577dca4a33fc83922c
[ "MIT" ]
2
2018-11-23T12:33:07.000Z
2018-11-27T02:50:06.000Z
from random import choice from string import Template from . import BaseGenerator
34.716981
80
0.584239
7d196d02b6dfdae637cba35d8a14ed891350c55a
1,046
py
Python
microcosm_flask/session.py
KensoDev/microcosm-flask
3618333f4a0f45e673a33986877157208c9eac5f
[ "Apache-2.0" ]
11
2017-01-30T21:53:20.000Z
2020-05-29T22:39:19.000Z
microcosm_flask/session.py
KensoDev/microcosm-flask
3618333f4a0f45e673a33986877157208c9eac5f
[ "Apache-2.0" ]
139
2016-03-09T19:09:59.000Z
2021-09-03T17:14:00.000Z
microcosm_flask/session.py
KensoDev/microcosm-flask
3618333f4a0f45e673a33986877157208c9eac5f
[ "Apache-2.0" ]
10
2016-12-19T22:39:42.000Z
2021-03-09T19:23:15.000Z
""" Support a user-defined per-request session. """ from flask import g def register_session_factory(graph, key, session_factory): """ Register a session creation function so that a new session (of user-defined type) will be saved to `flask.g` on every request (and closed on teardown). In other word...
30.764706
85
0.688337
7d198a067cf29bfd3860f24dbef0396a06853828
5,188
py
Python
pkg_ros_iot_bridge/scripts/temp_for_salim/get_sheet.py
1arshan/Eyantra_Virgi-bot
30ebe99fec6a0d4767fe94468b21bc00091bc527
[ "MIT" ]
1
2021-09-09T04:41:28.000Z
2021-09-09T04:41:28.000Z
pkg_ros_iot_bridge/scripts/temp_for_salim/get_sheet.py
1arshan/Eyantra_Virgi-bot
30ebe99fec6a0d4767fe94468b21bc00091bc527
[ "MIT" ]
null
null
null
pkg_ros_iot_bridge/scripts/temp_for_salim/get_sheet.py
1arshan/Eyantra_Virgi-bot
30ebe99fec6a0d4767fe94468b21bc00091bc527
[ "MIT" ]
null
null
null
#! /usr/bin/env python2.7 import requests import json import heapq as hq #heap """ order_info=[] hq.heapify(order_info) max_order_id =0 #order_to_be_procced,max_order_id,order_info =get_data_from_sheet(0,order_info) #print(order_to_be_procced, max_order_id) for i in range(8): order_to_be_procced,max_order_...
39.907692
152
0.655551
7d1a5fed53eac5b58167653a55f260086f23688f
1,065
py
Python
llvm-codegen/compiler-tests/test-llvm-4.py
PS-Group/compiler-theory-samples
c916af50eb42020024257ecd17f9be1580db7bf0
[ "MIT" ]
null
null
null
llvm-codegen/compiler-tests/test-llvm-4.py
PS-Group/compiler-theory-samples
c916af50eb42020024257ecd17f9be1580db7bf0
[ "MIT" ]
null
null
null
llvm-codegen/compiler-tests/test-llvm-4.py
PS-Group/compiler-theory-samples
c916af50eb42020024257ecd17f9be1580db7bf0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os.path import subprocess import shutil if __name__ == "__main__": main()
30.428571
81
0.668545
7d1ce69a7df2042cf3c0f10f391fedf67f671938
1,282
py
Python
cropwatch/apps/metrics/management/commands/uptime.py
objectsyndicate/Crop-Watch
c960bbcacc49199e35984dc521cc9e8663a6b972
[ "Apache-2.0" ]
13
2018-02-10T14:52:05.000Z
2021-08-31T21:21:58.000Z
cropwatch/apps/metrics/management/commands/uptime.py
objectsyndicate/Crop-Watch
c960bbcacc49199e35984dc521cc9e8663a6b972
[ "Apache-2.0" ]
1
2019-06-13T15:55:08.000Z
2020-07-16T17:35:09.000Z
cropwatch/apps/metrics/management/commands/uptime.py
objectsyndicate/Crop-Watch
c960bbcacc49199e35984dc521cc9e8663a6b972
[ "Apache-2.0" ]
2
2018-05-15T14:54:28.000Z
2019-05-19T14:59:18.000Z
from dateutil.relativedelta import relativedelta from django.core.management.base import BaseCommand from django.utils import timezone from cropwatch.apps.ioTank.models import ioTank, SensorReading from cropwatch.apps.metrics.tasks import *
42.733333
116
0.625585
7d1d6b584d80ab19370f83c6e3bf191fa2bab75c
12,946
py
Python
src/ralph/discovery/tasks.py
quamilek/ralph
bf7231ea096924332b874718b33cd1f43f9c783b
[ "Apache-2.0" ]
null
null
null
src/ralph/discovery/tasks.py
quamilek/ralph
bf7231ea096924332b874718b33cd1f43f9c783b
[ "Apache-2.0" ]
null
null
null
src/ralph/discovery/tasks.py
quamilek/ralph
bf7231ea096924332b874718b33cd1f43f9c783b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Asynchronous task support for discovery.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from datetime import datetime, timedelta from functools import partial impo...
33.365979
79
0.622509
7d1e3411660fc6ff987dff3de950e6a48810d1d8
7,125
py
Python
tests/tests_bibliotools/test_parse_and_group.py
wonjoonSeol/ScienceScape
8d8a3cb76193b6f85b7a2a6c7219e249237d64c8
[ "BSD-3-Clause" ]
5
2018-02-14T21:11:06.000Z
2020-02-23T14:53:11.000Z
tests/tests_bibliotools/test_parse_and_group.py
wonjoonSeol/ScienceScape
8d8a3cb76193b6f85b7a2a6c7219e249237d64c8
[ "BSD-3-Clause" ]
106
2018-02-09T00:31:05.000Z
2018-03-29T07:28:34.000Z
tests/tests_bibliotools/test_parse_and_group.py
wonjoonSeol/ScienceScape
8d8a3cb76193b6f85b7a2a6c7219e249237d64c8
[ "BSD-3-Clause" ]
6
2018-02-23T17:48:03.000Z
2020-05-14T13:39:36.000Z
from django.test import TestCase import sys import os lib_path = os.path.abspath(os.path.join(__file__, '..', '..', '..', 'bibliotools3', 'scripts')) sys.path.append(lib_path) from parse_and_group import is_year_within_span from parse_and_group import create_span_files from parse_and_group import separate_years from ...
60.897436
2,417
0.703439
7d1f3ddbc8caa64dc170bb034f2e11f6a498e3f3
968
py
Python
src/hw_conversion/HWPreprocessor.py
jmbarrios/hw-conversion
8addd24e726e7284ade3195df14f96ea51c332b7
[ "MIT" ]
null
null
null
src/hw_conversion/HWPreprocessor.py
jmbarrios/hw-conversion
8addd24e726e7284ade3195df14f96ea51c332b7
[ "MIT" ]
null
null
null
src/hw_conversion/HWPreprocessor.py
jmbarrios/hw-conversion
8addd24e726e7284ade3195df14f96ea51c332b7
[ "MIT" ]
null
null
null
''' Module containing a preprocessor that keeps cells if they match given expression. ''' # Author: Juan M. Barrios <j.m.barrios@gmail.com> import re from typing import Pattern from traitlets import Unicode from nbconvert.preprocessors import Preprocessor
27.657143
77
0.67562
7d20f25ebe54b94a311e03fb9f7b27183d742e5a
2,455
py
Python
CloacaCodeTests/minheap.py
rockobonaparte/cloaca
789dc5a6ec1c52f6fe3d5e8aadc1a9c149aacf68
[ "MIT" ]
3
2020-01-11T19:25:18.000Z
2022-03-12T17:27:28.000Z
CloacaCodeTests/minheap.py
rockobonaparte/cloaca
789dc5a6ec1c52f6fe3d5e8aadc1a9c149aacf68
[ "MIT" ]
4
2020-02-10T16:50:43.000Z
2021-12-03T08:03:46.000Z
CloacaCodeTests/minheap.py
rockobonaparte/cloaca
789dc5a6ec1c52f6fe3d5e8aadc1a9c149aacf68
[ "MIT" ]
4
2020-02-10T16:40:46.000Z
2020-11-27T08:11:51.000Z
raise NotImplementedError("Getting an NPE trying to parse this code") min_heap = MinHeap(16) min_heap.add(2, 2) min_heap.add(3, 3) min_heap.add(4, 4) min_heap.add(1, 1) print(min_heap.get().key) print(min_heap.get().key) print(min_heap.get().key) print(min_heap.get().key)
27.897727
84
0.518941
7d2138cb868753332f4b3ce35fd7b436d701ae81
15,359
py
Python
mecademic/Robot.py
nickarmenta/PythonForMecademic
d6277239bbb376a2388984a9fe12a4d4d88d653c
[ "MIT" ]
1
2021-03-22T13:40:42.000Z
2021-03-22T13:40:42.000Z
mecademic/Robot.py
nickarmenta/PythonForMecademic
d6277239bbb376a2388984a9fe12a4d4d88d653c
[ "MIT" ]
null
null
null
mecademic/Robot.py
nickarmenta/PythonForMecademic
d6277239bbb376a2388984a9fe12a4d4d88d653c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import socket import threading import logging logging.basicConfig(filename='meca.log', level=logging.DEBUG) PROGRAM_FILE = 'program_output.txt' # Dictionary of status indexes in robot status message statusDict = {'activated': 0, 'homed': 1, 'simulating': 2, '...
35.801865
102
0.604662
7d21bc0228817255f88c077601480d01e75f6337
1,750
py
Python
renku/core/utils/datetime8601.py
mohammad-sdsc/renku-python
3a7bf2339ab56a3bc00a689bb27a864bb5bf55da
[ "Apache-2.0" ]
null
null
null
renku/core/utils/datetime8601.py
mohammad-sdsc/renku-python
3a7bf2339ab56a3bc00a689bb27a864bb5bf55da
[ "Apache-2.0" ]
null
null
null
renku/core/utils/datetime8601.py
mohammad-sdsc/renku-python
3a7bf2339ab56a3bc00a689bb27a864bb5bf55da
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2020 - Swiss Data Science Center (SDSC) # A partnership between cole Polytechnique Fdrale de Lausanne (EPFL) and # Eidgenssische Technische Hochschule Zrich (ETHZ). # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance ...
31.25
77
0.660571
7d24621d93eb905ea51ea7bf215e6bab3af4d108
2,493
py
Python
dn-real-in/eval.py
ngchc/deepBoosting
13b3515c16f0d9a0a92b990dfb5eef09ec1a7298
[ "MIT" ]
49
2019-04-01T02:03:05.000Z
2021-11-29T07:58:33.000Z
dn-real-in/eval.py
ngchc/deepBoosting
13b3515c16f0d9a0a92b990dfb5eef09ec1a7298
[ "MIT" ]
4
2019-04-04T06:53:19.000Z
2021-11-02T13:11:44.000Z
dn-real-in/eval.py
ngchc/deepBoosting
13b3515c16f0d9a0a92b990dfb5eef09ec1a7298
[ "MIT" ]
16
2019-04-01T02:03:11.000Z
2022-03-20T13:13:04.000Z
import os import numpy as np import tensorflow as tf from PIL import Image if __name__ == '__main__': main()
27.7
108
0.636984
7d2644ca332886ab77c32e7e0f6f69055493b94f
294
py
Python
c_registry.py
shemerofir/skaffold-auto-docs
20a05d79fd5df1e1ca8dc356c627dda06dd4720a
[ "MIT" ]
null
null
null
c_registry.py
shemerofir/skaffold-auto-docs
20a05d79fd5df1e1ca8dc356c627dda06dd4720a
[ "MIT" ]
null
null
null
c_registry.py
shemerofir/skaffold-auto-docs
20a05d79fd5df1e1ca8dc356c627dda06dd4720a
[ "MIT" ]
null
null
null
import sh from dotenv import load_dotenv import os load_dotenv() PASSWORD = os.environ.get("sudo_password")
22.615385
105
0.670068
7d270ae80a04b95ae0734653fb57ab760e18861b
191
py
Python
api/guids/urls.py
gaybro8777/osf.io
30408511510a40bc393565817b343ef5fd76ab14
[ "Apache-2.0" ]
628
2015-01-15T04:33:22.000Z
2022-03-30T06:40:10.000Z
api/guids/urls.py
gaybro8777/osf.io
30408511510a40bc393565817b343ef5fd76ab14
[ "Apache-2.0" ]
4,712
2015-01-02T01:41:53.000Z
2022-03-30T14:18:40.000Z
api/guids/urls.py
Johnetordoff/osf.io
de10bf249c46cede04c78f7e6f7e352c69e6e6b5
[ "Apache-2.0" ]
371
2015-01-12T16:14:08.000Z
2022-03-31T18:58:29.000Z
from django.conf.urls import url from api.guids import views app_name = 'osf' urlpatterns = [ url(r'^(?P<guids>\w+)/$', views.GuidDetail.as_view(), name=views.GuidDetail.view_name), ]
19.1
91
0.696335
7d27c111549ca054eb1d4350e5f213c7b661a06c
500
py
Python
drinks/migrations/0002_drink_ingredients.py
jmhubbard/cocktail_api
47c2cca699f02dc14af04b989beeee9855a797f0
[ "Unlicense" ]
1
2020-11-25T04:57:34.000Z
2020-11-25T04:57:34.000Z
drinks/migrations/0002_drink_ingredients.py
jmhubbard/cocktail_api
47c2cca699f02dc14af04b989beeee9855a797f0
[ "Unlicense" ]
null
null
null
drinks/migrations/0002_drink_ingredients.py
jmhubbard/cocktail_api
47c2cca699f02dc14af04b989beeee9855a797f0
[ "Unlicense" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-29 04:46 from django.db import migrations, models
23.809524
96
0.6
7d2960dbcf92acd1ac35985bb043ac91054c10d1
5,971
py
Python
trello_track/__init__.py
seanmacavaney/trello-track
b900cfbe9395cf2742e624b49dfcb9ed6da67552
[ "MIT" ]
1
2020-09-13T17:17:41.000Z
2020-09-13T17:17:41.000Z
trello_track/__init__.py
seanmacavaney/trello-track
b900cfbe9395cf2742e624b49dfcb9ed6da67552
[ "MIT" ]
null
null
null
trello_track/__init__.py
seanmacavaney/trello-track
b900cfbe9395cf2742e624b49dfcb9ed6da67552
[ "MIT" ]
null
null
null
import sys import json import os import platform import subprocess import contextlib import requests CHECKLIST_NAME = 'Commands' ICON_READY, ICON_IP, ICON_DONE, ICON_FAIL = '', '', '', '' _CREDS = None def main_cli(): main(sys.argv[1:]) def main(argv): assert len(argv) >= 2, "usage: [card_id] [comma...
35.754491
122
0.533077
7d2a2fea07d41d19ee631745dc1ae58b9dcafc22
7,363
py
Python
src/ResourceManager.py
NEKERAFA/Soul-Tower
d37c0bf6bcbf253ec5b2c41f802adeeca31fb384
[ "MIT" ]
null
null
null
src/ResourceManager.py
NEKERAFA/Soul-Tower
d37c0bf6bcbf253ec5b2c41f802adeeca31fb384
[ "MIT" ]
null
null
null
src/ResourceManager.py
NEKERAFA/Soul-Tower
d37c0bf6bcbf253ec5b2c41f802adeeca31fb384
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pygame, sys, os, json from pygame.locals import * IMAGE_PATH = os.path.join('assets', 'images') SPRITE_SHEET_PATH = os.path.join('assets', 'sprites') STAGE_CONF_PATH = os.path.join('assets', 'stages') ROOM_CONF_PATH = os.path.join('assets', 'rooms') DIALOGUE_CONF_PATH = os.path.join('as...
33.621005
76
0.573408
7d2c1800b1cf775906aaeca97219fcb2b7436072
1,307
py
Python
valuation/migrations/0001_initial.py
jiun0507/minestock
b333298575cae1c426cc4450e85e9e576458b74a
[ "Unlicense" ]
null
null
null
valuation/migrations/0001_initial.py
jiun0507/minestock
b333298575cae1c426cc4450e85e9e576458b74a
[ "Unlicense" ]
null
null
null
valuation/migrations/0001_initial.py
jiun0507/minestock
b333298575cae1c426cc4450e85e9e576458b74a
[ "Unlicense" ]
1
2021-10-15T20:10:39.000Z
2021-10-15T20:10:39.000Z
# Generated by Django 3.2 on 2021-04-28 12:31 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
36.305556
161
0.599847
7d2cd9bd2587b1eea5028879416dfa12cb5caa1c
6,268
py
Python
ravenframework/SupervisedLearning/ScikitLearn/Ensemble/StackingRegressor.py
khurrumsaleem/raven
3a158f9ae3851d3eca51b4bd91ea6494e5c0ed89
[ "Apache-2.0" ]
null
null
null
ravenframework/SupervisedLearning/ScikitLearn/Ensemble/StackingRegressor.py
khurrumsaleem/raven
3a158f9ae3851d3eca51b4bd91ea6494e5c0ed89
[ "Apache-2.0" ]
null
null
null
ravenframework/SupervisedLearning/ScikitLearn/Ensemble/StackingRegressor.py
khurrumsaleem/raven
3a158f9ae3851d3eca51b4bd91ea6494e5c0ed89
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Battelle Energy Alliance, LLC # # 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 t...
50.144
158
0.62508
7d2d9540209fa5a85af406d4e806349eeca524ef
908
py
Python
fluent_contents/rendering/__init__.py
francofuji/django-fluent-contents
03da447ef0854b0e6a6f8ff39d9281d11efc8587
[ "Apache-2.0" ]
null
null
null
fluent_contents/rendering/__init__.py
francofuji/django-fluent-contents
03da447ef0854b0e6a6f8ff39d9281d11efc8587
[ "Apache-2.0" ]
null
null
null
fluent_contents/rendering/__init__.py
francofuji/django-fluent-contents
03da447ef0854b0e6a6f8ff39d9281d11efc8587
[ "Apache-2.0" ]
null
null
null
""" This module provides functions to render placeholder content manually. The functions are available outside the regular templatetags, so it can be called outside the templates as well. Contents is cached in memcache whenever possible, only the remaining items are queried. The templatetags also use these functions ...
30.266667
121
0.785242
7d2eedcb594966e266531a38d18f3efe92684a79
1,615
py
Python
linear regression/simple_linear_regression.py
liangjisheng/Machine-Learning
55b6781d621e2de09c6e750ecc993178fb247c7b
[ "MIT" ]
null
null
null
linear regression/simple_linear_regression.py
liangjisheng/Machine-Learning
55b6781d621e2de09c6e750ecc993178fb247c7b
[ "MIT" ]
null
null
null
linear regression/simple_linear_regression.py
liangjisheng/Machine-Learning
55b6781d621e2de09c6e750ecc993178fb247c7b
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- """ @project = 0602-1 @file = simple_linear_regression @author = Liangjisheng @create_time = 2018/6/2 0002 17:16 """ import matplotlib.pyplot as plt import numpy as np from sklearn import datasets, linear_model # # 44210 # -.2 .2 # 25 346 diabetes = datasets.load_diabetes() # print(type(dia...
24.469697
83
0.763467
7d2ef278a9b7568669efc168569d30a00da19ccc
2,104
py
Python
app/gui/frames/templates/list_frame.py
Matexer/BSPR
a503a8795cb0f4cebe2eedd148aa00aea75b570e
[ "MIT" ]
null
null
null
app/gui/frames/templates/list_frame.py
Matexer/BSPR
a503a8795cb0f4cebe2eedd148aa00aea75b570e
[ "MIT" ]
null
null
null
app/gui/frames/templates/list_frame.py
Matexer/BSPR
a503a8795cb0f4cebe2eedd148aa00aea75b570e
[ "MIT" ]
null
null
null
import tkinter as tk from abc import ABCMeta, abstractmethod from ...frames.templates import FrameTemplate from ...elements import AddButton, EditButton, DeleteButton
32.875
66
0.623099
7d31ec43828e5f8b1bea431b80a4901f6d2b3f3a
337
py
Python
EllipticCurves/Curve.py
mrajweir/Code
6b57cbed93ba556bef08e1e66735286ccf21820d
[ "MIT" ]
null
null
null
EllipticCurves/Curve.py
mrajweir/Code
6b57cbed93ba556bef08e1e66735286ccf21820d
[ "MIT" ]
2
2020-03-31T10:19:59.000Z
2021-02-08T14:28:38.000Z
EllipticCurves/Curve.py
mrajweir/Code
6b57cbed93ba556bef08e1e66735286ccf21820d
[ "MIT" ]
1
2020-04-05T10:20:21.000Z
2020-04-05T10:20:21.000Z
import matplotlib.pyplot as plt import numpy as np if __name__ == '__main__': main()
16.85
42
0.465875
7d321a3687498f5a8ed7caee0688af65987caed6
2,312
py
Python
importer/management/commands/rebuild_project_stats.py
brand-fabian/varfish-server
6a084d891d676ff29355e72a29d4f7b207220283
[ "MIT" ]
null
null
null
importer/management/commands/rebuild_project_stats.py
brand-fabian/varfish-server
6a084d891d676ff29355e72a29d4f7b207220283
[ "MIT" ]
null
null
null
importer/management/commands/rebuild_project_stats.py
brand-fabian/varfish-server
6a084d891d676ff29355e72a29d4f7b207220283
[ "MIT" ]
null
null
null
"""Django command for rebuilding cohort statistics after import.""" import aldjemy from django.contrib.auth import get_user_model from django.core.exceptions import ObjectDoesNotExist from django.core.management.base import BaseCommand, CommandError from django.db import transaction from django.conf import settings f...
37.901639
96
0.698962
7d33735c0c3bfee8be88bd6f1998151e93fe43b3
273
py
Python
answers/Utkarsh Srivastava/Day 12/Question 2.py
arc03/30-DaysOfCode-March-2021
6d6e11bf70280a578113f163352fa4fa8408baf6
[ "MIT" ]
22
2021-03-16T14:07:47.000Z
2021-08-13T08:52:50.000Z
answers/Utkarsh Srivastava/Day 12/Question 2.py
arc03/30-DaysOfCode-March-2021
6d6e11bf70280a578113f163352fa4fa8408baf6
[ "MIT" ]
174
2021-03-16T21:16:40.000Z
2021-06-12T05:19:51.000Z
answers/Utkarsh Srivastava/Day 12/Question 2.py
arc03/30-DaysOfCode-March-2021
6d6e11bf70280a578113f163352fa4fa8408baf6
[ "MIT" ]
135
2021-03-16T16:47:12.000Z
2021-06-27T14:22:38.000Z
n = int(input()) c = [0]*n for i in range(n): l = int(input()) S = input() for j in range(l): if (S[j]=='0'): continue for k in range(j,l): if (S[k]=='1'): c[i] = c[i]+1 for i in range(n): print(c[i])
19.5
29
0.388278
7d348b05d1517aca67ab59bdc69e706d090649ac
3,294
py
Python
tests/cropSeqTest.py
schnamo/CIAlign
6985d74bb9a59535bb01751fcb739dd5ca219607
[ "MIT" ]
60
2019-09-09T16:44:14.000Z
2022-03-26T12:04:17.000Z
tests/cropSeqTest.py
schnamo/CIAlign
6985d74bb9a59535bb01751fcb739dd5ca219607
[ "MIT" ]
16
2020-05-12T20:17:30.000Z
2022-03-15T16:01:41.000Z
tests/cropSeqTest.py
schnamo/CIAlign
6985d74bb9a59535bb01751fcb739dd5ca219607
[ "MIT" ]
3
2020-03-28T11:20:02.000Z
2022-01-22T07:16:58.000Z
#! /usr/bin/env python import unittest from unittest import mock from mock import patch from parameterized import parameterized, parameterized_class import sys import logging import numpy as np from Bio import AlignIO import os from os import path import CIAlign import CIAlign.cropSeq as cropSeq
45.75
193
0.60929
7d34ac8a177d53d04be76e0daa53138a4a06a173
1,871
py
Python
cogdl/models/emb/rotate.py
cenyk1230/cogdl
fa1f74d5c3a15b5a52abfc7cd3f04dce4b7dbcce
[ "MIT" ]
1,072
2019-08-02T05:46:21.000Z
2022-03-31T07:51:53.000Z
cogdl/models/emb/rotate.py
cenyk1230/cogdl
fa1f74d5c3a15b5a52abfc7cd3f04dce4b7dbcce
[ "MIT" ]
96
2019-08-05T17:27:22.000Z
2022-03-03T08:36:57.000Z
cogdl/models/emb/rotate.py
cenyk1230/cogdl
fa1f74d5c3a15b5a52abfc7cd3f04dce4b7dbcce
[ "MIT" ]
299
2019-08-08T07:33:10.000Z
2022-03-31T09:30:07.000Z
import torch from torch import Tensor import torch.nn as nn import torch.nn.functional as F from .. import BaseModel, register_model from .knowledge_base import KGEModel
35.980769
126
0.670764
7d397f642d7aef0cc79a1f55aff842d15208de96
198
py
Python
reviewboard/site/evolutions/localsite_public.py
BarracudaPff/code-golf-data-pythpn
42e8858c2ebc6a061012bcadb167d29cebb85c5e
[ "MIT" ]
null
null
null
reviewboard/site/evolutions/localsite_public.py
BarracudaPff/code-golf-data-pythpn
42e8858c2ebc6a061012bcadb167d29cebb85c5e
[ "MIT" ]
null
null
null
reviewboard/site/evolutions/localsite_public.py
BarracudaPff/code-golf-data-pythpn
42e8858c2ebc6a061012bcadb167d29cebb85c5e
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django_evolution.mutations import AddField from django.db import models MUTATIONS = [AddField("LocalSite", "public", models.BooleanField, initial=False)]
49.5
81
0.833333
7d3abeec63de15c18972f766ba7f61dbee88a419
996
py
Python
PrintDocment.py
Humein/Algorithm-Swift
771eef9b6156bf4a1b165a96b9154bbf60d6fdf2
[ "MIT" ]
null
null
null
PrintDocment.py
Humein/Algorithm-Swift
771eef9b6156bf4a1b165a96b9154bbf60d6fdf2
[ "MIT" ]
null
null
null
PrintDocment.py
Humein/Algorithm-Swift
771eef9b6156bf4a1b165a96b9154bbf60d6fdf2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding utf-8 -*- import os print("",os.listdir("/Users/zhangxinxin/Code/Algorithm-Swift/")) print("",os.listdir("/Users/zhangxinxin/Code/Algorithm-Swift//")) print("",os.listdir("/Users/zhangxinxin/Code/Algorithm-Swift//")) print("",os.listdir("/Users/zhangxinxin/Code/Algorithm-Swift//"))...
49.8
87
0.737952
7d3ea37ac9acf74a01f56012eb7dac104176c0aa
1,392
py
Python
mititools/mititools/serializers/frictionless.py
jimmymathews/MITI
0745b051a02fd1055ff80af560683fdbb18d5651
[ "MIT" ]
null
null
null
mititools/mititools/serializers/frictionless.py
jimmymathews/MITI
0745b051a02fd1055ff80af560683fdbb18d5651
[ "MIT" ]
null
null
null
mititools/mititools/serializers/frictionless.py
jimmymathews/MITI
0745b051a02fd1055ff80af560683fdbb18d5651
[ "MIT" ]
null
null
null
import os from os import mkdir from os.path import join from os.path import exists import json import importlib.resources import jinja2 from jinja2 import Environment from jinja2 import BaseLoader with importlib.resources.path('mititools', 'fd_schema.json.jinja') as file: jinja_environment = Environment(loader=Ba...
32.372093
75
0.75431
7d400f7a4ed47d3dc5c52007ae1f8fcbedc5ec4c
2,216
py
Python
mvj/urls.py
tuomas777/mvj
e9a12e42c399b9fb77fd8fad85fc8f0f6d4ce405
[ "MIT" ]
null
null
null
mvj/urls.py
tuomas777/mvj
e9a12e42c399b9fb77fd8fad85fc8f0f6d4ce405
[ "MIT" ]
null
null
null
mvj/urls.py
tuomas777/mvj
e9a12e42c399b9fb77fd8fad85fc8f0f6d4ce405
[ "MIT" ]
null
null
null
import rest_framework.urls from django.conf import settings from django.contrib import admin from django.urls import include, path, re_path from rest_framework import routers from rest_framework_swagger.views import get_swagger_view from leasing.views import ktj_proxy from leasing.viewsets.basis_of_rent import BasisOf...
43.45098
106
0.813628
7d4204253a754ba266b79ffa36682d9cb36d8ff0
1,860
py
Python
ines.py
FlightDev/YSPA
5226712ebf305e7a3c686c43c996517a617f748b
[ "MIT" ]
null
null
null
ines.py
FlightDev/YSPA
5226712ebf305e7a3c686c43c996517a617f748b
[ "MIT" ]
null
null
null
ines.py
FlightDev/YSPA
5226712ebf305e7a3c686c43c996517a617f748b
[ "MIT" ]
null
null
null
import rebound import math from visual import * import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import numpy as np k = 0.01720209895 how_long = 600 start_pos = vector(0, 0, 1.5) start_v = vector(0.7, 0.7, 0) sim = rebound.Simulation() #sun: sim.add(m = 1.) #asteroid: sim.add(m = 0, x = start...
30
204
0.67043
7d42e175bdde08c8e8e91c34aecbf8486806dec0
26,362
py
Python
tests/common/utils/config_utils.py
anniyanvr/snaps-kubernetes
6114d15fdb476a2235cd73bd9118072c698ba045
[ "Apache-2.0" ]
20
2018-07-24T23:32:11.000Z
2021-11-08T10:28:45.000Z
tests/common/utils/config_utils.py
anniyanvr/snaps-kubernetes
6114d15fdb476a2235cd73bd9118072c698ba045
[ "Apache-2.0" ]
195
2018-07-25T19:59:44.000Z
2021-12-15T04:39:27.000Z
tests/common/utils/config_utils.py
anniyanvr/snaps-kubernetes
6114d15fdb476a2235cd73bd9118072c698ba045
[ "Apache-2.0" ]
7
2018-08-23T11:35:57.000Z
2020-06-29T08:25:25.000Z
# Copyright 2018 ARICENT HOLDINGS LUXEMBOURG SARL and Cable Television # Laboratories, 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 # #...
43.50165
119
0.681739
7d44b7e8f5a379cc7b50059795fc7b51e4005b04
361
py
Python
hy-data-analysis-with-python-spring-2020/part03-e07_meeting_planes/src/meeting_planes.py
Melimet/DAP2020
0854fe4ce8ace6abf6dc0bbcf71984595ff6d42a
[ "MIT" ]
null
null
null
hy-data-analysis-with-python-spring-2020/part03-e07_meeting_planes/src/meeting_planes.py
Melimet/DAP2020
0854fe4ce8ace6abf6dc0bbcf71984595ff6d42a
[ "MIT" ]
null
null
null
hy-data-analysis-with-python-spring-2020/part03-e07_meeting_planes/src/meeting_planes.py
Melimet/DAP2020
0854fe4ce8ace6abf6dc0bbcf71984595ff6d42a
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import numpy as np if __name__ == "__main__": main()
15.041667
64
0.518006
7d473618101c1bf818cfd31f50f7230e32057c47
566
py
Python
setup.py
iatlab/datas-utils
b8eef303de5a5d5a57182c0627b721dde0b6b300
[ "MIT" ]
null
null
null
setup.py
iatlab/datas-utils
b8eef303de5a5d5a57182c0627b721dde0b6b300
[ "MIT" ]
null
null
null
setup.py
iatlab/datas-utils
b8eef303de5a5d5a57182c0627b721dde0b6b300
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from setuptools import setup setup( name = "datas_utils", packages = ["datas_utils", "datas_utils.env", "datas_utils.log", "datas_utils.aws", ], version = "0.0.1", description = "Tools for Datas Project", author ...
28.3
74
0.55477
7d47e3a2c72557ea55cdd53dea81dcefd1f28f34
181
py
Python
Lib/fontTools/ttLib/tables/T_S_I_B_.py
twardoch/fonttools-py27
75b852d3f59fc0d03c6e78581530597d4c6368a1
[ "MIT", "BSD-3-Clause" ]
240
2021-01-11T14:49:24.000Z
2022-03-29T22:33:49.000Z
Lib/fontTools/ttLib/tables/T_S_I_B_.py
twardoch/fonttools-py27
75b852d3f59fc0d03c6e78581530597d4c6368a1
[ "MIT", "BSD-3-Clause" ]
77
2021-01-12T20:23:30.000Z
2022-03-28T12:14:34.000Z
Lib/fontTools/ttLib/tables/T_S_I_B_.py
twardoch/fonttools-py27
75b852d3f59fc0d03c6e78581530597d4c6368a1
[ "MIT", "BSD-3-Clause" ]
28
2021-01-17T05:44:11.000Z
2022-01-11T19:58:46.000Z
from __future__ import print_function, division, absolute_import from fontTools.misc.py23 import * from .T_S_I_V_ import table_T_S_I_V_
25.857143
64
0.845304
7d4905910c88a739b35dc4edd1e33b3e65ae835a
1,012
py
Python
src/paths_to_inodes_paths.py
poponealex/suprenam
d57c99a2e43ad659b9ed70830402f46e7d31e02e
[ "MIT" ]
8
2022-03-05T19:41:37.000Z
2022-03-06T08:04:43.000Z
src/paths_to_inodes_paths.py
poponealex/suprenam
d57c99a2e43ad659b9ed70830402f46e7d31e02e
[ "MIT" ]
2
2022-01-25T18:57:17.000Z
2022-03-14T13:24:59.000Z
src/paths_to_inodes_paths.py
poponealex/suprenam
d57c99a2e43ad659b9ed70830402f46e7d31e02e
[ "MIT" ]
null
null
null
from pathlib import Path from typing import List from src.user_errors import NoItemToRenameError from src.user_types import Inode, InodesPaths def paths_to_inodes_paths(paths: List[Path]) -> InodesPaths: """ Given a list of paths, return a mapping from inodes to paths. Args: paths: list of Path ...
28.111111
96
0.651186
7d4b8c1cbb3320cfef8a2500aa0c61c3209c9888
9,655
py
Python
faro/utils.py
cgiraldo/FARO
aa599fe8eebb489fe032549ec52771574a6d04bd
[ "MIT" ]
null
null
null
faro/utils.py
cgiraldo/FARO
aa599fe8eebb489fe032549ec52771574a6d04bd
[ "MIT" ]
null
null
null
faro/utils.py
cgiraldo/FARO
aa599fe8eebb489fe032549ec52771574a6d04bd
[ "MIT" ]
null
null
null
import re import gensim.utils as gensim_utils def normalize_text_proximity(message): """ Clean text of dots between words Keyword arguments: message -- a plain sentence or paragraph """ sent = message.lower() sent = sent.replace("", "a") sent = sent.replace("", "e") sent = sent....
24.017413
70
0.46028
7d4be85eed72cdda5ea7001420bb48d96b241f0b
21,722
py
Python
pysnmp/CHECKPOINT-TRAP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/CHECKPOINT-TRAP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/CHECKPOINT-TRAP-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 CHECKPOINT-TRAP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CHECKPOINT-TRAP-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:31:16 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default...
226.270833
2,269
0.768115
7d4c5d1e663bf350e478bc71a505fc49721c08e6
452
py
Python
assistant/tests/internetcheck.py
SPARC-Auburn/Lab-Assistant
f86577f4ea53297f3c9febb84d967650d7196e61
[ "Apache-2.0" ]
9
2017-09-06T13:23:32.000Z
2020-07-19T17:05:23.000Z
assistant/tests/internetcheck.py
SPARC-Auburn/Lab-Assistant
f86577f4ea53297f3c9febb84d967650d7196e61
[ "Apache-2.0" ]
29
2017-09-06T21:50:08.000Z
2017-12-07T00:37:57.000Z
assistant/tests/internetcheck.py
SPARC-Auburn/Lab-Assistant
f86577f4ea53297f3c9febb84d967650d7196e61
[ "Apache-2.0" ]
6
2016-11-20T01:01:55.000Z
2019-10-16T16:29:33.000Z
import socket print is_connected()
22.6
69
0.615044
7d4d805a56faeaf0887f5c53b13a814262347351
185,256
py
Python
hrl_dynamic_mpc/src/dMdq_func.py
gt-ros-pkg/hrl-haptic-manip
6458187075033ecd3a22fbcdc1a632df39b0cba1
[ "Apache-2.0" ]
1
2017-07-13T14:58:35.000Z
2017-07-13T14:58:35.000Z
hrl_dynamic_mpc/src/dMdq_func.py
gt-ros-pkg/hrl-haptic-manip
6458187075033ecd3a22fbcdc1a632df39b0cba1
[ "Apache-2.0" ]
null
null
null
hrl_dynamic_mpc/src/dMdq_func.py
gt-ros-pkg/hrl-haptic-manip
6458187075033ecd3a22fbcdc1a632df39b0cba1
[ "Apache-2.0" ]
2
2017-03-08T14:44:22.000Z
2019-07-15T23:46:35.000Z
# # # Copyright (c) 2013, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, ...
60.999671
1,258
0.568268
7d4d986638e6a4a9e2c7f55747f9a7a304afe8fb
2,401
py
Python
back/color.py
PoCInnovation/AI4UX
78a60e35f755e2ab58d469748c363daa4a4222c9
[ "MIT" ]
null
null
null
back/color.py
PoCInnovation/AI4UX
78a60e35f755e2ab58d469748c363daa4a4222c9
[ "MIT" ]
null
null
null
back/color.py
PoCInnovation/AI4UX
78a60e35f755e2ab58d469748c363daa4a4222c9
[ "MIT" ]
null
null
null
import extcolors import PIL if __name__ == "__main__": ## IMAGE ## image = PIL.Image.open("web_screenshot.png") print(dataColor(image))
33.347222
106
0.63307
7d4f4e96803718430d878ca088bcaed92b3079cc
3,822
py
Python
base_pool/mysql_pool/mysql_views.py
zhanzhangwei/kafka-study
6be4167319b855c9560e92932aae628f87a5e680
[ "Apache-2.0" ]
null
null
null
base_pool/mysql_pool/mysql_views.py
zhanzhangwei/kafka-study
6be4167319b855c9560e92932aae628f87a5e680
[ "Apache-2.0" ]
null
null
null
base_pool/mysql_pool/mysql_views.py
zhanzhangwei/kafka-study
6be4167319b855c9560e92932aae628f87a5e680
[ "Apache-2.0" ]
null
null
null
import json import pymysql import datetime from dbutils.pooled_db import PooledDB import pymysql from conf.common import * mysql_client = MysqlClient()
30.576
113
0.545526
7d507f34d285e67fb744c8b50084ce59c5e7e8eb
2,065
py
Python
script/sklearn_like_toolkit/warpper/wrapperGridSearchCV.py
demetoir/MLtools
8c42fcd4cc71728333d9c116ade639fe57d50d37
[ "MIT" ]
null
null
null
script/sklearn_like_toolkit/warpper/wrapperGridSearchCV.py
demetoir/MLtools
8c42fcd4cc71728333d9c116ade639fe57d50d37
[ "MIT" ]
null
null
null
script/sklearn_like_toolkit/warpper/wrapperGridSearchCV.py
demetoir/MLtools
8c42fcd4cc71728333d9c116ade639fe57d50d37
[ "MIT" ]
null
null
null
from sklearn import model_selection from sklearn.externals.joblib import Parallel from tqdm import tqdm from script.sklearn_like_toolkit.warpper.base.MixIn import ClfWrapperMixIn, MetaBaseWrapperClfWithABC import multiprocessing CPU_COUNT = multiprocessing.cpu_count() # TODO using packtools.grid_search Grid...
42.142857
117
0.708475
7d51198f9982dd8e78ac7d042e281aeb60c728be
3,331
py
Python
cliente/templates/forms.py
ricardosmbr/smartcon
6f6090b586e717b38066c20a7d620c4abae0a915
[ "Apache-2.0" ]
null
null
null
cliente/templates/forms.py
ricardosmbr/smartcon
6f6090b586e717b38066c20a7d620c4abae0a915
[ "Apache-2.0" ]
1
2021-06-02T00:21:09.000Z
2021-06-02T00:21:09.000Z
cliente/templates/forms.py
ricardosmbr/smartcon
6f6090b586e717b38066c20a7d620c4abae0a915
[ "Apache-2.0" ]
null
null
null
from django import forms from sistema.mail import send_mail_template from .models import Cliente from usuario.models import Usuario from carteira.models import Carteira from eth_account import Account
36.604396
122
0.724107
ada38af6048efec02fc99b80ce0ab842cf2993cb
1,584
py
Python
weibospider/settings.py
czyczyyzc/WeiboSpider
41b9c97cb01d41cb4a62efdd452451b5ef25bdbc
[ "MIT" ]
2
2021-03-26T03:02:52.000Z
2021-04-01T11:08:46.000Z
weibospider/settings.py
czyczyyzc/WeiboSpider
41b9c97cb01d41cb4a62efdd452451b5ef25bdbc
[ "MIT" ]
null
null
null
weibospider/settings.py
czyczyyzc/WeiboSpider
41b9c97cb01d41cb4a62efdd452451b5ef25bdbc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import random BOT_NAME = 'spider' SPIDER_MODULES = ['spiders'] NEWSPIDER_MODULE = 'spiders' ROBOTSTXT_OBEY = False cookies_file = os.path.join(os.path.split(os.path.realpath(__file__))[0], 'cookies.txt') with open(cookies_file, 'r', encoding='utf-8-sig', newline='') as f: cooki...
29.886792
160
0.704545
ada4fe020a9277ea274b6aa23f3bc9a49595bbe7
430
py
Python
angr/procedures/libc/tolower.py
mariusmue/angr
f8304c4b1f0097a721a6692b02a45cabaae137c5
[ "BSD-2-Clause" ]
2
2018-12-03T23:14:56.000Z
2018-12-03T23:15:57.000Z
angr/procedures/libc/tolower.py
mariusmue/angr
f8304c4b1f0097a721a6692b02a45cabaae137c5
[ "BSD-2-Clause" ]
null
null
null
angr/procedures/libc/tolower.py
mariusmue/angr
f8304c4b1f0097a721a6692b02a45cabaae137c5
[ "BSD-2-Clause" ]
1
2019-08-07T01:42:01.000Z
2019-08-07T01:42:01.000Z
import angr from angr.sim_type import SimTypeInt import logging l = logging.getLogger("angr.procedures.libc.tolower")
26.875
68
0.644186
ada57bfdb85d2618a08b453ff23946dc9309abc3
54,652
py
Python
tests/main/views/test_agreements.py
uk-gov-mirror/alphagov.digitalmarketplace-api
5a1db63691d0c4a435714837196ab6914badaf62
[ "MIT" ]
25
2015-01-14T10:45:13.000Z
2021-05-26T17:21:41.000Z
tests/main/views/test_agreements.py
uk-gov-mirror/alphagov.digitalmarketplace-api
5a1db63691d0c4a435714837196ab6914badaf62
[ "MIT" ]
641
2015-01-15T11:10:50.000Z
2021-06-15T22:18:42.000Z
tests/main/views/test_agreements.py
uk-gov-mirror/alphagov.digitalmarketplace-api
5a1db63691d0c4a435714837196ab6914badaf62
[ "MIT" ]
22
2015-06-13T15:37:45.000Z
2021-08-19T23:40:49.000Z
import json from datetime import datetime from freezegun import freeze_time from app.models import AuditEvent, db, Framework, FrameworkAgreement, User from tests.helpers import fixture_params from tests.bases import BaseApplicationTest # Frameworks prior to G-Cloud 8 do not have framework_agreement_version set, ...
43.443561
120
0.633701
ada5b4e2e79745c1f0c6eb7cbb06b9a0a87a5231
4,730
py
Python
linear_regression_boston_housing.py
coherent17/boston_housing_linear_regression
a4610fa61a52d0433540c1b9d9e0a59ce003d3b4
[ "MIT" ]
null
null
null
linear_regression_boston_housing.py
coherent17/boston_housing_linear_regression
a4610fa61a52d0433540c1b9d9e0a59ce003d3b4
[ "MIT" ]
null
null
null
linear_regression_boston_housing.py
coherent17/boston_housing_linear_regression
a4610fa61a52d0433540c1b9d9e0a59ce003d3b4
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import pandas as pd import seaborn as sns from sklearn.datasets import load_boston from sklearn.model_selection import train_test_split from sklearn.linear_model import LinearRegression from sklearn.metrics import mean_squared_error from sklearn.metrics import r2_score...
45.047619
126
0.658562
ada6f90acad0fa32bb41de1376f5746034781a3d
9,746
py
Python
main.py
ItsTato/proctrl
079516e859f777f8698ad9c649fc23ecc1bde48d
[ "MIT" ]
1
2021-09-20T00:32:53.000Z
2021-09-20T00:32:53.000Z
main.py
ItsTato/proctrl
079516e859f777f8698ad9c649fc23ecc1bde48d
[ "MIT" ]
null
null
null
main.py
ItsTato/proctrl
079516e859f777f8698ad9c649fc23ecc1bde48d
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2022 ItsTato 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 rights to use, copy, modify, merge, publish, dist...
47.77451
2,078
0.754566
ada7202fef8ad2439af7731383fd655d6d607641
500
py
Python
examples/nlp/cosmos_qa/simple.py
SebiSebi/DataMine
d2dd9ed7e2608918dd2908fa29238f600c768eb3
[ "Apache-2.0" ]
9
2020-07-01T21:53:36.000Z
2020-12-15T08:49:08.000Z
examples/nlp/cosmos_qa/simple.py
ChewKokWah/DataMine
d2dd9ed7e2608918dd2908fa29238f600c768eb3
[ "Apache-2.0" ]
7
2020-04-04T19:30:16.000Z
2020-06-26T12:18:10.000Z
examples/nlp/cosmos_qa/simple.py
ChewKokWah/DataMine
d2dd9ed7e2608918dd2908fa29238f600c768eb3
[ "Apache-2.0" ]
2
2020-03-21T13:55:27.000Z
2020-07-01T21:53:38.000Z
import data_mine as dm from data_mine.nlp.cosmos_qa import CosmosQAType if __name__ == "__main__": main()
22.727273
57
0.606
ada7230865bf42e4c71fa3e36acd38626d2760ea
365
py
Python
egs/wsj/s5/steps/libs/nnet3/train/__init__.py
TiagoPellegrini/Kaldi
8a7918f132c0385c9e922126ecad9c3aa48b5706
[ "Apache-2.0" ]
null
null
null
egs/wsj/s5/steps/libs/nnet3/train/__init__.py
TiagoPellegrini/Kaldi
8a7918f132c0385c9e922126ecad9c3aa48b5706
[ "Apache-2.0" ]
null
null
null
egs/wsj/s5/steps/libs/nnet3/train/__init__.py
TiagoPellegrini/Kaldi
8a7918f132c0385c9e922126ecad9c3aa48b5706
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Vimal Manohar # Apache 2.0 """ This library has classes and methods commonly used for training nnet3 neural networks. It has separate submodules for frame-level objectives and chain objective: frame_level_objf -- For both recurrent and non-recurrent architectures chain_objf -- LF-MMI objective train...
22.8125
74
0.783562
ada80991619b7b155d3bb022436ed577b941dc6b
462
py
Python
backend/connect.py
TrustedCapsules/policyBuilder
e9d7c36dcdc575b8ca5fc4c800e1b481e5bd8396
[ "MIT" ]
null
null
null
backend/connect.py
TrustedCapsules/policyBuilder
e9d7c36dcdc575b8ca5fc4c800e1b481e5bd8396
[ "MIT" ]
6
2021-03-09T01:35:33.000Z
2022-02-17T20:44:43.000Z
backend/connect.py
TrustedCapsules/keyserver
e9d7c36dcdc575b8ca5fc4c800e1b481e5bd8396
[ "MIT" ]
null
null
null
# used for connecting to the trusted capsule server import socket TCP_IP = '127.0.0.1' TCP_PORT = 4000 BUFFER_SIZE = 1024 MESSAGE = "Hello, World!" connect(TCP_IP, TCP_PORT, bytes("Hello, World!", 'ascii'))
22
58
0.670996
ada8b2005c7d589e939f2465bf207b722554b8a7
3,821
py
Python
src/randonet/pytorch/transformer.py
ahgamut/randonet
b55241809318d70e97c7718b3fcdc91a7219f269
[ "MIT" ]
null
null
null
src/randonet/pytorch/transformer.py
ahgamut/randonet
b55241809318d70e97c7718b3fcdc91a7219f269
[ "MIT" ]
null
null
null
src/randonet/pytorch/transformer.py
ahgamut/randonet
b55241809318d70e97c7718b3fcdc91a7219f269
[ "MIT" ]
null
null
null
from randonet.generator.param import Param, IntParam, FloatParam, BinaryParam, ChoiceParam, TupleParam from randonet.generator.unit import Unit, Factory as _Factory from randonet.generator.conv import ConvFactory, ConvTransposeFactory from collections import namedtuple
46.597561
198
0.649045
ada8e3e91d5ceb281c58cfe996d8f629dc28e927
6,566
py
Python
ooobuild/lo/rendering/x_sprite.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/rendering/x_sprite.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/rendering/x_sprite.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
56.603448
746
0.730429
adabd3e05885daf5de02dbd612d161741ede8bf7
548
py
Python
my_shelter/dog_shelters/serializers.py
seajhawk/DjangoCRUD
215317e65f6775ea06ffbadf52794b082e5cd978
[ "CC-BY-4.0", "MIT" ]
null
null
null
my_shelter/dog_shelters/serializers.py
seajhawk/DjangoCRUD
215317e65f6775ea06ffbadf52794b082e5cd978
[ "CC-BY-4.0", "MIT" ]
null
null
null
my_shelter/dog_shelters/serializers.py
seajhawk/DjangoCRUD
215317e65f6775ea06ffbadf52794b082e5cd978
[ "CC-BY-4.0", "MIT" ]
null
null
null
from rest_framework import serializers from . import models
24.909091
57
0.614964
adad66563eecc2d8e15824bb2b7f43a81d825708
2,146
py
Python
astropy/utils/tests/test_xml.py
xiaomi1122/astropy
8876e902f5efa02a3fc27d82fe15c16001d4df5e
[ "BSD-3-Clause" ]
null
null
null
astropy/utils/tests/test_xml.py
xiaomi1122/astropy
8876e902f5efa02a3fc27d82fe15c16001d4df5e
[ "BSD-3-Clause" ]
null
null
null
astropy/utils/tests/test_xml.py
xiaomi1122/astropy
8876e902f5efa02a3fc27d82fe15c16001d4df5e
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import (absolute_import, division, print_function, unicode_literals) from ...extern import six import io from ..xml import check, unescaper, writer
27.87013
78
0.647251
adae47876e26fe1fa608db9baae106b2a7e103a7
1,688
py
Python
demo/multimodal/offline/txt2img/index_and_export/src/indexing/milvus/pull.py
meta-soul/MetaSpore
e6fbc12c6a3139df76c87215b16f9dba65962ec7
[ "Apache-2.0" ]
32
2022-03-30T10:24:00.000Z
2022-03-31T16:19:15.000Z
demo/multimodal/offline/QA/index_and_export/src/indexing/milvus/pull.py
meta-soul/MetaSpore
e6fbc12c6a3139df76c87215b16f9dba65962ec7
[ "Apache-2.0" ]
null
null
null
demo/multimodal/offline/QA/index_and_export/src/indexing/milvus/pull.py
meta-soul/MetaSpore
e6fbc12c6a3139df76c87215b16f9dba65962ec7
[ "Apache-2.0" ]
3
2022-03-30T10:28:57.000Z
2022-03-30T11:37:39.000Z
# # Copyright 2022 DMetaSoul # # 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 writin...
29.103448
94
0.680687
adaefc69f5b4fbb153960dd99d6e8f670b047662
6,174
py
Python
lab6/lab6_ttt.py
macarl08/esc180_coursework
16f2adda1f35875b91020e72cb4180d2e45690ce
[ "MIT" ]
null
null
null
lab6/lab6_ttt.py
macarl08/esc180_coursework
16f2adda1f35875b91020e72cb4180d2e45690ce
[ "MIT" ]
null
null
null
lab6/lab6_ttt.py
macarl08/esc180_coursework
16f2adda1f35875b91020e72cb4180d2e45690ce
[ "MIT" ]
null
null
null
# ESC180 Lab 6 # lab6_ttt.py # Oct 15, 2021 # Done in collaboration by: # Ma, Carl Ka To (macarl1) and # Xu, Shen Xiao Zhu (xushenxi) ''' X | O | X ---+---+--- O | O | X ---+---+--- | X | ''' import random # ------------------- PROBLEM 1--------------------------------------- # ---------...
26.384615
104
0.495627
adb02e5a94ebf7c392ba77f23c61612b29f40826
3,503
py
Python
sopel/modules/morestuff.py
paulmadore/funkshelper
cfe60ef4015381b6c4fb01e453523d571af0b2de
[ "EFL-2.0" ]
null
null
null
sopel/modules/morestuff.py
paulmadore/funkshelper
cfe60ef4015381b6c4fb01e453523d571af0b2de
[ "EFL-2.0" ]
null
null
null
sopel/modules/morestuff.py
paulmadore/funkshelper
cfe60ef4015381b6c4fb01e453523d571af0b2de
[ "EFL-2.0" ]
null
null
null
#!/usr/bin/python3 # coding=utf-8 """ Chuck Norris and Other Jokes Module copyright 2015 phm.link Licensed under Mozilla Public License Version 2. """ from __future__ import unicode_literals from __future__ import print_function from __future__ import division import json import jsonrpc from sopel.module import command...
33.04717
117
0.679989
adb03a7f7ff2aada0a21c0bb31a6b843a2c5e949
10,569
py
Python
scripts/dqn_utils.py
woowonjin/Reinforcement_Leraning_for_Optimal_Sepsis_Treatment
caf78cf5406194868e40ecc5e1a30d8b060fce18
[ "MIT" ]
null
null
null
scripts/dqn_utils.py
woowonjin/Reinforcement_Leraning_for_Optimal_Sepsis_Treatment
caf78cf5406194868e40ecc5e1a30d8b060fce18
[ "MIT" ]
null
null
null
scripts/dqn_utils.py
woowonjin/Reinforcement_Leraning_for_Optimal_Sepsis_Treatment
caf78cf5406194868e40ecc5e1a30d8b060fce18
[ "MIT" ]
1
2022-02-04T10:42:09.000Z
2022-02-04T10:42:09.000Z
""" The classes and methods in this file are derived or pulled directly from https://github.com/sfujim/BCQ/tree/master/discrete_BCQ which is a discrete implementation of BCQ by Scott Fujimoto, et al. and featured in the following 2019 DRL NeurIPS workshop paper: @article{fujimoto2019benchmarking, title={Benchmarking ...
34.42671
196
0.713123
adb0713e16ed17691a6fc614d394bfcc1510b88b
684
py
Python
src/LedgerCompliance/utils.py
vchain-us/ledger-compliance-py
30ae81e703178e8b8b4b7fb6a9b7d4467c607d53
[ "Apache-2.0" ]
3
2020-12-20T18:30:12.000Z
2021-05-31T17:02:15.000Z
src/LedgerCompliance/utils.py
vchain-us/ledger-compliance-py
30ae81e703178e8b8b4b7fb6a9b7d4467c607d53
[ "Apache-2.0" ]
null
null
null
src/LedgerCompliance/utils.py
vchain-us/ledger-compliance-py
30ae81e703178e8b8b4b7fb6a9b7d4467c607d53
[ "Apache-2.0" ]
1
2020-12-04T18:04:20.000Z
2020-12-04T18:04:20.000Z
import struct _SetSeparator=b"_~|IMMU|~_"
23.586207
73
0.709064
adb2153a31727c0690dee6c70bb398a70a62d473
3,122
py
Python
expertise_levels.py
erelsgl/voting
732212df2d29d9e9ff7cb4cb83395f649541c346
[ "MIT" ]
null
null
null
expertise_levels.py
erelsgl/voting
732212df2d29d9e9ff7cb4cb83395f649541c346
[ "MIT" ]
null
null
null
expertise_levels.py
erelsgl/voting
732212df2d29d9e9ff7cb4cb83395f649541c346
[ "MIT" ]
null
null
null
#!python3 """ Utilities for computing random expertise levels. """ import numpy as np from scipy.stats import truncnorm, beta MIN_PROBABILITY=0.501 MAX_PROBABILITY=0.999 def truncnorm_expertise_levels(mean:float, std:float, size:int): """ Draw "size" random expertise levels. Each level is a probabilit...
32.520833
110
0.633568
adb248407bb1fe608324a55851076099fa561cd8
1,132
py
Python
tests/test_factory.py
mrled/interpersonal
7282fb498ffc0b2bb9a14cf377b2cb5e4df4af56
[ "Unlicense" ]
null
null
null
tests/test_factory.py
mrled/interpersonal
7282fb498ffc0b2bb9a14cf377b2cb5e4df4af56
[ "Unlicense" ]
null
null
null
tests/test_factory.py
mrled/interpersonal
7282fb498ffc0b2bb9a14cf377b2cb5e4df4af56
[ "Unlicense" ]
null
null
null
"""Testing the Flask application factory""" import os import tempfile import textwrap from interpersonal import create_app def test_config(): """Test the application configuration Make sure it works in testing mode and in normal mode. """ db_fd, db_path = tempfile.mkstemp() conf_fd, conf_path =...
24.085106
70
0.641343
adb376c4779c93a08c2bf6100553c99275ca06ea
6,077
py
Python
examples/hand_pose_estimation/processors_keypoints.py
ManuelMeder/paz
6de73c0a99e0f9c7233c2797eebba2bb01631e6c
[ "MIT" ]
null
null
null
examples/hand_pose_estimation/processors_keypoints.py
ManuelMeder/paz
6de73c0a99e0f9c7233c2797eebba2bb01631e6c
[ "MIT" ]
null
null
null
examples/hand_pose_estimation/processors_keypoints.py
ManuelMeder/paz
6de73c0a99e0f9c7233c2797eebba2bb01631e6c
[ "MIT" ]
null
null
null
import numpy as np from backend_keypoints import create_score_maps, extract_2D_keypoints from backend_keypoints import crop_image_from_coordinates, extract_keypoints from backend_keypoints import crop_image_from_mask, extract_hand_segment from backend_keypoints import extract_bounding_box, find_max_location from backe...
31.984211
80
0.70413
adb4718bc3b46e088dbc8adf3af6ee95f2ddf3e1
954
py
Python
pyschool/static/libs/importhooks/FileSystemHook.py
niansa/brython-in-the-classroom
a1f132898ed1afd1d1baf8170b99e58e39e87912
[ "MIT" ]
14
2016-03-16T18:01:52.000Z
2021-09-24T14:07:20.000Z
pyschool/static/libs/importhooks/FileSystemHook.py
niansa/brython-in-the-classroom
a1f132898ed1afd1d1baf8170b99e58e39e87912
[ "MIT" ]
9
2015-03-31T00:31:26.000Z
2021-05-28T06:24:16.000Z
pyschool/static/libs/importhooks/FileSystemHook.py
niansa/brython-in-the-classroom
a1f132898ed1afd1d1baf8170b99e58e39e87912
[ "MIT" ]
7
2015-05-04T04:06:04.000Z
2020-10-28T09:54:07.000Z
import BaseHook from browser import window from javascript import JSObject import sys sys.path.append("../FileSystem") import FileObject #define my custom import hook (just to see if it get called etc). sys.meta_path.append(FileSystemHook)
26.5
70
0.662474
adb4f77c341d6f1aa8e130649b902fe973e3d9f3
15,753
py
Python
demo_app_new.py
pnazarenko1405/final_project_data_analysis
d841d2630457bbf96b3914d27e6d82e80dc2654d
[ "MIT" ]
null
null
null
demo_app_new.py
pnazarenko1405/final_project_data_analysis
d841d2630457bbf96b3914d27e6d82e80dc2654d
[ "MIT" ]
null
null
null
demo_app_new.py
pnazarenko1405/final_project_data_analysis
d841d2630457bbf96b3914d27e6d82e80dc2654d
[ "MIT" ]
null
null
null
import sql as sql import streamlit as st from streamlit_folium import folium_static import matplotlib.pyplot as plt import pandas as pd import seaborn as sns import json import sys import folium import requests from bs4 import BeautifulSoup import csv from tqdm import tqdm import webbrowser import os.path as osp import...
42.233244
184
0.675935
adb586800f460b888df5730bb9f1d37813ab8d42
1,236
py
Python
tuxeatpi_common/initializer.py
TuxEatPi/common
45aed6275636974f2eb94cf40e330fef5fdd0b7a
[ "Apache-2.0" ]
null
null
null
tuxeatpi_common/initializer.py
TuxEatPi/common
45aed6275636974f2eb94cf40e330fef5fdd0b7a
[ "Apache-2.0" ]
null
null
null
tuxeatpi_common/initializer.py
TuxEatPi/common
45aed6275636974f2eb94cf40e330fef5fdd0b7a
[ "Apache-2.0" ]
null
null
null
"""Module defining the init process for TuxEatPi component""" import logging
37.454545
100
0.665858
adb5fa9a4046aad685ec8217a10885613f798277
56
py
Python
devday/sponsoring/__init__.py
jenslauterbach/devday_website
a827c9237e656842542eff07ec9fa7b39716a0ee
[ "CC-BY-4.0", "BSD-3-Clause" ]
6
2018-09-30T20:18:01.000Z
2020-03-12T09:03:38.000Z
devday/sponsoring/__init__.py
jenslauterbach/devday_website
a827c9237e656842542eff07ec9fa7b39716a0ee
[ "CC-BY-4.0", "BSD-3-Clause" ]
260
2018-09-30T14:17:57.000Z
2022-03-04T13:48:34.000Z
devday/sponsoring/__init__.py
jenslauterbach/devday_website
a827c9237e656842542eff07ec9fa7b39716a0ee
[ "CC-BY-4.0", "BSD-3-Clause" ]
9
2018-09-30T13:17:21.000Z
2020-10-03T12:55:05.000Z
default_app_config = 'sponsoring.apps.SponsoringConfig'
28
55
0.857143
adb71119cdfc222b0935d1f0fd6885370fac21e0
922
py
Python
movie/migrations/0003_auto_20200718_0759.py
edith007/The-Movie-Database
fef4aba56be66b93de5665da374ec8aab05c40f9
[ "CC0-1.0" ]
2
2020-07-12T20:15:53.000Z
2020-07-19T12:07:48.000Z
movie/migrations/0003_auto_20200718_0759.py
edith007/The-Movie-DataBase
fef4aba56be66b93de5665da374ec8aab05c40f9
[ "CC0-1.0" ]
1
2020-07-12T07:50:55.000Z
2020-07-12T07:50:55.000Z
movie/migrations/0003_auto_20200718_0759.py
edith007/The-Movie-DataBase
fef4aba56be66b93de5665da374ec8aab05c40f9
[ "CC0-1.0" ]
null
null
null
# Generated by Django 2.2.12 on 2020-07-18 07:59 from django.db import migrations, models
24.263158
49
0.520607
adb85db75ca4685e65491305d77f76efef993ae2
220
py
Python
figures/styles.py
Jakob-Unfried/msc-legacy
2c41f3f714936c25dd534bd66da802c26176fcfa
[ "MIT" ]
1
2021-03-22T14:16:43.000Z
2021-03-22T14:16:43.000Z
figures/styles.py
Jakob-Unfried/msc-legacy
2c41f3f714936c25dd534bd66da802c26176fcfa
[ "MIT" ]
null
null
null
figures/styles.py
Jakob-Unfried/msc-legacy
2c41f3f714936c25dd534bd66da802c26176fcfa
[ "MIT" ]
null
null
null
colors_per_chi = {2: 'green', 3: 'orange', 4: 'purple', 5: 'pink', 6: 'red'} style_per_chi = {2: '-', 3: '-.', 4: 'dotted'} markers_per_reason = {'converged': 'o', 'progress': 'x', 'ressources': 'v'} linewidth = 5.31596
44
76
0.581818
adb871b1b9356162327f5a254f4edf184c40e44c
2,222
py
Python
index.py
tapanbk/compass-distance-and-bearing
2554a39c79570cb675b8d02d1fe8de7a86a7d0f4
[ "Apache-2.0" ]
null
null
null
index.py
tapanbk/compass-distance-and-bearing
2554a39c79570cb675b8d02d1fe8de7a86a7d0f4
[ "Apache-2.0" ]
null
null
null
index.py
tapanbk/compass-distance-and-bearing
2554a39c79570cb675b8d02d1fe8de7a86a7d0f4
[ "Apache-2.0" ]
null
null
null
if __name__ == '__main__': # Checked on # http: // instantglobe.com / CRANES / GeoCoordTool.html pointa = (27.672944, 85.313551) # pointb = (27.674198, 85.313379) # 353.074198377 # pointb = (27.674312, 85.313701) # 5.54634422036 # pointb = (27.673761, 85.314173) # 33.989047 # pointb = ...
47.276596
93
0.713771
adb94e7aa4a224fc307c81684302f11bb6f9c198
757
py
Python
codes/src/util/isotime.py
CorbinFoucart/FEMexperiment
9bad34d9ed7cbdd740e3a4b67f433779dd53b264
[ "MIT" ]
2
2018-05-26T22:09:32.000Z
2018-06-25T21:46:32.000Z
codes/src/util/isotime.py
CorbinFoucart/FEMexperiment
9bad34d9ed7cbdd740e3a4b67f433779dd53b264
[ "MIT" ]
16
2018-05-17T21:38:44.000Z
2022-03-11T23:21:25.000Z
codes/src/util/isotime.py
CorbinFoucart/FEMexperiment
9bad34d9ed7cbdd740e3a4b67f433779dd53b264
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """@package isotime Creates a string containing the current local time in ISO 8601 basic format @author: Chris Mirabito (mirabito@mit.edu) """ from datetime import datetime #from matplotlib.dates import SEC_PER_DAY SEC_PER_DAY = 86400 def isotime(): """Current local time in ISO 8601 basic...
30.28
77
0.660502
adba93a1fa272ea925749888b657b23f18f04ab6
1,980
py
Python
src/cosmic_ray/tools/filters/filter_app.py
XD-DENG/cosmic-ray
d265dd0c7bf65484ee2ff1503129b2b16d0c7f55
[ "MIT" ]
1
2020-10-18T11:29:03.000Z
2020-10-18T11:29:03.000Z
src/cosmic_ray/tools/filters/filter_app.py
XD-DENG/cosmic-ray
d265dd0c7bf65484ee2ff1503129b2b16d0c7f55
[ "MIT" ]
4
2020-11-21T07:36:24.000Z
2020-11-22T03:09:39.000Z
src/cosmic_ray/tools/filters/filter_app.py
XD-DENG/cosmic-ray
d265dd0c7bf65484ee2ff1503129b2b16d0c7f55
[ "MIT" ]
null
null
null
"""A simple base for creating common types of work-db filters. """ import argparse import logging import sys from exit_codes import ExitCode from cosmic_ray.work_db import use_db
27.887324
81
0.629798
adbadbea54baed7c6fcc238d2ab70e4072465ec8
1,702
py
Python
Crawl/Code/com.vitan.test/mao.py
ivitan/LearnPython
f7c1c8f450f5cbcbd8cabe03711c5e0d81dfdee3
[ "MIT" ]
1
2020-02-05T12:13:31.000Z
2020-02-05T12:13:31.000Z
Crawl/Code/com.vitan.test/mao.py
ivitan/LearnPython
f7c1c8f450f5cbcbd8cabe03711c5e0d81dfdee3
[ "MIT" ]
null
null
null
Crawl/Code/com.vitan.test/mao.py
ivitan/LearnPython
f7c1c8f450f5cbcbd8cabe03711c5e0d81dfdee3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 18-10-28 11:51 # @Author : Vitan # @File : mao.py import requests import re import json from multiprocessing import Pool from requests.exceptions import RequestException if __name__ == '__main__': pool = Pool() # pool.map(main, [i*1...
30.392857
137
0.549941
adbb784f60c50615a64e5766faabdc65dde7543d
446
py
Python
setup.py
CubexX/shortest-python
0b778ad88cc329e00ecd94236178f13735451ded
[ "MIT" ]
null
null
null
setup.py
CubexX/shortest-python
0b778ad88cc329e00ecd94236178f13735451ded
[ "MIT" ]
null
null
null
setup.py
CubexX/shortest-python
0b778ad88cc329e00ecd94236178f13735451ded
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name='shortest-python', packages=['shortest'], version='0.1', description='Python library for shorte.st url shortener', long_description="More on github: https://github.com/CubexX/shortest-python", author='CubexX', author_email='root@cubexx.xyz', ...
29.733333
81
0.683857
adbd54f48752ea1ae6b17c7029c2a22c69b5f6e2
3,381
py
Python
04_random_forest_exp.py
markysamson/CDSWcreditcardfraud
31dc6d417baee4ef5736bce74059815b4f51542a
[ "Apache-2.0" ]
null
null
null
04_random_forest_exp.py
markysamson/CDSWcreditcardfraud
31dc6d417baee4ef5736bce74059815b4f51542a
[ "Apache-2.0" ]
null
null
null
04_random_forest_exp.py
markysamson/CDSWcreditcardfraud
31dc6d417baee4ef5736bce74059815b4f51542a
[ "Apache-2.0" ]
null
null
null
# # Building and Evaluating Random Forest Model # ## Setup # Import useful packages, modules, classes, and functions: from __future__ import print_function from pyspark.sql import SparkSession from pyspark.sql.functions import col #import numpy as np #import pandas as pd import matplotlib.pyplot as plt #import seabor...
37.988764
149
0.762496
adc017e0f309fe827c4b742579b8ba5fefa70fea
9,761
py
Python
src/vegasflow/vflowplus.py
N3PDF/vegasflow
21209c928d07c00ae4f789d03b83e518621f174a
[ "Apache-2.0" ]
20
2020-03-02T22:01:54.000Z
2022-03-30T11:43:48.000Z
src/vegasflow/vflowplus.py
N3PDF/vegasflow
21209c928d07c00ae4f789d03b83e518621f174a
[ "Apache-2.0" ]
26
2020-02-28T12:27:38.000Z
2021-09-30T07:54:12.000Z
src/vegasflow/vflowplus.py
N3PDF/vegasflow
21209c928d07c00ae4f789d03b83e518621f174a
[ "Apache-2.0" ]
5
2020-07-31T08:57:56.000Z
2021-11-05T15:09:14.000Z
""" Implementation of vegas+ algorithm: adaptive importance sampling + adaptive stratified sampling from https://arxiv.org/abs/2009.05112 The main interface is the `VegasFlowPlus` class. """ from itertools import product import numpy as np import tensorflow as tf from vegasflow.configflow import ( ...
36.421642
97
0.65649
adc14f4a93a1042eb839691caa5df56d8072eb88
4,259
py
Python
data_collector/neo-wrapper.py
cardwizard/vulnerable-python-ecosystem
582fda1f45bbe912352ed31a302d798365628713
[ "MIT" ]
null
null
null
data_collector/neo-wrapper.py
cardwizard/vulnerable-python-ecosystem
582fda1f45bbe912352ed31a302d798365628713
[ "MIT" ]
null
null
null
data_collector/neo-wrapper.py
cardwizard/vulnerable-python-ecosystem
582fda1f45bbe912352ed31a302d798365628713
[ "MIT" ]
null
null
null
from neo4j import GraphDatabase port = 7688 data_uri = 'bolt://localhost:' + str(port) username = 'neo4j' password = 'abc123' # data_creds = (username, password) data_creds = None driver = GraphDatabase.driver(data_uri, auth=data_creds) """ @param pkg_data : Python dictionary of package data to be inserted """ ...
28.972789
124
0.538154
adc27f0b84c9f11612869bc82c5ec3b7f4947bbd
12,441
py
Python
kopf/storage/progress.py
michaelnarodovitch/kopf
df4e51bf5ca3c1fc9e609ffeb4cc951925135db2
[ "MIT" ]
null
null
null
kopf/storage/progress.py
michaelnarodovitch/kopf
df4e51bf5ca3c1fc9e609ffeb4cc951925135db2
[ "MIT" ]
null
null
null
kopf/storage/progress.py
michaelnarodovitch/kopf
df4e51bf5ca3c1fc9e609ffeb4cc951925135db2
[ "MIT" ]
null
null
null
""" State stores are used to track the handlers' states across handling cycles. Specifically, they track which handlers are finished, which are not yet, and how many retries were there, and some other information. There could be more than one low-level k8s watch-events per one actual high-level kopf-event (a cause). ...
33.715447
99
0.600997
adc6094a6d2837ad691dd4b73802f81c13e2f5a2
1,045
py
Python
spotty/config/abstract_instance_config.py
Inculus/spotty
56863012668a6c13ad13c2a04f900047e229fbe6
[ "MIT" ]
1
2020-07-17T07:02:09.000Z
2020-07-17T07:02:09.000Z
spotty/config/abstract_instance_config.py
Inculus/spotty
56863012668a6c13ad13c2a04f900047e229fbe6
[ "MIT" ]
null
null
null
spotty/config/abstract_instance_config.py
Inculus/spotty
56863012668a6c13ad13c2a04f900047e229fbe6
[ "MIT" ]
null
null
null
from abc import ABC
26.125
78
0.61244
adc761d738559e1c727ca375143dce7cda714b4b
887
py
Python
setup.py
lizhizhou/django_tidb
b615083c159d0c542ef1632810f3ca5c892d7175
[ "Apache-2.0" ]
null
null
null
setup.py
lizhizhou/django_tidb
b615083c159d0c542ef1632810f3ca5c892d7175
[ "Apache-2.0" ]
null
null
null
setup.py
lizhizhou/django_tidb
b615083c159d0c542ef1632810f3ca5c892d7175
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from distutils.core import setup long_description = """TiDB backend for Django""" setup( name='django_tidb', version='2.1', author='Rain Li', author_email='blacktear23@gmail.com', url='http://github.com/blacktear23/django_tidb', download_url='http://github.com/blackear23...
31.678571
79
0.657272
adc85f255e45341493cae7d856bac908be193a3e
6,347
py
Python
common/utils/utils.py
hvsuchitra/tv_tracker
5415d177fe9a4e16ec39d9812e9502840bba5b12
[ "MIT" ]
null
null
null
common/utils/utils.py
hvsuchitra/tv_tracker
5415d177fe9a4e16ec39d9812e9502840bba5b12
[ "MIT" ]
null
null
null
common/utils/utils.py
hvsuchitra/tv_tracker
5415d177fe9a4e16ec39d9812e9502840bba5b12
[ "MIT" ]
null
null
null
import smtplib from pathlib import Path from PyQt5 import QtCore from PyQt5.QtGui import QImage, QPainter, QBrush, QColor from random import choice from json import load from string import ascii_lowercase, ascii_uppercase, digits, punctuation from secrets import choice as secret_choice from random import ...
27.595652
109
0.688357
adc89f4cb99225189b2a24aea5a5be1d847b7fa7
10,610
py
Python
venv/lib/python3.8/site-packages/ansible_collections/community/aws/plugins/modules/lambda_alias.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
7
2021-11-16T04:05:42.000Z
2022-02-19T21:14:29.000Z
venv/lib/python3.8/site-packages/ansible_collections/community/aws/plugins/modules/lambda_alias.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
1
2022-03-12T02:25:26.000Z
2022-03-12T02:25:26.000Z
venv/lib/python3.8/site-packages/ansible_collections/community/aws/plugins/modules/lambda_alias.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
1
2022-03-01T05:43:07.000Z
2022-03-01T05:43:07.000Z
#!/usr/bin/python # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = ''' --- module: lambda_alias version_added: 1.0.0 short_description: Create...
32.347561
130
0.669463