hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
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.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
79854643093903fa5ffdbe85a866c2c840463db5
4,033
py
Python
gdk/common/model_actions.py
timmattison/aws-greengrass-gdk-cli
60a002f0f2fee84b79022662ba0cae9e0246b6f8
[ "Apache-2.0" ]
10
2022-01-15T09:50:32.000Z
2022-03-26T16:39:49.000Z
gdk/common/model_actions.py
timmattison/aws-greengrass-gdk-cli
60a002f0f2fee84b79022662ba0cae9e0246b6f8
[ "Apache-2.0" ]
46
2021-11-30T19:49:16.000Z
2022-03-31T07:14:23.000Z
gdk/common/model_actions.py
timmattison/aws-greengrass-gdk-cli
60a002f0f2fee84b79022662ba0cae9e0246b6f8
[ "Apache-2.0" ]
7
2021-11-30T19:49:42.000Z
2022-03-17T16:25:34.000Z
import json import gdk.common.consts as consts import gdk.common.utils as utils def is_valid_model(cli_model, command): """ Validates CLI model of arguments and subcommands at the specified command level. Parameters ---------- cli_model(dict): A dictonary object which contains CLI arguments an...
31.507813
119
0.668981
798547b6aad7b8d45024773d1be1b636cd60cd93
320
py
Python
djangobackend/urls.py
devqueue/assaydashboard
550a5392abb366d7b0cefbe9ce4141538a8ff801
[ "MIT" ]
null
null
null
djangobackend/urls.py
devqueue/assaydashboard
550a5392abb366d7b0cefbe9ce4141538a8ff801
[ "MIT" ]
null
null
null
djangobackend/urls.py
devqueue/assaydashboard
550a5392abb366d7b0cefbe9ce4141538a8ff801
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), path('', include('dashboard.urls')), path('', include('upload.urls')), path('accounts/', include('django.contrib.auth.urls')), path('accounts/', include('authenticate.urls')), ]
26.666667
59
0.6625
798547cb629ed9a409fc95e55f4ed36347d7756e
12,468
py
Python
bcdc_apitests/fixtures/orgs.py
franTarkenton/bcdc_tests
7c2280e2e1dc8b6c1314638c1839985c26cbb082
[ "Apache-2.0" ]
1
2019-11-04T16:35:53.000Z
2019-11-04T16:35:53.000Z
bcdc_apitests/fixtures/orgs.py
franTarkenton/bcdc_tests
7c2280e2e1dc8b6c1314638c1839985c26cbb082
[ "Apache-2.0" ]
14
2019-06-18T23:40:59.000Z
2022-01-10T21:53:06.000Z
bcdc_apitests/fixtures/orgs.py
franTarkenton/bcdc_tests
7c2280e2e1dc8b6c1314638c1839985c26cbb082
[ "Apache-2.0" ]
4
2019-05-23T18:59:29.000Z
2019-06-10T22:34:57.000Z
''' Created on May 29, 2019 @author: crigdon Code used to verify orgs. ''' import logging import ckanapi import pytest LOGGER = logging.getLogger(__name__) # pylint: disable=redefined-outer-name # TODO: possibly move supporting functions to helper package # --------------------- Supporting Function...
39.084639
142
0.678457
7985482502caea17fe9dafa64b6a78a79cab1325
6,094
py
Python
PaddleNLP/examples/text_matching/simnet/utils.py
weiwei1115/models
e2c96c5f64b1dc8f0d5d9aa121300b87150e11e3
[ "Apache-2.0" ]
null
null
null
PaddleNLP/examples/text_matching/simnet/utils.py
weiwei1115/models
e2c96c5f64b1dc8f0d5d9aa121300b87150e11e3
[ "Apache-2.0" ]
null
null
null
PaddleNLP/examples/text_matching/simnet/utils.py
weiwei1115/models
e2c96c5f64b1dc8f0d5d9aa121300b87150e11e3
[ "Apache-2.0" ]
1
2021-06-09T01:50:13.000Z
2021-06-09T01:50:13.000Z
# 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 applica...
36.710843
107
0.667706
798548cea2f1a6a30704dcc693a4d63337a34eac
4,178
py
Python
gamma_limits_sensitivity/__main__.py
mahnen/gamma-limits-sensitivity
f105d7e2ba5bdc5cabd48594151968304850a499
[ "MIT" ]
4
2021-06-11T03:37:38.000Z
2021-06-11T10:42:24.000Z
gamma_limits_sensitivity/__main__.py
JohannesBuchner/poissonregime
8047914428bb9e4f0f6fc366111d7a9d42701502
[ "MIT" ]
4
2016-11-14T11:58:48.000Z
2018-03-20T11:42:11.000Z
gamma_limits_sensitivity/__main__.py
JohannesBuchner/poissonregime
8047914428bb9e4f0f6fc366111d7a9d42701502
[ "MIT" ]
null
null
null
''' This is the main of the ul method paper demonstration Usage: gamma_limits_sensitivity ul --l_lim=<arg> --t_obs=<arg> --A_eff=<file> [--E_0=<arg>] [--out=<path>] gamma_limits_sensitivity sens --s_bg=<arg> --alpha=<arg> --t_obs=<arg> --A_eff=<file> [--E_0=<arg>] [--out=<path>] gamma_limits_sensitivity predict ...
36.330435
157
0.557683
798549271883e7e7ed38aee0b45c41013dbbc698
929
py
Python
srcf/database/__init__.py
danielchriscarter/srcf-python
a7143afd5340338094131a51f560efcd874457d2
[ "MIT" ]
null
null
null
srcf/database/__init__.py
danielchriscarter/srcf-python
a7143afd5340338094131a51f560efcd874457d2
[ "MIT" ]
2
2020-08-23T17:23:28.000Z
2021-04-01T18:32:11.000Z
srcf/database/__init__.py
danielchriscarter/srcf-python
a7143afd5340338094131a51f560efcd874457d2
[ "MIT" ]
3
2021-01-12T00:06:39.000Z
2021-09-26T23:31:15.000Z
import os from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker __all__ = ["MailHandler", "Member", "Society", "PendingAdmin", "LogLevel", "Domain", "HTTPSCert", "JobState", "Job", "JobLog", "RESTRICTED", "assert_readwrite", "Session", "url"] from .schema import RESTRICT...
29.967742
74
0.724435
79854a8fa47fc96ccc7bdb6534e585f152a49c1b
13,028
py
Python
project3-mlops/05-Model-Management.py
ayushisaxena12/dscc202-402-spring2022
9a12f5d981befe64a076fc186aae5b61009a30b8
[ "MIT" ]
null
null
null
project3-mlops/05-Model-Management.py
ayushisaxena12/dscc202-402-spring2022
9a12f5d981befe64a076fc186aae5b61009a30b8
[ "MIT" ]
null
null
null
project3-mlops/05-Model-Management.py
ayushisaxena12/dscc202-402-spring2022
9a12f5d981befe64a076fc186aae5b61009a30b8
[ "MIT" ]
null
null
null
# Databricks notebook source # MAGIC %md # MAGIC # Model Management # MAGIC # MAGIC An MLflow model is a standard format for packaging models that can be used on a variety of downstream tools. This lesson provides a generalizable way of handling machine learning models created in and deployed to a variety of environm...
41.227848
617
0.731041
79854bc31f299229e67d91257c629c8b5b6142de
13,405
py
Python
test/system/nvmf/initiator/automated/performance_test_ci_200GB.py
so931/poseidonos
2aa82f26bfbd0d0aee21cd0574779a655634f08c
[ "BSD-3-Clause" ]
1
2022-02-07T23:30:50.000Z
2022-02-07T23:30:50.000Z
test/system/nvmf/initiator/automated/performance_test_ci_200GB.py
so931/poseidonos
2aa82f26bfbd0d0aee21cd0574779a655634f08c
[ "BSD-3-Clause" ]
null
null
null
test/system/nvmf/initiator/automated/performance_test_ci_200GB.py
so931/poseidonos
2aa82f26bfbd0d0aee21cd0574779a655634f08c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 import os import subprocess import sys import psutil import paramiko import argparse import time from datetime import datetime raw_date = datetime.now() now_date = raw_date.strftime("%y%m%d_%H%M%S") default_pos_root = "/home/psd/ibofos/" output_dir = default_pos_root + "test/system/benchmark/output...
47.367491
407
0.664081
79854be783bd355f62ada9537e8e30c8da5d3e4a
20,174
py
Python
src/fortrace/utility/tbstuff.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
1
2022-03-31T14:01:51.000Z
2022-03-31T14:01:51.000Z
src/fortrace/utility/tbstuff.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
null
null
null
src/fortrace/utility/tbstuff.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
1
2022-03-31T14:02:30.000Z
2022-03-31T14:02:30.000Z
# Copyright (C) 2018 Sascha Kopp # This file is part of fortrace - http://fortrace.fbi.h-da.de # See the file 'docs/LICENSE' for copying permission. # Utility functions for manipulating Thunderbird profiles from __future__ import absolute_import from fortrace.utility import osenvutil from mozrunner import ThunderbirdR...
46.483871
137
0.636314
79854d3299a57511d17d5ffae0a25253ce2e269d
188
py
Python
part34/blog/forms.py
yllew36/WellyGI
7d53fac4c81bb994f61b22761e5ac7e48994ade4
[ "Apache-2.0" ]
1
2019-11-15T08:02:45.000Z
2019-11-15T08:02:45.000Z
part34/blog/forms.py
yllew36/WellyGI
7d53fac4c81bb994f61b22761e5ac7e48994ade4
[ "Apache-2.0" ]
null
null
null
part34/blog/forms.py
yllew36/WellyGI
7d53fac4c81bb994f61b22761e5ac7e48994ade4
[ "Apache-2.0" ]
null
null
null
from django import forms class PostForm(forms.Form): judul = forms.CharField(max_length=20) body = forms.CharField( widget=forms.Textarea) category = forms.CharField(max_length=20)
26.857143
42
0.771277
79854d76bbd1deea2e86325d7343054df5b54fef
9,840
py
Python
platform/gsutil/gslib/tests/test_update.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
null
null
null
platform/gsutil/gslib/tests/test_update.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
null
null
null
platform/gsutil/gslib/tests/test_update.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2013 Google Inc. All Rights Reserved. # # 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 u...
40
80
0.669106
79854db68d3833f8a0956eb28a8ef155809ee13d
1,303
py
Python
django_email_test/migrations/0001_initial.py
morlandi/django-email-test
c59ad3652a08a7e580a6888cd9c0615d20034a1f
[ "BSD-3-Clause" ]
1
2020-10-05T21:01:42.000Z
2020-10-05T21:01:42.000Z
django_email_test/migrations/0001_initial.py
morlandi/django-email-test
c59ad3652a08a7e580a6888cd9c0615d20034a1f
[ "BSD-3-Clause" ]
null
null
null
django_email_test/migrations/0001_initial.py
morlandi/django-email-test
c59ad3652a08a7e580a6888cd9c0615d20034a1f
[ "BSD-3-Clause" ]
1
2020-10-05T21:01:56.000Z
2020-10-05T21:01:56.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import datetime class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='TestEmail', fields=[ ('id', mod...
39.484848
137
0.577897
79854e87a907218313982de384fcb6ae35b43e66
957
py
Python
ir_datasets/datasets/__init__.py
allenai/ir_datasets
a3f148da5d403540457e87f987404f5a38a0c0b1
[ "Apache-2.0" ]
149
2020-11-11T19:25:52.000Z
2022-03-28T05:41:07.000Z
ir_datasets/datasets/__init__.py
allenai/ir_datasets
a3f148da5d403540457e87f987404f5a38a0c0b1
[ "Apache-2.0" ]
128
2020-11-11T13:02:54.000Z
2022-03-14T11:09:23.000Z
ir_datasets/datasets/__init__.py
allenai/ir_datasets
a3f148da5d403540457e87f987404f5a38a0c0b1
[ "Apache-2.0" ]
18
2020-11-13T03:56:18.000Z
2022-02-02T18:50:34.000Z
from . import base from . import antique from . import aol_ia from . import aquaint from . import beir from . import c4 from . import car from . import clinicaltrials from . import clirmatrix from . import clueweb09 from . import clueweb12 from . import cord19 from . import cranfield from . import dpr_w100 from . impor...
23.341463
33
0.791014
79854f1796f8a9e78a135a70290d9207ffde6ae4
3,267
py
Python
venv/Lib/site-packages/gym/envs/toy_text/guessing_game.py
RealBrandonChen/AirSim
c43b1e821454668e5c9f7181acd8f9334b83f7c0
[ "MIT" ]
null
null
null
venv/Lib/site-packages/gym/envs/toy_text/guessing_game.py
RealBrandonChen/AirSim
c43b1e821454668e5c9f7181acd8f9334b83f7c0
[ "MIT" ]
null
null
null
venv/Lib/site-packages/gym/envs/toy_text/guessing_game.py
RealBrandonChen/AirSim
c43b1e821454668e5c9f7181acd8f9334b83f7c0
[ "MIT" ]
null
null
null
import numpy as np import gym from gym import spaces from gym.utils import seeding class GuessingGame(gym.Env): """Number guessing game The object of the game is to guess within 1% of the randomly chosen number within 200 time steps After each step the agent is provided with one of four possible ob...
30.53271
92
0.631466
79854fec054a8693e003df82b494f00caf5a462a
14,704
py
Python
raiden/tests/utils/network.py
litexnetwork/raiden
b084c77e994d1f08f72947e57ce5bd6c8aa9c2a9
[ "MIT" ]
1
2018-11-26T01:40:37.000Z
2018-11-26T01:40:37.000Z
raiden/tests/utils/network.py
litexnetwork/raiden
b084c77e994d1f08f72947e57ce5bd6c8aa9c2a9
[ "MIT" ]
null
null
null
raiden/tests/utils/network.py
litexnetwork/raiden
b084c77e994d1f08f72947e57ce5bd6c8aa9c2a9
[ "MIT" ]
null
null
null
""" Utilities to set-up a Raiden network. """ from binascii import hexlify from collections import namedtuple from os import environ import gevent from gevent import server import structlog from raiden import waiting from raiden.app import App from raiden.network.blockchain_service import BlockChainService from raide...
31.689655
93
0.644314
7985508cde15f3c9f2569a1fee8a407972e17327
56,502
py
Python
player.py
JRFahham/MP3-Player
cb476560981796e1034a0d24b83e23fd6571cede
[ "MIT" ]
null
null
null
player.py
JRFahham/MP3-Player
cb476560981796e1034a0d24b83e23fd6571cede
[ "MIT" ]
null
null
null
player.py
JRFahham/MP3-Player
cb476560981796e1034a0d24b83e23fd6571cede
[ "MIT" ]
null
null
null
from tkinter import * from tkinter import filedialog from tkinter import messagebox import tkinter.ttk as ttk import pygame import base64 import time import os import random from mutagen.mp3 import MP3 janela = Tk() janela.title('MP3 Player') janela.iconbitmap(r'icon.ico') #Posicionando a janela no meio da tela larg...
65.7
2,053
0.843775
798550a09b463a631979404e2b9a82d3f9179ff0
18,086
py
Python
QUANTAXIS/QASU/main.py
bluebell136/QUANTAXIS
a29cfae597153fcbeba35f4a5369ae62eb257cd7
[ "MIT" ]
1
2020-05-08T00:55:48.000Z
2020-05-08T00:55:48.000Z
QUANTAXIS/QASU/main.py
ZerounNet/QUANTAXIS
8c88985538dde0903510d3368520b6624b03a396
[ "MIT" ]
null
null
null
QUANTAXIS/QASU/main.py
ZerounNet/QUANTAXIS
8c88985538dde0903510d3368520b6624b03a396
[ "MIT" ]
1
2020-05-08T00:55:56.000Z
2020-05-08T00:55:56.000Z
# # The MIT License (MIT) # # Copyright (c) 2016-2019 yutiansut/QUANTAXIS # # 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 u...
25.366059
101
0.68412
79855174c21ef0d19ead5d6911ae20884342b541
15,056
py
Python
electrum/gui/qt/__init__.py
spesmulla/electrum
7c283f9cd21e372b9a324f370b5376fdfe1a628b
[ "MIT" ]
1
2022-01-18T19:28:36.000Z
2022-01-18T19:28:36.000Z
electrum/gui/qt/__init__.py
craigraw/electrum
7c283f9cd21e372b9a324f370b5376fdfe1a628b
[ "MIT" ]
null
null
null
electrum/gui/qt/__init__.py
craigraw/electrum
7c283f9cd21e372b9a324f370b5376fdfe1a628b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2012 thomasv@gitorious # # 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 witho...
39.51706
143
0.631642
798551caf83b3268664ddb8d95c3a6032a15634b
3,792
py
Python
tools/vis_saliency.py
daniel-ho/seg-nbdt
ebbe3551671fb4301b0fb32fdd665c6ed3cc3fde
[ "MIT" ]
10
2020-06-15T03:03:59.000Z
2021-08-08T23:33:04.000Z
tools/vis_saliency.py
daniel-ho/seg-nbdt
ebbe3551671fb4301b0fb32fdd665c6ed3cc3fde
[ "MIT" ]
null
null
null
tools/vis_saliency.py
daniel-ho/seg-nbdt
ebbe3551671fb4301b0fb32fdd665c6ed3cc3fde
[ "MIT" ]
3
2020-12-19T04:22:56.000Z
2021-01-23T14:35:06.000Z
"""Generates interactive HTML visualization. In this visualization, your cursor position is discretized to a 50x50 bin, and the corresponding image is shown. To use, output saliency maps to a directory of your choosing (by default, ./images, from whatever directory you're in). This script will iterate over all images...
29.858268
116
0.584652
798551d7c51c0b3c561c637bccce24b4db035713
8,860
py
Python
lib/python2.7/site-packages/pyowm/utils/timeutils.py
briansok/derpi
0e111a84b17ce8caeb60d2899957a0a24cab47b3
[ "MIT" ]
2
2017-03-23T13:40:11.000Z
2018-09-17T18:14:59.000Z
env/lib/python3.5/site-packages/pyowm/utils/timeutils.py
mpvoss/RickAndMortyWeatherTweets
0ce804dccd0cdee9dfaba015e596f69e08513cdb
[ "MIT" ]
162
2019-08-25T19:14:18.000Z
2021-05-10T19:16:30.000Z
env/lib/python3.5/site-packages/pyowm/utils/timeutils.py
mpvoss/RickAndMortyWeatherTweets
0ce804dccd0cdee9dfaba015e596f69e08513cdb
[ "MIT" ]
1
2019-03-07T04:30:36.000Z
2019-03-07T04:30:36.000Z
""" Module containing utility functions for time values generation/management """ from pyowm.utils import timeformatutils from datetime import datetime, date, timedelta def now(timeformat='date'): """ Returns the current time in the specified timeformat. :param timeformat: the target format for the time ...
35.725806
79
0.672009
7985520436b3a6460fd7beb79402db5ac71a820b
314
py
Python
examples/turnstile.py
xitop/edzed
dbe89942e3316a4ee6e98d24111002ffe794ad08
[ "MIT" ]
null
null
null
examples/turnstile.py
xitop/edzed
dbe89942e3316a4ee6e98d24111002ffe794ad08
[ "MIT" ]
null
null
null
examples/turnstile.py
xitop/edzed
dbe89942e3316a4ee6e98d24111002ffe794ad08
[ "MIT" ]
null
null
null
import asyncio from edzed import FSM, demo class Turnstile(FSM): STATES = ['locked', 'unlocked'] EVENTS = [ ['coin', ['locked'], 'unlocked'], ['push', ['unlocked'], 'locked'], ] Turnstile('ts', comment="example turnstile") if __name__ == '__main__': asyncio.run(demo.run_demo())
20.933333
44
0.598726
7985524c7dacc74de01fca915c62bb27de1cbd2b
9,391
py
Python
gslib/tests/test_compose.py
maxbube/gsutil
5939cdadbb1617191f6f66ad5635b16509ebb217
[ "Apache-2.0" ]
1
2021-09-01T04:06:56.000Z
2021-09-01T04:06:56.000Z
gslib/tests/test_compose.py
maxbube/gsutil
5939cdadbb1617191f6f66ad5635b16509ebb217
[ "Apache-2.0" ]
null
null
null
gslib/tests/test_compose.py
maxbube/gsutil
5939cdadbb1617191f6f66ad5635b16509ebb217
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2013 Google Inc. 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 require...
45.149038
80
0.670962
798552508277d6347aa18759623b6724560d6807
5,324
py
Python
src/data/input_logger.py
crypdick/dickbit
ce4b93a3ffe668c3538943e21cb2e3701264cd91
[ "FTL" ]
null
null
null
src/data/input_logger.py
crypdick/dickbit
ce4b93a3ffe668c3538943e21cb2e3701264cd91
[ "FTL" ]
null
null
null
src/data/input_logger.py
crypdick/dickbit
ce4b93a3ffe668c3538943e21cb2e3701264cd91
[ "FTL" ]
null
null
null
# https://stackoverflow.com/a/19581754/4212158 import cairo import gtk from PIL import Image import time import string import random import os import gobject, threading from utils import XboxController import csv gobject.threads_init() SREENSHOT_SAVE_DIR ABS_PATH = os.path.abspath(os.path.dirname(__file__)) VID_DIR =...
34.128205
120
0.636927
7985525b755866f352fb81341b94f446ac129a44
4,536
py
Python
Oblig1/evaluation.py
fabiorodp/IN5550_Neural_Methods_in_Natural_Language_Processing
4d3b2ed56b56e016413ae1544e19ad2a2c0ef047
[ "MIT" ]
null
null
null
Oblig1/evaluation.py
fabiorodp/IN5550_Neural_Methods_in_Natural_Language_Processing
4d3b2ed56b56e016413ae1544e19ad2a2c0ef047
[ "MIT" ]
null
null
null
Oblig1/evaluation.py
fabiorodp/IN5550_Neural_Methods_in_Natural_Language_Processing
4d3b2ed56b56e016413ae1544e19ad2a2c0ef047
[ "MIT" ]
null
null
null
# Author: Fabio Rodrigues Pereira # E-mail: fabior@uio.no # Author: Per Morten Halvorsen # E-mail: pmhalvor@uio.no # Author: Eivind Grønlie Guren # E-mail: eivindgg@ifi.uio.no from packages.preprocessing import Signal20Dataset from packages.ann_models import MLPModel_wl from packages.ann_models import MLPModel from ...
24.518919
71
0.622354
7985534379e69d333c4e37d1223f2586a4077fc6
114
py
Python
chatbot/webapp/app/test_intent.py
Bansari-Barot/e-learning-tool
a4c8da3491f901a29bb7f109942b44a0f7061b92
[ "MIT" ]
null
null
null
chatbot/webapp/app/test_intent.py
Bansari-Barot/e-learning-tool
a4c8da3491f901a29bb7f109942b44a0f7061b92
[ "MIT" ]
null
null
null
chatbot/webapp/app/test_intent.py
Bansari-Barot/e-learning-tool
a4c8da3491f901a29bb7f109942b44a0f7061b92
[ "MIT" ]
1
2020-07-22T20:24:26.000Z
2020-07-22T20:24:26.000Z
from intent import create_intent if __name__ == "__main__": file="f2.csv" create_intent.create_json(file)
22.8
35
0.736842
798554cac046eaefbe6130f0234a87051188113f
963
py
Python
adafruit_io/adafruit_io_using_requests/feed_response.py
brucestull/Arduino
9ae47eabd515fb7d657f00d40b483464eca2dc65
[ "MIT" ]
1
2021-12-15T02:48:33.000Z
2021-12-15T02:48:33.000Z
adafruit_io/adafruit_io_using_requests/feed_response.py
brucestull/Arduino
9ae47eabd515fb7d657f00d40b483464eca2dc65
[ "MIT" ]
null
null
null
adafruit_io/adafruit_io_using_requests/feed_response.py
brucestull/Arduino
9ae47eabd515fb7d657f00d40b483464eca2dc65
[ "MIT" ]
null
null
null
import pprint data = {'created_at': '2021-12-15T01:14:28Z', 'description': 'Measured temperature by the Si7021 sensor connected to ' 'Adafruit Feather Huzzah32.', 'enabled': True, 'feed_status_changes': [], 'feed_webhook_receivers': [], 'group': {'id': 55706, 'key': 'feather-iot', ...
27.514286
73
0.599169
7985566ff949a8b5da2cc948c6c1bf76fc6d8951
462
py
Python
services/wiki_facts/test_wiki_facts.py
oserikov/dream
109ba2df799025dcdada1fddbb7380e1c03100eb
[ "Apache-2.0" ]
34
2021-08-18T14:51:44.000Z
2022-03-10T14:14:48.000Z
services/wiki_facts/test_wiki_facts.py
oserikov/dream
109ba2df799025dcdada1fddbb7380e1c03100eb
[ "Apache-2.0" ]
27
2021-08-30T14:42:09.000Z
2022-03-17T22:11:45.000Z
services/wiki_facts/test_wiki_facts.py
oserikov/dream
109ba2df799025dcdada1fddbb7380e1c03100eb
[ "Apache-2.0" ]
40
2021-08-22T07:13:32.000Z
2022-03-29T11:45:32.000Z
import requests def main(): url = "http://0.0.0.0:8116/respond" request_data = [{"wikihow_titles": [["Photograph-Pets"]]}] count = 0 for data in request_data: res = requests.post(url, json=data, timeout=1.0).json() if res and res[0]["wikihow_content"]: count += 1 el...
23.1
63
0.575758
798556a493975f324b5d7bcab5e795f506b142bc
31,164
py
Python
opendebates/tests/test_moderation.py
jessamynsmith/django-opendebates
bf4eb3a42a8caf3d31c5cc1c823b4abc853e6c9c
[ "Apache-2.0" ]
null
null
null
opendebates/tests/test_moderation.py
jessamynsmith/django-opendebates
bf4eb3a42a8caf3d31c5cc1c823b4abc853e6c9c
[ "Apache-2.0" ]
2
2018-08-24T04:02:58.000Z
2018-08-24T04:09:14.000Z
opendebates/tests/test_moderation.py
jessamynsmith/django-opendebates
bf4eb3a42a8caf3d31c5cc1c823b4abc853e6c9c
[ "Apache-2.0" ]
1
2018-10-02T18:39:05.000Z
2018-10-02T18:39:05.000Z
from functools import partial from httplib import FORBIDDEN, NOT_FOUND, OK import json import os from django.contrib.sites.models import Site from django.core.urlresolvers import reverse from django.test import TestCase from opendebates.models import Submission, Vote, Flag, ZipCode from .factories import (UserFactory...
43.831224
100
0.67594
79855759a8fce0039d0c9631d7c267f792fe76d9
3,381
py
Python
util/design/gen-otp-mmap.py
msfschaffner/opentitan-bak
de4cb1bb9e7b707a3ca2a6882d83af7ed2aa1ab8
[ "Apache-2.0" ]
null
null
null
util/design/gen-otp-mmap.py
msfschaffner/opentitan-bak
de4cb1bb9e7b707a3ca2a6882d83af7ed2aa1ab8
[ "Apache-2.0" ]
2
2021-11-01T15:02:37.000Z
2022-01-17T14:34:36.000Z
util/design/gen-otp-mmap.py
msfschaffner/opentitan-bak
de4cb1bb9e7b707a3ca2a6882d83af7ed2aa1ab8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 r"""Generate RTL and documentation collateral from OTP memory map definition file (hjson). """ import argparse import logging as log import random fro...
33.147059
82
0.625555
798557f532489e9e69fb9f2f30640acad673cf22
7,555
py
Python
ppo/main.py
zhl2007/pytorch-image-quality-param-ctrl
78fa5a00fda9b54a1c558ee54b9b6d0a4f30f915
[ "MIT" ]
18
2017-10-31T01:54:47.000Z
2021-05-22T02:46:00.000Z
ppo/main.py
zhl2007/pytorch-image-quality-param-ctrl
78fa5a00fda9b54a1c558ee54b9b6d0a4f30f915
[ "MIT" ]
1
2017-11-14T10:21:04.000Z
2017-11-14T10:21:04.000Z
ppo/main.py
zhl2007/pytorch-image-quality-param-ctrl
78fa5a00fda9b54a1c558ee54b9b6d0a4f30f915
[ "MIT" ]
5
2018-08-02T09:18:37.000Z
2020-09-28T09:55:34.000Z
import copy import glob import torch.optim as optim from torch.autograd import Variable from torch.utils.data.sampler import BatchSampler, SubsetRandomSampler from arguments import get_args from model import CNNPolicy, MLPPolicy from storage import RolloutStorage from usb_cam_env import * ENV_IMG_W = 640 ENV_IMG_H =...
39.554974
165
0.603971
7985583d1d62ae0bb7e10421865991724db6be2c
861
py
Python
spond/__init__.py
KengoA/spond
06abe6b8825b86f4ebf81b38a1a59e5b9e5f0a24
[ "Apache-2.0" ]
null
null
null
spond/__init__.py
KengoA/spond
06abe6b8825b86f4ebf81b38a1a59e5b9e5f0a24
[ "Apache-2.0" ]
null
null
null
spond/__init__.py
KengoA/spond
06abe6b8825b86f4ebf81b38a1a59e5b9e5f0a24
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 The Spond 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 ...
30.75
78
0.678281
79855963b62c06d948ce77e52d4c531b41de8d73
3,340
py
Python
examples/v3arch/asyncore/manager/ntfrcv/observe-request-processing-over-ipv4-and-ipv6.py
pysnmp/pysnmp
f1262dcb741bf1559a301c44bf0b727e8f45837c
[ "BSD-2-Clause" ]
4
2022-03-05T01:09:30.000Z
2022-03-31T15:34:00.000Z
examples/v3arch/asyncore/manager/ntfrcv/observe-request-processing-over-ipv4-and-ipv6.py
pysnmp/pysnmp
f1262dcb741bf1559a301c44bf0b727e8f45837c
[ "BSD-2-Clause" ]
2
2021-11-24T13:40:47.000Z
2021-11-25T09:48:47.000Z
examples/v3arch/asyncore/manager/ntfrcv/observe-request-processing-over-ipv4-and-ipv6.py
pysnmp/pysnmp
f1262dcb741bf1559a301c44bf0b727e8f45837c
[ "BSD-2-Clause" ]
1
2022-02-12T09:15:39.000Z
2022-02-12T09:15:39.000Z
""" Observe SNMP engine internal operations +++++++++++++++++++++++++++++++++++++++ Receive SNMP TRAP/INFORM messages with the following options: * SNMPv1/SNMPv2c * with SNMP community "public" * over IPv4/UDP, listening at 127.0.0.1:162 over IPv6/UDP, listening at [::1]:162 * registers its own execution observer t...
34.081633
106
0.705689
798559c70f70a65776291ecc978eeef1984e16b7
390
py
Python
test/transforms/test_normalize_scale.py
NucciTheBoss/pytorch_geometric
e220a2c08fa1b2f1672d616c22eac2a67b5c8967
[ "MIT" ]
2,350
2021-09-12T08:32:50.000Z
2022-03-31T18:09:36.000Z
test/transforms/test_normalize_scale.py
NucciTheBoss/pytorch_geometric
e220a2c08fa1b2f1672d616c22eac2a67b5c8967
[ "MIT" ]
588
2021-09-12T08:49:08.000Z
2022-03-31T21:02:13.000Z
test/transforms/test_normalize_scale.py
NucciTheBoss/pytorch_geometric
e220a2c08fa1b2f1672d616c22eac2a67b5c8967
[ "MIT" ]
505
2021-09-13T13:13:32.000Z
2022-03-31T15:54:00.000Z
import torch from torch_geometric.data import Data from torch_geometric.transforms import NormalizeScale def test_normalize_scale(): assert NormalizeScale().__repr__() == 'NormalizeScale()' pos = torch.randn((10, 3)) data = Data(pos=pos) data = NormalizeScale()(data) assert len(data) == 1 a...
22.941176
60
0.682051
79855a2f8f7637752d6f08837ac1ad417dc08446
2,866
py
Python
analysis/cluster_HAC_get_medoids.py
SpencerEricksen/PCBA_downloads_oxphos
62f5b7a6faf2743afa31368d3e8d529e248c815d
[ "MIT" ]
null
null
null
analysis/cluster_HAC_get_medoids.py
SpencerEricksen/PCBA_downloads_oxphos
62f5b7a6faf2743afa31368d3e8d529e248c815d
[ "MIT" ]
null
null
null
analysis/cluster_HAC_get_medoids.py
SpencerEricksen/PCBA_downloads_oxphos
62f5b7a6faf2743afa31368d3e8d529e248c815d
[ "MIT" ]
null
null
null
#!/home/ssericksen/anaconda2/bin/python from sklearn.cluster import AgglomerativeClustering from sklearn.neighbors import DistanceMetric from itertools import combinations def clst_medoids( num_clusters, fps_file ): '''given num_clusters and a CSV of chemical fingerprints (binary strings), return a cluste...
39.260274
122
0.683182
79855ac39aaaa693d36648403e3fe295ff92298f
27,219
py
Python
gnupg/_util.py
Lin-UN/shadowsocks-mod
1061c3d899ec40b66c84cecb4c8f985bedc94016
[ "Apache-2.0" ]
122
2018-03-29T08:35:55.000Z
2022-03-23T02:41:22.000Z
gnupg/_util.py
aiastia/testssr
070e72964ab3ebcd6c63c3ada39ee188b1fadf1d
[ "Apache-2.0" ]
14
2021-01-05T06:58:04.000Z
2022-02-04T19:06:02.000Z
gnupg/_util.py
aiastia/testssr
070e72964ab3ebcd6c63c3ada39ee188b1fadf1d
[ "Apache-2.0" ]
255
2018-03-29T05:48:15.000Z
2021-11-17T08:10:31.000Z
# -*- coding: utf-8 -*- # # This file is part of python-gnupg, a Python interface to GnuPG. # Copyright © 2013 Isis Lovecruft, <isis@leap.se> 0xA3ADB67A2CDB8B35 # © 2013 Andrej B. # © 2013 LEAP Encryption Access Project # © 2008-2012 Vinay Sajip # © 2005 Steve Traugott # ...
34.194724
85
0.611815
79855b823426b7dc74df5790e455af1aad85229c
4,947
py
Python
code/emergence.py
takaratruong/emergent-generalization
20de15ee6514dba48b48c76d8cd9289d62966932
[ "MIT" ]
10
2021-06-06T01:07:54.000Z
2022-02-27T22:34:06.000Z
code/emergence.py
takaratruong/emergent-generalization
20de15ee6514dba48b48c76d8cd9289d62966932
[ "MIT" ]
null
null
null
code/emergence.py
takaratruong/emergent-generalization
20de15ee6514dba48b48c76d8cd9289d62966932
[ "MIT" ]
1
2021-07-16T18:11:23.000Z
2021-07-16T18:11:23.000Z
""" Tools for measuring emergence of communication """ from typing import Callable, Union from scipy.spatial import distance from scipy.stats import spearmanr import editdistance from collections import Counter, defaultdict import numpy as np from sklearn.metrics import normalized_mutual_info_score import torch de...
29.446429
129
0.658177
79855bc342bf53f99850dcd106aee458fbd070da
2,351
py
Python
umm-python/app/web/rest/API_ROUTES.py
suomitek/cubeai
cc4c0f5f445a552d239910da63944307c1f06e37
[ "Apache-2.0" ]
null
null
null
umm-python/app/web/rest/API_ROUTES.py
suomitek/cubeai
cc4c0f5f445a552d239910da63944307c1f06e37
[ "Apache-2.0" ]
null
null
null
umm-python/app/web/rest/API_ROUTES.py
suomitek/cubeai
cc4c0f5f445a552d239910da63944307c1f06e37
[ "Apache-2.0" ]
null
null
null
from .health_check import HealthChecker from .hello import Hello from .solution_api import SolutionApiA, SolutionApiB from .artifact_api import ArtifactApiA, ArtifactApiB from .document_api import DocumentApiA, DocumentApiB from .description_api import DescriptionApiA, DescriptionApiB from .task_api import TaskApiA, Ta...
43.537037
90
0.725223
79855bea4af7cb7bc0ea4f3f379919dce3dd3897
412
py
Python
common/urls.py
mrdvince/dgenie
0a901409a9c547d27212e330ad4fce31dc24de83
[ "Apache-2.0" ]
null
null
null
common/urls.py
mrdvince/dgenie
0a901409a9c547d27212e330ad4fce31dc24de83
[ "Apache-2.0" ]
null
null
null
common/urls.py
mrdvince/dgenie
0a901409a9c547d27212e330ad4fce31dc24de83
[ "Apache-2.0" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path("register/", views.register, name="register"), path("login/", views.login, name="login"), path("user/", views.user_api_view, name="user"), path("logout/", views.logout, name="logout"), path("user/info/", views.user_info, name="p...
31.692308
79
0.667476
79855bfb5ac54a7c4f19291e0f2d5258b3a0ecb6
1,026
py
Python
python/spinn/util/evalb.py
woojinchung/lms
d7b1cfa582105b99332b3695dd479f0ed6f39f93
[ "Apache-2.0" ]
3
2017-11-13T21:17:34.000Z
2018-03-19T10:48:59.000Z
python/spinn/util/evalb.py
woojinchung/lms
d7b1cfa582105b99332b3695dd479f0ed6f39f93
[ "Apache-2.0" ]
null
null
null
python/spinn/util/evalb.py
woojinchung/lms
d7b1cfa582105b99332b3695dd479f0ed6f39f93
[ "Apache-2.0" ]
null
null
null
""" Based on C code from: http://nlp.cs.nyu.edu/evalb/ """ def bracketing(ts): buf = range((len(ts)+1)/2 + 1) buf = list(reversed(zip(buf[:-1], buf[1:]))) stack = [] ret = [] for t in ts: if t == 0: stack.append(buf.pop()) elif t == 1: R, L = stack.pop(), st...
25.65
69
0.424951
79855c1b2206e67caa4885399898ed9c6ca25583
4,602
py
Python
pytorch_rl/main.py
pulkitkatdare/baby-ai-game
e00e35d40a0d873f63098527751c3db87ccfae41
[ "BSD-3-Clause" ]
null
null
null
pytorch_rl/main.py
pulkitkatdare/baby-ai-game
e00e35d40a0d873f63098527751c3db87ccfae41
[ "BSD-3-Clause" ]
null
null
null
pytorch_rl/main.py
pulkitkatdare/baby-ai-game
e00e35d40a0d873f63098527751c3db87ccfae41
[ "BSD-3-Clause" ]
null
null
null
import copy import glob import os import time import operator from functools import reduce import gym import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.autograd import Variable from common.arguments import get_args from agent import PPO, A2C, ...
33.107914
134
0.749239
79855c703361fab31c691584da25deeee106c631
1,101
py
Python
pbgpp/BGP/Update/PathAttributes/Unknown.py
pierky/pbgp-parser
405c00669fe2313dc06a59307cb2968e0487050a
[ "Apache-2.0" ]
null
null
null
pbgpp/BGP/Update/PathAttributes/Unknown.py
pierky/pbgp-parser
405c00669fe2313dc06a59307cb2968e0487050a
[ "Apache-2.0" ]
null
null
null
pbgpp/BGP/Update/PathAttributes/Unknown.py
pierky/pbgp-parser
405c00669fe2313dc06a59307cb2968e0487050a
[ "Apache-2.0" ]
2
2019-05-17T13:19:48.000Z
2022-01-28T11:37:16.000Z
# # This file is part of PCAP BGP Parser (pbgpp) # # Copyright 2016 DE-CIX Management GmbH # Author: Tobias Hannaske <tobias.hannaske@de-cix.net> # # 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 ...
29.756757
74
0.728429
79855d1a79e2f435a7a76ea8773ad00dcf3a4226
14,288
py
Python
google/cloud/osconfig_v1/types/patch_deployments.py
renovate-bot/python-os-conf
4465cfd72aaab6446295fe486dbff9e16b387ff0
[ "Apache-2.0" ]
5
2020-06-12T03:34:41.000Z
2021-10-07T02:01:33.000Z
google/cloud/osconfig_v1/types/patch_deployments.py
renovate-bot/python-os-conf
4465cfd72aaab6446295fe486dbff9e16b387ff0
[ "Apache-2.0" ]
55
2020-06-11T18:16:38.000Z
2022-03-07T17:05:19.000Z
google/cloud/osconfig_v1/types/patch_deployments.py
renovate-bot/python-os-conf
4465cfd72aaab6446295fe486dbff9e16b387ff0
[ "Apache-2.0" ]
4
2020-06-10T02:25:34.000Z
2022-01-29T08:13:08.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google 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...
39.038251
110
0.674342
79855d488319d5acf09dd19fb0978353925eefef
3,456
py
Python
stix_shifter/stix_transmission/src/modules/utils/RestApiClient.py
dchun1194/stix-shifter
c9e860342d44111f56e6bf09dd955769544b30a0
[ "Apache-2.0" ]
null
null
null
stix_shifter/stix_transmission/src/modules/utils/RestApiClient.py
dchun1194/stix-shifter
c9e860342d44111f56e6bf09dd955769544b30a0
[ "Apache-2.0" ]
null
null
null
stix_shifter/stix_transmission/src/modules/utils/RestApiClient.py
dchun1194/stix-shifter
c9e860342d44111f56e6bf09dd955769544b30a0
[ "Apache-2.0" ]
2
2019-06-26T19:23:52.000Z
2019-07-09T15:33:16.000Z
import requests import sys import collections import urllib.parse import os import errno # This is a simple HTTP client that can be used to access the REST API class RestApiClient: def __init__(self, host, port = None, cert=None, headers={}, url_modifier_function=None, cert_verify=True): server_ip = host ...
37.16129
140
0.563368
79855d7c4b07cc3cd67f33534808ea70618f3181
3,027
py
Python
examples/automlbechmark/run_experiments/credit/credit_optuna/randomforest_sklearn.py
jianzhnie/AutoTabular
fb407300adf97532a26d33f7442d2a606fa30512
[ "Apache-2.0" ]
48
2021-09-06T08:09:26.000Z
2022-03-28T13:02:54.000Z
examples/automlbechmark/run_experiments/credit/credit_optuna/randomforest_sklearn.py
Fanxingye/Autotabular
d630c78290a52f8c73885afb16884e18135c34f6
[ "Apache-2.0" ]
null
null
null
examples/automlbechmark/run_experiments/credit/credit_optuna/randomforest_sklearn.py
Fanxingye/Autotabular
d630c78290a52f8c73885afb16884e18135c34f6
[ "Apache-2.0" ]
7
2021-09-23T07:28:46.000Z
2021-10-02T21:15:18.000Z
"""Optuna example that optimizes a classifier configuration for cancer dataset using XGBoost. In this example, we optimize the validation accuracy of cancer detection using XGBoost. We optimize both the choice of booster model and its hyperparameters. """ import optuna import pandas as pd from autofe.get_feature impo...
37.37037
157
0.701024
79855d9c5b39cbe124d8973cda92bb9fa2b26aeb
397
py
Python
uai_pharma/asgi.py
EnzoSoares73/uai_pharma
271bdb52c0f7325057fabde4296b35d4859eaa01
[ "MIT" ]
null
null
null
uai_pharma/asgi.py
EnzoSoares73/uai_pharma
271bdb52c0f7325057fabde4296b35d4859eaa01
[ "MIT" ]
null
null
null
uai_pharma/asgi.py
EnzoSoares73/uai_pharma
271bdb52c0f7325057fabde4296b35d4859eaa01
[ "MIT" ]
null
null
null
""" ASGI config for uai_pharma project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SE...
23.352941
78
0.788413
79855da48885a9b10f729e6125f5c594954e28e1
1,562
py
Python
minimum_path_sum.py
pranavdave893/Leetcode
1f30ea37af7b60585d168b15d9397143f53c92a1
[ "MIT" ]
null
null
null
minimum_path_sum.py
pranavdave893/Leetcode
1f30ea37af7b60585d168b15d9397143f53c92a1
[ "MIT" ]
null
null
null
minimum_path_sum.py
pranavdave893/Leetcode
1f30ea37af7b60585d168b15d9397143f53c92a1
[ "MIT" ]
null
null
null
class Solution(object): def minPathSum(self, grid): """ :type grid: List[List[int]] :rtype: int """ if not grid or not grid[0]: return 0 R = len(grid) C = len(grid[0]) dp = [[0]*C for _ in range(R)] ...
23.313433
71
0.323944
79855da850a61452fdc7b724f60605917f6c6283
154
py
Python
robomaster_sdk_test.py
ShihaoLuo/tello_project
e7500f6122e23723f651ecd54f3e6016c17e292e
[ "MIT" ]
null
null
null
robomaster_sdk_test.py
ShihaoLuo/tello_project
e7500f6122e23723f651ecd54f3e6016c17e292e
[ "MIT" ]
null
null
null
robomaster_sdk_test.py
ShihaoLuo/tello_project
e7500f6122e23723f651ecd54f3e6016c17e292e
[ "MIT" ]
null
null
null
import robomaster from robomaster import robot tl = robot.Drone() robomaster.config.LOCAL_IP_STR = '192.168.1.101' tl.initialize('sta') robomaster.flight
22
48
0.792208
79855ddef958991fadf5762c466b836fbc842915
2,223
py
Python
setup.py
axru5812/pysynphot
527cb4ce55355c78ace5130a2fd8ca81a31ac1e6
[ "BSD-3-Clause" ]
null
null
null
setup.py
axru5812/pysynphot
527cb4ce55355c78ace5130a2fd8ca81a31ac1e6
[ "BSD-3-Clause" ]
null
null
null
setup.py
axru5812/pysynphot
527cb4ce55355c78ace5130a2fd8ca81a31ac1e6
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import os import pkgutil import sys from glob import glob from numpy import get_include as np_include from setuptools import setup, Extension from subprocess import check_call, CalledProcessError if not pkgutil.find_loader('relic'): relic_local = os.path.exists('relic') relic_submodule =...
32.217391
82
0.602339
79855df3add6f2db1d1fe242a9a622081019abe6
9,449
py
Python
tencentcloud/cis/v20180408/cis_client.py
snowxmas/tencentcloud-sdk-python
fb527dcfc6b52a210e79d581f85cb8cde1ea9c85
[ "Apache-2.0" ]
46
2019-03-01T02:19:18.000Z
2021-12-18T12:37:02.000Z
tencentcloud/cis/v20180408/cis_client.py
snowxmas/tencentcloud-sdk-python
fb527dcfc6b52a210e79d581f85cb8cde1ea9c85
[ "Apache-2.0" ]
8
2019-01-22T10:46:43.000Z
2020-12-30T13:03:04.000Z
tencentcloud/cis/v20180408/cis_client.py
snowxmas/tencentcloud-sdk-python
fb527dcfc6b52a210e79d581f85cb8cde1ea9c85
[ "Apache-2.0" ]
67
2018-10-29T09:50:49.000Z
2022-01-06T07:35:56.000Z
# -*- coding: utf8 -*- # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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...
42.755656
104
0.624616
79855ea25cf91f2832ddf371138b6ae348a0cc56
2,290
py
Python
tempest/tests/lib/services/compute/test_assisted_volume_snapshots_client.py
cityofships/tempest
59aa6811a3664d88b8939603b8e974644fbe21fa
[ "Apache-2.0" ]
254
2015-01-05T19:22:52.000Z
2022-03-29T08:14:54.000Z
tempest/tests/lib/services/compute/test_assisted_volume_snapshots_client.py
cityofships/tempest
59aa6811a3664d88b8939603b8e974644fbe21fa
[ "Apache-2.0" ]
13
2015-03-02T15:53:04.000Z
2022-02-16T02:28:14.000Z
tempest/tests/lib/services/compute/test_assisted_volume_snapshots_client.py
cityofships/tempest
59aa6811a3664d88b8939603b8e974644fbe21fa
[ "Apache-2.0" ]
367
2015-01-07T15:05:39.000Z
2022-03-04T09:50:35.000Z
# Copyright 2017 AT&T. # # 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...
42.407407
78
0.721834
798561259b06b9703a27d3caa062c7aced0fed09
26,984
py
Python
paida-3.2.1_2.10.1/paida/math/optimize/pyoptimize.py
AshleyChraya/HubbleConstant-ConstraintsForVCG
634c15d296147ec1cdc3c92af1fbbfeb17844586
[ "MIT" ]
null
null
null
paida-3.2.1_2.10.1/paida/math/optimize/pyoptimize.py
AshleyChraya/HubbleConstant-ConstraintsForVCG
634c15d296147ec1cdc3c92af1fbbfeb17844586
[ "MIT" ]
null
null
null
paida-3.2.1_2.10.1/paida/math/optimize/pyoptimize.py
AshleyChraya/HubbleConstant-ConstraintsForVCG
634c15d296147ec1cdc3c92af1fbbfeb17844586
[ "MIT" ]
null
null
null
### NOTICE ### # pyoptimize.py module by Koji KISHIMOTO (korry@users.sourceforge.net) # # This is pure python, and able to limit, constraint or fix parameters. from paida.paida_core.PAbsorber import * from math import sin, cos, tan, e, pi, asin, exp, log, sqrt import random try: import threading except ImportError: ...
33.562189
254
0.735325
7985618f8e5cdb7665de0693d19bb5ac09863487
2,489
py
Python
lib/nodes/util.py
velexi-corporation/rsi-2020-bemish
3454ecdff66802494d5c3c1678767fddc42d72b6
[ "Apache-2.0" ]
1
2021-07-11T00:50:22.000Z
2021-07-11T00:50:22.000Z
lib/nodes/util.py
velexi-corporation/rsi-2020-bemish
3454ecdff66802494d5c3c1678767fddc42d72b6
[ "Apache-2.0" ]
null
null
null
lib/nodes/util.py
velexi-corporation/rsi-2020-bemish
3454ecdff66802494d5c3c1678767fddc42d72b6
[ "Apache-2.0" ]
null
null
null
from math import exp from numba import jit import numpy as np import scipy.integrate import time @jit(nopython=True, parallel=True) def foldiak_func(l, inside): return 1.0/(1.0+np.exp(-1 * l * inside)) def weightsum(xarr, qarr): return np.matmul(xarr,qarr) class FoldiakShapedDiffEq: def __init__...
37.149254
126
0.598232
798561f0ec4a88bcafc78adf605ec9dca5e32ed6
20,051
py
Python
Project 7 -- Melanoma Cancer Detection with Deep Learning, CNN using TensorFlow/Inception.py
Vauke/Deep-Neural-Networks-HealthCare
a6e0cc9d44e06ab3b3f3a947c512ca25f3e17a14
[ "MIT" ]
2
2019-05-15T11:05:17.000Z
2019-05-16T16:31:49.000Z
Project 7 -- Melanoma Cancer Detection with Deep Learning, CNN using TensorFlow/Inception.py
Vauke/Deep-Neural-Networks-HealthCare
a6e0cc9d44e06ab3b3f3a947c512ca25f3e17a14
[ "MIT" ]
7
2020-09-26T01:27:55.000Z
2022-01-13T03:14:02.000Z
Project 7 -- Melanoma Cancer Detection with Deep Learning, CNN using TensorFlow/Inception.py
Vauke/Deep-Neural-Networks-HealthCare
a6e0cc9d44e06ab3b3f3a947c512ca25f3e17a14
[ "MIT" ]
3
2020-01-20T09:58:08.000Z
2021-03-25T18:29:49.000Z
import tensorflow as tf import numpy as np from tensorflow.python.framework import tensor_shape class InceptionV3: bottleneckTensor = None finalTensor = None groundTruthInput = None trainStep = None evaluationStep = None bottleneckInput = None inceptionGraph = None jpeg_data_tensor...
70.85159
279
0.547953
79856204af58f75752ce15961f457704b34eef48
5,675
py
Python
gravity_toolkit/plm_holmes.py
yaramohajerani/read-GRACE-harmonics
aa48506a64860809249164a9bcaebf679d41f6ff
[ "MIT" ]
null
null
null
gravity_toolkit/plm_holmes.py
yaramohajerani/read-GRACE-harmonics
aa48506a64860809249164a9bcaebf679d41f6ff
[ "MIT" ]
null
null
null
gravity_toolkit/plm_holmes.py
yaramohajerani/read-GRACE-harmonics
aa48506a64860809249164a9bcaebf679d41f6ff
[ "MIT" ]
null
null
null
#!/usr/bin/env python u""" plm_holmes.py Written by Tyler Sutterley (08/2020) Computes fully-normalized associated Legendre Polynomials for a vector of x values (can also be singular) Uses Holmes and Featherstone (2002) recursion relation This recursion relation is better conditioned for high degree and orde...
35.030864
89
0.60652
7985623da83fb856ae291d51ada6b2568faf67a5
58
py
Python
thefarm/door/__init__.py
harmsm/thefarm
27bb3acb01de7bb36c4571f4dc0a284781fac06d
[ "MIT" ]
null
null
null
thefarm/door/__init__.py
harmsm/thefarm
27bb3acb01de7bb36c4571f4dc0a284781fac06d
[ "MIT" ]
null
null
null
thefarm/door/__init__.py
harmsm/thefarm
27bb3acb01de7bb36c4571f4dc0a284781fac06d
[ "MIT" ]
null
null
null
__all__ = ["door"] from .door import DoorException, Door
14.5
37
0.724138
798562f589064ea8c21b1f27bb85e50cd8dd1222
45,230
py
Python
sdk/peering/azure-mgmt-peering/azure/mgmt/peering/models/_models.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/peering/azure-mgmt-peering/azure/mgmt/peering/models/_models.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/peering/azure-mgmt-peering/azure/mgmt/peering/models/_models.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
37.944631
109
0.651736
79856357cb6fa8018dc0b57c16df224d1ec841dc
434
py
Python
day-06/part-1/loic.py
lypnol/adventofcode-2017
03ced3df3eb80e5c7965c4120e3932919067cb15
[ "MIT" ]
16
2017-12-02T11:56:25.000Z
2018-02-10T15:09:23.000Z
day-06/part-1/loic.py
lypnol/adventofcode-2017
03ced3df3eb80e5c7965c4120e3932919067cb15
[ "MIT" ]
19
2017-12-01T07:54:22.000Z
2017-12-19T17:41:02.000Z
day-06/part-1/loic.py
lypnol/adventofcode-2017
03ced3df3eb80e5c7965c4120e3932919067cb15
[ "MIT" ]
4
2017-12-04T23:58:12.000Z
2018-02-01T08:53:16.000Z
from submission import Submission class LoicSubmission(Submission): def run(self, s): d = [int(x) for x in s.split("\t")] t = {} compteur = 0 while tuple(d) not in t.keys(): t[tuple(d)] = 1 compteur += 1 buffer = max(d) i = d.index(buffer) d = self.data_update(d, i) return compteur def ...
16.692308
37
0.564516
798563825b165685a598ef9c1bfa9bd1b974af98
8,461
py
Python
kubernetes/test/test_v1beta1_cron_job_spec.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1beta1_cron_job_spec.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1beta1_cron_job_spec.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1.20.7 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unitte...
47.268156
124
0.414726
7985640f2084c234203e4aae7302b1af72668360
979
py
Python
Bxin/utils/fastdfs/upload_fdfs_image.py
Wang-TaoTao/Bxin
ec9c48005262851eb8f2fa1727a9104c323a1730
[ "MIT" ]
null
null
null
Bxin/utils/fastdfs/upload_fdfs_image.py
Wang-TaoTao/Bxin
ec9c48005262851eb8f2fa1727a9104c323a1730
[ "MIT" ]
null
null
null
Bxin/utils/fastdfs/upload_fdfs_image.py
Wang-TaoTao/Bxin
ec9c48005262851eb8f2fa1727a9104c323a1730
[ "MIT" ]
null
null
null
import pymysql from Bxin.settings import logger '''图片上传到fastdfs并且将返回的file_id存入mysql的image_file_id字段''' # 建立连接 conn = pymysql.connect(host='localhost', port=3306,user='root', password='mysql', database='bxin', charset='utf8') # 游标 cur = conn.cursor() ## 1. 导入FastDFS客户端扩展 from fdfs_client.client import Fdfs_client...
22.767442
114
0.673136
798565a327c8480594407167f67e4573bef25047
15,686
py
Python
magenta/pipelines/pipeline.py
cristianmtr/magenta
ac2d8ae455fdd07f4b46dec82aedab22fcb6bbbd
[ "Apache-2.0" ]
1
2019-01-24T07:22:48.000Z
2019-01-24T07:22:48.000Z
magenta/pipelines/pipeline.py
dkun7944/magenta
8f930263b7cfd67f27eb12cd871b4e5fa87d382e
[ "Apache-2.0" ]
null
null
null
magenta/pipelines/pipeline.py
dkun7944/magenta
8f930263b7cfd67f27eb12cd871b4e5fa87d382e
[ "Apache-2.0" ]
1
2019-11-26T06:30:52.000Z
2019-11-26T06:30:52.000Z
# Copyright 2018 The Magenta Authors. # # 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 ...
36.564103
80
0.699095
798566474472edcaa08f8e52ae1390d1c26ca7e9
94
py
Python
tap_lever/streams/cache.py
luandy64/tap-lever
68aa7bcb65b98d2e8c47adaa3679ce43a018b83b
[ "Apache-2.0" ]
null
null
null
tap_lever/streams/cache.py
luandy64/tap-lever
68aa7bcb65b98d2e8c47adaa3679ce43a018b83b
[ "Apache-2.0" ]
1
2019-11-06T15:35:03.000Z
2019-11-06T17:00:27.000Z
tap_lever/streams/cache.py
luandy64/tap-lever
68aa7bcb65b98d2e8c47adaa3679ce43a018b83b
[ "Apache-2.0" ]
2
2019-06-10T19:34:38.000Z
2020-06-30T21:20:36.000Z
CACHE = {} def add(key, val): CACHE[key] = val def get(key): return CACHE.get(key)
10.444444
25
0.574468
7985665d577b88c484af1f856d02d9e8e3ac157c
83
py
Python
data/operator/bbox/transform/rasterize/half_pixel_offset.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
143
2021-12-03T02:33:36.000Z
2022-03-29T00:01:48.000Z
data/operator/bbox/transform/rasterize/half_pixel_offset.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
33
2021-12-03T10:32:05.000Z
2022-03-31T02:13:55.000Z
data/operator/bbox/transform/rasterize/half_pixel_offset.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
24
2021-12-04T06:46:42.000Z
2022-03-30T07:57:47.000Z
def bbox_rasterize_half_pixel_offset(bbox): return tuple(int(v) for v in bbox)
27.666667
43
0.771084
79856689c258c12260ba58c1ede9e800da93c4c9
2,843
py
Python
src/primaires/pnj/editeurs/pedit/supprimer.py
stormi/tsunami
bdc853229834b52b2ee8ed54a3161a1a3133d926
[ "BSD-3-Clause" ]
null
null
null
src/primaires/pnj/editeurs/pedit/supprimer.py
stormi/tsunami
bdc853229834b52b2ee8ed54a3161a1a3133d926
[ "BSD-3-Clause" ]
null
null
null
src/primaires/pnj/editeurs/pedit/supprimer.py
stormi/tsunami
bdc853229834b52b2ee8ed54a3161a1a3133d926
[ "BSD-3-Clause" ]
null
null
null
# -*-coding:Utf-8 -* # Copyright (c) 2013 LE GOFF Vincent # 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, this # lis...
41.808824
79
0.672881
7985672cc50b1f6d189159c2116e225fd4134083
1,870
py
Python
aliyun-python-sdk-core/tests/auth/test_credentials.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-core/tests/auth/test_credentials.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-core/tests/auth/test_credentials.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.000Z
# coding=utf-8 from tests import unittest from aliyunsdkcore.auth.credentials import AccessKeyCredential, StsTokenCredential,\ RamRoleArnCredential from aliyunsdkcore.auth.credentials import EcsRamRoleCredential, RsaKeyPairCredential class TestCredentials(unittest.TestCase): def test_AccessKeyCredential(sel...
43.488372
90
0.726738
798567a3ead8dbaa83c8561b53d99dcca963fd67
294
py
Python
src/japronto/pipeline/cpipeline_ext.py
kzh3ka/japronto
a526277a2f59100388c9f39d4ca22bfb4909955b
[ "MIT" ]
9,472
2017-01-31T13:22:02.000Z
2022-03-31T13:15:46.000Z
src/japronto/pipeline/cpipeline_ext.py
zishenWang/japronto
f501c9f59fc83d0e4ab928ecdacf1735a2cc5cb6
[ "MIT" ]
170
2017-01-31T18:50:13.000Z
2022-03-17T13:32:04.000Z
src/japronto/pipeline/cpipeline_ext.py
zishenWang/japronto
f501c9f59fc83d0e4ab928ecdacf1735a2cc5cb6
[ "MIT" ]
739
2017-01-31T17:42:03.000Z
2022-02-24T05:10:32.000Z
from distutils.core import Extension def get_extension(): return Extension( 'japronto.pipeline.cpipeline', sources=['cpipeline.c'], include_dirs=[], libraries=[], library_dirs=[], extra_link_args=[], define_macros=[('PIPELINE_OPAQUE', 1)])
24.5
47
0.619048
79856908b4662af0f42e83254482fbed7b83582c
8,147
py
Python
tests/checkPot.py
PaulSVK/nvda
7bd9e8b1e184c222f8d3bb39681feca5e87db473
[ "bzip2-1.0.6" ]
1,592
2015-11-10T12:05:44.000Z
2022-03-31T11:50:40.000Z
tests/checkPot.py
PaulSVK/nvda
7bd9e8b1e184c222f8d3bb39681feca5e87db473
[ "bzip2-1.0.6" ]
9,479
2015-11-10T20:56:48.000Z
2022-03-31T23:51:30.000Z
tests/checkPot.py
PaulSVK/nvda
7bd9e8b1e184c222f8d3bb39681feca5e87db473
[ "bzip2-1.0.6" ]
682
2015-11-10T11:19:23.000Z
2022-03-31T07:51:29.000Z
# A part of NonVisual Desktop Access (NVDA) # Copyright (C) 2017-2021 NV Access Limited, Ethan Holliger, Dinesh Kaushal, Leonard de Ruijter, # Joseph Lee, Julien Cochuyt, Łukasz Golonka # This file may be used under the terms of the GNU General Public License, version 2 or later. # For more details see: https://www...
35.576419
107
0.689579
798569a5e1168143cf96f2b267aa20ce532d0e23
6,997
py
Python
venv/Lib/site-packages/google/protobuf/descriptor_database.py
parthpankajtiwary/keras-groundup
0df0844e7d9dca741fad0965761a12f72ee51f07
[ "MIT" ]
1
2021-11-25T02:14:23.000Z
2021-11-25T02:14:23.000Z
venv/Lib/site-packages/google/protobuf/descriptor_database.py
parthpankajtiwary/keras-groundup
0df0844e7d9dca741fad0965761a12f72ee51f07
[ "MIT" ]
1
2020-04-23T02:34:53.000Z
2020-04-23T02:34:53.000Z
venv/Lib/site-packages/google/protobuf/descriptor_database.py
parthpankajtiwary/keras-groundup
0df0844e7d9dca741fad0965761a12f72ee51f07
[ "MIT" ]
1
2020-04-27T15:07:54.000Z
2020-04-27T15:07:54.000Z
# Protocol Buffers - Google's data interchange format # Copyright 2008 Google Inc. All rights reserved. # https://developers.google.com/protocol-buffers/ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # ...
39.308989
81
0.712305
798569bddde835d06406131d0e09dd33b35d036d
1,163
py
Python
client2.py
AllanSilva156/projeto-chat-hmac
b8b6592f86028f6f7a9817e2e3601128ea519c62
[ "MIT" ]
null
null
null
client2.py
AllanSilva156/projeto-chat-hmac
b8b6592f86028f6f7a9817e2e3601128ea519c62
[ "MIT" ]
null
null
null
client2.py
AllanSilva156/projeto-chat-hmac
b8b6592f86028f6f7a9817e2e3601128ea519c62
[ "MIT" ]
null
null
null
import socket import threading from crypto import * ServerIP = input('Server IP: ') PORT = int(input('Port: ')) client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) try: username = input('Enter a username: ') client.connect((ServerIP, PORT)) print(f'Connected Sucessfully to {ServerIP}:{PO...
27.690476
77
0.61221
798569be527aef10ffe79eaf809247f0b8d12c82
13,342
py
Python
armi/__init__.py
Jimmy-INL/armi
0b44177183fe9dd1d3640b9abd9622755010c5e2
[ "Apache-2.0" ]
1
2020-07-07T16:58:43.000Z
2020-07-07T16:58:43.000Z
armi/__init__.py
Jimmy-INL/armi
0b44177183fe9dd1d3640b9abd9622755010c5e2
[ "Apache-2.0" ]
null
null
null
armi/__init__.py
Jimmy-INL/armi
0b44177183fe9dd1d3640b9abd9622755010c5e2
[ "Apache-2.0" ]
null
null
null
# Copyright 2009-2019 TerraPower, 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 to in ...
33.777215
95
0.694574
79856a0fd4da978ac26e1605dce088ce7795d8e7
21,719
py
Python
causalgraph.py
Paul-Yuchao-Dong/causalinference_study
e8a907771d4ec98ee553b5d77b4d16eea20bd790
[ "MIT" ]
null
null
null
causalgraph.py
Paul-Yuchao-Dong/causalinference_study
e8a907771d4ec98ee553b5d77b4d16eea20bd790
[ "MIT" ]
null
null
null
causalgraph.py
Paul-Yuchao-Dong/causalinference_study
e8a907771d4ec98ee553b5d77b4d16eea20bd790
[ "MIT" ]
null
null
null
import itertools class Node(object): """ A node in the graph. """ def __init__( self, name=None, children=None, parents=None, conditioned=False ): self.name = name if children == None: self.children = [] ...
30.291492
125
0.552512
79856a1096957e55740bc93c88a9c39d6b7bcfd4
1,536
py
Python
src/load_data_select.py
torvicvasil/pyspark-study
cbde4d3d4719ee57cfc537c68e8951c801d0e509
[ "Apache-2.0" ]
null
null
null
src/load_data_select.py
torvicvasil/pyspark-study
cbde4d3d4719ee57cfc537c68e8951c801d0e509
[ "Apache-2.0" ]
null
null
null
src/load_data_select.py
torvicvasil/pyspark-study
cbde4d3d4719ee57cfc537c68e8951c801d0e509
[ "Apache-2.0" ]
null
null
null
from pyspark.sql import SparkSession from pyspark.sql import functions as F from pyspark import SparkContext import os dir_path = os.path.dirname(os.path.realpath(__file__)) print(dir_path) sc = SparkContext.getOrCreate() # Verify SparkContext print(f"Printing sc: {sc}") # Print Spark version print(f"Printing sc....
24.380952
90
0.771484
79856a3f153cf0e3b3a8fe63eaf6003e5eb14148
950
py
Python
setup.py
immunIT/owfmodules.avrisp.flash_erase
99e73ab11814ba2a4b4f69e69bce38a821b92e03
[ "Apache-2.0" ]
null
null
null
setup.py
immunIT/owfmodules.avrisp.flash_erase
99e73ab11814ba2a4b4f69e69bce38a821b92e03
[ "Apache-2.0" ]
null
null
null
setup.py
immunIT/owfmodules.avrisp.flash_erase
99e73ab11814ba2a4b4f69e69bce38a821b92e03
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- from setuptools import setup, find_packages __authors__ = "Jordan Ovrè, Paul Duncan" __copyright__ = "Copyright (c) ImmunIT - Jordan Ovrè / Paul Duncan" __license__ = "Apache 2.0" __version__ = "1.0.2" __contact__ = "Jordan Ovrè / Ghecko <jovre@immunit.ch>, Paul Duncan / ...
30.645161
98
0.678947
79856b540eee9412cbf44a951f067e592702e303
8,499
py
Python
methylprep/models/samples.py
WonyoungCho/methylprep
4e34f62be969158453ba9b05b7629433f9bbba8b
[ "MIT" ]
5
2019-08-28T08:27:16.000Z
2020-03-11T17:20:01.000Z
methylprep/models/samples.py
WonyoungCho/methylprep
4e34f62be969158453ba9b05b7629433f9bbba8b
[ "MIT" ]
16
2021-04-08T22:02:58.000Z
2022-03-18T17:30:50.000Z
methylprep/models/samples.py
WonyoungCho/methylprep
4e34f62be969158453ba9b05b7629433f9bbba8b
[ "MIT" ]
3
2020-05-21T10:16:24.000Z
2020-08-30T09:26:52.000Z
# Lib import logging from pathlib import PurePath, Path from urllib.parse import urlparse, urlunparse LOGGER = logging.getLogger(__name__) REQUIRED = ['Sentrix_ID', 'Sentrix_Position', 'SentrixBarcode_A', 'SentrixPosition_A', 'Control', 'Sample_Group', 'Sample_Name', 'Sample_Plate', 'Pool_ID', 'Sample_Well', 'GSM_...
46.442623
152
0.639016
79856b83f9b0bd5903b583ad60e0be3ca54de750
2,617
py
Python
spider/10_douban.py
corder-ybh/gpst
3e66456f14618f9ef251a26ccce82fb84b84adaa
[ "Apache-2.0" ]
null
null
null
spider/10_douban.py
corder-ybh/gpst
3e66456f14618f9ef251a26ccce82fb84b84adaa
[ "Apache-2.0" ]
null
null
null
spider/10_douban.py
corder-ybh/gpst
3e66456f14618f9ef251a26ccce82fb84b84adaa
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 import requests import json class DoubanSpider: def __init__(self): self.urlTempList = [ { #动漫 "urlTemp": "https://m.douban.com/rexxar/api/v2/subject_collection/tv_animation/items?start={}&count=18&loc_id=108288", "country": "DM" }, ...
36.347222
163
0.542606
79856bb8b05e2de5bfb730d11b8070ec0dd7239d
1,824
py
Python
tests/auth_tests/test_middleware.py
KaushikSathvara/django
3b9fe906bf28d2e748ce4d9a1af5fbcd5df48946
[ "BSD-3-Clause", "0BSD" ]
61,676
2015-01-01T00:05:13.000Z
2022-03-31T20:37:54.000Z
tests/auth_tests/test_middleware.py
KaushikSathvara/django
3b9fe906bf28d2e748ce4d9a1af5fbcd5df48946
[ "BSD-3-Clause", "0BSD" ]
8,884
2015-01-01T00:12:05.000Z
2022-03-31T19:53:11.000Z
tests/auth_tests/test_middleware.py
mustafa0x/django
d7394cfa13a4d1a02356e3a83e10ec100fbb9948
[ "BSD-3-Clause", "0BSD" ]
33,143
2015-01-01T02:04:52.000Z
2022-03-31T19:42:46.000Z
from django.contrib.auth.middleware import AuthenticationMiddleware from django.contrib.auth.models import User from django.core.exceptions import ImproperlyConfigured from django.http import HttpRequest, HttpResponse from django.test import TestCase class TestAuthenticationMiddleware(TestCase): @classmethod ...
41.454545
93
0.719298
79856d06cdb92e0c4eb9f006abad2af97b834a73
4,699
py
Python
mixed/src/mcflag2/mix_funcs.py
jimsrc/seatos
e775dba1a2a96ff44b837cf8d85101ccfef302b1
[ "MIT" ]
null
null
null
mixed/src/mcflag2/mix_funcs.py
jimsrc/seatos
e775dba1a2a96ff44b837cf8d85101ccfef302b1
[ "MIT" ]
null
null
null
mixed/src/mcflag2/mix_funcs.py
jimsrc/seatos
e775dba1a2a96ff44b837cf8d85101ccfef302b1
[ "MIT" ]
1
2018-10-02T17:51:57.000Z
2018-10-02T17:51:57.000Z
#!/usr/bin/env ipython import os from pylab import * from numpy import * import matplotlib.patches as patches import matplotlib.transforms as transforms import console_colors as ccl import numpy as np def run_plot(dir_mc, dir_sh, dir_figs, FNAME, nbins, MCwant, WangFlag, fgap, N_MCs, N_SHs): #---------------------...
41.955357
119
0.541817
79856d643c09652517be552256ad737a9645f031
1,068
py
Python
leetcode/lessons/hash_table/__init__.py
wangkuntian/leetcode
e8dc9c8032c805a7d071ad19b94841ee8e52e834
[ "MIT" ]
null
null
null
leetcode/lessons/hash_table/__init__.py
wangkuntian/leetcode
e8dc9c8032c805a7d071ad19b94841ee8e52e834
[ "MIT" ]
2
2020-03-24T18:00:21.000Z
2020-03-26T11:33:51.000Z
leetcode/lessons/hash_table/__init__.py
wangkuntian/leetcode
e8dc9c8032c805a7d071ad19b94841ee8e52e834
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ __project__ = 'leetcode' __file__ = '__init__.py' __author__ = 'king' __time__ = '2020/3/2 17:05' _ooOoo_ o8888888o 88" . "88 (| -_- |) ...
33.375
56
0.168539
79856d9d1edd447cb4704f2bd87e9bdb877ebbeb
703
py
Python
src/handbook2/part7/snippet15.py
apurvmishra99/keras-idiomatic-programmer
40ee5482615eadff0a74c349706ae1184c904c13
[ "Apache-2.0" ]
2
2020-04-29T09:28:50.000Z
2020-10-22T17:34:06.000Z
src/handbook2/part7/snippet15.py
apurvmishra99/keras-idiomatic-programmer
40ee5482615eadff0a74c349706ae1184c904c13
[ "Apache-2.0" ]
null
null
null
src/handbook2/part7/snippet15.py
apurvmishra99/keras-idiomatic-programmer
40ee5482615eadff0a74c349706ae1184c904c13
[ "Apache-2.0" ]
1
2021-08-01T12:09:38.000Z
2021-08-01T12:09:38.000Z
# Copyright 2019 Google 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
37
74
0.728307
79856e04ea256404c3c3e161d88cecac93a98312
2,989
py
Python
sktime/clustering/utils/plotting/_plot_partitions.py
biologioholic/sktime
9d0391a04b11d22bd783b452f01aa5b4529b41a2
[ "BSD-3-Clause" ]
1
2021-12-22T02:45:39.000Z
2021-12-22T02:45:39.000Z
sktime/clustering/utils/plotting/_plot_partitions.py
biologioholic/sktime
9d0391a04b11d22bd783b452f01aa5b4529b41a2
[ "BSD-3-Clause" ]
null
null
null
sktime/clustering/utils/plotting/_plot_partitions.py
biologioholic/sktime
9d0391a04b11d22bd783b452f01aa5b4529b41a2
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Cluster plotting tools.""" __author__ = ["Christopher Holder", "Tony Bagnall"] __all__ = ["plot_cluster_algorithm"] import numpy as np import pandas as pd from sktime.clustering.base import TimeSeriesInstances from sktime.clustering.partitioning import TimeSeriesLloyds from sktime.datatype...
29.303922
88
0.668116
79856edba5a0bd23b658a39dc1d634b3550c9835
750
py
Python
nearest_plot.py
wotmd5731/J_LAB
6951dbc898f063fbbe2853a36b7caeeca10ed173
[ "Apache-2.0" ]
null
null
null
nearest_plot.py
wotmd5731/J_LAB
6951dbc898f063fbbe2853a36b7caeeca10ed173
[ "Apache-2.0" ]
null
null
null
nearest_plot.py
wotmd5731/J_LAB
6951dbc898f063fbbe2853a36b7caeeca10ed173
[ "Apache-2.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt fig,ax = plt.subplots(1,4,figsize=(10,5)) def nearest_plot(XX): global fig,ax for i,X in enumerate(XX): ax[i].imshow(X,interpolation='nearest') numrows,numcols=X.shape def format_coord(x,y): col = int(x+0.5) ro...
23.4375
66
0.54
79856f7835afcd6261598b152d36f179d5bbef06
767
py
Python
se_tools/benchmark_scripts/_test_case.py
hexagon-geo-surv/supereight-public
29a978956d2b169a3f34eed9bc374e325551c10b
[ "MIT" ]
null
null
null
se_tools/benchmark_scripts/_test_case.py
hexagon-geo-surv/supereight-public
29a978956d2b169a3f34eed9bc374e325551c10b
[ "MIT" ]
null
null
null
se_tools/benchmark_scripts/_test_case.py
hexagon-geo-surv/supereight-public
29a978956d2b169a3f34eed9bc374e325551c10b
[ "MIT" ]
null
null
null
# SPDX-FileCopyrightText: 2020 Smart Robotics Lab, Imperial College London # SPDX-FileCopyrightText: 2020 Nils Funk # SPDX-License-Identifier: BSD-3-Clause class TestCase: def __init__(self): self.name = None self.sequence_name = None self.sensor_type = None sel...
33.347826
110
0.597132
798570269ba493927b5812a6df412b5a25f2de6c
835
py
Python
tests/python/inheritance_properties.py
BryanRiel/pyre
179359634a7091979cced427b6133dd0ec4726ea
[ "BSD-3-Clause" ]
null
null
null
tests/python/inheritance_properties.py
BryanRiel/pyre
179359634a7091979cced427b6133dd0ec4726ea
[ "BSD-3-Clause" ]
null
null
null
tests/python/inheritance_properties.py
BryanRiel/pyre
179359634a7091979cced427b6133dd0ec4726ea
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # michael a.g. aïvázis # orthologue # (c) 1998-2018 all rights reserved # """ Verify that properties and other descriptors work as expected """ def test(): # the setup class descriptor(object): def __get__(self, instance, cls=None): if in...
16.7
63
0.603593
7985704a8ec7f122a637ec7bfbe01169665f775b
3,912
py
Python
CIM15/IEC61968/Metering/ReadingQuality.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
58
2015-04-22T10:41:03.000Z
2022-03-29T16:04:34.000Z
CIM15/IEC61968/Metering/ReadingQuality.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
12
2015-08-26T03:57:23.000Z
2020-12-11T20:14:42.000Z
CIM15/IEC61968/Metering/ReadingQuality.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
35
2015-01-10T12:21:03.000Z
2020-09-09T08:18:16.000Z
# Copyright (C) 2010-2011 Richard Lincoln # # 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...
45.488372
621
0.712168
798570998cea8b013abe8396b44b2d9949e8c5b2
173
py
Python
tests/web_platform/css_flexbox_1/test_flexbox_align_items_baseline.py
jonboland/colosseum
cbf974be54fd7f6fddbe7285704cfaf7a866c5c5
[ "BSD-3-Clause" ]
71
2015-04-13T09:44:14.000Z
2019-03-24T01:03:02.000Z
tests/web_platform/css_flexbox_1/test_flexbox_align_items_baseline.py
jonboland/colosseum
cbf974be54fd7f6fddbe7285704cfaf7a866c5c5
[ "BSD-3-Clause" ]
35
2019-05-06T15:26:09.000Z
2022-03-28T06:30:33.000Z
tests/web_platform/css_flexbox_1/test_flexbox_align_items_baseline.py
jonboland/colosseum
cbf974be54fd7f6fddbe7285704cfaf7a866c5c5
[ "BSD-3-Clause" ]
139
2015-05-30T18:37:43.000Z
2019-03-27T17:14:05.000Z
from tests.utils import W3CTestCase class TestFlexbox_AlignItemsBaseline(W3CTestCase): vars().update(W3CTestCase.find_tests(__file__, 'flexbox_align-items-baseline'))
28.833333
83
0.820809
7985713fe746d7a0867ff0369fb21c68c54235ad
7,013
py
Python
train.py
krantiparida/beyond-image-to-depth
dcdef5122fa456a92bd58ead4eea0a777158c535
[ "MIT" ]
31
2021-03-16T04:56:00.000Z
2022-03-30T02:50:23.000Z
train.py
krantiparida/beyond-image-to-depth
dcdef5122fa456a92bd58ead4eea0a777158c535
[ "MIT" ]
8
2021-04-16T03:17:06.000Z
2022-03-17T02:58:00.000Z
train.py
krantiparida/beyond-image-to-depth
dcdef5122fa456a92bd58ead4eea0a777158c535
[ "MIT" ]
12
2021-03-18T07:49:30.000Z
2022-03-11T05:44:20.000Z
import os import time import torch from options.train_options import TrainOptions from models.models import ModelBuilder from models.audioVisual_model import AudioVisualModel from data_loader.custom_dataset_data_loader import CustomDatasetDataLoader from util.util import TextWrite, compute_errors import numpy as np fro...
38.532967
124
0.728789
798572284f9c9681de9351a60a7154cfb694480b
7,860
py
Python
statistics-web3py/main.py
miker83z/cloud-chain
0f5c43159544da547173ee0425e78bede261513b
[ "MIT" ]
null
null
null
statistics-web3py/main.py
miker83z/cloud-chain
0f5c43159544da547173ee0425e78bede261513b
[ "MIT" ]
null
null
null
statistics-web3py/main.py
miker83z/cloud-chain
0f5c43159544da547173ee0425e78bede261513b
[ "MIT" ]
1
2022-01-27T14:18:24.000Z
2022-01-27T14:18:24.000Z
import argparse import numpy as np import pandas as pd from settings import experiments, lambdas, functions, TRANSIENT_VALUE, RESULT_DIR from statistics import response_time_blockchain, number_users_system, calculate_transient, mean_error, \ bar_plot_metrics, bar_plot_one_metric, plot_transient, new_plot, new_plo...
40.9375
105
0.550254
79857359b16d31d21e167e7268d60f052774ffb0
12,383
py
Python
pycs/tools/cosmostat_init.py
jstarck/cosmostat
f686efe4c00073272487417da15e207a529f07e7
[ "MIT" ]
null
null
null
pycs/tools/cosmostat_init.py
jstarck/cosmostat
f686efe4c00073272487417da15e207a529f07e7
[ "MIT" ]
null
null
null
pycs/tools/cosmostat_init.py
jstarck/cosmostat
f686efe4c00073272487417da15e207a529f07e7
[ "MIT" ]
null
null
null
# @cosmmostat_init.py # # Some convenient ROUTINES for interactive use # # Functions which makes the life easier for iSAP users. # # @author Jean-Luc Starck # @version 1.0 # @date 2020 # import numpy as np from os import remove from subprocess import check_call from datetime import datetime import matplotlib.pyp...
30.803483
196
0.553743
7985747c1504091fc5dfa500800940efaec383e7
7,248
py
Python
modisco/visualization/viz_sequence.py
Bluedragon137/tfmodisco
d7c56b21e1bb58b07695ef3035f173b7d1a039e6
[ "MIT" ]
null
null
null
modisco/visualization/viz_sequence.py
Bluedragon137/tfmodisco
d7c56b21e1bb58b07695ef3035f173b7d1a039e6
[ "MIT" ]
null
null
null
modisco/visualization/viz_sequence.py
Bluedragon137/tfmodisco
d7c56b21e1bb58b07695ef3035f173b7d1a039e6
[ "MIT" ]
null
null
null
import matplotlib import matplotlib.pyplot as plt from matplotlib.patches import Rectangle import numpy as np from .. import util from PIL import Image import base64 import io def ic_scale(pwm,background): per_position_ic = util.compute_per_position_ic( ppm=pwm, background=background, pseu...
42.139535
120
0.605132
798574c80aa5c8148afcec4401af020296d72ec0
2,396
py
Python
cds_ils/patrons/serializers.py
zzacharo/cds-ils
6816c348e209607b97583acc40fb37dea0c62418
[ "MIT" ]
6
2020-09-18T00:13:38.000Z
2021-11-14T17:12:19.000Z
cds_ils/patrons/serializers.py
zzacharo/cds-ils
6816c348e209607b97583acc40fb37dea0c62418
[ "MIT" ]
321
2020-08-28T15:42:25.000Z
2022-03-14T15:11:50.000Z
cds_ils/patrons/serializers.py
zzacharo/cds-ils
6816c348e209607b97583acc40fb37dea0c62418
[ "MIT" ]
8
2019-07-10T07:02:08.000Z
2020-08-10T14:07:25.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2019-2020 CERN. # # invenio-app-ils is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Invenio App ILS Patron Loans Information views.""" from flask import jsonify from invenio_app_ils.proxies...
30.717949
76
0.686144
798579c2481e23f3679ef3d57d88647d10f05f3c
228
py
Python
constants.py
luis705/password-manager
f803a4c77a1df3b266c583d48f9294cfd3ee29e1
[ "MIT" ]
1
2022-02-14T08:09:27.000Z
2022-02-14T08:09:27.000Z
constants.py
luis705/password-manager
f803a4c77a1df3b266c583d48f9294cfd3ee29e1
[ "MIT" ]
null
null
null
constants.py
luis705/password-manager
f803a4c77a1df3b266c583d48f9294cfd3ee29e1
[ "MIT" ]
2
2020-12-25T15:31:52.000Z
2021-10-14T06:13:46.000Z
SCREEN_WIDTH = 450 SCREEN_HEIGHT = 450 HEADER_WIDTH = 250 HEADER_HEIGHT = 35 MAIN_MENU_BUTTON_WIDTH = 100 BUTTON_WIDTH = 200 BUTTON_HEIGHT = 40 ENTRY_WIDTH = 250 ENTRY_HEIGHT = 30 USER_BUTTON_WIDTH = 130 USER_BUTTON_HEIGHT = 60
19
28
0.807018
79857aaade245fb3e3b2515dfbb827dc873d2e18
571
py
Python
apps/ida/ida.py
EmergentMind/knausj_talon
476b6aa01e55683ad60c1cabe8789ca2046d98c6
[ "Unlicense" ]
null
null
null
apps/ida/ida.py
EmergentMind/knausj_talon
476b6aa01e55683ad60c1cabe8789ca2046d98c6
[ "Unlicense" ]
null
null
null
apps/ida/ida.py
EmergentMind/knausj_talon
476b6aa01e55683ad60c1cabe8789ca2046d98c6
[ "Unlicense" ]
null
null
null
from talon import Context, Module, actions, ui import time mod = Module() mod.setting( "ida_opcode_count", type=int, default=8, desc="the number of opcodes to automatically set when toggling", ) ctx = Context() ctx.matches = r""" mode: user.ida """ @mod.action_class class Actions: def ida_open_g...
20.392857
68
0.635727
79857b92057e0d60c51a67104edc0072ad4a57f7
1,393
py
Python
sumo/tests/netedit/bugs/revision24081/test.sikuli/test.py
iltempe/osmosi
c0f54ecdbb7c7b5602d587768617d0dc50f1d75d
[ "MIT" ]
null
null
null
sumo/tests/netedit/bugs/revision24081/test.sikuli/test.py
iltempe/osmosi
c0f54ecdbb7c7b5602d587768617d0dc50f1d75d
[ "MIT" ]
null
null
null
sumo/tests/netedit/bugs/revision24081/test.sikuli/test.py
iltempe/osmosi
c0f54ecdbb7c7b5602d587768617d0dc50f1d75d
[ "MIT" ]
2
2017-12-14T16:41:59.000Z
2020-10-16T17:51:27.000Z
#!/usr/bin/env python """ @file test.py @author Pablo Alvarez Lopez @date 2016-11-25 @version $Id$ python script used by sikulix for testing netedit SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/ Copyright (C) 2009-2017 DLR/TS, Germany This file is part of SUMO. SUMO is free software; you can red...
22.836066
68
0.752333
79857c98ce245e81a01fc9f3c24a903bb839e111
8,558
py
Python
ts/torch_handler/base_handler.py
wardVD/serve
40405f90e3c590638871d92fc6cda48f1dcfe570
[ "Apache-2.0" ]
2
2021-05-16T13:46:10.000Z
2021-05-16T13:49:23.000Z
ts/torch_handler/base_handler.py
wardVD/serve
40405f90e3c590638871d92fc6cda48f1dcfe570
[ "Apache-2.0" ]
1
2021-04-17T11:16:59.000Z
2021-04-17T11:16:59.000Z
ts/torch_handler/base_handler.py
isabella232/serve-1
a9f7c3f0ff0e86c6dadcf36765a63d01758fed37
[ "Apache-2.0" ]
1
2021-06-02T01:09:48.000Z
2021-06-02T01:09:48.000Z
""" Base default handler to load torchscript or eager mode [state_dict] models Also, provides handle method per torch serve custom model specification """ import abc import logging import os import importlib.util import time import torch from ..utils.util import list_classes_from_module, load_label_mapping logger = l...
35.510373
99
0.630872
79857cc161aa0ad90b6f6a5346f818495e7247e5
367
py
Python
tmp/get_all_class.py
takata-daiki/catalogen
1535798ab54f13213c2aea6501cb76f7ca6d5e19
[ "MIT" ]
null
null
null
tmp/get_all_class.py
takata-daiki/catalogen
1535798ab54f13213c2aea6501cb76f7ca6d5e19
[ "MIT" ]
null
null
null
tmp/get_all_class.py
takata-daiki/catalogen
1535798ab54f13213c2aea6501cb76f7ca6d5e19
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import requests, bs4 res = requests.get('https://poi.apache.org/apidocs/allclasses-noframe.html') res.raise_for_status() soup = bs4.BeautifulSoup(res.text, "html.parser") elems = soup.select('.indexContainer a') for elem in elems: e = elem.get('title').split(' ') if e[0] == 'class': ...
33.363636
76
0.662125
79857cce62e50ddbee98d6da9877e76b53c32321
4,675
py
Python
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/15_features/numtrees_12/rule_8.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/15_features/numtrees_12/rule_8.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/15_features/numtrees_12/rule_8.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
def findDecision(obj): #obj[0]: Passanger, obj[1]: Time, obj[2]: Coupon, obj[3]: Coupon_validity, obj[4]: Gender, obj[5]: Age, obj[6]: Children, obj[7]: Education, obj[8]: Occupation, obj[9]: Income, obj[10]: Bar, obj[11]: Coffeehouse, obj[12]: Restaurant20to50, obj[13]: Direction_same, obj[14]: Distance # {"feature":...
36.523438
305
0.524492
79857d060796b434e6d09219f93a8c1c3436288e
1,906
py
Python
test/IDL/MIDLCOM.py
datalogics-staylor/scons
4c48deb6947066e53aac7d86621a7ec17f3b4034
[ "MIT" ]
3
2017-01-06T09:26:23.000Z
2017-03-04T04:13:20.000Z
test/IDL/MIDLCOM.py
datalogics-staylor/scons
4c48deb6947066e53aac7d86621a7ec17f3b4034
[ "MIT" ]
2
2015-10-27T20:17:24.000Z
2016-08-04T21:49:56.000Z
test/IDL/MIDLCOM.py
datalogics-staylor/scons
4c48deb6947066e53aac7d86621a7ec17f3b4034
[ "MIT" ]
4
2015-03-31T16:09:15.000Z
2021-08-04T12:41:47.000Z
#!/usr/bin/env python # # __COPYRIGHT__ # # 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, ...
29.78125
73
0.718783
79857d2b5762179cf1b6340a99bd337e1f832217
837
py
Python
hisitter/services/migrations/0002_auto_20200907_1807.py
babysitter-finder/backend
5c37c6876ca13b5794ac44e0342b810426acbc76
[ "MIT" ]
1
2021-02-25T01:02:40.000Z
2021-02-25T01:02:40.000Z
hisitter/services/migrations/0002_auto_20200907_1807.py
babysitter-finder/backend
5c37c6876ca13b5794ac44e0342b810426acbc76
[ "MIT" ]
null
null
null
hisitter/services/migrations/0002_auto_20200907_1807.py
babysitter-finder/backend
5c37c6876ca13b5794ac44e0342b810426acbc76
[ "MIT" ]
1
2020-11-23T20:57:47.000Z
2020-11-23T20:57:47.000Z
# Generated by Django 3.0.9 on 2020-09-07 23:07 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('services', '0001_initial'), ('users', '0001_initial'), ] operations = [ migrati...
29.892857
159
0.639188
79857d769cfb886c1b933e31f0946dfa4f89fa2d
8,746
py
Python
doc/conf.py
nyirog/tox
e3a2d73a8a5be71b5dccd20061927df3b18352b6
[ "MIT" ]
null
null
null
doc/conf.py
nyirog/tox
e3a2d73a8a5be71b5dccd20061927df3b18352b6
[ "MIT" ]
2
2015-11-14T18:34:44.000Z
2021-01-03T10:41:33.000Z
doc/conf.py
nyirog/tox
e3a2d73a8a5be71b5dccd20061927df3b18352b6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # tox documentation build configuration file, created by # sphinx-quickstart on Sat May 29 10:42:26 2010. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All con...
32.513011
84
0.713583
79857d7746ce87f61ff9c206773ea47cbfc08b91
2,281
py
Python
wrench/labelmodel/gold.py
Stranger469/ARS2
b6d62b66997180abe01b676d5359c20daa42b7ad
[ "Apache-2.0" ]
null
null
null
wrench/labelmodel/gold.py
Stranger469/ARS2
b6d62b66997180abe01b676d5359c20daa42b7ad
[ "Apache-2.0" ]
null
null
null
wrench/labelmodel/gold.py
Stranger469/ARS2
b6d62b66997180abe01b676d5359c20daa42b7ad
[ "Apache-2.0" ]
null
null
null
import logging from collections import Counter from typing import Any, Optional, Union import numpy as np from snorkel.labeling import LFAnalysis from ..basemodel import BaseLabelModel from ..dataset import BaseDataset from ..dataset.utils import check_weak_labels logger = logging.getLogger(__name__) ABSTAIN = -1 ...
38.016667
105
0.606313
79857e041cb12d8eddc2312512f95a4e6eab8c1f
1,301
py
Python
tests/test_patterns.py
Unathi-Skosana/ptycho
95e49a092d1212e2d02349ad4c50ea7db93e2687
[ "MIT" ]
null
null
null
tests/test_patterns.py
Unathi-Skosana/ptycho
95e49a092d1212e2d02349ad4c50ea7db93e2687
[ "MIT" ]
null
null
null
tests/test_patterns.py
Unathi-Skosana/ptycho
95e49a092d1212e2d02349ad4c50ea7db93e2687
[ "MIT" ]
null
null
null
import cv2 import numpy as np import matplotlib import matplotlib.pyplot as plt from mpl_toolkits.axes_grid1 import ImageGrid from numpy import pi from utils import stripes, get_gradation_2d,\ get_gradation_3d, checkerboard, radial_gradient from utils.filters import gau_kern, circ_mask from skimage.color impor...
32.525
67
0.659493