hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
a3fe9c901be68d7a575fda5944667c98f252847d
25,500
py
Python
hw2/stud/utils.py
LeonardoEmili/Aspect-Based-Sentiment-Analysis
d6a37132931401c1a6d4a53208055cc507e2a7a8
[ "MIT" ]
6
2021-09-19T20:35:54.000Z
2022-03-20T08:07:30.000Z
hw2/stud/utils.py
LeonardoEmili/Aspect-Based-Sentiment-Analysis
d6a37132931401c1a6d4a53208055cc507e2a7a8
[ "MIT" ]
null
null
null
hw2/stud/utils.py
LeonardoEmili/Aspect-Based-Sentiment-Analysis
d6a37132931401c1a6d4a53208055cc507e2a7a8
[ "MIT" ]
null
null
null
from typing import * from stud.constants import * from stud.torch_utils import gpus, compute_scatter_mask from tqdm.notebook import tqdm from torchtext.vocab import build_vocab_from_iterator, Vocab, vocab from collections import OrderedDict, namedtuple, Counter from torch.nn.utils.rnn import pad_sequence from torch.uti...
39.291217
113
0.659765
99868c002776d3d8b8d89146a048b98642af3f02
3,269
py
Python
sigmou/cogs/info.py
Sigmanificient/30d_challenge_discord_bot
f308c2a8834c57ae9363557732131af3e4041ad0
[ "MIT" ]
1
2021-11-08T11:17:52.000Z
2021-11-08T11:17:52.000Z
sigmou/cogs/info.py
Sigmanificient/30d_challenge_discord_bot
f308c2a8834c57ae9363557732131af3e4041ad0
[ "MIT" ]
7
2021-11-11T20:23:50.000Z
2022-03-03T20:23:19.000Z
sigmou/cogs/info.py
Sigmanificient/Sigmou-Bot
f308c2a8834c57ae9363557732131af3e4041ad0
[ "MIT" ]
1
2021-06-21T13:00:35.000Z
2021-06-21T13:00:35.000Z
from os import listdir from typing import Dict, Tuple import psutil from pincer import command from pincer.objects import Embed from sigmou.bot import Bot from sigmou.constants import TEST_GUILD_ID class InfoCog: """A simple commands cog template.""" def __init__(self, client: Bot): """Link to bot ...
29.1875
77
0.494341
614d0c23171100b73c4ee8f729ae8a21248ef7ae
1,206
py
Python
game/common/player.py
HagenSR/byte_le_engine
5895d8559627594dd3c222b4c4754caad2817841
[ "MIT" ]
1
2020-04-05T05:06:32.000Z
2020-04-05T05:06:32.000Z
game/common/player.py
HagenSR/byte_le_engine
5895d8559627594dd3c222b4c4754caad2817841
[ "MIT" ]
2
2021-01-27T03:54:41.000Z
2021-05-17T05:11:16.000Z
game/common/player.py
HagenSR/byte_le_engine
5895d8559627594dd3c222b4c4754caad2817841
[ "MIT" ]
5
2021-01-27T02:43:27.000Z
2022-03-04T04:34:57.000Z
import uuid from game.common.action import Action from game.common.game_object import GameObject from game.common.enums import * class Player(GameObject): def __init__(self, code=None, team_name=None, action=None): super().__init__() self.object_type = ObjectType.player self.func...
28.046512
91
0.593698
564bc3f028abac92637760c65792d12b6b49f959
17,061
py
Python
tools/replay/unlogger.py
eyx092/openpilot
ebc294296aa17a5aabeb9d1bb6f9cc38970173ba
[ "MIT" ]
3
2021-06-14T22:23:03.000Z
2021-09-18T08:08:50.000Z
tools/replay/unlogger.py
eyx092/openpilot
ebc294296aa17a5aabeb9d1bb6f9cc38970173ba
[ "MIT" ]
null
null
null
tools/replay/unlogger.py
eyx092/openpilot
ebc294296aa17a5aabeb9d1bb6f9cc38970173ba
[ "MIT" ]
1
2021-06-15T22:52:29.000Z
2021-06-15T22:52:29.000Z
#!/usr/bin/env python3 import argparse import os import sys import zmq import time import signal import multiprocessing from uuid import uuid4 from collections import namedtuple from collections import deque from datetime import datetime from cereal import log as capnp_log from cereal.services import service_list from...
34.606491
127
0.678389
6ebab58e355c740b2ecc9d1c5f5101379eb00f9e
23,573
py
Python
code-experiments/build/python/python/__init__.py
nuaa-codemonkey/coco
11ce3ccdf3e19ddbd56b3f9f56dc0829fc47817b
[ "BSD-3-Clause" ]
181
2016-01-21T16:42:21.000Z
2022-03-15T10:28:39.000Z
code-experiments/build/python/python/__init__.py
nuaa-codemonkey/coco
11ce3ccdf3e19ddbd56b3f9f56dc0829fc47817b
[ "BSD-3-Clause" ]
1,019
2016-01-17T15:59:43.000Z
2022-03-31T19:51:03.000Z
code-experiments/build/python/python/__init__.py
nuaa-codemonkey/coco
11ce3ccdf3e19ddbd56b3f9f56dc0829fc47817b
[ "BSD-3-Clause" ]
89
2016-01-18T09:48:30.000Z
2022-03-30T12:12:25.000Z
"""Experimentation module of the COCO - COmparing Continuous Optimizers - framework. The module provides benchmark test beds in the `Suite` class and output data facilities in the `Observer` class. See the documentation of the `Suite` class: >>> import cocoex as ex >>> help(ex.Suite) # doctest: +ELLIPSIS Help on cl...
37.596491
125
0.631612
1571837119c2324db71f872aa17ba048d8030662
707
py
Python
SoftLayer/CLI/sshkey/edit.py
dvzrv/softlayer-python
9a5f6c6981bcc370084537b4d1769383499ce90d
[ "MIT" ]
126
2015-01-05T05:09:22.000Z
2021-07-02T00:16:35.000Z
SoftLayer/CLI/sshkey/edit.py
dvzrv/softlayer-python
9a5f6c6981bcc370084537b4d1769383499ce90d
[ "MIT" ]
969
2015-01-05T15:55:31.000Z
2022-03-31T19:55:20.000Z
SoftLayer/CLI/sshkey/edit.py
dvzrv/softlayer-python
9a5f6c6981bcc370084537b4d1769383499ce90d
[ "MIT" ]
176
2015-01-22T11:23:40.000Z
2022-02-11T13:16:58.000Z
"""Edits an SSH key.""" # :license: MIT, see LICENSE for more details. import click import SoftLayer from SoftLayer.CLI import environment from SoftLayer.CLI import exceptions from SoftLayer.CLI import helpers @click.command() @click.argument('identifier') @click.option('--label', '-k', help="The new label for the ...
27.192308
70
0.718529
a2573337d7d6defb261177f3f5e8ef1e7a996123
153
py
Python
tests/model_control/detailed/transf_Integration/model_control_one_enabled_Integration_PolyTrend_NoCycle_NoAR.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/model_control/detailed/transf_Integration/model_control_one_enabled_Integration_PolyTrend_NoCycle_NoAR.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/model_control/detailed/transf_Integration/model_control_one_enabled_Integration_PolyTrend_NoCycle_NoAR.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['Integration'] , ['PolyTrend'] , ['NoCycle'] , ['NoAR'] );
38.25
80
0.745098
af64bf3758182bcf395ef3d4dfc376ac548c3525
451
py
Python
src/tests/order/test_limit.py
rvillebro/binance
1b92a35f8deb00afb904b4c25e84be064f1b07ca
[ "MIT" ]
5
2021-11-02T10:16:38.000Z
2022-01-28T21:39:41.000Z
src/tests/order/test_limit.py
rvillebro/binance
1b92a35f8deb00afb904b4c25e84be064f1b07ca
[ "MIT" ]
null
null
null
src/tests/order/test_limit.py
rvillebro/binance
1b92a35f8deb00afb904b4c25e84be064f1b07ca
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import pytest from typing import TYPE_CHECKING from binance.order.limit import Limit if TYPE_CHECKING: from binance.client import Client def test_limit(client: 'Client'): """ """ pytest.skip() o = Limit(symbol='BTCUSDT', side='BUY', quantity=0.1,...
20.5
37
0.611973
19c751a5b96ea4dc7fa8c2d593831de0108b3250
227,567
py
Python
cfdm/read_write/netcdf/netcdfread.py
sadielbartholomew/cfdm
04c1e6a271a569631826e08dc69dc2884000475e
[ "MIT" ]
null
null
null
cfdm/read_write/netcdf/netcdfread.py
sadielbartholomew/cfdm
04c1e6a271a569631826e08dc69dc2884000475e
[ "MIT" ]
null
null
null
cfdm/read_write/netcdf/netcdfread.py
sadielbartholomew/cfdm
04c1e6a271a569631826e08dc69dc2884000475e
[ "MIT" ]
null
null
null
import logging import operator import os import re import struct import subprocess import tempfile from ast import literal_eval from collections import OrderedDict from copy import deepcopy from distutils.version import LooseVersion from functools import reduce import numpy import netCDF4 import netcdf_flattener fr...
34.579395
117
0.500257
c8edf1306c9f16ae280491481a21235dfb47c289
106
py
Python
common/database/tables/__init__.py
WaffleHacks/wafflebot
e18b7e8b7ceed97f942673a4e90f7196c2542ce0
[ "MIT" ]
2
2021-04-24T05:52:40.000Z
2021-06-25T23:24:08.000Z
common/database/tables/__init__.py
WaffleHacks/wafflebot
e18b7e8b7ceed97f942673a4e90f7196c2542ce0
[ "MIT" ]
6
2021-06-13T01:50:50.000Z
2021-09-05T17:30:49.000Z
common/database/tables/__init__.py
WaffleHacks/wafflebot
e18b7e8b7ceed97f942673a4e90f7196c2542ce0
[ "MIT" ]
null
null
null
from .announcement import Announcement from .canned_response import CannedResponse from .user import User
26.5
43
0.858491
a9ac1f069a77f0a18835404ec2701c97ffbef500
5,134
py
Python
RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/lisp/router/mapservercacheinfo/remotelocators/remotelocators.py
ralfjon/IxNetwork
c0c834fbc465af69c12fd6b7cee4628baba7fff1
[ "MIT" ]
null
null
null
RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/lisp/router/mapservercacheinfo/remotelocators/remotelocators.py
ralfjon/IxNetwork
c0c834fbc465af69c12fd6b7cee4628baba7fff1
[ "MIT" ]
null
null
null
RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/lisp/router/mapservercacheinfo/remotelocators/remotelocators.py
ralfjon/IxNetwork
c0c834fbc465af69c12fd6b7cee4628baba7fff1
[ "MIT" ]
null
null
null
# Copyright 1997 - 2018 by IXIA Keysight # # 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, p...
32.493671
166
0.724581
26d661f0fb773dbf82f582bbe856af5297831ac6
116
py
Python
mergecounts/utils/__init__.py
adthrasher/merge-counts
87f41bec1c7fd3600e1fff52722ca6cc28509c0c
[ "MIT" ]
1
2022-03-10T02:09:47.000Z
2022-03-10T02:09:47.000Z
mergecounts/utils/__init__.py
adthrasher/merge-counts
87f41bec1c7fd3600e1fff52722ca6cc28509c0c
[ "MIT" ]
3
2020-08-13T18:39:41.000Z
2021-06-18T15:12:21.000Z
mergecounts/utils/__init__.py
adthrasher/merge-counts
87f41bec1c7fd3600e1fff52722ca6cc28509c0c
[ "MIT" ]
1
2021-02-18T16:20:58.000Z
2021-02-18T16:20:58.000Z
"""Utility methods for use in the merge-counts command line tool.""" from . import args, cache, dx, errors, matrix
29
68
0.724138
baf0922cf8f7b5ccc4f9e168e6a9a62427e2d991
390
py
Python
get_some_food/foodlist/migrations/0008_shoppinglistitem_due_date.py
asergeenko/get_some_food
a9cfc776193287d2f375437420e985961688d6ed
[ "MIT" ]
null
null
null
get_some_food/foodlist/migrations/0008_shoppinglistitem_due_date.py
asergeenko/get_some_food
a9cfc776193287d2f375437420e985961688d6ed
[ "MIT" ]
null
null
null
get_some_food/foodlist/migrations/0008_shoppinglistitem_due_date.py
asergeenko/get_some_food
a9cfc776193287d2f375437420e985961688d6ed
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2021-11-30 19:08 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('foodlist', '0007_auto_20211129_1903'), ] operations = [ migrations.AddField( model_name='shoppinglistitem', name='due_d...
21.666667
48
0.607692
2a92c0f74f36e89f882afd686d5d090fc30d2847
3,189
py
Python
data/p2DJ/New/program/qiskit/class/startQiskit_Class212.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/program/qiskit/class/startQiskit_Class212.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/program/qiskit/class/startQiskit_Class212.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=2 # total number=12 import cirq import qiskit from qiskit import IBMQ from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2,floor, sqrt, pi import numpy a...
28.473214
80
0.620571
7eb9e52d8ee17e8dcbb04d41525c658c43b68025
5,593
py
Python
python/igsdk/bluetooth5/vsp_central.py
berezovskyi-oleksandr/igsdk
f0a770f4562fd821cd2f5d6ed00fb6fab65c80b9
[ "MIT" ]
null
null
null
python/igsdk/bluetooth5/vsp_central.py
berezovskyi-oleksandr/igsdk
f0a770f4562fd821cd2f5d6ed00fb6fab65c80b9
[ "MIT" ]
2
2019-07-11T20:05:10.000Z
2020-04-14T17:22:02.000Z
python/igsdk/bluetooth5/vsp_central.py
berezovskyi-oleksandr/igsdk
f0a770f4562fd821cd2f5d6ed00fb6fab65c80b9
[ "MIT" ]
8
2020-04-06T11:07:10.000Z
2022-03-12T11:04:58.000Z
# # vsp_central # # Python class for BLE VSP central role # # This implements the core functionality of the central # role using VSP (virtual serial port) communication with # a remote peripheral (such as a sensor). This class # works along with the central smartBASIC application # running on the Bluetooth 5 co-proces...
36.555556
97
0.568389
17d23bf952e935e3acf9cd41d8d1ac8c2ae4aedd
2,052
py
Python
whatsapp-bot/whatsapp-bot.py
geekymeeky/PyAutomate
de83238eddb88cd8f35f7cdaa339a5be31578c11
[ "MIT" ]
null
null
null
whatsapp-bot/whatsapp-bot.py
geekymeeky/PyAutomate
de83238eddb88cd8f35f7cdaa339a5be31578c11
[ "MIT" ]
null
null
null
whatsapp-bot/whatsapp-bot.py
geekymeeky/PyAutomate
de83238eddb88cd8f35f7cdaa339a5be31578c11
[ "MIT" ]
null
null
null
from selenium import webdriver from pandas import read_csv from datetime import datetime from time import sleep def loadText(): """[loads the text from 'message.txt' file] """ with open('message.txt', 'r') as text_file: message = text_file.read().replace('\n', ' ') return message def loadCon...
26.307692
72
0.622807
cda84821487cb96b9f45ee17bb4adcba5d09c708
3,107
py
Python
eztda/examples.py
ulgenklc/DONUT
ce721d558f5f5e739795606091615ed4444cd411
[ "MIT" ]
2
2020-06-10T10:16:04.000Z
2020-08-06T04:33:37.000Z
eztda/examples.py
ulgenklc/DONUTDA
ce721d558f5f5e739795606091615ed4444cd411
[ "MIT" ]
null
null
null
eztda/examples.py
ulgenklc/DONUTDA
ce721d558f5f5e739795606091615ed4444cd411
[ "MIT" ]
null
null
null
from eztda import Cell, FilteredComplex, pdiagram, LDAComplex, ImageComplex import numpy as np import matplotlib.pyplot as plt import matplotlib.image as mpimg def triangle(): """ Example Persistent Homology Computation on Filtered triangle The triangle fills in one vertex, edge, and face at ...
32.364583
342
0.624718
34f4d8c542725a12f8e62f759f1ceb85a6744f7d
4,778
py
Python
python/paddle/fluid/tests/unittests/test_dist_fleet_grad_clip.py
Sand3r-/Paddle
1217a521554d63caa1381b8716910d0268dfc22d
[ "Apache-2.0" ]
2
2020-02-11T08:53:05.000Z
2020-02-20T08:06:25.000Z
python/paddle/fluid/tests/unittests/test_dist_fleet_grad_clip.py
MaJun-cn/Paddle
0ec3a42e9740a5f5066053bb49a923d538eba24a
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/test_dist_fleet_grad_clip.py
MaJun-cn/Paddle
0ec3a42e9740a5f5066053bb49a923d538eba24a
[ "Apache-2.0" ]
4
2020-07-27T13:24:03.000Z
2020-08-06T08:20:32.000Z
# Copyright (c) 2019 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 appli...
34.374101
84
0.628924
1fc996b8869b18696fe1586905dfb711a648c91a
165
py
Python
prawdditions/__init__.py
praw-dev/prawdditions
0a13236c3d3f192399f9aaf6ba811619f22eb345
[ "BSD-2-Clause" ]
6
2017-10-09T07:55:47.000Z
2021-12-16T06:12:31.000Z
prawdditions/__init__.py
praw-dev/prawdditions
0a13236c3d3f192399f9aaf6ba811619f22eb345
[ "BSD-2-Clause" ]
1
2021-05-27T17:06:20.000Z
2021-06-08T07:41:33.000Z
prawdditions/__init__.py
praw-dev/prawdditions
0a13236c3d3f192399f9aaf6ba811619f22eb345
[ "BSD-2-Clause" ]
3
2017-06-20T15:59:36.000Z
2020-03-16T00:18:36.000Z
"""Top level of the PRAWdditions package.""" import prawdditions.patch # NOQA (seems to get rid of any sphinx build errors) from .const import __version__ # NOQA
33
79
0.751515
5387d8b134e25805babfbeb5e933a7a27442205c
201
py
Python
xivdb/src/jobs/job.py
luther38/XivDbWeb
204d066232c04dce0ea5a03ec55f160cfbc62659
[ "MIT" ]
null
null
null
xivdb/src/jobs/job.py
luther38/XivDbWeb
204d066232c04dce0ea5a03ec55f160cfbc62659
[ "MIT" ]
null
null
null
xivdb/src/jobs/job.py
luther38/XivDbWeb
204d066232c04dce0ea5a03ec55f160cfbc62659
[ "MIT" ]
null
null
null
class Job(): """ This is the base class for all jobs to take to standaize them. """ def __init__(self) -> None: pass def runJob(self): raise NotImplementedError
15.461538
66
0.58209
2a18685f1910615e1f210f6d090d35971be7dad8
51,290
py
Python
neutron/plugins/ml2/drivers/ovn/mech_driver/mech_driver.py
cloudification-io/neutron
e17464ad11bec9555ee1ac51159b7e15711050c5
[ "Apache-2.0" ]
1
2020-01-29T17:06:17.000Z
2020-01-29T17:06:17.000Z
neutron/plugins/ml2/drivers/ovn/mech_driver/mech_driver.py
cloudification-io/neutron
e17464ad11bec9555ee1ac51159b7e15711050c5
[ "Apache-2.0" ]
null
null
null
neutron/plugins/ml2/drivers/ovn/mech_driver/mech_driver.py
cloudification-io/neutron
e17464ad11bec9555ee1ac51159b7e15711050c5
[ "Apache-2.0" ]
null
null
null
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # ...
45.109938
79
0.632131
e135833c9b4bd886d10f86e27db08e84ad6df151
1,315
py
Python
app/core/tests/tests_admin.py
DiegoTGJ/django-udemy-recipe
0db83f064664db76d2cca240b88b5261165716d2
[ "MIT" ]
null
null
null
app/core/tests/tests_admin.py
DiegoTGJ/django-udemy-recipe
0db83f064664db76d2cca240b88b5261165716d2
[ "MIT" ]
null
null
null
app/core/tests/tests_admin.py
DiegoTGJ/django-udemy-recipe
0db83f064664db76d2cca240b88b5261165716d2
[ "MIT" ]
null
null
null
from django.test import TestCase, Client from django.contrib.auth import get_user_model from django.urls import reverse class adminSiteTests(TestCase): def setUp(self): self.client = Client() self.admin_user = get_user_model().objects.create_superuser( email='admin@test.com', ...
29.886364
68
0.635741
13f25f2e7a128497195a492b1b7986ba9ad43c78
671
py
Python
lib/core/functions.py
vasgaowei/ts-cam-voc
58fcb1d3b2667331d9a16810123d4b2fba23c3e1
[ "MIT" ]
null
null
null
lib/core/functions.py
vasgaowei/ts-cam-voc
58fcb1d3b2667331d9a16810123d4b2fba23c3e1
[ "MIT" ]
null
null
null
lib/core/functions.py
vasgaowei/ts-cam-voc
58fcb1d3b2667331d9a16810123d4b2fba23c3e1
[ "MIT" ]
null
null
null
import os import torch.backends.cudnn as cudnn import numpy as np from utils import fix_random_seed, backup_codes, rm def prepare_env(cfg): # fix random seed fix_random_seed(cfg.BASIC.SEED) # cudnn cudnn.benchmark = cfg.CUDNN.BENCHMARK # Benchmark will impove the speed cudnn.deterministic = cfg....
29.173913
111
0.724292
ffa72ab0a9b5ab5bf4c2c9e8df1049062b66040e
3,967
py
Python
myanonamouse/views.py
OdinGitDat/WhatManager2
ddbce0fa1ff4e1fc44bfa726c4f7eace4adbe8a9
[ "MIT" ]
1
2018-03-23T13:11:30.000Z
2018-03-23T13:11:30.000Z
myanonamouse/views.py
SavageCore/WhatManager2
5a0fc5af8c9168fa199124aaa2aa56495dc0a40b
[ "MIT" ]
null
null
null
myanonamouse/views.py
SavageCore/WhatManager2
5a0fc5af8c9168fa199124aaa2aa56495dc0a40b
[ "MIT" ]
null
null
null
import traceback import time from django.contrib.auth.decorators import login_required, user_passes_test from django.http.response import HttpResponse from WhatManager2.utils import json_return_method from home.models import ReplicaSet, LogEntry, TorrentAlreadyAddedException from myanonamouse import trans_sync, manag...
33.905983
100
0.63146
bb73ea26ed2834e10e5fe8e36fca26ccd9c68f5e
15,359
py
Python
fastseq/optimizer/fairseq/generate.py
cep21/fastseq
fbdb59ebbc2c08178e0551fbe59dcc27c8992822
[ "MIT" ]
null
null
null
fastseq/optimizer/fairseq/generate.py
cep21/fastseq
fbdb59ebbc2c08178e0551fbe59dcc27c8992822
[ "MIT" ]
null
null
null
fastseq/optimizer/fairseq/generate.py
cep21/fastseq
fbdb59ebbc2c08178e0551fbe59dcc27c8992822
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. """Optimize fairseq-generate (v0.9.0)""" import logging import sys from multiprocessing import Queue, JoinableQueue from torch.multiprocessing import Process import torch from fairseq_cli.generate import main from fairseq import bleu, checkpoi...
36.656325
129
0.551924
4f5ad602aaaaa89dcb7a419f6ecd28f84db9570b
4,625
py
Python
mushroom_rl/utils/preprocessors.py
jacarvalho/mushroom-rl
ba0a62454d771a1d3cacbec1ea9d71535f476b31
[ "MIT" ]
null
null
null
mushroom_rl/utils/preprocessors.py
jacarvalho/mushroom-rl
ba0a62454d771a1d3cacbec1ea9d71535f476b31
[ "MIT" ]
null
null
null
mushroom_rl/utils/preprocessors.py
jacarvalho/mushroom-rl
ba0a62454d771a1d3cacbec1ea9d71535f476b31
[ "MIT" ]
null
null
null
import pickle import numpy as np from mushroom_rl.utils.running_stats import RunningStandardization class StandardizationPreprocessor(object): """ Preprocess observations from the environment using a running standardization. """ def __init__(self, mdp_info, clip_obs=10., alpha=1e-32): ""...
30.228758
84
0.59373
cc11d75de001b7312ec5417523a06219052ecbd2
2,424
py
Python
db/tools.py
skriems/cherrypy-recipes
730188ce01511e81263b4c9645e2aa43533dbef8
[ "MIT" ]
null
null
null
db/tools.py
skriems/cherrypy-recipes
730188ce01511e81263b4c9645e2aa43533dbef8
[ "MIT" ]
null
null
null
db/tools.py
skriems/cherrypy-recipes
730188ce01511e81263b4c9645e2aa43533dbef8
[ "MIT" ]
null
null
null
import cherrypy class Psycopg2Tool(cherrypy.Tool): def __init__(self): super(Psycopg2Tool, self).__init__('on_start_resource', self.bind_connection, priority=20) def _setup(self): cherrypy.Tool._setup(self) ...
35.130435
69
0.580033
ba6d162379436e53bd8ea2056d362c37012b3824
6,608
py
Python
demo/demo_chunkator/tests.py
alpaca-technology/django-chunkator
10c0b3ce63f6bcb1833ff1518725c68a3d452807
[ "MIT" ]
null
null
null
demo/demo_chunkator/tests.py
alpaca-technology/django-chunkator
10c0b3ce63f6bcb1833ff1518725c68a3d452807
[ "MIT" ]
null
null
null
demo/demo_chunkator/tests.py
alpaca-technology/django-chunkator
10c0b3ce63f6bcb1833ff1518725c68a3d452807
[ "MIT" ]
null
null
null
import six from django.test import TestCase from chunkator import MissingPkFieldException from chunkator import chunkator from chunkator import chunkator_page from demo_chunkator.models import Book from demo_chunkator.models import Cover from demo_chunkator.models import Profile from demo_chunkator.models import User...
34.962963
79
0.612137
bfecd7931922d03074686e5ef20295a4b2c938bd
485
py
Python
disturbance/migrations/0098_auto_20200702_1347.py
thakurpriya1990/disturbance
47f9ce5ae5f1b02d97ace11f1041e96daf7e4556
[ "Apache-2.0" ]
1
2020-06-30T04:47:42.000Z
2020-06-30T04:47:42.000Z
disturbance/migrations/0098_auto_20200702_1347.py
thakurpriya1990/disturbance
47f9ce5ae5f1b02d97ace11f1041e96daf7e4556
[ "Apache-2.0" ]
16
2020-03-11T08:25:46.000Z
2022-03-02T08:14:40.000Z
disturbance/migrations/0098_auto_20200702_1347.py
thakurpriya1990/disturbance
47f9ce5ae5f1b02d97ace11f1041e96daf7e4556
[ "Apache-2.0" ]
9
2020-01-30T17:37:38.000Z
2021-09-30T02:22:24.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2020-07-02 05:47 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('disturbance', '0097_remove_annualrentalfee_payment_type'), ] operations = [ migrati...
23.095238
68
0.651546
aad6e136ea5d7053f0aaa852aaf91a6a9eff909a
360
py
Python
Testing/If settning.py
AndersHam/DAT120_eksempler
b9324459ca7fd8323053b328a6a43c0e11bb92a5
[ "MIT" ]
null
null
null
Testing/If settning.py
AndersHam/DAT120_eksempler
b9324459ca7fd8323053b328a6a43c0e11bb92a5
[ "MIT" ]
null
null
null
Testing/If settning.py
AndersHam/DAT120_eksempler
b9324459ca7fd8323053b328a6a43c0e11bb92a5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Sep 7 17:54:46 2021 @author: -anders- """ tall_streng = input("Skriv inn et heltall: ") tallet = int(tall_streng) if tallet < 0: print("Tallet er nagativt") print("") elif tallet == 0: print("Tallet er lik 0") else: print("Tallet er ik...
18.947368
45
0.627778
2cd0e3d9bb8ceeac6944793ca1e63ce9a0840863
683
py
Python
saleor/lib/python3.7/site-packages/django_prices_openexchangerates/management/commands/update_exchange_rates.py
cxsper/saleor
5566ddcdaf8f72ba872eca869798e66eb9cdae44
[ "BSD-3-Clause" ]
2
2019-12-06T15:40:14.000Z
2020-07-29T21:30:35.000Z
saleor/lib/python3.7/site-packages/django_prices_openexchangerates/management/commands/update_exchange_rates.py
cxsper/saleor
5566ddcdaf8f72ba872eca869798e66eb9cdae44
[ "BSD-3-Clause" ]
13
2020-03-24T17:53:51.000Z
2022-02-10T20:01:14.000Z
saleor/lib/python3.7/site-packages/django_prices_openexchangerates/management/commands/update_exchange_rates.py
cxsper/saleor
5566ddcdaf8f72ba872eca869798e66eb9cdae44
[ "BSD-3-Clause" ]
null
null
null
from django.core.management.base import BaseCommand from ...tasks import update_conversion_rates, create_conversion_dates class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument( '--all', action='store_true', dest='all_currencies', ...
29.695652
69
0.629575
d2aaa1020842af416b1b7c9de2199a318f49fa80
542
py
Python
vgg16.py
matonima/lightweight-classifier
35fd188595d771b738ec4e84501e45ca7110fb5a
[ "CC0-1.0" ]
null
null
null
vgg16.py
matonima/lightweight-classifier
35fd188595d771b738ec4e84501e45ca7110fb5a
[ "CC0-1.0" ]
null
null
null
vgg16.py
matonima/lightweight-classifier
35fd188595d771b738ec4e84501e45ca7110fb5a
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Oct 15 09:36:23 2020 @author: tonim """ from tensorflow.keras.applications.vgg16 import VGG16 from tensorflow.keras.preprocessing import image from tensorflow.keras.applications.vgg16 import preprocess_input import numpy as np model=VGG16(include_top=False, weight...
28.526316
87
0.747232
780a06192dcf8c743f72eb577df3ad1d3cadd657
68,719
py
Python
Lib/asyncio/base_events.py
coderkids3/cpython
103e9e54395f5a72403b5c339a7cc89ec3dc83e4
[ "PSF-2.0" ]
1
2018-10-05T20:17:22.000Z
2018-10-05T20:17:22.000Z
Lib/asyncio/base_events.py
ukbaranwal/cpython
addf8afb43af58b9bf56a0ecfd0f316dd60ac0c3
[ "PSF-2.0" ]
3
2017-03-21T19:48:38.000Z
2017-03-22T01:06:56.000Z
Lib/asyncio/base_events.py
ukbaranwal/cpython
addf8afb43af58b9bf56a0ecfd0f316dd60ac0c3
[ "PSF-2.0" ]
null
null
null
"""Base implementation of event loop. The event loop can be broken up into a multiplexer (the part responsible for notifying us of I/O events) and the event loop proper, which wraps a multiplexer with functionality for scheduling callbacks, immediately or at a given time in the future. Whenever a public API takes a c...
38.519619
83
0.572113
ffe9e60d5fe6f8ad55dec5f0f516007ad7d3483a
2,255
py
Python
code/ASR/Adapter/balanced_sampler.py
lw0517/transferlearning
230df8850b09f896a799ad865072c0164f45fadc
[ "MIT" ]
9,657
2017-05-01T03:29:35.000Z
2022-03-31T21:25:30.000Z
code/ASR/Adapter/balanced_sampler.py
xiaohuihui-com/transferlearning
17583db86db19709ff483a24590f0d5b88e25fe5
[ "MIT" ]
262
2017-09-16T09:33:02.000Z
2022-03-30T05:08:45.000Z
code/ASR/Adapter/balanced_sampler.py
xiaohuihui-com/transferlearning
17583db86db19709ff483a24590f0d5b88e25fe5
[ "MIT" ]
3,273
2017-05-01T06:28:31.000Z
2022-03-31T09:57:48.000Z
import torch import torch.utils.data import random import collections import logging import numpy as np from torch.utils.data.sampler import BatchSampler, WeightedRandomSampler # https://github.com/khornlund/pytorch-balanced-sampler class BalancedBatchSampler(torch.utils.data.sampler.Sampler): ''' https://git...
40.267857
108
0.644789
a713c1ead95cc87d472a75c70e163ec1253f42be
369
py
Python
Programas de exercicios/exercicio060.py
Elvis-Almeida/Python
91f1427f2aea37f7019b185dc6cb77edc8babc03
[ "MIT" ]
null
null
null
Programas de exercicios/exercicio060.py
Elvis-Almeida/Python
91f1427f2aea37f7019b185dc6cb77edc8babc03
[ "MIT" ]
null
null
null
Programas de exercicios/exercicio060.py
Elvis-Almeida/Python
91f1427f2aea37f7019b185dc6cb77edc8babc03
[ "MIT" ]
null
null
null
#calculando fatorial '''import math n = int(input('Digite um valor: ')) print('Seu fatorial é {}'.format(math.factorial(n)))''' n1 = int(input('Digite um valor: ')) n = n1 r = 1 c = n1 print('Calculando...') print('{}! = '.format(n1), end = '') while n > 0: print(c, end = ' ') print('x 'if c > 1 else '= ', end =...
20.5
55
0.531165
64259f54be4b16e5e924d53fb3c8f8705ab12bd6
20,889
py
Python
sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2019_03_01/aio/operations/_bandwidth_schedules_operations.py
GoWang/azure-sdk-for-python
f241e3734a50953c2a37c10d2d84eb4c013b3ba0
[ "MIT" ]
2
2021-03-24T06:26:11.000Z
2021-04-18T15:55:59.000Z
sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2019_03_01/aio/operations/_bandwidth_schedules_operations.py
GoWang/azure-sdk-for-python
f241e3734a50953c2a37c10d2d84eb4c013b3ba0
[ "MIT" ]
2
2021-11-03T06:10:36.000Z
2021-12-01T06:29:39.000Z
sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2019_03_01/aio/operations/_bandwidth_schedules_operations.py
GoWang/azure-sdk-for-python
f241e3734a50953c2a37c10d2d84eb4c013b3ba0
[ "MIT" ]
1
2021-05-19T02:55:10.000Z
2021-05-19T02:55:10.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 ...
48.692308
224
0.665087
bbae1d39c7591eeb0a2994eec8875c86034b20c2
3,983
py
Python
packages/meta/setup.py
lesperry/Metagenomics
a1d8b7d96b32ab83cebe513e889b6ef82f7c1dd6
[ "CC-BY-3.0" ]
null
null
null
packages/meta/setup.py
lesperry/Metagenomics
a1d8b7d96b32ab83cebe513e889b6ef82f7c1dd6
[ "CC-BY-3.0" ]
2
2020-08-19T18:14:59.000Z
2020-08-20T01:19:12.000Z
packages/meta/setup.py
lesperry/Metagenomics
a1d8b7d96b32ab83cebe513e889b6ef82f7c1dd6
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import ast import os import re try: from setuptools import setup except ImportError: from distutils.core import setup SOURCE_DIR = "galaxy" _version_re = re.compile(r'__version__\s+=\s+(.*)') with open('%s/project_galaxy_meta.py' % SOURCE_DIR, 'rb') as f: in...
31.117188
73
0.631936
e4263d213b40f27791b51277ed6a197f2e76b29b
1,158
py
Python
app/covidbed/repository/user.py
opencovid19-fr/coordination-dispo-lits
d252df23f570f6a83a5c6af36056ed5f2cf02fe0
[ "MIT" ]
2
2020-04-22T08:43:00.000Z
2020-05-03T17:46:16.000Z
app/covidbed/repository/user.py
dbaelipro/coordination-dispo-lits
d252df23f570f6a83a5c6af36056ed5f2cf02fe0
[ "MIT" ]
8
2020-04-07T16:36:51.000Z
2020-04-26T10:34:26.000Z
app/covidbed/repository/user.py
dbaelipro/coordination-dispo-lits
d252df23f570f6a83a5c6af36056ed5f2cf02fe0
[ "MIT" ]
4
2020-04-18T22:53:33.000Z
2021-06-04T09:31:13.000Z
from covidbed.model import User, Organization, Platform, FinessEtablissement, Address, Company, OrganizationType, Region from covidbed.repository.orga import create_organization def find_users(): return [user.json for user in User.query] def get_user_by_id(_id): """ :param _id: :return: """ ...
23.16
120
0.668394
fa8d8e6d91f50edca9f0574236e634ed27cbdb12
30,454
py
Python
synapse/rest/admin/users.py
jdreichmann/synapse
6fde6aa9c02d35e0a908437ea49b275df9b58427
[ "Apache-2.0" ]
1
2020-11-04T14:12:27.000Z
2020-11-04T14:12:27.000Z
synapse/rest/admin/users.py
jdreichmann/synapse
6fde6aa9c02d35e0a908437ea49b275df9b58427
[ "Apache-2.0" ]
null
null
null
synapse/rest/admin/users.py
jdreichmann/synapse
6fde6aa9c02d35e0a908437ea49b275df9b58427
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019 The Matrix.org Foundation C.I.C. # # 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...
34.489241
90
0.613187
e2864b9c1414f6e7c47f2b95b0830c792b025cc6
6,230
py
Python
faker/providers/currency/es_ES/__init__.py
jeffwright13/faker
9192d5143d5f1b832cc0f44b3f7ee89ca28c975a
[ "MIT" ]
3
2019-03-06T03:02:25.000Z
2021-11-26T07:30:43.000Z
faker/providers/currency/es_ES/__init__.py
Haytam222/faker
9929afc9c9fd4bd75f2ad4b7eb9c132e67e66ce8
[ "MIT" ]
2
2021-05-12T06:25:57.000Z
2022-03-01T04:16:03.000Z
env/lib/python3.9/site-packages/faker/providers/currency/es_ES/__init__.py
simotwo/AbileneParadox-ddd
c85961efb37aba43c0d99ed1c36d083507e2b2d3
[ "MIT" ]
2
2021-09-22T12:47:59.000Z
2021-12-10T08:18:23.000Z
from .. import Provider as CurrencyProvider class Provider(CurrencyProvider): # Format: (code, name) currencies = ( ("AED", "Dírham de los Emiratos Árabes Unidos"), ("AFN", "Afghaní"), ("ALL", "Lek albanés"), ("AMD", "Dram armenio"), ("ANG", "Florín de las Antillas Hola...
34.611111
72
0.46565
672d594e627779008d915363c19133bfdd508ad9
251
py
Python
learningpythonthehardway/ex15.py
stephaneAG/Python_tests
dc0a8819b4f49f50f17b3ffcf009c082535e1dbe
[ "MIT" ]
null
null
null
learningpythonthehardway/ex15.py
stephaneAG/Python_tests
dc0a8819b4f49f50f17b3ffcf009c082535e1dbe
[ "MIT" ]
null
null
null
learningpythonthehardway/ex15.py
stephaneAG/Python_tests
dc0a8819b4f49f50f17b3ffcf009c082535e1dbe
[ "MIT" ]
null
null
null
# to run : ' python ex15.py ex15_sample.txt ' from sys import argv script, filename = argv txt = open(filename) # creates a file object print "Here, the content of the file %r:" % filename print txt.read() # read from the file object txt.close()
19.307692
52
0.705179
5923d6372f049b3f7bb5eeef4b9b305b5b332995
790
py
Python
rootCA.py
MNedashkivskyi/text-chat-system
3363df44afde24f1b0f1b5fd2f50de5057fbda1d
[ "MIT" ]
null
null
null
rootCA.py
MNedashkivskyi/text-chat-system
3363df44afde24f1b0f1b5fd2f50de5057fbda1d
[ "MIT" ]
null
null
null
rootCA.py
MNedashkivskyi/text-chat-system
3363df44afde24f1b0f1b5fd2f50de5057fbda1d
[ "MIT" ]
null
null
null
from OpenSSL import crypto import os class RootCA: def __init__(self, ca_path, crl_path): self.store = crypto.X509Store() self.store.set_flags(crypto.X509StoreFlags.CRL_CHECK) if os.path.exists(ca_path): self.store.add_cert(crypto.load_certificate(crypto.FILETYPE_PEM, open(ca_...
28.214286
105
0.659494
5b24e7ed2febbcfeb2a897ec9a929f926a2ebde3
6,927
py
Python
sarveshcli/packages/reminder.py
sonkarsr/Tutor
0a70bdccefa96c6d83653b563693585bd6009cff
[ "MIT" ]
null
null
null
sarveshcli/packages/reminder.py
sonkarsr/Tutor
0a70bdccefa96c6d83653b563693585bd6009cff
[ "MIT" ]
null
null
null
sarveshcli/packages/reminder.py
sonkarsr/Tutor
0a70bdccefa96c6d83653b563693585bd6009cff
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import datetime as dt from uuid import uuid4 from threading import Timer from fileHandler import write_file, read_file, str2date from utilities.lexicalSimilarity import score_sentence, compare_sentence from utilities.textParser import parse_number, parse_date from utilities.Gene...
31.343891
116
0.63072
11519e2067a7d34d10186815c4553f60764dbb33
3,384
py
Python
models/modules/custom2.py
JRC1995/CapsuleRoutingEncoders
a99c666f33a2ea98f60b944df19d699ee3f3b009
[ "MIT" ]
null
null
null
models/modules/custom2.py
JRC1995/CapsuleRoutingEncoders
a99c666f33a2ea98f60b944df19d699ee3f3b009
[ "MIT" ]
null
null
null
models/modules/custom2.py
JRC1995/CapsuleRoutingEncoders
a99c666f33a2ea98f60b944df19d699ee3f3b009
[ "MIT" ]
null
null
null
import torch as T import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import numpy as np import math class routing(nn.Module): def __init__(self, D, n_in, n_out, in_dim, out_dim, device): super(routing, self).__init__() self.D = D self.in_dim = in_dim ...
33.176471
83
0.559397
d0e4e0ed849c84c76009830d68a383cffe6dc6a4
1,778
py
Python
allink_core/core_apps/allink_image_svg/cms_plugins.py
allink/allink-core
cf2727f26192d8dee89d76feb262bc4760f36f5e
[ "BSD-3-Clause" ]
5
2017-03-13T08:49:45.000Z
2022-03-05T20:05:56.000Z
allink_core/core_apps/allink_image_svg/cms_plugins.py
allink/allink-core
cf2727f26192d8dee89d76feb262bc4760f36f5e
[ "BSD-3-Clause" ]
28
2019-10-21T08:32:18.000Z
2022-02-10T13:16:38.000Z
allink_core/core_apps/allink_image_svg/cms_plugins.py
allink/allink-core
cf2727f26192d8dee89d76feb262bc4760f36f5e
[ "BSD-3-Clause" ]
null
null
null
from django.utils.translation import ugettext_lazy as _ from django import forms from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from .models import AllinkImageSVGPlugin from allink_core.core.forms.mixins import AllinkInternalLinkFieldMixin from allink_core.core.forms.fields import Se...
30.655172
80
0.603487
c1a50e43e0af4eae0c1e9519cd9a68ad922d9f06
2,697
py
Python
scripts/dmhy.py
not94/AlfredWorkflow
b6dba720c9b1759112d0aa553f58beed0f9daad9
[ "MIT" ]
null
null
null
scripts/dmhy.py
not94/AlfredWorkflow
b6dba720c9b1759112d0aa553f58beed0f9daad9
[ "MIT" ]
null
null
null
scripts/dmhy.py
not94/AlfredWorkflow
b6dba720c9b1759112d0aa553f58beed0f9daad9
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- import json import sys import os from urllib.parse import quote from lib import feedparser class RSSSpider(object): # rss url BASE_URL = "https://www.dmhy.org/topics/rss/rss.xml" SEARCH_URL = "https://www.dmhy.org/topics/rss/rss.xml?keyword={}" TEAM_URL = "https://share.dmhy.o...
28.09375
73
0.534668
5a3b4f707e8b1d013f4b01a0434c903a08371b17
1,441
py
Python
recipe/build.py
dougalsutherland/cudatoolkit-dev-feedstock
4e15984e6801b52e740911f7724951b3fcf6153c
[ "BSD-3-Clause" ]
1
2020-07-12T09:18:58.000Z
2020-07-12T09:18:58.000Z
recipe/build.py
dougalsutherland/cudatoolkit-dev-feedstock
4e15984e6801b52e740911f7724951b3fcf6153c
[ "BSD-3-Clause" ]
null
null
null
recipe/build.py
dougalsutherland/cudatoolkit-dev-feedstock
4e15984e6801b52e740911f7724951b3fcf6153c
[ "BSD-3-Clause" ]
1
2021-04-17T15:55:18.000Z
2021-04-17T15:55:18.000Z
from __future__ import print_function import argparse import json import os import shutil import stat from pathlib import Path def copy_files(src, dst): def set_chmod(file_name): # Do a simple chmod +x for a file within python st = os.stat(file_name) os.chmod(file_name, st.st_mode | stat....
28.82
84
0.691881
68a0598e12820642f5307fbaebedf80c431b834e
395
py
Python
compose/cli/signals.py
matthieudelaro/dockernut
998f614c6ad018873f3b3aee58841c62e1b160da
[ "Apache-2.0" ]
8,120
2016-12-05T06:37:45.000Z
2022-03-21T14:45:20.000Z
compose/cli/signals.py
matthieudelaro/dockernut
998f614c6ad018873f3b3aee58841c62e1b160da
[ "Apache-2.0" ]
213
2016-12-05T09:57:37.000Z
2018-04-05T18:55:14.000Z
compose/cli/signals.py
matthieudelaro/dockernut
998f614c6ad018873f3b3aee58841c62e1b160da
[ "Apache-2.0" ]
1,140
2016-12-05T06:50:43.000Z
2022-03-23T08:28:32.000Z
from __future__ import absolute_import from __future__ import unicode_literals import signal class ShutdownException(Exception): pass def shutdown(signal, frame): raise ShutdownException() def set_signal_handler(handler): signal.signal(signal.SIGINT, handler) signal.signal(signal.SIGTERM, handler...
17.954545
42
0.789873
96c5b6f8cc1f78f23160028a5ae65ef4cc26d8a8
2,832
py
Python
main.py
jangeador/esp8266
27f508a9bcea2912ff86e4cb384e5f1256d9fb2e
[ "MIT" ]
null
null
null
main.py
jangeador/esp8266
27f508a9bcea2912ff86e4cb384e5f1256d9fb2e
[ "MIT" ]
null
null
null
main.py
jangeador/esp8266
27f508a9bcea2912ff86e4cb384e5f1256d9fb2e
[ "MIT" ]
null
null
null
import time import dht import machine import network from umqtt.simple import MQTTClient from config import CONFIG from esp8266_i2c_lcd import I2cLcd client = None sensor_pin = None temperature = None humidity = None def topic_name(topic): return b"/".join([b"sensors", CONFIG['client_id'], topic]) def setup_...
24.626087
80
0.590395
07caf64108ce7e3f5f6b6dc727d89f1ab209f0cf
13,271
py
Python
log_mito_act/model_306.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_mito_act/model_306.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_mito_act/model_306.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C8A', ['BidU']) Monomer('BaxM', ['BidM', 'BaxA']) Monomer('Apop', ['C3pro', 'X...
79.467066
614
0.809736
72ef685abf2dd8231e03046ea126652e6323f5a1
1,013
py
Python
python/add_two_numbers.py
soumasish/leetcode
7c626800c391733ea32c1b7321c5c24c9b6731a6
[ "MIT" ]
10
2019-04-29T17:02:31.000Z
2021-07-04T16:20:59.000Z
python/add_two_numbers.py
soumasish/leetcode
7c626800c391733ea32c1b7321c5c24c9b6731a6
[ "MIT" ]
null
null
null
python/add_two_numbers.py
soumasish/leetcode
7c626800c391733ea32c1b7321c5c24c9b6731a6
[ "MIT" ]
8
2019-04-24T18:26:02.000Z
2021-06-26T05:47:17.000Z
"""Created by sgoswami on 10/7/17.""" """You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list. You may assume the two numbers do not contain any leading...
25.974359
113
0.541955
cb7e4e8f8dc982057b8270c5328b23cdd50b7801
3,895
py
Python
c7n/resources/secretsmanager.py
chris-angeli-rft/cloud-custodian
5ff331b114a591dbaf6d672e30ceefb7ae64a5dd
[ "Apache-2.0" ]
8
2021-05-18T02:22:03.000Z
2021-09-11T02:49:04.000Z
c7n/resources/secretsmanager.py
chris-angeli-rft/cloud-custodian
5ff331b114a591dbaf6d672e30ceefb7ae64a5dd
[ "Apache-2.0" ]
1
2021-04-26T04:38:35.000Z
2021-04-26T04:38:35.000Z
c7n/resources/secretsmanager.py
chris-angeli-rft/cloud-custodian
5ff331b114a591dbaf6d672e30ceefb7ae64a5dd
[ "Apache-2.0" ]
1
2020-12-28T23:21:30.000Z
2020-12-28T23:21:30.000Z
# Copyright 2018 Capital One Services, 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...
32.190083
90
0.656483
770d9912e735d979b4f031a1d4a127ee166e32e8
12,966
py
Python
python/dgl/nn/pytorch/conv/gatconv.py
joshcarty/dgl
4464b9734c1061bd84325a54883c5046031def37
[ "Apache-2.0" ]
4
2018-12-25T14:59:08.000Z
2021-07-02T12:36:40.000Z
python/dgl/nn/pytorch/conv/gatconv.py
joshcarty/dgl
4464b9734c1061bd84325a54883c5046031def37
[ "Apache-2.0" ]
1
2020-12-26T12:43:54.000Z
2020-12-26T12:43:54.000Z
python/dgl/nn/pytorch/conv/gatconv.py
joshcarty/dgl
4464b9734c1061bd84325a54883c5046031def37
[ "Apache-2.0" ]
4
2020-12-26T10:39:36.000Z
2020-12-26T12:38:52.000Z
"""Torch modules for graph attention networks(GAT).""" # pylint: disable= no-member, arguments-differ, invalid-name import torch as th from torch import nn from .... import function as fn from ....ops import edge_softmax from ....base import DGLError from ..utils import Identity from ....utils import expand_as_pair #...
42.234528
99
0.563474
ee7296ac021730c80ad674d90a17611ce535330e
2,142
py
Python
tests/fuzzy_tests.py
va-dudnikov/pygraph7
bf3469ca75f44283ee647dc10fa7d94bb7834cf3
[ "MIT" ]
2
2018-08-02T10:15:39.000Z
2018-08-02T17:32:11.000Z
tests/fuzzy_tests.py
va-dudnikov/pygraph7
bf3469ca75f44283ee647dc10fa7d94bb7834cf3
[ "MIT" ]
null
null
null
tests/fuzzy_tests.py
va-dudnikov/pygraph7
bf3469ca75f44283ee647dc10fa7d94bb7834cf3
[ "MIT" ]
null
null
null
# Simple fuzzy test import unittest import graph7 as g7 import copy import random MIN_INT_VAL = 0 MAX_INT_VAL = 2**128 MIN_ORDER = 3 MAX_ORDER = 50 NITERS = 1 class TestGraph7(unittest.TestCase): def _testing(self, min_order, max_order, wtype, niters, min_int_val = 0, max_int_val = 1): def to_undirected(...
31.970149
110
0.569561
8e332a1177af9ec5220d6674f8ca4dd4b7990819
6,512
py
Python
objectflow-static.py
tanayrastogi/ObjectFlow-static
4f6f33966ca414685a111dbe76df83c47dd87f7e
[ "MIT" ]
null
null
null
objectflow-static.py
tanayrastogi/ObjectFlow-static
4f6f33966ca414685a111dbe76df83c47dd87f7e
[ "MIT" ]
null
null
null
objectflow-static.py
tanayrastogi/ObjectFlow-static
4f6f33966ca414685a111dbe76df83c47dd87f7e
[ "MIT" ]
null
null
null
# Python Imports import numpy as np import cv2 import time from shapely import geometry import argparse import imutils # Local libraries import ObjectDetection from pyimagesearch.centroidtracker import CentroidTracker import Utils.utils as ut # Check if the points are in the polygon def check_box_in_polygon(polyg...
35.391304
95
0.607801
5af009674cb5d7c4d20cc2f41a0477984714d02b
1,520
py
Python
frappe_telegram/utils/formatting.py
rafatali686/frappe_telegram
724ead04a531eddfe935acf35282684fef41cb67
[ "MIT" ]
16
2021-07-25T09:30:28.000Z
2022-03-24T04:56:57.000Z
frappe_telegram/utils/formatting.py
rafatali686/frappe_telegram
724ead04a531eddfe935acf35282684fef41cb67
[ "MIT" ]
5
2021-08-24T18:07:13.000Z
2022-02-03T04:26:08.000Z
frappe_telegram/utils/formatting.py
rafatali686/frappe_telegram
724ead04a531eddfe935acf35282684fef41cb67
[ "MIT" ]
10
2021-07-27T07:26:11.000Z
2022-03-24T11:16:38.000Z
import re def strip_unsupported_html_tags(txt: str) -> str: """ Only a set of formatting options are supported https://core.telegram.org/bots/api#formatting-options """ tags_supported = [ "b", "strong", # Bold "i", "em", # Italics "u", "ins", ...
28.148148
96
0.431579
40bf70b371dad899d8fb122399a4f7fd7100535d
2,658
py
Python
openGaussBase/testcase/MOT/Opengauss_Function_MOT_Case0020.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/MOT/Opengauss_Function_MOT_Case0020.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/MOT/Opengauss_Function_MOT_Case0020.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
40.272727
106
0.643717
a05f373c908a9e3713883f4d200bcf34725b62fa
45,819
py
Python
www_local/controller/findmaster.py
2218084076/hotpoor_autoclick_xhs
a52446ba691ac19e43410a465dc63f940c0e444d
[ "Apache-2.0" ]
1
2021-12-21T10:42:46.000Z
2021-12-21T10:42:46.000Z
www_local/controller/findmaster.py
2218084076/hotpoor_autoclick_xhs
a52446ba691ac19e43410a465dc63f940c0e444d
[ "Apache-2.0" ]
null
null
null
www_local/controller/findmaster.py
2218084076/hotpoor_autoclick_xhs
a52446ba691ac19e43410a465dc63f940c0e444d
[ "Apache-2.0" ]
null
null
null
#!/bin/env python # -*- coding: utf-8 -*- import sys import os import os.path sys.path.append(os.path.dirname(os.path.abspath(__file__))) sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/vendor/') import re import uuid import time import random import string import hashlib import urllib import copy from...
37.866942
161
0.548266
ea98cd08f9d16610dfb17ea20eb450103c5856a4
4,215
py
Python
gestaoemp/lib/python3.6/site-packages/pysignfe/nfe/manual_600/conssitnfe_310.py
jasonrosa92/gestaoempresa
c942c7cb5ff3bd299da94df11eab49b7dd0c7d71
[ "MIT" ]
null
null
null
gestaoemp/lib/python3.6/site-packages/pysignfe/nfe/manual_600/conssitnfe_310.py
jasonrosa92/gestaoempresa
c942c7cb5ff3bd299da94df11eab49b7dd0c7d71
[ "MIT" ]
null
null
null
gestaoemp/lib/python3.6/site-packages/pysignfe/nfe/manual_600/conssitnfe_310.py
jasonrosa92/gestaoempresa
c942c7cb5ff3bd299da94df11eab49b7dd0c7d71
[ "MIT" ]
1
2020-11-04T08:45:57.000Z
2020-11-04T08:45:57.000Z
# -*- coding: utf-8 -*- import os from pysignfe.xml_sped.base import etree from pysignfe.nfe.manual_500 import conssitnfe_310 from pysignfe.xml_sped import * from pysignfe.nfe.manual_600 import ESQUEMA_ATUAL, ProtNFe_310, RetCancNFe_310 from .cancnfe_evento import ProcEventoNFeCancNFe from .carta_correcao im...
40.528846
149
0.574614
f2097ef907b1b788a02dce9a375ad99f3351c779
4,981
py
Python
tensorflow_probability/python/internal/samplers_test.py
NeelGhoshal/probability
45ed841e3cff6cdc7cd1b2d96dd874d9070318f7
[ "Apache-2.0" ]
2
2019-10-30T04:45:07.000Z
2019-10-30T04:45:08.000Z
tensorflow_probability/python/internal/samplers_test.py
gregorystrubel/probability
df96f3d56eff92c6b06fbac68dc58e095e28fed6
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/internal/samplers_test.py
gregorystrubel/probability
df96f3d56eff92c6b06fbac68dc58e095e28fed6
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The TensorFlow Probability 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 o...
38.315385
78
0.702871
dc67bb4e131ae41317380993ac8a6bb6990edbca
3,669
py
Python
libqtile/widget/keyboardkbdd.py
JonBoyleCoding/qtile
e71fae802da55ebedb49ec04abb94b65b3ce0136
[ "MIT" ]
2
2015-01-03T02:25:19.000Z
2015-02-07T19:16:06.000Z
libqtile/widget/keyboardkbdd.py
JonBoyleCoding/qtile
e71fae802da55ebedb49ec04abb94b65b3ce0136
[ "MIT" ]
1
2020-04-15T20:20:42.000Z
2020-04-15T20:20:42.000Z
libqtile/widget/keyboardkbdd.py
JonBoyleCoding/qtile
e71fae802da55ebedb49ec04abb94b65b3ce0136
[ "MIT" ]
1
2015-01-22T15:53:01.000Z
2015-01-22T15:53:01.000Z
# Copyright (c) 2015 Ali Mousavi # # 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, distrib...
37.824742
79
0.65631
67b565ba773a108ffd64e608171589df56d73877
2,913
py
Python
stripe/api_resources/customer.py
illia-v/stripe-python
6b6620a3b16063c92db272d728714659c0740f85
[ "MIT" ]
null
null
null
stripe/api_resources/customer.py
illia-v/stripe-python
6b6620a3b16063c92db272d728714659c0740f85
[ "MIT" ]
null
null
null
stripe/api_resources/customer.py
illia-v/stripe-python
6b6620a3b16063c92db272d728714659c0740f85
[ "MIT" ]
null
null
null
# File generated from our OpenAPI spec from __future__ import absolute_import, division, print_function from stripe import api_requestor from stripe import util from stripe.api_resources.abstract import CreateableAPIResource from stripe.api_resources.abstract import DeletableAPIResource from stripe.api_resources.abstr...
34.678571
78
0.725026
a5d816e67c36d1fba669772b1c933d5bc007e0e6
15,808
py
Python
ross/core/countries.py
rossplt/ross-django-utils
27c8fa50b4cdd0324d5e87c46a05c4946523a923
[ "MIT" ]
null
null
null
ross/core/countries.py
rossplt/ross-django-utils
27c8fa50b4cdd0324d5e87c46a05c4946523a923
[ "MIT" ]
null
null
null
ross/core/countries.py
rossplt/ross-django-utils
27c8fa50b4cdd0324d5e87c46a05c4946523a923
[ "MIT" ]
null
null
null
""" This file holds constants for various country-related information To load these constants, import them as usual, e.g. from ross.core.countries import COUNTRIES """ COUNTRIES = ( ('AF', u'Afghanistan'), ('AX', u'\xc5land Islands'), ('AL', u'Albania'), ('DZ', u'Algeria'), ('AS', ...
28.534296
73
0.493421
15b0d68dec03e8a0f995ee573897908b724054e5
3,672
py
Python
test.py
gallodev/devopslab
6eff188dad0785f4969e41df7354cc27485f839f
[ "MIT" ]
2
2021-09-23T23:55:49.000Z
2021-09-23T23:59:00.000Z
test.py
gallodev/devopslab
6eff188dad0785f4969e41df7354cc27485f839f
[ "MIT" ]
null
null
null
test.py
gallodev/devopslab
6eff188dad0785f4969e41df7354cc27485f839f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from app import app ...
146.88
201
0.127179
84167e03e533b7f5e11fd91ae09712c4559b0c00
432
py
Python
handlers/test.py
kevinxin90/gene_analysis_api
603c9b574c04fd72e3690d6b6609bb274b689481
[ "MIT" ]
null
null
null
handlers/test.py
kevinxin90/gene_analysis_api
603c9b574c04fd72e3690d6b6609bb274b689481
[ "MIT" ]
null
null
null
handlers/test.py
kevinxin90/gene_analysis_api
603c9b574c04fd72e3690d6b6609bb274b689481
[ "MIT" ]
null
null
null
import json from .base import BaseHandler class TestHandler(BaseHandler): def get(self): _input = self.get_query_argument('q', None) print('input is {}'.format(_input)) if _input: self.set_status(200) self.write(json.dumps({'your input': _input})) self.f...
28.8
58
0.578704
919f88d68663318130eeb160aec324258fdd81bb
2,148
py
Python
pyecvl/support_openslide.py
simleo/pyecvl
c044dc2ddf9bb69e93ffe06113de9365dc84e168
[ "MIT" ]
2
2020-04-29T13:17:15.000Z
2021-01-07T19:13:14.000Z
pyecvl/support_openslide.py
simleo/pyecvl
c044dc2ddf9bb69e93ffe06113de9365dc84e168
[ "MIT" ]
19
2020-01-16T11:55:07.000Z
2022-02-28T11:27:40.000Z
pyecvl/support_openslide.py
deephealthproject/pyecvl
3fb256a77ab6d7ff62219044d54b51d84471db6e
[ "MIT" ]
2
2020-01-20T13:47:05.000Z
2020-02-27T11:13:32.000Z
# Copyright (c) 2019-2021 CRS4 # # 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, distribut...
36.40678
79
0.735102
1fe529fe57e0e61b335716d374d3022d772d66c0
7,451
py
Python
src/openprocurement/tender/cfaua/views/tender.py
pontostroy/openprocurement.api
6651ef29413d155c83f893ee64a611cf75f4daaf
[ "Apache-2.0" ]
null
null
null
src/openprocurement/tender/cfaua/views/tender.py
pontostroy/openprocurement.api
6651ef29413d155c83f893ee64a611cf75f4daaf
[ "Apache-2.0" ]
null
null
null
src/openprocurement/tender/cfaua/views/tender.py
pontostroy/openprocurement.api
6651ef29413d155c83f893ee64a611cf75f4daaf
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from zope.component import getAdapter from openprocurement.api.interfaces import IContentConfigurator from openprocurement.api.utils import json_view, context_unpack, get_now, raise_operation_error from openprocurement.tender.core.utils import ( optendersresource, apply_patch, save_...
42.096045
120
0.581935
53f7d317aa7a31c4d148cccedc3f137f4211505c
2,206
py
Python
pennylane/transforms/optimization/remove_barrier.py
AkashNarayanan/pennylane
b855176ebd5c84a49f51babce0a6d5af1ef29142
[ "Apache-2.0" ]
1
2021-12-07T17:18:26.000Z
2021-12-07T17:18:26.000Z
pennylane/transforms/optimization/remove_barrier.py
AkashNarayanan/pennylane
b855176ebd5c84a49f51babce0a6d5af1ef29142
[ "Apache-2.0" ]
1
2021-01-18T13:54:35.000Z
2021-01-18T13:54:35.000Z
pennylane/transforms/optimization/remove_barrier.py
AkashNarayanan/pennylane
b855176ebd5c84a49f51babce0a6d5af1ef29142
[ "Apache-2.0" ]
1
2021-12-07T17:18:36.000Z
2021-12-07T17:18:36.000Z
# Copyright 2018-2021 Xanadu Quantum Technologies Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or...
28.649351
74
0.650045
9a346960ee11345f4219ef9ecf671cf0eef5cb93
6,572
py
Python
test/process_test.py
elemel/underbar
b439c511f324405643ac515f854b38c9fc568482
[ "MIT" ]
null
null
null
test/process_test.py
elemel/underbar
b439c511f324405643ac515f854b38c9fc568482
[ "MIT" ]
null
null
null
test/process_test.py
elemel/underbar
b439c511f324405643ac515f854b38c9fc568482
[ "MIT" ]
null
null
null
from fractions import Fraction as Q import unittest from quest.assembler import assemble from quest.process import Process from quest.register import Register from quest.stdio import StandardStream STDIN = StandardStream.STDIN.value STDOUT = StandardStream.STDOUT.value STDERR = StandardStream.STDERR.value ECHO_SOURC...
30.567442
73
0.47535
04108c498c2d17b9e336377e9bc997e4b3e758f1
6,587
py
Python
generators/app/templates/_biz/site.py
stillst/generator-htmlinit
a758c4039b8bd3bad79a9198dae3b2d32aac970d
[ "MIT" ]
null
null
null
generators/app/templates/_biz/site.py
stillst/generator-htmlinit
a758c4039b8bd3bad79a9198dae3b2d32aac970d
[ "MIT" ]
null
null
null
generators/app/templates/_biz/site.py
stillst/generator-htmlinit
a758c4039b8bd3bad79a9198dae3b2d32aac970d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'stgavrilov' import os import codecs from shutil import copyfile columns = { u'index': {u'index': 0, u'name': u'№'}, u'page_title': {u'index': 0, u'name': u'Страница'}, u'template': {u'index': 0, u'name': u'Шаблон'}, u'title':...
36.392265
116
0.658418
dde8304b5b40b02918edcb83777a69ffa18cb44a
7,837
py
Python
typecode/typecode.py
Moby-C/TypingCodingResearch
b62ad116c52f1f89018d356f024320ce892f4fa5
[ "MIT" ]
1
2022-03-08T02:09:39.000Z
2022-03-08T02:09:39.000Z
typecode/typecode.py
Moby-C/TypingCodingResearch
b62ad116c52f1f89018d356f024320ce892f4fa5
[ "MIT" ]
1
2022-03-09T03:51:17.000Z
2022-03-16T02:35:41.000Z
typecode/typecode.py
Moby-C/TypingCodingResearch
b62ad116c52f1f89018d356f024320ce892f4fa5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- import os import re import argparse import numpy as np import matplotlib.pyplot as plt import matplotlib.image as mpimg from io import StringIO from io import open from xpinyin import Pinyin from pdfminer.converter import TextConverter from pdfminer.layout import LAParams ...
27.69258
93
0.532602
d56081bd2dc686f5d9e83b7cc0aaeaa7fc0c7bb9
17,716
py
Python
plugins/modules/oci_data_flow_private_endpoint.py
A7rMtWE57x/oci-ansible-collection
80548243a085cd53fd5dddaa8135b5cb43612c66
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_data_flow_private_endpoint.py
A7rMtWE57x/oci-ansible-collection
80548243a085cd53fd5dddaa8135b5cb43612c66
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_data_flow_private_endpoint.py
A7rMtWE57x/oci-ansible-collection
80548243a085cd53fd5dddaa8135b5cb43612c66
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2017, 2020 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
38.181034
142
0.64089
6d6b4c6b2501e57e1b75e54b91a73f24b9416d76
25,937
py
Python
svtyper/classic.py
ottov/svtyper-py3
e6dd991798479953cc0b2cc2a2a46555c7bb2df3
[ "MIT" ]
null
null
null
svtyper/classic.py
ottov/svtyper-py3
e6dd991798479953cc0b2cc2a2a46555c7bb2df3
[ "MIT" ]
null
null
null
svtyper/classic.py
ottov/svtyper-py3
e6dd991798479953cc0b2cc2a2a46555c7bb2df3
[ "MIT" ]
null
null
null
#!/usr/bin/env python import logging import pysam import json import argparse, sys, os.path import math, time from argparse import RawTextHelpFormatter import svtyper.version from svtyper.parsers import Vcf, Variant, Sample, confidence_interval from svtyper.utils import * from svtyper.statistics import bayes_gt # -...
44.488851
218
0.529282
2bcfd780bcac2670e347cbd311ddec5ff66be7c7
3,462
py
Python
ghs_armcc_error_analyzer/ghs_armcc_error_analyzer.py
rarewin/ghs-armcc-error-analyzer
5dfd1246aee4b1c506237e58985d45dc4083018d
[ "BSD-2-Clause" ]
null
null
null
ghs_armcc_error_analyzer/ghs_armcc_error_analyzer.py
rarewin/ghs-armcc-error-analyzer
5dfd1246aee4b1c506237e58985d45dc4083018d
[ "BSD-2-Clause" ]
null
null
null
ghs_armcc_error_analyzer/ghs_armcc_error_analyzer.py
rarewin/ghs-armcc-error-analyzer
5dfd1246aee4b1c506237e58985d45dc4083018d
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import re import sys import os from optparse import OptionParser, OptionGroup from jinja2 import Environment, FileSystemLoader err_reg = re.compile('^\s*\"(?P<file>.*)\",\s*line\s*(?P<line>\d+).*:\s*[fatal]*\s*(?P<type>warning|error|remark)\s*#(?P<number>\d+)[-D]*\s*:*...
34.969697
163
0.597631
b0f2b30f73d02ea550ad9f0077190688854c2700
4,131
py
Python
examples/cifar10_cnn.py
wavelets/keras
c57d5cce7903511edd4048f8bfed2ad0dc6f6b6b
[ "MIT" ]
1
2015-10-06T22:08:00.000Z
2015-10-06T22:08:00.000Z
examples/cifar10_cnn.py
wavelets/keras
c57d5cce7903511edd4048f8bfed2ad0dc6f6b6b
[ "MIT" ]
null
null
null
examples/cifar10_cnn.py
wavelets/keras
c57d5cce7903511edd4048f8bfed2ad0dc6f6b6b
[ "MIT" ]
null
null
null
from keras.datasets import cifar10 from keras.preprocessing.image import ImageDataGenerator from keras.models import Sequential from keras.layers.core import Dense, Dropout, Activation, Flatten from keras.layers.convolutional import Convolution2D, MaxPooling2D from keras.optimizers import SGD, Adadelta, Adagrad from ke...
35.307692
93
0.710482
dbcb3b0a8a8282ac263bf5393ea70cfe78b70565
113
py
Python
test/normal_failure.py
praekeltfoundation/vaultkeeper-agent
7b62b0e77b4ced618bb28ad466fa15b87d709ea9
[ "BSD-3-Clause" ]
7
2017-11-20T15:13:56.000Z
2021-11-22T23:38:03.000Z
test/normal_failure.py
praekeltfoundation/vaultkeeper-agent
7b62b0e77b4ced618bb28ad466fa15b87d709ea9
[ "BSD-3-Clause" ]
11
2017-08-31T09:00:51.000Z
2018-02-09T10:17:48.000Z
test/normal_failure.py
praekeltfoundation/vaultkeeper-agent
7b62b0e77b4ced618bb28ad466fa15b87d709ea9
[ "BSD-3-Clause" ]
2
2018-04-11T11:00:25.000Z
2020-05-05T12:06:45.000Z
#!/usr/bin/python import sys import time print('Subprocess started...') time.sleep(1) print('Oops!') sys.exit(3)
14.125
30
0.707965
3d687e9a2f0a2238e0aaf3771614ad66e7bf7404
24,968
py
Python
places/migrations/0042_auto__add_field_place_summary.py
evrenesat/ganihomes
eece2d8d957989b176cc5a36d723f676862f8d17
[ "BSD-2-Clause" ]
24
2016-08-06T18:10:54.000Z
2022-03-04T11:47:39.000Z
places/migrations/0042_auto__add_field_place_summary.py
evrenesat/ganihomes
eece2d8d957989b176cc5a36d723f676862f8d17
[ "BSD-2-Clause" ]
1
2017-03-28T02:36:50.000Z
2017-03-28T07:18:57.000Z
places/migrations/0042_auto__add_field_place_summary.py
evrenesat/ganihomes
eece2d8d957989b176cc5a36d723f676862f8d17
[ "BSD-2-Clause" ]
13
2017-03-28T02:35:32.000Z
2022-02-21T23:36:15.000Z
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Place.summary' db.add_column('places_place', 'summary', self.gf('django.db.models.fields.T...
83.505017
207
0.553869
795c1af440bd7b6ea259fa01ff799e7878e66728
2,673
py
Python
var/spack/repos/builtin/packages/py-petsc4py/package.py
vreshniak/spack-xsdk
b2da85f9309e38082db6b35a79028734ae5e0e96
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-petsc4py/package.py
vreshniak/spack-xsdk
b2da85f9309e38082db6b35a79028734ae5e0e96
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-petsc4py/package.py
vreshniak/spack-xsdk
b2da85f9309e38082db6b35a79028734ae5e0e96
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyPetsc4py(PythonPackage): """This package provides Python bindings for the PETSc package....
50.433962
96
0.7052
734f2893617c322bcd8cd7ef6884a1fef7533ff3
7,202
py
Python
conda/cli/main_remove.py
westurner/conda
24d3af9f0a4334b76afaef91a6e74a15e86a8ea1
[ "BSD-3-Clause" ]
null
null
null
conda/cli/main_remove.py
westurner/conda
24d3af9f0a4334b76afaef91a6e74a15e86a8ea1
[ "BSD-3-Clause" ]
null
null
null
conda/cli/main_remove.py
westurner/conda
24d3af9f0a4334b76afaef91a6e74a15e86a8ea1
[ "BSD-3-Clause" ]
null
null
null
# (c) 2012-2013 Continuum Analytics, Inc. / http://continuum.io # All Rights Reserved # # conda is distributed under the terms of the BSD 3-clause license. # Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause. from __future__ import print_function, division, absolute_import from os.path import join i...
36.190955
105
0.579006
c091c2b52f38c6816d2d0b655dad45257c6e5143
617
py
Python
vpn/vpnapi/models.py
futurice/vpn-management-server
5418b22356b58cd9a7f3043ec21e1e728abb6b27
[ "BSD-3-Clause" ]
13
2015-11-23T05:05:16.000Z
2021-05-30T13:00:46.000Z
vpn/vpnapi/models.py
futurice/vpn-management-server
5418b22356b58cd9a7f3043ec21e1e728abb6b27
[ "BSD-3-Clause" ]
null
null
null
vpn/vpnapi/models.py
futurice/vpn-management-server
5418b22356b58cd9a7f3043ec21e1e728abb6b27
[ "BSD-3-Clause" ]
12
2015-01-09T08:07:48.000Z
2022-02-28T05:00:10.000Z
from django.db import models import datetime class State(models.Model): username = models.CharField(max_length=60, primary_key=True) valid_csr = models.BooleanField(default=False) password = models.CharField(max_length=20, blank=True, null=True) csr_filename = models.CharField(max_length=255, blank=Tru...
32.473684
74
0.701783
e1a4db05ede666962f001417fc7b171258050ac6
6,589
py
Python
examples/gauge_app.py
smurfix/remi
879f48048c3d753a07667a9b239358d104692788
[ "Apache-2.0" ]
3,224
2015-10-30T15:35:05.000Z
2022-03-08T19:31:46.000Z
examples/gauge_app.py
smurfix/remi
879f48048c3d753a07667a9b239358d104692788
[ "Apache-2.0" ]
453
2015-10-26T17:39:01.000Z
2022-03-07T13:57:18.000Z
examples/gauge_app.py
smurfix/remi
879f48048c3d753a07667a9b239358d104692788
[ "Apache-2.0" ]
458
2015-11-03T12:08:01.000Z
2022-03-09T00:17:19.000Z
""" Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed ...
38.758824
137
0.642586
dd094cc9bc14b7d0f2231591ff9f922575e9d1c0
1,465
py
Python
anthill/admin/options.py
anthill-platform/anthill-admin
0715e538a2bd4728fa6b0199d794149f2c92d852
[ "MIT" ]
null
null
null
anthill/admin/options.py
anthill-platform/anthill-admin
0715e538a2bd4728fa6b0199d794149f2c92d852
[ "MIT" ]
null
null
null
anthill/admin/options.py
anthill-platform/anthill-admin
0715e538a2bd4728fa6b0199d794149f2c92d852
[ "MIT" ]
null
null
null
from anthill.common.options import define # Main define("host", default="http://localhost:9500", help="Public hostname of this service", type=str) define("listen", default="port:9500", help="Socket to listen. Could be a port number (port:N), or a unix domain socket (unix:PATH)", ...
21.544118
101
0.59727
9e5c2511a9b537220149fabc7105e5dd16ee77c5
2,967
py
Python
mediabrowser.py
nickw444/MediaBrowser
38c47d42d2e59faab8ced5c86565d0beb1a30615
[ "MIT" ]
null
null
null
mediabrowser.py
nickw444/MediaBrowser
38c47d42d2e59faab8ced5c86565d0beb1a30615
[ "MIT" ]
null
null
null
mediabrowser.py
nickw444/MediaBrowser
38c47d42d2e59faab8ced5c86565d0beb1a30615
[ "MIT" ]
null
null
null
import os from flask import Flask, render_template, send_file, request, after_this_request, redirect, url_for, safe_join import re from config import MAX_FOLDER_DL_SIZE_BYTES, IGNORE_FILES, ROOT_PATHS app = Flask(__name__) def get_size(start_path): total_size = 0 for dirpath, dirnames, filenames in os.walk(s...
30.90625
110
0.545332
3b0a715eb8f6b74a99c034019153fa8f732ba1db
714
py
Python
willie/modules/urbandictionary.py
Eltiech/meanwillie
85e97fa8f4577b4c8517a474a1e45639aa4e9b51
[ "EFL-2.0" ]
1
2016-01-31T12:12:34.000Z
2016-01-31T12:12:34.000Z
willie/modules/urbandictionary.py
Eltiech/meanwillie
85e97fa8f4577b4c8517a474a1e45639aa4e9b51
[ "EFL-2.0" ]
null
null
null
willie/modules/urbandictionary.py
Eltiech/meanwillie
85e97fa8f4577b4c8517a474a1e45639aa4e9b51
[ "EFL-2.0" ]
null
null
null
""" urbandictionary.py - look up a definition on UrbanDictionary """ from willie.module import commands, rate, NOLIMIT from willie import web import json @commands('urbandictionary', 'urban', 'ud') @rate(10) def urbandictionary(bot, trigger): """Looks a word up on UrbanDictionary""" word = trigger.group(2) ...
27.461538
100
0.640056
e15a520a083fd589b92e1b52fd55c6a6ae61c92b
379
py
Python
movie/migrations/0006_auto_20200924_1602.py
justnclrk/MCURanker
97f946e75bb911a2073955c1ea66402da839d2ef
[ "MIT" ]
null
null
null
movie/migrations/0006_auto_20200924_1602.py
justnclrk/MCURanker
97f946e75bb911a2073955c1ea66402da839d2ef
[ "MIT" ]
6
2020-09-24T04:35:08.000Z
2022-03-12T00:27:25.000Z
movie/migrations/0006_auto_20200924_1602.py
justnclrk/MCURanker
97f946e75bb911a2073955c1ea66402da839d2ef
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-09-24 21:02 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('movie', '0005_auto_20200924_1557'), ] operations = [ migrations.AlterField( model_name='movie', name='release_date',...
19.947368
47
0.593668
827f398b096c61bdcd6547b818fb6ddb487827f7
11,937
py
Python
hoomd/md/compute.py
NathanDavisBarrett/hoomd-blue
017923771396aaffc48578c56a71125aeaa8febc
[ "BSD-3-Clause" ]
null
null
null
hoomd/md/compute.py
NathanDavisBarrett/hoomd-blue
017923771396aaffc48578c56a71125aeaa8febc
[ "BSD-3-Clause" ]
null
null
null
hoomd/md/compute.py
NathanDavisBarrett/hoomd-blue
017923771396aaffc48578c56a71125aeaa8febc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2009-2021 The Regents of the University of Michigan # This file is part of the HOOMD-blue project, released under the BSD 3-Clause # License. # Maintainer: joaander / All Developers are free to add commands for new # features """Compute system properties.""" from hoomd.md import _md from hoomd.operat...
34.5
80
0.623021
8ed750a5d194c95804f4c047198f7986107f4988
1,424
py
Python
quadruped/quadruped/interpolation.py
Sdelpeuch/IntroductionRobotique
64b088b9c164ab78a0154ed995557201c9d88c9d
[ "MIT" ]
null
null
null
quadruped/quadruped/interpolation.py
Sdelpeuch/IntroductionRobotique
64b088b9c164ab78a0154ed995557201c9d88c9d
[ "MIT" ]
null
null
null
quadruped/quadruped/interpolation.py
Sdelpeuch/IntroductionRobotique
64b088b9c164ab78a0154ed995557201c9d88c9d
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt class LinearSpline: def __init__(self, entry=None): self.entry = [] if entry != None: self.entry = entry def add_entry(self, t, x): self.entry.append((t, x)) def interpolate(self, t): x = 0 for i in ra...
24.551724
85
0.547753
bffe6a65771bacba80c10945aa26333375e55e9f
2,052
py
Python
main.py
Nyathi-Code/Pong-game
164e879ade02c3c255b1baced042c7cf2794265a
[ "MIT" ]
1
2020-07-01T10:01:33.000Z
2020-07-01T10:01:33.000Z
main.py
Nyathi-Code/Pong-game
164e879ade02c3c255b1baced042c7cf2794265a
[ "MIT" ]
null
null
null
main.py
Nyathi-Code/Pong-game
164e879ade02c3c255b1baced042c7cf2794265a
[ "MIT" ]
null
null
null
import kivy from kivy.app import App from kivy.uix.widget import Widget from kivy.properties import NumericProperty, ReferenceListProperty,ObjectProperty from kivy.vector import Vector from kivy.clock import Clock from kivy.core.window import Window class Game_Screen(Widget): Window.size = (300, 500) ball = O...
25.65
81
0.623294
da794bc14d641582630d4d6797f2ddb035ad71c8
1,764
py
Python
unweaver/graphs/digraphgpkg/outer_adjlists/outer_adjlist_view.py
jsbeckwith/unweaver
a4ba9e4e288c75e93bf7f9d67bc11680f09c3da0
[ "Apache-2.0" ]
4
2019-04-24T16:38:57.000Z
2021-12-28T20:38:08.000Z
unweaver/graphs/digraphgpkg/outer_adjlists/outer_adjlist_view.py
jsbeckwith/unweaver
a4ba9e4e288c75e93bf7f9d67bc11680f09c3da0
[ "Apache-2.0" ]
3
2021-06-02T04:06:33.000Z
2021-11-02T01:47:20.000Z
unweaver/graphs/digraphgpkg/outer_adjlists/outer_adjlist_view.py
jsbeckwith/unweaver
a4ba9e4e288c75e93bf7f9d67bc11680f09c3da0
[ "Apache-2.0" ]
1
2020-08-13T04:42:05.000Z
2020-08-13T04:42:05.000Z
"""GeoPackage adapter for immutable networkx outer adjascency list mapping.""" from __future__ import annotations from collections.abc import Mapping from typing import AbstractSet, Iterator, Tuple, Type, TYPE_CHECKING from unweaver.network_adapters import GeoPackageNetwork from ..inner_adjlists import InnerSuccessors...
37.531915
79
0.71542
bc9ee594db282891d2ac16747ec01f63642fa79d
1,767
py
Python
pkg/codegen/internal/test/testdata/nested-module-thirdparty/python/setup.py
suryatmodulus/pulumi
a318b4bd39f8c832abf992b9aeb4416bd3c02fb4
[ "Apache-2.0" ]
null
null
null
pkg/codegen/internal/test/testdata/nested-module-thirdparty/python/setup.py
suryatmodulus/pulumi
a318b4bd39f8c832abf992b9aeb4416bd3c02fb4
[ "Apache-2.0" ]
15
2021-07-24T02:43:00.000Z
2022-03-31T11:21:33.000Z
pkg/codegen/internal/test/testdata/nested-module-thirdparty/python/setup.py
suryatmodulus/pulumi
a318b4bd39f8c832abf992b9aeb4416bd3c02fb4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by test. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import errno from setuptools import setup, find_packages from setuptools.command.install import install from subprocess import check_call VERSION = "0.0.0" PLUGIN_VERSIO...
29.45
94
0.580645
d8a8e9011de98234082a4511975d27cde8f0c43f
1,957
py
Python
testCases/calendar/full_calendar/desktop/TC_101_007_calendar_monthly_view_test.py
harry-100/qa-automation-framework
5fbe03e930820537e53f2d26b1c2b2bd2b222bf5
[ "MIT" ]
null
null
null
testCases/calendar/full_calendar/desktop/TC_101_007_calendar_monthly_view_test.py
harry-100/qa-automation-framework
5fbe03e930820537e53f2d26b1c2b2bd2b222bf5
[ "MIT" ]
null
null
null
testCases/calendar/full_calendar/desktop/TC_101_007_calendar_monthly_view_test.py
harry-100/qa-automation-framework
5fbe03e930820537e53f2d26b1c2b2bd2b222bf5
[ "MIT" ]
null
null
null
import pytest from datetime import ( timedelta, date ) from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.ui import WebDriverWait from time import sleep # this test checks the functionality of monthly view of Calendar @pytest.mark.usefixtures("one_time_setup") class Test...
32.081967
90
0.723556
b22c2013ec8fb6da69897b2400f4229ebbf38fa5
2,147
py
Python
classwork/11_18_2020.py
Katsute/Baruch-CIS-2300-Assignments
ea374ed1cb229f5e598863ba1777be5f47eaab9d
[ "CC0-1.0" ]
null
null
null
classwork/11_18_2020.py
Katsute/Baruch-CIS-2300-Assignments
ea374ed1cb229f5e598863ba1777be5f47eaab9d
[ "CC0-1.0" ]
null
null
null
classwork/11_18_2020.py
Katsute/Baruch-CIS-2300-Assignments
ea374ed1cb229f5e598863ba1777be5f47eaab9d
[ "CC0-1.0" ]
1
2022-01-12T18:17:52.000Z
2022-01-12T18:17:52.000Z
# substring print("substring"[0:3]) # same as Java, last index is not included print("substring"[-6:]) # substring start relative to end, unset is len print("substring"[:-6]) # substring end relative to end, unset is first (0) print("substring"[0]) # string index print("0123456789"[0:10:2]) # thi...
39.036364
80
0.669772
4992127e1665af86b00f9492086e024235dba926
1,835
py
Python
ch1/code.py
zachlindsey/adafruit_lib_guide
ff4a57c90ff4ea92d8a9b916cf15b67c0bbe4cbf
[ "MIT" ]
null
null
null
ch1/code.py
zachlindsey/adafruit_lib_guide
ff4a57c90ff4ea92d8a9b916cf15b67c0bbe4cbf
[ "MIT" ]
null
null
null
ch1/code.py
zachlindsey/adafruit_lib_guide
ff4a57c90ff4ea92d8a9b916cf15b67c0bbe4cbf
[ "MIT" ]
null
null
null
from adafruit_clue import clue import displayio import vectorio import time display = clue.display def show_display_info(display): display.show(None) print("DISPLAY INFO") print('height:', display.height) print('width:', display.width) print('rotation (deg)', display.rotation) print('auto_refresh:', display.a...
16.834862
51
0.720981
91cb0872934af0e9dfb92bd916445791563b9d4d
11,830
py
Python
nes-testsuite/roms/holy_diver_batman/source/tools/make_roms.py
lpil/pinky
1a25cf2cb1568aef5444a84c48cea76489045f04
[ "Apache-2.0" ]
719
2016-10-23T18:26:27.000Z
2022-03-20T00:26:35.000Z
nes-testsuite/roms/holy_diver_batman/source/tools/make_roms.py
lpil/pinky
1a25cf2cb1568aef5444a84c48cea76489045f04
[ "Apache-2.0" ]
17
2016-10-30T12:46:35.000Z
2020-01-31T11:34:38.000Z
nes-testsuite/roms/holy_diver_batman/source/tools/make_roms.py
lpil/pinky
1a25cf2cb1568aef5444a84c48cea76489045f04
[ "Apache-2.0" ]
47
2016-10-24T00:30:56.000Z
2022-02-10T15:19:41.000Z
#!/usr/bin/env python from __future__ import with_statement, division import array INES_MIRRH = 0 INES_MIRRV = 1 INES_MIRR4 = 8 INES_NTSC = 0 INES_PAL = 1 INES_DUAL_TVSYSTEM = 2 MAPPER_NROM = 0 MAPPER_MMC1 = 1 MAPPER_UNROM = 2 MAPPER_CNROM = 3 MAPPER_MMC3 = 4 MAPPER_MMC5 = 5 MAPPER_AOROM = 7 MAPPER_MMC2 = 9 MAPPER_MMC...
33.994253
92
0.61344
982f917cb806a26229e3a44403f7af9e851896cb
903
py
Python
glue/core/data_exporters/qt/dialog.py
sergiopasra/glue
c25a217a122a11818382672c99cb21f57a30636f
[ "BSD-3-Clause" ]
1
2019-12-17T07:58:35.000Z
2019-12-17T07:58:35.000Z
glue/core/data_exporters/qt/dialog.py
sergiopasra/glue
c25a217a122a11818382672c99cb21f57a30636f
[ "BSD-3-Clause" ]
null
null
null
glue/core/data_exporters/qt/dialog.py
sergiopasra/glue
c25a217a122a11818382672c99cb21f57a30636f
[ "BSD-3-Clause" ]
1
2019-08-04T14:10:12.000Z
2019-08-04T14:10:12.000Z
from __future__ import absolute_import, division, print_function from qtpy import compat from glue import config def export_data(data, components=None, exporter=None): if exporter is None: exporters = {} for e in config.data_exporter: if e.extension == '': fltr = "{0}...
28.21875
95
0.579181
fc6ac20d315bc92ca09e8c5c192df8c39e3b9d05
922
py
Python
ot/tests/ibry_test.py
LawrenceMMStewart/Optimal_Transport_MIT
a71a0110fa15110692fd383c1e77a6c347ef9ca3
[ "MIT" ]
3
2020-05-04T09:08:55.000Z
2020-05-27T05:10:26.000Z
ot/tests/ibry_test.py
LawrenceMMStewart/Imputatations-with-Optimal-Transport
a71a0110fa15110692fd383c1e77a6c347ef9ca3
[ "MIT" ]
null
null
null
ot/tests/ibry_test.py
LawrenceMMStewart/Imputatations-with-Optimal-Transport
a71a0110fa15110692fd383c1e77a6c347ef9ca3
[ "MIT" ]
null
null
null
#tests for ibpr.py from ot.ibpr import * import numpy as np from ot.ot1d import cost_mat def precision_eq(a,b): return (np.abs(a-b)<1e-14).all() #test iterated bregman projections between two diracs def test_IBP_ex1(): # X = {0,4} # hists = {dirac(0),dirac(4)} hists = np.array([[1.,0],[0,1.]]) cost = 4*(1-np.e...
21.44186
53
0.668113
47aaa23e89435d6b27273d4908580de510a2e741
17,804
py
Python
snake_classes.py
odanielb/Snake-to-10
a071b13d8bf7ae3f7dcc623c7aa20f70b97b9950
[ "MIT" ]
null
null
null
snake_classes.py
odanielb/Snake-to-10
a071b13d8bf7ae3f7dcc623c7aa20f70b97b9950
[ "MIT" ]
null
null
null
snake_classes.py
odanielb/Snake-to-10
a071b13d8bf7ae3f7dcc623c7aa20f70b97b9950
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------------- # File: snake_classes.py # Name: Bridget O'Daniel # Username: odanielb # # Assignment: FP Final Project # Purpose: To work with and edit something I've created this year and think about object-oriented program and make improvements. # # Ac...
57.247588
176
0.5082
00a2f57708eb6350c51b82ca2773871ea4eed471
167
py
Python
web/load.py
vikian050194/py
95b8a1d4f084c0046eb53248cbace4525b637fd8
[ "MIT" ]
null
null
null
web/load.py
vikian050194/py
95b8a1d4f084c0046eb53248cbace4525b637fd8
[ "MIT" ]
null
null
null
web/load.py
vikian050194/py
95b8a1d4f084c0046eb53248cbace4525b637fd8
[ "MIT" ]
null
null
null
import requests def load(url): try: return requests.get(url, allow_redirects=True).content except Exception as e: print(e) return ""
16.7
62
0.616766
adca69385085efe4bb3e29c1cc35e74b23b2f741
1,729
py
Python
neural_network/mlp_network.py
VITA-Group/SFW-Once-for-All-Pruning
84ec0780e94d15820140c3d365e02417a707a3fd
[ "MIT" ]
4
2022-02-12T01:09:54.000Z
2022-03-15T09:48:33.000Z
neural_network/mlp_network.py
VITA-Group/SFW-Once-for-All-Pruning
84ec0780e94d15820140c3d365e02417a707a3fd
[ "MIT" ]
null
null
null
neural_network/mlp_network.py
VITA-Group/SFW-Once-for-All-Pruning
84ec0780e94d15820140c3d365e02417a707a3fd
[ "MIT" ]
null
null
null
from torch import nn from neural_network.base_network import BaseNetwork, get_nonlinearity class MlpNetwork(BaseNetwork): def __init__( self, input_size, output_size, hidden_layer=[128, 128], activation="relu", output_...
38.422222
109
0.630422
9b6096fc171cbf4c6f8526b26f45ead0e514d51e
1,174
py
Python
snappy/urls.py
roman-kutlak/snappy
1d29bd9193962bf8b95b345f42a8b52c80ac3839
[ "MIT" ]
null
null
null
snappy/urls.py
roman-kutlak/snappy
1d29bd9193962bf8b95b345f42a8b52c80ac3839
[ "MIT" ]
null
null
null
snappy/urls.py
roman-kutlak/snappy
1d29bd9193962bf8b95b345f42a8b52c80ac3839
[ "MIT" ]
null
null
null
"""snappy URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-base...
39.133333
90
0.698467