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
8142469152248a85d9c74dde7399667a9998d711
15,301
py
Python
zerver/openapi/markdown_extension.py
bhargavgajera10/zulip
165decee849c5437742094776ce43ccfdcf05764
[ "Apache-2.0" ]
1
2020-10-02T07:39:04.000Z
2020-10-02T07:39:04.000Z
zerver/openapi/markdown_extension.py
bhargavgajera10/zulip
165decee849c5437742094776ce43ccfdcf05764
[ "Apache-2.0" ]
null
null
null
zerver/openapi/markdown_extension.py
bhargavgajera10/zulip
165decee849c5437742094776ce43ccfdcf05764
[ "Apache-2.0" ]
null
null
null
import re import json import inspect from django.conf import settings from markdown.extensions import Extension from markdown.preprocessors import Preprocessor from typing import Any, Dict, Optional, List, Tuple, Pattern import markdown import zerver.openapi.python_examples from zerver.openapi.openapi import get_ope...
39.846354
109
0.595974
711806672e45024b8ec0958f9ddd554fa1193b0f
2,451
py
Python
vega/metrics/pytorch/r2score.py
jie311/vega
1bba6100ead802697e691403b951e6652a99ccae
[ "MIT" ]
724
2020-06-22T12:05:30.000Z
2022-03-31T07:10:54.000Z
vega/metrics/pytorch/r2score.py
jie311/vega
1bba6100ead802697e691403b951e6652a99ccae
[ "MIT" ]
147
2020-06-30T13:34:46.000Z
2022-03-29T11:30:17.000Z
vega/metrics/pytorch/r2score.py
jie311/vega
1bba6100ead802697e691403b951e6652a99ccae
[ "MIT" ]
160
2020-06-29T18:27:58.000Z
2022-03-23T08:42:21.000Z
# -*- coding:utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # This program is free software; you can redistribute it and/or modify # it under the terms of the MIT License. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the ...
33.575342
101
0.631987
8ff1ea505080691bf556ef93bdd8302cde815e94
270
py
Python
minecraft_learns/__init__.py
Nathan-Nesbitt/Minecraft_Learns
089dd51c9514fa94b24630a034c257306722f64b
[ "MIT" ]
null
null
null
minecraft_learns/__init__.py
Nathan-Nesbitt/Minecraft_Learns
089dd51c9514fa94b24630a034c257306722f64b
[ "MIT" ]
1
2021-04-22T01:02:50.000Z
2021-04-22T01:02:50.000Z
minecraft_learns/__init__.py
Nathan-Nesbitt/Minecraft_Learns
089dd51c9514fa94b24630a034c257306722f64b
[ "MIT" ]
null
null
null
""" Init file for the PIP package config. Written By: Nathan Nesbitt Date: 2021-01-15 """ from minecraft_learns.common import * from minecraft_learns.data import Data from minecraft_learns.errors import * from minecraft_learns.graphing import *
22.5
42
0.725926
a3e475c559318500b7dc6651e374a8bbc09396d9
1,442
py
Python
roster_own.py
nocibambi/ds-practice
9b6c4414f4700fb0bd017101b5a61c9d824a9b98
[ "MIT" ]
null
null
null
roster_own.py
nocibambi/ds-practice
9b6c4414f4700fb0bd017101b5a61c9d824a9b98
[ "MIT" ]
null
null
null
roster_own.py
nocibambi/ds-practice
9b6c4414f4700fb0bd017101b5a61c9d824a9b98
[ "MIT" ]
null
null
null
import json import sqlite3 conn = sqlite3.connect('rosterdb.sqlite') cur = conn.cursor() cur.executescript(''' DROP TABLE IF EXISTS User; DROP TABLE IF EXISTS Member; DROP TABLE IF EXISTS Course; CREATE TABLE User ( id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE, name TEXT UNIQUE ); CREATE TABLE Cours...
25.298246
120
0.685853
e85d1c4a596eddac093a85c83d259b88dc47884b
2,215
py
Python
nets/TSP_edge_classification/gcn_net.py
SauravMaheshkar/benchmarking-gnns
4665316322527634c23307556b63291c69dac4b0
[ "MIT" ]
null
null
null
nets/TSP_edge_classification/gcn_net.py
SauravMaheshkar/benchmarking-gnns
4665316322527634c23307556b63291c69dac4b0
[ "MIT" ]
6
2022-01-06T21:27:06.000Z
2022-01-19T06:28:56.000Z
nets/TSP_edge_classification/gcn_net.py
SauravMaheshkar/benchmarking-gnns
4665316322527634c23307556b63291c69dac4b0
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F """ GCN: Graph Convolutional Networks Thomas N. Kipf, Max Welling, Semi-Supervised Classification with Graph Convolutional Networks (ICLR 2017) http://arxiv.org/abs/1609.02907 """ from layers.gcn_layer import GCNLayer from layers.mlp_readou...
29.932432
109
0.565688
c29ed961b8e78f2e37551abe2ae2d0b836436ea7
1,102
py
Python
game/game/middleware.py
ClaytonTurner/pylti1.3-django-example
2ee32aa531f526144a523f92fcf88442396060fe
[ "MIT" ]
10
2020-04-11T13:43:42.000Z
2021-12-30T18:46:31.000Z
game/game/middleware.py
ClaytonTurner/pylti1.3-django-example
2ee32aa531f526144a523f92fcf88442396060fe
[ "MIT" ]
12
2020-05-06T01:49:32.000Z
2022-01-31T17:20:08.000Z
game/game/middleware.py
ClaytonTurner/pylti1.3-django-example
2ee32aa531f526144a523f92fcf88442396060fe
[ "MIT" ]
13
2020-04-01T15:15:35.000Z
2022-03-29T02:48:52.000Z
import django from django.conf import settings from django.utils.deprecation import MiddlewareMixin class SameSiteMiddleware(MiddlewareMixin): def process_response(self, request, response): django_support_samesite_none = django.VERSION[0] > 3 \ or (django.VERSION[0]...
47.913043
93
0.69147
668202189074a94e7243f7bc079586a21f4c2753
87
py
Python
plugins/digitalocean/komand_digitalocean/actions/retrieve_existing_floating_ip/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/digitalocean/komand_digitalocean/actions/retrieve_existing_floating_ip/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/digitalocean/komand_digitalocean/actions/retrieve_existing_floating_ip/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
# GENERATED BY KOMAND SDK - DO NOT EDIT from .action import RetrieveExistingFloatingIp
29
46
0.816092
9b586a30d8d76e1420241fd5f90cdd0687ce4f9d
2,110
py
Python
setup.py
andrewrfreed/flask-oidc-ext
ae2715ca037ebffabc01449c8c78ce78cdf39209
[ "BSD-2-Clause" ]
null
null
null
setup.py
andrewrfreed/flask-oidc-ext
ae2715ca037ebffabc01449c8c78ce78cdf39209
[ "BSD-2-Clause" ]
null
null
null
setup.py
andrewrfreed/flask-oidc-ext
ae2715ca037ebffabc01449c8c78ce78cdf39209
[ "BSD-2-Clause" ]
null
null
null
import os.path import io import sys from setuptools import setup # This check is to make sure we checkout docs/_themes before running sdist if not os.path.exists("./docs/_themes/README"): print("Please make sure you have docs/_themes checked out while running setup.py!") if os.path.exists(".git"): pri...
35.762712
123
0.636019
f4e38dba3b74174aef831001c5060cda0b66c9db
476
py
Python
hackerearth/Algorithms/Equalize strings (1)/test.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
4
2020-07-24T01:59:50.000Z
2021-07-24T15:14:08.000Z
hackerearth/Algorithms/Equalize strings (1)/test.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
hackerearth/Algorithms/Equalize strings (1)/test.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
import io import unittest from contextlib import redirect_stdout from unittest.mock import patch class TestQ(unittest.TestCase): @patch('builtins.input', side_effect=[ '4', '1101', '0011', ]) def test_case_0(self, input_mock=None): text_trap = io.StringIO() with red...
21.636364
53
0.640756
f35ccc749791230b2303bfb2ab807b1ea680cbeb
1,756
py
Python
src/plugins/dfplayer/Platform.py
andreaswatch/piTomation
140bff77ad0b84ad17898106c7be7dc48a2d0783
[ "MIT" ]
null
null
null
src/plugins/dfplayer/Platform.py
andreaswatch/piTomation
140bff77ad0b84ad17898106c7be7dc48a2d0783
[ "MIT" ]
null
null
null
src/plugins/dfplayer/Platform.py
andreaswatch/piTomation
140bff77ad0b84ad17898106c7be7dc48a2d0783
[ "MIT" ]
null
null
null
from modules.base.Configuration import * from modules.base.Instances import * @configuration class DFPlayerPlatformConfiguration(PlatformConfiguration): '''Configuration settings for the DFPlayer''' @validator('platform') def check_platform(cls, v): if "plugins.dfplayer" not in v: rais...
32.518519
89
0.64123
62185d630b2e4affddab33d145ea543861f963d8
7,179
py
Python
examples/angular_spec_doa.py
hwp/apkit
35fea20e4cb5b175c43c9a29aade167e886c8368
[ "MIT" ]
3
2021-04-09T09:33:09.000Z
2021-12-23T02:34:20.000Z
examples/angular_spec_doa.py
hwp/apkit
35fea20e4cb5b175c43c9a29aade167e886c8368
[ "MIT" ]
null
null
null
examples/angular_spec_doa.py
hwp/apkit
35fea20e4cb5b175c43c9a29aade167e886c8368
[ "MIT" ]
2
2018-11-06T00:44:11.000Z
2020-12-14T16:11:23.000Z
#!/usr/bin/env python """ angular_spec_doa.py Written by Weipeng He <heweipeng@gmail.com> """ import time # debug import sys # debug import math import argparse import numpy as np import apkit # Microphone 3D coordinates (unit is meter) _MICROPHONE_COORDINATES = np.array([[-0.0267, 0.0343, 0.2066], ...
37.586387
79
0.551887
7103f51c3cb2aebf4df9a2e6e9acc6343f26e93f
4,143
py
Python
zippyshare_downloader/network.py
TheKrakenss/zippyshare-downloader
94a03628319bbaf3815a82665614375fe9d221e8
[ "MIT" ]
null
null
null
zippyshare_downloader/network.py
TheKrakenss/zippyshare-downloader
94a03628319bbaf3815a82665614375fe9d221e8
[ "MIT" ]
null
null
null
zippyshare_downloader/network.py
TheKrakenss/zippyshare-downloader
94a03628319bbaf3815a82665614375fe9d221e8
[ "MIT" ]
null
null
null
import requests import aiohttp import asyncio __all__ = ( 'Net', 'NetworkObject', 'set_proxy', 'clear_proxy' ) # Modified requests session class with __del__ handler # so the session will be closed properly class requestsProxiedSession(requests.Session): def __init__(self, trust_env=True) -> None: ...
28.770833
92
0.632875
60e28139e2f3a78e288527dd757b4a6a10686f9f
2,012
py
Python
tutorials/data_augmentation.py
pmeier/kornia
57f5aeb605d0c69de88a0a1aa1563cee52d4bfaf
[ "ECL-2.0", "Apache-2.0" ]
5
2021-04-15T01:20:01.000Z
2022-01-12T14:12:54.000Z
tutorials/data_augmentation.py
pmeier/kornia
57f5aeb605d0c69de88a0a1aa1563cee52d4bfaf
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tutorials/data_augmentation.py
pmeier/kornia
57f5aeb605d0c69de88a0a1aa1563cee52d4bfaf
[ "ECL-2.0", "Apache-2.0" ]
1
2020-10-20T06:57:07.000Z
2020-10-20T06:57:07.000Z
""" Data augmentation on the GPU ============================ In this data you learn how to use `kornia` modules in order to perform the data augmentatio on the GPU in batch mode. """ ################################ # 1. Create a dummy data loader import torch import torch.nn as nn import torch.optim as optim from ...
27.944444
117
0.66501
fa084c04bf22c29c12e71a9eb5bcc3af5b78b976
916
py
Python
samples/client/petstore/python/test/test_outer_composite.py
wwadge/swagger-codegen
777619d4d106b7b387f8ee8469f4ec43f3cdfdc7
[ "Apache-2.0" ]
3
2017-05-24T11:22:36.000Z
2021-02-09T15:26:41.000Z
samples/client/petstore/python/test/test_outer_composite.py
wwadge/swagger-codegen
777619d4d106b7b387f8ee8469f4ec43f3cdfdc7
[ "Apache-2.0" ]
5
2019-03-06T07:41:25.000Z
2020-01-20T12:21:53.000Z
samples/client/petstore/python/test/test_outer_composite.py
wwadge/swagger-codegen
777619d4d106b7b387f8ee8469f4ec43f3cdfdc7
[ "Apache-2.0" ]
11
2017-07-07T18:07:15.000Z
2021-11-10T02:12:04.000Z
# coding: utf-8 """ Swagger Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ OpenAPI spec version: 1.0.0 Contact: apiteam@swagger.io Generated by: https://github.com/swagger-api/sw...
21.302326
160
0.708515
f978b44c67f56e47239226e06943d3d8441c95a1
1,091
py
Python
lambdata/style_example.py
B-Meister/ds18_lambdata
8b5983219513a25357d81a1c4403a6d643b7b6d5
[ "MIT" ]
null
null
null
lambdata/style_example.py
B-Meister/ds18_lambdata
8b5983219513a25357d81a1c4403a6d643b7b6d5
[ "MIT" ]
null
null
null
lambdata/style_example.py
B-Meister/ds18_lambdata
8b5983219513a25357d81a1c4403a6d643b7b6d5
[ "MIT" ]
null
null
null
""" This file was to practice PEP8 style""" import math import sys def example1(): # This is a long comment. This should be wrapped to fit within 72 # characters. some_tuple = (1, 2, 3, 'a') some_variable = { 'long': 'Long code lines should be wrapped within 79 characters.', 'other': [...
28.710526
75
0.604033
76cf07c2e0e759dfcd4fe24ebdaeabd0936e3647
1,048
py
Python
setup.py
marujore/stmetrics
16beeb262bde7942d0c9bb49772a409e0e2e2f1f
[ "MIT" ]
12
2020-04-15T14:19:59.000Z
2022-03-01T09:25:19.000Z
setup.py
andersonreisoares/time-metrics
dd988d406fa090738a4d50461e9a46492d2f078e
[ "MIT" ]
6
2020-07-04T12:57:22.000Z
2021-06-10T02:28:51.000Z
setup.py
andersonreisoares/time-metrics
dd988d406fa090738a4d50461e9a46492d2f078e
[ "MIT" ]
4
2020-03-17T14:52:00.000Z
2021-05-14T11:29:34.000Z
import setuptools with open("README.rst", "r") as fh: long_description = fh.read() setuptools.setup( name="stmetrics", version="0.1.7", author="Brazil Data Cube Team", author_email="brazildatacube@dpi.inpe.br", description="A package to compute features from Satellite Image Time Series (SITS)....
23.818182
89
0.610687
d23c74c48bd63a487c69cc10088dfba3386fa662
581
py
Python
main.py
OleHenFo/hyttemon
8cacd61c395b330736287db0b8489dd27f72cabc
[ "MIT" ]
null
null
null
main.py
OleHenFo/hyttemon
8cacd61c395b330736287db0b8489dd27f72cabc
[ "MIT" ]
null
null
null
main.py
OleHenFo/hyttemon
8cacd61c395b330736287db0b8489dd27f72cabc
[ "MIT" ]
null
null
null
import time,random,os from PIL import Image,ImageDraw,ImageFont fontTemp = ImageFont.truetype("font/Roboto-Medium.ttf", 136) textColor = (200,200,200,150) tempUte = 14 tempInne = 23 while(True): im = Image.open("img/bg.png") draw = ImageDraw.Draw(im) tempUte = 14 + random.randint(0,1)-1 tempInne = 23 + rand...
27.666667
67
0.69191
876c9d812d6289519cca4791c9c09fed7ae12d24
13,419
py
Python
gpvdm_gui/gui/scan_io.py
roderickmackenzie/gpvdm
914fd2ee93e7202339853acaec1d61d59b789987
[ "BSD-3-Clause" ]
12
2016-09-13T08:58:13.000Z
2022-01-17T07:04:52.000Z
gpvdm_gui/gui/scan_io.py
roderickmackenzie/gpvdm
914fd2ee93e7202339853acaec1d61d59b789987
[ "BSD-3-Clause" ]
3
2017-11-11T12:33:02.000Z
2019-03-08T00:48:08.000Z
gpvdm_gui/gui/scan_io.py
roderickmackenzie/gpvdm
914fd2ee93e7202339853acaec1d61d59b789987
[ "BSD-3-Clause" ]
6
2019-01-03T06:17:12.000Z
2022-01-01T15:59:00.000Z
# # General-purpose Photovoltaic Device Model - a drift diffusion base/Shockley-Read-Hall # model for 1st, 2nd and 3rd generation solar cells. # Copyright (C) 2008-2022 Roderick C. I. MacKenzie r.c.i.mackenzie at googlemail.com # # https://www.gpvdm.com # # This program is free software; you can redist...
27.441718
141
0.743274
c4260d4f1439eba4b39cd2a41b38b213237c83b7
19,696
py
Python
gtm.py
hkaneko1985/structure_generator_based_on_r_group
56fa945d9caf0f342b4457a9293d33af1a152bf8
[ "MIT" ]
5
2019-05-19T19:45:14.000Z
2020-10-30T09:01:44.000Z
gtm.py
hkaneko1985/structure_generator_based_on_r_group
56fa945d9caf0f342b4457a9293d33af1a152bf8
[ "MIT" ]
null
null
null
gtm.py
hkaneko1985/structure_generator_based_on_r_group
56fa945d9caf0f342b4457a9293d33af1a152bf8
[ "MIT" ]
4
2019-08-25T06:09:44.000Z
2022-02-01T01:19:14.000Z
# -*- coding: utf-8 -*- # %reset -f """ @author: Hiromasa Kaneko """ # GTM (generative topographic mapping) class import math import numpy as np import numpy.matlib from scipy.spatial.distance import cdist from scipy.stats import norm, multivariate_normal from sklearn.decomposition import PCA class GTM: def __...
46.895238
117
0.600579
f13a803e440d714d719cbe16ae982eb996d79408
1,563
py
Python
tools/tiny-test-fw/CIAssignExampleTest.py
Mixerito/esp-idf
20a662936483f44ee9c8d16f3251a5a1191ca6e5
[ "Apache-2.0" ]
14
2018-04-23T20:34:38.000Z
2022-02-03T05:06:57.000Z
tools/tiny-test-fw/CIAssignExampleTest.py
Mixerito/esp-idf
20a662936483f44ee9c8d16f3251a5a1191ca6e5
[ "Apache-2.0" ]
null
null
null
tools/tiny-test-fw/CIAssignExampleTest.py
Mixerito/esp-idf
20a662936483f44ee9c8d16f3251a5a1191ca6e5
[ "Apache-2.0" ]
3
2018-11-25T06:51:59.000Z
2019-07-14T15:47:48.000Z
# Copyright 2015-2017 Espressif Systems (Shanghai) PTE LTD # # 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 ...
31.897959
74
0.725528
d6ddd88faba42caf19ab392483d9cec0fa476884
391
py
Python
test_mo/asgi.py
Qmanes/test_mo
f175f3d623d499473d88d2357769a3259b9b7484
[ "MIT" ]
null
null
null
test_mo/asgi.py
Qmanes/test_mo
f175f3d623d499473d88d2357769a3259b9b7484
[ "MIT" ]
null
null
null
test_mo/asgi.py
Qmanes/test_mo
f175f3d623d499473d88d2357769a3259b9b7484
[ "MIT" ]
null
null
null
""" ASGI config for test_mo 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.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTI...
23
78
0.785166
ebcaf9aa7dbc00bc9ed32c8b5cf12ff21cc8fe5e
1,982
py
Python
robotframework-ls/src/robotframework_ls/__init__.py
JohanMabille/robotframework-lsp
610f0257fdcd79b8c38107a0ecf600f60160bc1f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
robotframework-ls/src/robotframework_ls/__init__.py
JohanMabille/robotframework-lsp
610f0257fdcd79b8c38107a0ecf600f60160bc1f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
robotframework-ls/src/robotframework_ls/__init__.py
JohanMabille/robotframework-lsp
610f0257fdcd79b8c38107a0ecf600f60160bc1f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
__version__ = "0.6.0" version_info = [int(x) for x in __version__.split(".")] import os.path import sys __file__ = os.path.abspath(__file__) if __file__.endswith((".pyc", ".pyo")): __file__ = __file__[:-1] def import_robocorp_ls_core(): """ Helper function to make sure that robocorp_ls_core is imported ...
33.59322
88
0.534309
0ed6c9352b89cb95c37f903654e23611852b093a
25,197
py
Python
src/persistence/response_cache.py
nostalgebraist/nostalgebraist-autoresponder
622349c4cad2a7aec1017837416c58a678151aae
[ "MIT" ]
39
2020-06-19T05:38:11.000Z
2022-03-28T04:35:31.000Z
src/persistence/response_cache.py
nostalgebraist/nostalgebraist-autoresponder
622349c4cad2a7aec1017837416c58a678151aae
[ "MIT" ]
null
null
null
src/persistence/response_cache.py
nostalgebraist/nostalgebraist-autoresponder
622349c4cad2a7aec1017837416c58a678151aae
[ "MIT" ]
2
2021-04-13T18:12:03.000Z
2021-12-16T23:20:12.000Z
""" Originally for caching tumblr API responses to help w/ ratelimiting. Scope creep has caused this to be more of a general cache for lots of stuff, so it now holds a lot of stuff needed for persistent-over-time elements of bot operation, like the mood feature. """ import subprocess from collections import namedtuple...
39.49373
140
0.613168
ed3bbae33cd01724c5151b3ac4c16ed8a05d72bf
125
py
Python
sourcehold/maps/sections/section1021.py
J-T-de/sourcehold-maps
330ab1b3426dbd93b5de3b0c031419e54f6a1618
[ "MIT" ]
null
null
null
sourcehold/maps/sections/section1021.py
J-T-de/sourcehold-maps
330ab1b3426dbd93b5de3b0c031419e54f6a1618
[ "MIT" ]
null
null
null
sourcehold/maps/sections/section1021.py
J-T-de/sourcehold-maps
330ab1b3426dbd93b5de3b0c031419e54f6a1618
[ "MIT" ]
null
null
null
from .types import TileCompressedMapSection class Section1021(TileCompressedMapSection): _TYPE_ = "H" _CLASS_ = int
20.833333
44
0.768
eb21c84cf904c163f20c464c1db0f9d3948b53f3
7,464
py
Python
sort.py
qadeer7194/-Dyanmic-Traffic-Light-Management-System
4b34fdf74b07967b49c2d03807bb6a5ef310208e
[ "MIT" ]
null
null
null
sort.py
qadeer7194/-Dyanmic-Traffic-Light-Management-System
4b34fdf74b07967b49c2d03807bb6a5ef310208e
[ "MIT" ]
null
null
null
sort.py
qadeer7194/-Dyanmic-Traffic-Light-Management-System
4b34fdf74b07967b49c2d03807bb6a5ef310208e
[ "MIT" ]
null
null
null
""" SORT: A Simple, Online and Realtime Tracker Copyright (C) 2016 Alex Bewley alex@dynamicdetection.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the Li...
33.470852
141
0.649652
74d2597968e3350550b601757925a3fa106e4c36
63,112
py
Python
geoalchemy2/_functions.py
jimfulton/geoalchemy2
0ed84a38cc5a224c6d3f9dc6281800bd0f158f9b
[ "MIT" ]
388
2015-01-05T05:18:04.000Z
2022-03-04T23:24:08.000Z
geoalchemy2/_functions.py
jimfulton/geoalchemy2
0ed84a38cc5a224c6d3f9dc6281800bd0f158f9b
[ "MIT" ]
233
2015-01-01T20:16:10.000Z
2022-03-23T14:05:46.000Z
geoalchemy2/_functions.py
jimfulton/geoalchemy2
0ed84a38cc5a224c6d3f9dc6281800bd0f158f9b
[ "MIT" ]
81
2015-05-04T15:45:33.000Z
2022-03-02T13:51:27.000Z
# -*- coding: utf-8 -*- # flake8: noqa from . import types _FUNCTIONS = [ ('AddGeometryColumn', None, '''Adds a geometry column to an existing table.'''), ('DropGeometryColumn', None, '''Removes a geometry column from a spatial table.'''), ('DropGeometryTable', None, '''Drops a table and al...
75.855769
742
0.704034
344208f3709486556112f73b94798978c0424768
3,925
py
Python
polyjit/experiments/sequences/test_genetic2.py
PolyJIT/polyjit.experiments
4ac51473a20f86d4b07b598ac4c9b09df0c8fcb6
[ "MIT" ]
null
null
null
polyjit/experiments/sequences/test_genetic2.py
PolyJIT/polyjit.experiments
4ac51473a20f86d4b07b598ac4c9b09df0c8fcb6
[ "MIT" ]
3
2017-02-02T15:54:52.000Z
2017-06-08T03:52:45.000Z
polyjit/experiments/sequences/test_genetic2.py
PolyJIT/polyjit.experiments
4ac51473a20f86d4b07b598ac4c9b09df0c8fcb6
[ "MIT" ]
1
2017-04-01T15:30:16.000Z
2017-04-01T15:30:16.000Z
"""This module provides unit tests for the module genetic2.py.""" import unittest import genetic2 class ChromosomeTestCase(unittest.TestCase): def setUp(self): self.gene_sequences = [['a', 'a', 'a'], ['b', 'b', 'b'], ['c', 'c', 'c']] self.seq_to_fitness = {"['a', 'a...
42.663043
79
0.543439
11a16ed140dd2bf6043005f43276774013688714
12,411
py
Python
scripts/credit_poisoning.py
bogdan-kulynych/pots
908e8fe00f0bb53765eff61462f50c43f339b17f
[ "MIT" ]
7
2018-12-09T15:44:49.000Z
2020-07-10T19:15:41.000Z
scripts/credit_poisoning.py
spring-epfl/pots
908e8fe00f0bb53765eff61462f50c43f339b17f
[ "MIT" ]
null
null
null
scripts/credit_poisoning.py
spring-epfl/pots
908e8fe00f0bb53765eff61462f50c43f339b17f
[ "MIT" ]
null
null
null
import sys import pickle import argparse import functools import pandas as pd import numpy as np import xxhash from sklearn.svm import SVC from tqdm import tqdm, trange import src.credit_utils as cred from src.influence import influence_func _cached_transformations = {} class ExpContext: """Experimental con...
35.059322
112
0.624768
879b9c191eb0eb80e3c9af4157515e845dde9f42
1,293
py
Python
examples/data_augmentation/classifier.py
BehaviorPredictionTestingPlatform/VerifAI
db05f3573c2e7d98c03029c1b4efca93e6b08edb
[ "BSD-3-Clause" ]
109
2019-04-29T03:30:42.000Z
2022-03-31T03:06:26.000Z
examples/data_augmentation/classifier.py
BehaviorPredictionTestingPlatform/VerifAI
db05f3573c2e7d98c03029c1b4efca93e6b08edb
[ "BSD-3-Clause" ]
25
2019-03-25T00:27:39.000Z
2022-03-27T20:29:23.000Z
examples/data_augmentation/classifier.py
BehaviorPredictionTestingPlatform/VerifAI
db05f3573c2e7d98c03029c1b4efca93e6b08edb
[ "BSD-3-Clause" ]
35
2019-02-12T20:50:32.000Z
2022-01-05T11:25:06.000Z
import numpy as np from dotmap import DotMap from verifai.client import Client try: import tensorflow as tf except ModuleNotFoundError: import sys sys.exit('This functionality requires tensorflow to be installed') from renderer.kittiLib import getLib from renderer.generator import genImage from model.mod...
24.396226
86
0.753287
1ef64256b8caf749726f1e07c7bb8ecd9f635fee
7,335
py
Python
main_nolsm_onlyvid.py
nviable/deepfake-blips
93f57d5e6b8f5b3ac7bdcae4c81a4b2028f1253b
[ "Apache-2.0" ]
5
2019-05-22T02:30:43.000Z
2020-02-18T12:23:08.000Z
main_nolsm_onlyvid.py
nviable/deepfake-blips
93f57d5e6b8f5b3ac7bdcae4c81a4b2028f1253b
[ "Apache-2.0" ]
null
null
null
main_nolsm_onlyvid.py
nviable/deepfake-blips
93f57d5e6b8f5b3ac7bdcae4c81a4b2028f1253b
[ "Apache-2.0" ]
1
2020-02-28T06:15:07.000Z
2020-02-28T06:15:07.000Z
#%% from datetime import datetime import os,cv2 #from cv2 import getRotationMatrix2D, warpAffine,getAffineTransform,resize,imread,BORDER_REFLECT import numpy as np #KERAS IMPORTS from keras.applications.vgg16 import VGG16 from keras.callbacks import ProgbarLogger, EarlyStopping, ModelCheckpoint, TensorBoard from keras....
42.155172
180
0.734015
e8c56316ff5d87b0ef64cdc25db0c731179823b1
171
py
Python
api/tests/ver2/test_data/office_test_data.py
pcf26536/politico-api
1c9b8755ddad2baf0bfdeab4aa0674e4197a0d7c
[ "MIT" ]
1
2019-02-22T19:34:32.000Z
2019-02-22T19:34:32.000Z
api/tests/ver2/test_data/office_test_data.py
pcf26536/politico-api
1c9b8755ddad2baf0bfdeab4aa0674e4197a0d7c
[ "MIT" ]
null
null
null
api/tests/ver2/test_data/office_test_data.py
pcf26536/politico-api
1c9b8755ddad2baf0bfdeab4aa0674e4197a0d7c
[ "MIT" ]
1
2019-02-07T22:12:25.000Z
2019-02-07T22:12:25.000Z
from api.strings import name_key, type_key from api.ver1.offices.strings import fed_type correct_office = { name_key: "Women Representative", type_key: fed_type }
24.428571
45
0.77193
9eddc9b44c8e9bb9b2c1b2e233e11af6583e50b9
2,380
py
Python
tests/unit/raptiformica/actions/agent/test_agent_already_running.py
vdloo/raptiformica
e2807e5e913312034161efcbd74525a4b15b37e7
[ "MIT" ]
21
2016-09-04T11:27:31.000Z
2019-10-30T08:23:14.000Z
tests/unit/raptiformica/actions/agent/test_agent_already_running.py
vdloo/raptiformica
e2807e5e913312034161efcbd74525a4b15b37e7
[ "MIT" ]
5
2017-09-17T15:59:37.000Z
2018-02-03T14:53:32.000Z
tests/unit/raptiformica/actions/agent/test_agent_already_running.py
vdloo/raptiformica
e2807e5e913312034161efcbd74525a4b15b37e7
[ "MIT" ]
2
2017-11-21T18:14:51.000Z
2017-11-22T01:20:45.000Z
from raptiformica.actions.agent import agent_already_running from tests.testcase import TestCase class TestAgentAlreadyRunning(TestCase): def setUp(self): self.check_nonzero_exit = self.set_up_patch( 'raptiformica.actions.agent.check_nonzero_exit' ) self.check_nonzero_exit.retu...
43.272727
95
0.596218
040ca3941248932b69f6e566bea6389eea026ab6
347
py
Python
tests/test_models.py
solocompt/plugs-status
1177d3426e8e62801fc435df082ad3ffc2dea0b6
[ "MIT" ]
null
null
null
tests/test_models.py
solocompt/plugs-status
1177d3426e8e62801fc435df082ad3ffc2dea0b6
[ "MIT" ]
null
null
null
tests/test_models.py
solocompt/plugs-status
1177d3426e8e62801fc435df082ad3ffc2dea0b6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_plugs-status ------------ Tests for `plugs-status` models module. """ from django.test import TestCase from plugs_status import models class TestPlugs_status(TestCase): def setUp(self): pass def test_something(self): pass def te...
13.346154
39
0.62536
f5b1c89503dc67b5dfca05d692d61cdec555d3cc
5,689
py
Python
IMLearn/learners/gaussian_estimators.py
ereldebel/IML.HUJI
1c3d7042071a74ed60f92c013ef6051e2341304c
[ "MIT" ]
null
null
null
IMLearn/learners/gaussian_estimators.py
ereldebel/IML.HUJI
1c3d7042071a74ed60f92c013ef6051e2341304c
[ "MIT" ]
null
null
null
IMLearn/learners/gaussian_estimators.py
ereldebel/IML.HUJI
1c3d7042071a74ed60f92c013ef6051e2341304c
[ "MIT" ]
null
null
null
from __future__ import annotations import numpy as np from numpy.linalg import inv, det, slogdet class UnivariateGaussian: """ Class for univariate Gaussian Distribution Estimator """ def __init__(self, biased_var: bool = False) -> None: """ Estimator for univariate Gaussian mean and variance parameters P...
25.977169
87
0.679557
8a0188795536e668bab21c1eaba05c76a768f22d
4,272
py
Python
src/lossfunctions.py
Darshan-Ramesh/EmpRecognition
c85775659bcbb79f62de29a7a764cc72f1de0674
[ "MIT" ]
null
null
null
src/lossfunctions.py
Darshan-Ramesh/EmpRecognition
c85775659bcbb79f62de29a7a764cc72f1de0674
[ "MIT" ]
null
null
null
src/lossfunctions.py
Darshan-Ramesh/EmpRecognition
c85775659bcbb79f62de29a7a764cc72f1de0674
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import config as cfg from torch.autograd import Variable import numpy as np class CBFocalLoss(nn.Module): # from https://github.com/vandit15/Class-balanced-loss-pytorch/blob/master/class_balanced_loss.py # paper https://arxiv.org/abs/1901.0...
34.731707
117
0.619382
0712bbc0f673317187af8e1ab3b26543e2e7e0de
443
py
Python
balanced_delimiters.py
roopsmall/hackerrank-questions
f38d710be7a46491e5dc435155d953ae821d2055
[ "MIT" ]
null
null
null
balanced_delimiters.py
roopsmall/hackerrank-questions
f38d710be7a46491e5dc435155d953ae821d2055
[ "MIT" ]
null
null
null
balanced_delimiters.py
roopsmall/hackerrank-questions
f38d710be7a46491e5dc435155d953ae821d2055
[ "MIT" ]
null
null
null
brackets = raw_input() pairs = {'{':'}', '[':']', '(':')'} index = -1 indicator = [] for i, bracket in enumerate(brackets): if index == -1 and bracket not in pairs.keys(): index = 1 break elif bracket in pairs.keys() or indicator[index] not in pairs.keys() or bracket != pairs[indicator[index]]: indicator.a...
20.136364
108
0.625282
42e42c29ee2f51520678161f21d7e6feade1c79f
5,775
py
Python
tests/test_livechat_2.py
pedrohbtp/pytchat
5b18536972a4cdfbe68aa0beb023c136d41fca16
[ "MIT" ]
null
null
null
tests/test_livechat_2.py
pedrohbtp/pytchat
5b18536972a4cdfbe68aa0beb023c136d41fca16
[ "MIT" ]
null
null
null
tests/test_livechat_2.py
pedrohbtp/pytchat
5b18536972a4cdfbe68aa0beb023c136d41fca16
[ "MIT" ]
null
null
null
import asyncio import re from aioresponses import aioresponses from concurrent.futures import CancelledError from pytchat.core_multithread.livechat import LiveChat from pytchat.core_async.livechat import LiveChatAsync from pytchat.processors.dummy_processor import DummyProcessor def _open_file(path): with open(pa...
40.957447
96
0.665974
94cfea49754e85af29da3a247feda3bf7dc1e1e4
955
py
Python
Section_3/Exercise_15.py
Szymon-Budziak/WDI_exercises_solutions
51ffc9ec8b3cd6809bd55e98ecb8aed759c2d460
[ "MIT" ]
null
null
null
Section_3/Exercise_15.py
Szymon-Budziak/WDI_exercises_solutions
51ffc9ec8b3cd6809bd55e98ecb8aed759c2d460
[ "MIT" ]
null
null
null
Section_3/Exercise_15.py
Szymon-Budziak/WDI_exercises_solutions
51ffc9ec8b3cd6809bd55e98ecb8aed759c2d460
[ "MIT" ]
1
2021-11-21T09:38:33.000Z
2021-11-21T09:38:33.000Z
""" Dana jest duża tablica t. Proszę napisać funkcję, która zwraca informację czy w tablicy zachodzi następujący warunek: „wszystkie elementy, których indeks jest elementem ciągu Fibonacciego są liczbami złożonymi, a wśród pozostałych przynajmniej jedna jest liczbą pierwszą”. """ from random import randint def fibona...
26.527778
96
0.55288
75b99654dbf8921e515d99738725ab16c49c99da
22,714
py
Python
pandas/io/tests/parser/c_parser_only.py
onesandzeroes/pandas
22d982a8afdef3c438c9c93dfe5299cc5ca07de2
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
null
null
null
pandas/io/tests/parser/c_parser_only.py
onesandzeroes/pandas
22d982a8afdef3c438c9c93dfe5299cc5ca07de2
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
null
null
null
pandas/io/tests/parser/c_parser_only.py
onesandzeroes/pandas
22d982a8afdef3c438c9c93dfe5299cc5ca07de2
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Tests that apply specifically to the CParser. Unless specifically stated as a CParser-specific issue, the goal is to eventually move as many of these tests out of this module as soon as the Python parser can accept further arguments when parsing. """ import nose import numpy as np import ...
40.27305
79
0.535881
713a97a6d275cb10e46211239c5979143e7c1048
2,275
py
Python
tasks/functions/brook.py
Aurora-Admin-Panel/backend
14caa79773fd505eebcd9c1d578c2994a0f56a8a
[ "MIT" ]
15
2020-11-27T04:03:34.000Z
2022-03-04T11:00:07.000Z
tasks/functions/brook.py
Aurora-Admin-Panel/backend
14caa79773fd505eebcd9c1d578c2994a0f56a8a
[ "MIT" ]
18
2021-06-03T06:03:02.000Z
2022-02-21T08:58:09.000Z
tasks/functions/brook.py
Aurora-Admin-Panel/backend
14caa79773fd505eebcd9c1d578c2994a0f56a8a
[ "MIT" ]
26
2020-11-26T09:00:03.000Z
2022-02-16T04:20:53.000Z
from sqlalchemy.orm import Session from app.db.models.port import Port from app.db.models.port_forward import MethodEnum from app.utils.dns import dns_query from app.utils.ip import is_ip from tasks.functions.base import AppConfig class BrookConfig(AppConfig): method = MethodEnum.BROOK def __init__(self): ...
36.111111
93
0.584615
ce6e43de40a5631238c29381068669ffeeee0f80
9,309
py
Python
documentation/building-with-duim/source/conf.py
promovicz/opendylan
93a21dbf7fa2096de505bc641c24e63f4de9831f
[ "MIT" ]
null
null
null
documentation/building-with-duim/source/conf.py
promovicz/opendylan
93a21dbf7fa2096de505bc641c24e63f4de9831f
[ "MIT" ]
null
null
null
documentation/building-with-duim/source/conf.py
promovicz/opendylan
93a21dbf7fa2096de505bc641c24e63f4de9831f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Building Applications With DUIM documentation build configuration file, created by # sphinx-quickstart on Sun Nov 6 22:59:06 2011. # # 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 # aut...
32.211073
88
0.719089
fc5807d9de5dafda2e96ace80792136280cf2938
1,360
py
Python
main.py
rVnPower/TheShell
43016f6569369830aa36d3fd6978824ad5fcf2e9
[ "MIT" ]
null
null
null
main.py
rVnPower/TheShell
43016f6569369830aa36d3fd6978824ad5fcf2e9
[ "MIT" ]
null
null
null
main.py
rVnPower/TheShell
43016f6569369830aa36d3fd6978824ad5fcf2e9
[ "MIT" ]
null
null
null
class Character: def __init__(self, name, health, strength): self.name = name self.health = health self.strength = strength self.xp = 0 def attack(self, target): if (self.health > 0): damage = self.strength print( f'{self.name} attacks {target.name} and causes {damage} d...
27.2
110
0.647059
efdb57da34f026ac3b5db34706bb8650acc74842
23,843
py
Python
klvdata/misbEG0104.py
stharding/klvdata
e34529c4eba7c8cd00fe56834b623d8e5770f47a
[ "MIT" ]
6
2016-10-21T00:49:27.000Z
2017-08-31T04:36:38.000Z
klvdata/misbEG0104.py
stharding/klvdata
e34529c4eba7c8cd00fe56834b623d8e5770f47a
[ "MIT" ]
null
null
null
klvdata/misbEG0104.py
stharding/klvdata
e34529c4eba7c8cd00fe56834b623d8e5770f47a
[ "MIT" ]
2
2017-05-26T10:44:34.000Z
2017-06-23T22:05:55.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # The MIT License (MIT) # # Copyright (c) 2017 Matthew Pare (paretech@gmail.com) # # 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 rest...
35.375371
83
0.671644
0de6fea6c576b09c0bb5be8fa6b4e4713bf0a512
2,843
py
Python
labs/lab-07/plot_words4.py
LingCheng3273/OSS-Lab
e4ba3755aac3c30649180fdeb6f1da740b8eeb1c
[ "MIT" ]
null
null
null
labs/lab-07/plot_words4.py
LingCheng3273/OSS-Lab
e4ba3755aac3c30649180fdeb6f1da740b8eeb1c
[ "MIT" ]
null
null
null
labs/lab-07/plot_words4.py
LingCheng3273/OSS-Lab
e4ba3755aac3c30649180fdeb6f1da740b8eeb1c
[ "MIT" ]
null
null
null
""" ===== Words ===== Words/Ladder Graph ------------------ Generate an undirected graph over the 5757 5-letter words in the datafile `words_dat.txt.gz`. Two words are connected by an edge if they differ in one letter, resulting in 14,135 edges. This example is described in Section 1.1 in Knuth's book (see [1]_ and [...
31.94382
76
0.57369
ccdb0b58ce162e194092b2f7e77453d2f2336ad0
13,970
py
Python
app/extensions/api/namespace.py
IsmaelJS/test-github-actions
97223df261e9736c46875f590c9593dbac0d417b
[ "MIT" ]
1,420
2015-11-20T01:25:14.000Z
2022-03-22T03:51:33.000Z
app/extensions/api/namespace.py
IsmaelJS/test-github-actions
97223df261e9736c46875f590c9593dbac0d417b
[ "MIT" ]
151
2016-01-07T09:11:42.000Z
2020-11-17T08:37:07.000Z
app/extensions/api/namespace.py
IsmaelJS/test-github-actions
97223df261e9736c46875f590c9593dbac0d417b
[ "MIT" ]
389
2015-11-23T01:14:31.000Z
2022-02-07T08:23:11.000Z
# encoding: utf-8 """ Extended Api Namespace implementation with an application-specific helpers -------------------------------------------------------------------------- """ from contextlib import contextmanager from functools import wraps import logging import flask_marshmallow import sqlalchemy from flask_restplu...
39.6875
109
0.567788
a4cce7a07f3a273ec79d081e724abcf6b5e8b117
3,336
py
Python
prepare_data.py
dajor/keras
17b4df003c0445ed022401923d99495d8f1bb5fe
[ "MIT" ]
null
null
null
prepare_data.py
dajor/keras
17b4df003c0445ed022401923d99495d8f1bb5fe
[ "MIT" ]
null
null
null
prepare_data.py
dajor/keras
17b4df003c0445ed022401923d99495d8f1bb5fe
[ "MIT" ]
null
null
null
import os import glob import argparse import pdf2image import simplejson from tqdm import tqdm from invoicenet import FIELDS, FIELD_TYPES from invoicenet.common import util def main(): ap = argparse.ArgumentParser() ap.add_argument("--data_dir", type=str, required=True, help="path to d...
36.659341
114
0.525779
98fb620b005388dc7d024319f2748b4e85ad011b
350
py
Python
nequip/utils/tp_utils.py
schiotz/nequip
c343ce25ecfeb64f6df92e96022e673a7714e3a6
[ "MIT" ]
153
2021-06-20T20:12:01.000Z
2022-03-31T13:57:45.000Z
nequip/utils/tp_utils.py
schiotz/nequip
c343ce25ecfeb64f6df92e96022e673a7714e3a6
[ "MIT" ]
25
2021-06-17T16:00:16.000Z
2022-03-29T07:04:00.000Z
nequip/utils/tp_utils.py
schiotz/nequip
c343ce25ecfeb64f6df92e96022e673a7714e3a6
[ "MIT" ]
25
2021-06-21T22:25:22.000Z
2022-03-30T04:39:46.000Z
from e3nn import o3 def tp_path_exists(irreps_in1, irreps_in2, ir_out): irreps_in1 = o3.Irreps(irreps_in1).simplify() irreps_in2 = o3.Irreps(irreps_in2).simplify() ir_out = o3.Irrep(ir_out) for _, ir1 in irreps_in1: for _, ir2 in irreps_in2: if ir_out in ir1 * ir2: ...
25
51
0.642857
a75f653a20f7585f1ef5fc7ccc21a3541a64f2f1
2,489
py
Python
athanor_faction/models.py
volundmush/athanor_faction
4f2e886d9587222b157ff6ede1b30900555ce7df
[ "BSD-3-Clause" ]
null
null
null
athanor_faction/models.py
volundmush/athanor_faction
4f2e886d9587222b157ff6ede1b30900555ce7df
[ "BSD-3-Clause" ]
null
null
null
athanor_faction/models.py
volundmush/athanor_faction
4f2e886d9587222b157ff6ede1b30900555ce7df
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from evennia.typeclasses.models import SharedMemoryModel class AllianceBridge(SharedMemoryModel): db_object = models.OneToOneField('objects.ObjectDB', related_name='alliance_bridge', primary_key=True, on_delete=models.CASCADE) db_name = models....
56.568182
113
0.732021
a117ceff7ebc0f5f7a0c5a8f796d2775125f5b67
650
py
Python
init_model.py
positivedefinite/SAMMY
46c9f6712262db95d3d0b56103f36537b99b4b9e
[ "MIT" ]
1
2018-03-04T14:41:26.000Z
2018-03-04T14:41:26.000Z
init_model.py
positivedefinite/SAMMY
46c9f6712262db95d3d0b56103f36537b99b4b9e
[ "MIT" ]
null
null
null
init_model.py
positivedefinite/SAMMY
46c9f6712262db95d3d0b56103f36537b99b4b9e
[ "MIT" ]
null
null
null
from keras.models import model_from_json def init(json_path,h5_path): json_file = open(json_path,'r') loaded_model_json = json_file.read() json_file.close() loaded_model = model_from_json(loaded_model_json) #load woeights into new model loaded_model.load_weights(h5_path) print("Loaded Model from disk") #comp...
30.952381
93
0.78
65d1fc31a73f889613000bfd08b63c6d7cb3c272
10,812
py
Python
PathPlanning/BidirectionalAStar/bidirectional_a_star.py
ll7/PythonRobotics
86a67adde743e85974a42e47c95f083284cfd492
[ "MIT" ]
14
2021-09-26T06:37:01.000Z
2022-03-31T12:30:58.000Z
PathPlanning/BidirectionalAStar/bidirectional_a_star.py
taka-robo/PythonRobotics
3607d72b60cd500806e0f026ac8beb82850a01f9
[ "MIT" ]
null
null
null
PathPlanning/BidirectionalAStar/bidirectional_a_star.py
taka-robo/PythonRobotics
3607d72b60cd500806e0f026ac8beb82850a01f9
[ "MIT" ]
7
2020-11-18T02:15:30.000Z
2022-03-13T06:47:00.000Z
""" Bidirectional A* grid planning author: Erwin Lejeune (@spida_rwin) See Wikipedia article (https://en.wikipedia.org/wiki/Bidirectional_search) """ import math import matplotlib.pyplot as plt show_animation = True class BidirectionalAStarPlanner: def __init__(self, ox, oy, reso, rr): """ ...
31.521866
79
0.503607
4fc7c16f71239cf74629b8028742a25ffda46386
1,145
py
Python
2017/midterm/problem4_closestPower.py
codxse/mitx-600.1
c1cfa51d5ffe426cb1e84b9c1f2d133213b83962
[ "MIT" ]
null
null
null
2017/midterm/problem4_closestPower.py
codxse/mitx-600.1
c1cfa51d5ffe426cb1e84b9c1f2d133213b83962
[ "MIT" ]
null
null
null
2017/midterm/problem4_closestPower.py
codxse/mitx-600.1
c1cfa51d5ffe426cb1e84b9c1f2d133213b83962
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Feb 12 12:26:38 2017 @author: Nadiar """ def closest_power(base, num): ''' base: base of the exponential, integer > 1 num: number you want to be closest to, integer > 0 Find the integer exponent such that base**exponent is closest to nu...
27.261905
75
0.551092
81a2cd2cc844c3dfe496f2e2c1b1f8df8ca7ea00
1,110
py
Python
benchmarks/misc/baseline_reduction.py
liberix/taichi
bbd4ba13e021b32dbf9a52507f637aff0851fe39
[ "MIT" ]
null
null
null
benchmarks/misc/baseline_reduction.py
liberix/taichi
bbd4ba13e021b32dbf9a52507f637aff0851fe39
[ "MIT" ]
null
null
null
benchmarks/misc/baseline_reduction.py
liberix/taichi
bbd4ba13e021b32dbf9a52507f637aff0851fe39
[ "MIT" ]
null
null
null
from utils import dtype_size, scale_repeat import taichi as ti def reduction(arch, dtype, dsize, repeat=10): repeat = scale_repeat(arch, dsize, repeat) n = dsize // dtype_size[dtype] ## fill x x = ti.field(dtype, shape=n) if dtype in [ti.f32, ti.f64]: @ti.kernel def fill_const...
21.764706
70
0.564865
4af6e5802c67db6349d95644164290c003945905
1,423
py
Python
uer/encoders/gpt_encoder.py
nju-websoft/TSQA
d0b3f0c3a5e55a46fc5d281cae09597aa7f76e2e
[ "Apache-2.0" ]
12
2020-12-19T05:26:49.000Z
2022-03-30T13:20:46.000Z
uer/encoders/gpt_encoder.py
nju-websoft/TSQA
d0b3f0c3a5e55a46fc5d281cae09597aa7f76e2e
[ "Apache-2.0" ]
null
null
null
uer/encoders/gpt_encoder.py
nju-websoft/TSQA
d0b3f0c3a5e55a46fc5d281cae09597aa7f76e2e
[ "Apache-2.0" ]
null
null
null
# -*- encoding:utf-8 -*- import torch import torch.nn as nn from uer.layers.layer_norm import LayerNorm from uer.layers.position_ffn import PositionwiseFeedForward from uer.layers.multi_headed_attn import MultiHeadedAttention from uer.layers.transformer import TransformerLayer class GptEncoder(nn.Module): ...
33.093023
75
0.618412
d9d3b6767e109b83b4417637015bb4185b5efc85
3,979
py
Python
frontend/myapp/views.py
TanmayHiremath/Traffic-Man
2c44780b336fd99fc6d4a4914a1c0a9716b19d3f
[ "MIT" ]
null
null
null
frontend/myapp/views.py
TanmayHiremath/Traffic-Man
2c44780b336fd99fc6d4a4914a1c0a9716b19d3f
[ "MIT" ]
null
null
null
frontend/myapp/views.py
TanmayHiremath/Traffic-Man
2c44780b336fd99fc6d4a4914a1c0a9716b19d3f
[ "MIT" ]
1
2020-06-27T14:15:55.000Z
2020-06-27T14:15:55.000Z
# from django.shortcuts import render # # Create your views here. # from myapp.models import * # from .serializers import * # from django.db.models import Q # from rest_framework import viewsets # from rest_framework.response import Response # from rest_framework.views import APIView # import numpy as np # import requ...
29.474074
81
0.614727
86884156f9b808b026a7183f029318de4c0a4046
8,037
py
Python
cfgov/v1/tests/test_signals.py
Colin-Seifer/consumerfinance.gov
a1a943f7170b498707d642d6be97b9a97a2b52e3
[ "CC0-1.0" ]
156
2015-01-16T15:16:46.000Z
2020-08-04T04:48:01.000Z
cfgov/v1/tests/test_signals.py
Colin-Seifer/consumerfinance.gov
a1a943f7170b498707d642d6be97b9a97a2b52e3
[ "CC0-1.0" ]
3,604
2015-01-05T22:09:12.000Z
2020-08-14T17:09:19.000Z
cfgov/v1/tests/test_signals.py
Colin-Seifer/consumerfinance.gov
a1a943f7170b498707d642d6be97b9a97a2b52e3
[ "CC0-1.0" ]
102
2015-01-28T14:51:18.000Z
2020-08-10T00:00:39.000Z
from unittest import TestCase, mock from django.contrib.auth.models import User from django.test import TestCase as DjangoTestCase from django.utils import timezone from wagtail.core.models import Site from model_bakery import baker from teachers_digital_platform.models import ActivityPage, ActivitySetUp from v1.mo...
37.208333
78
0.690929
603e57613bd9d3d31e54f9ca35e2542eb7da5236
662
py
Python
bagdiscovery/models.py
RockefellerArchiveCenter/ursa_major
44bc4a23a37ec749553ecfcc4914357ab621d4f3
[ "MIT" ]
null
null
null
bagdiscovery/models.py
RockefellerArchiveCenter/ursa_major
44bc4a23a37ec749553ecfcc4914357ab621d4f3
[ "MIT" ]
99
2018-09-26T17:06:36.000Z
2022-03-28T15:53:46.000Z
bagdiscovery/models.py
RockefellerArchiveCenter/ursa_major
44bc4a23a37ec749553ecfcc4914357ab621d4f3
[ "MIT" ]
null
null
null
from asterism.models import BasePackage from django.db import models class Accession(models.Model): data = models.JSONField(null=True, blank=True) created = models.DateTimeField(auto_now=True) last_modified = models.DateTimeField(auto_now_add=True) class Bag(BasePackage): CREATED = 1 DISCOVERED ...
30.090909
93
0.719033
d7303df29c2aaa039b1532df9e3acd9c65407786
126,962
py
Python
mrcnn/model.py
ejcv/Mask_RCNN
7f2ebb55c4fb8b8b0e06ce5cb796d9958fbd8d5b
[ "MIT" ]
null
null
null
mrcnn/model.py
ejcv/Mask_RCNN
7f2ebb55c4fb8b8b0e06ce5cb796d9958fbd8d5b
[ "MIT" ]
null
null
null
mrcnn/model.py
ejcv/Mask_RCNN
7f2ebb55c4fb8b8b0e06ce5cb796d9958fbd8d5b
[ "MIT" ]
null
null
null
""" Mask R-CNN The main Mask R-CNN model implementation. Copyright (c) 2017 Matterport, Inc. Licensed under the MIT License (see LICENSE for details) Written by Waleed Abdulla """ import os import random import datetime import re import math import logging from collections import OrderedDict import multiprocessing im...
44.26848
115
0.612089
2c10f60b509ebcc65d4bdf4f50fc06e734bf6d15
70
py
Python
dummyfile.py
LonnonjamesD/EconomyBot
17db1398f19b9d9dba0d47b498ddf6b63de49c64
[ "MIT" ]
1
2020-01-03T21:12:58.000Z
2020-01-03T21:12:58.000Z
dummyfile.py
LonnonjamesD/EconomyBot
17db1398f19b9d9dba0d47b498ddf6b63de49c64
[ "MIT" ]
null
null
null
dummyfile.py
LonnonjamesD/EconomyBot
17db1398f19b9d9dba0d47b498ddf6b63de49c64
[ "MIT" ]
null
null
null
5993818^83748378783748372873874837482302490340298393283748357940238038
70
70
0.985714
7666e95ccdc8587f4c1bb57443acf22a87065147
45,256
py
Python
Lib/test/test_dict.py
philippeitis/RustPython
4e057271ecae2c923eb671b0456f2c06a8449b60
[ "MIT" ]
null
null
null
Lib/test/test_dict.py
philippeitis/RustPython
4e057271ecae2c923eb671b0456f2c06a8449b60
[ "MIT" ]
null
null
null
Lib/test/test_dict.py
philippeitis/RustPython
4e057271ecae2c923eb671b0456f2c06a8449b60
[ "MIT" ]
null
null
null
import collections import collections.abc # import gc // XXX RustPython import pickle import random import string import sys import unittest import weakref from test import support class DictTest(unittest.TestCase): @unittest.skip("TODO: RUSTPYTHON") def test_invalid_keyword_arguments(self): class Cu...
31.647552
82
0.525676
6838be9a56714803a88bf9125df40f7e565a157e
1,025
py
Python
gspread/exceptions.py
MilindGaharwar/gspread
bf4f2606f210ac03bda1946810597dd83ab5ed80
[ "MIT" ]
3
2021-06-15T15:05:33.000Z
2022-01-31T22:56:19.000Z
gspread/exceptions.py
merbroussard/gspread
d0a69c5e9fa0cd1ae807f29c933e93b7bbb58a1b
[ "MIT" ]
15
2015-01-06T13:41:52.000Z
2022-03-30T10:37:25.000Z
gspread/exceptions.py
merbroussard/gspread
d0a69c5e9fa0cd1ae807f29c933e93b7bbb58a1b
[ "MIT" ]
1
2018-01-27T20:13:16.000Z
2018-01-27T20:13:16.000Z
# -*- coding: utf-8 -*- """ gspread.exceptions ~~~~~~~~~~~~~~~~~~ Exceptions used in gspread. """ class GSpreadException(Exception): """A base class for gspread's exceptions.""" class AuthenticationError(GSpreadException): """An error during authentication process.""" class SpreadsheetNotFound(GSpreadExce...
23.837209
66
0.727805
94c59e29177a0d9b2658393bf810adf431801b45
6,525
py
Python
web/servicecalls/salesreports.py
vacoj/mbodjango
e9a6df563862c587e4cc2c2713ed7f8ea0a6e4e3
[ "MIT" ]
8
2015-10-27T12:38:54.000Z
2018-02-23T03:03:24.000Z
web/servicecalls/salesreports.py
vacoj/mbodjango
e9a6df563862c587e4cc2c2713ed7f8ea0a6e4e3
[ "MIT" ]
3
2015-10-28T22:23:58.000Z
2016-01-13T04:05:04.000Z
web/servicecalls/salesreports.py
vacoj/mbodjango
e9a6df563862c587e4cc2c2713ed7f8ea0a6e4e3
[ "MIT" ]
9
2015-09-28T17:32:17.000Z
2018-02-01T00:01:04.000Z
import operator import datetime from ..models import ReportsCacheModel import ast from ..servicecalls.saleservice_gets import GetSales class SalesReport: def __init__(self, sales=None, current=True): self.SudsResult = sales self.SaleTotalsByDate = None self.current = current self....
33.80829
92
0.555096
daea370b5705056386b2c5c2a8bf0ced86144b8e
4,298
py
Python
src/sshark.py
mfs-git/sshark
291d050d0b6fd9f863f48e9cfa86284cd35d575d
[ "MIT" ]
null
null
null
src/sshark.py
mfs-git/sshark
291d050d0b6fd9f863f48e9cfa86284cd35d575d
[ "MIT" ]
null
null
null
src/sshark.py
mfs-git/sshark
291d050d0b6fd9f863f48e9cfa86284cd35d575d
[ "MIT" ]
null
null
null
#!/usr/bin/python """ This tool used to capture packets (pcap file) by tshark and insert them into a sqlite file """ import argparse import subprocess import shlex import sys import signal import sqlite3 import xml.etree.cElementTree as ET __main_author__ = 'M. Fatemipour' __email__ = 'm.fatemipour@gmail.com' __date...
32.315789
117
0.620754
73c34348eabdb5d3ac95175b08536dd288346942
79
py
Python
ioplin/__init__.py
DearCaat/ioplin
e4eae4a60d461d08f9aaf886bea2915282872245
[ "Apache-2.0" ]
4
2021-06-24T06:04:05.000Z
2022-03-19T08:49:32.000Z
ioplin/__init__.py
DearCaat/ioplin
e4eae4a60d461d08f9aaf886bea2915282872245
[ "Apache-2.0" ]
null
null
null
ioplin/__init__.py
DearCaat/ioplin
e4eae4a60d461d08f9aaf886bea2915282872245
[ "Apache-2.0" ]
1
2021-07-04T07:56:40.000Z
2021-07-04T07:56:40.000Z
from .train import * from .predict import * from keras.models import load_model
26.333333
35
0.797468
e88459ba2c09f7e054f60aee44fc2dc3052165fa
9,926
py
Python
openhgnn/trainerflow/dist_mult.py
zsy0828/OpenHGNN
7fe0917008c9f50269bbd308e411a1d8199d667d
[ "Apache-2.0" ]
null
null
null
openhgnn/trainerflow/dist_mult.py
zsy0828/OpenHGNN
7fe0917008c9f50269bbd308e411a1d8199d667d
[ "Apache-2.0" ]
null
null
null
openhgnn/trainerflow/dist_mult.py
zsy0828/OpenHGNN
7fe0917008c9f50269bbd308e411a1d8199d667d
[ "Apache-2.0" ]
null
null
null
import copy import dgl import numpy as np import torch as th from tqdm import tqdm import torch.nn as nn import torch.nn.functional as F from . import BaseFlow, register_flow from ..tasks import build_task from ..utils import extract_embed from collections.abc import Mapping class NegativeSampler(object): def __i...
43.535088
143
0.599839
8c547c276425fb4693184383542a946b66b821f9
593
py
Python
kalaida_schvyschkov/server/sv_packages/__init__.py
maxkalayda/stud_projects
e56a9647ca23694ef8c6983cb3b813dadda40d15
[ "MIT" ]
null
null
null
kalaida_schvyschkov/server/sv_packages/__init__.py
maxkalayda/stud_projects
e56a9647ca23694ef8c6983cb3b813dadda40d15
[ "MIT" ]
null
null
null
kalaida_schvyschkov/server/sv_packages/__init__.py
maxkalayda/stud_projects
e56a9647ca23694ef8c6983cb3b813dadda40d15
[ "MIT" ]
null
null
null
from flask import Flask from flask_login import LoginManager from flask_sqlalchemy import SQLAlchemy from os import path basedir = path.abspath(path.join(path.dirname(__file__), '..', 'sv_packages/templates')) app = Flask(__name__) app.secret_key = 'my supersecret key of all apps' app.config['SQLALCHEMY_DATABASE_URI'...
26.954545
88
0.767285
88d38be15ae470fc5fbf66e20a289b89cb4fec43
278
py
Python
web/src/blueprints/__init__.py
jphacks/A_2001
b8f0dce49dc32041d06272593a467242636539a6
[ "MIT" ]
null
null
null
web/src/blueprints/__init__.py
jphacks/A_2001
b8f0dce49dc32041d06272593a467242636539a6
[ "MIT" ]
7
2020-10-31T09:10:47.000Z
2020-11-06T17:42:58.000Z
web/src/blueprints/__init__.py
jphacks/A_2001
b8f0dce49dc32041d06272593a467242636539a6
[ "MIT" ]
null
null
null
from .api import api from .tasks import tasks from .auth import auth from .quests import quests from .quests_shared import quests_shared from .subtasks import subtasks from .users import users __all__ = ["api", "auth", "quests", "quests_shared", "tasks", "subtasks", "users"]
25.272727
82
0.751799
43d8704474f78915a3e4a1975cfea3815e6c948c
923
py
Python
2020/day10.py
hrushikeshrv/aoc
00b3315cb7119acfe5536ae2dd5a3a78a76b0502
[ "MIT" ]
1
2020-12-05T03:59:02.000Z
2020-12-05T03:59:02.000Z
2020/day10.py
hrushikeshrv/aoc
00b3315cb7119acfe5536ae2dd5a3a78a76b0502
[ "MIT" ]
null
null
null
2020/day10.py
hrushikeshrv/aoc
00b3315cb7119acfe5536ae2dd5a3a78a76b0502
[ "MIT" ]
null
null
null
""" #TODO - Add solution to part 2 Problem 10 - https://adventofcode.com/2020/day/10 Part 1 - Given a set of numbers, find the product of the number of pairs of numbers which differ by 1 and the number of pairs of numbers which differ by 3 Part 1 - Given the same set of numbers, find the number of ways to arr...
23.075
149
0.661972
396d3e47ace5edb0e735045e1705adc468f7681d
886
py
Python
autoresolution/src/__init__.py
Haehnchen/enigma2-plugins
23007eb0b78665cd3a2faf98d1d6145b4f0ada3f
[ "OLDAP-2.3" ]
1
2020-01-27T22:53:56.000Z
2020-01-27T22:53:56.000Z
autoresolution/src/__init__.py
Haehnchen/enigma2-plugins
23007eb0b78665cd3a2faf98d1d6145b4f0ada3f
[ "OLDAP-2.3" ]
null
null
null
autoresolution/src/__init__.py
Haehnchen/enigma2-plugins
23007eb0b78665cd3a2faf98d1d6145b4f0ada3f
[ "OLDAP-2.3" ]
null
null
null
# -*- coding: utf-8 -*- from Components.Language import language from Tools.Directories import resolveFilename, SCOPE_PLUGINS, SCOPE_LANGUAGE import os,gettext PluginLanguageDomain = "AutoResolution" PluginLanguagePath = "SystemPlugins/AutoResolution/locale" def localeInit(): lang = language.getLanguage()[:2] # g...
35.44
106
0.766366
a64d6b7148b862426e291c518b3eae98ceadb0aa
859
py
Python
tcpproxy.py
benjaminbrewerton/dlepard
f1279ed798c04df80b501a0a6689f047037196ff
[ "MIT" ]
null
null
null
tcpproxy.py
benjaminbrewerton/dlepard
f1279ed798c04df80b501a0a6689f047037196ff
[ "MIT" ]
null
null
null
tcpproxy.py
benjaminbrewerton/dlepard
f1279ed798c04df80b501a0a6689f047037196ff
[ "MIT" ]
null
null
null
import asyncio class TCPProxy(asyncio.Protocol): def __init__(self, ipv4adr, port, interface, receive_handler, loop=None): if loop is None: self.loop = asyncio.get_event_loop() else: self.loop = loop self.running = False self.ip_addr = ipv4adr self....
28.633333
91
0.6461
ef3f19540130364218e18488536191df6983d0a8
4,016
py
Python
torchnlp/datasets/wmt.py
XingxingZhang/PyTorch-NLP
b998dbbd943f7a00f67fd94aacbe5e865577da33
[ "BSD-3-Clause" ]
3
2018-06-27T13:43:47.000Z
2022-03-11T05:11:13.000Z
torchnlp/datasets/wmt.py
XingxingZhang/PyTorch-NLP
b998dbbd943f7a00f67fd94aacbe5e865577da33
[ "BSD-3-Clause" ]
null
null
null
torchnlp/datasets/wmt.py
XingxingZhang/PyTorch-NLP
b998dbbd943f7a00f67fd94aacbe5e865577da33
[ "BSD-3-Clause" ]
null
null
null
import os from torchnlp.utils import download_compressed_directory from torchnlp.datasets.dataset import Dataset def wmt_dataset(directory='data/wmt16_en_de', train=False, dev=False, test=False, train_filename='train.tok.clean.bpe.32000', ...
45.636364
126
0.65762
1d964101cb10bea0a1424a5c53e294517d3b77bc
155
py
Python
parser/fase2/team12/src/ENTORNO/Simbolo.py
Josue-Zea/tytus
f9e4be9a8c03eb698fade7a748972e4f52d46685
[ "MIT" ]
35
2020-12-07T03:11:43.000Z
2021-04-15T17:38:16.000Z
parser/fase2/team12/src/ENTORNO/Simbolo.py
Josue-Zea/tytus
f9e4be9a8c03eb698fade7a748972e4f52d46685
[ "MIT" ]
47
2020-12-09T01:29:09.000Z
2021-01-13T05:37:50.000Z
parser/fase2/team12/src/ENTORNO/Simbolo.py
Josue-Zea/tytus
f9e4be9a8c03eb698fade7a748972e4f52d46685
[ "MIT" ]
556
2020-12-07T03:13:31.000Z
2021-06-17T17:41:10.000Z
class Symbol(): def __init__(self, id, data_type, valor): self.id = id self.data_type = data_type self.valor = valor
19.375
45
0.554839
6aa38d7c7506a6a74034a099a7fff6b3a11a5c15
14,846
py
Python
microsoft/testsuites/performance/common.py
srveniga/lisa
0b5bcf028ed4211d79ff90b9f915981c426baab4
[ "MIT" ]
null
null
null
microsoft/testsuites/performance/common.py
srveniga/lisa
0b5bcf028ed4211d79ff90b9f915981c426baab4
[ "MIT" ]
null
null
null
microsoft/testsuites/performance/common.py
srveniga/lisa
0b5bcf028ed4211d79ff90b9f915981c426baab4
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import inspect import pathlib from typing import Any, Dict, List, Optional, Union, cast from lisa import Node, RemoteNode, notifier, run_in_parallel from lisa.environment import Environment from lisa.messages import ( DiskPerformanceMessage, ...
36.121655
85
0.611815
10b30fb70ea1bd12e8539b813f96c10d3195f6d6
3,244
py
Python
tf-docker/django/webapp/translation_web/settings.py
xinmang/TensorFlow-test
5eafe60c2d6a5166583c6384473fe2560f6bdeea
[ "Apache-2.0" ]
1
2018-06-29T07:16:55.000Z
2018-06-29T07:16:55.000Z
tf-docker/django/webapp/translation_web/settings.py
nciefeiniu/TensorFlow-test
e61db477899b36fdf22248db1968d016b9a9a421
[ "Apache-2.0" ]
null
null
null
tf-docker/django/webapp/translation_web/settings.py
nciefeiniu/TensorFlow-test
e61db477899b36fdf22248db1968d016b9a9a421
[ "Apache-2.0" ]
null
null
null
""" Django settings for translation_web project. Generated by 'django-admin startproject' using Django 1.11. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ imp...
26.16129
91
0.694205
2577d8bfce8a3225c50699252016a2b415f9a954
869
py
Python
setup.py
ngazagna/safe_grid_search
bb06740a7b3473578b474b118694de2e24150246
[ "BSD-3-Clause" ]
null
null
null
setup.py
ngazagna/safe_grid_search
bb06740a7b3473578b474b118694de2e24150246
[ "BSD-3-Clause" ]
null
null
null
setup.py
ngazagna/safe_grid_search
bb06740a7b3473578b474b118694de2e24150246
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from distutils.core import setup from Cython.Build import cythonize DISTNAME = 'safegridoptim' DESCRIPTION = 'Coordinate descent solver for elastic net and l1 logistic' LONG_DESCRIPTION = open('README.md').read() MAINTAINER = 'Eugene Ndiaye' MAINTAINER_EMAIL = 'ndiayeeugene@gmail.com' LICENSE = 'BS...
29.965517
73
0.735328
6d51b85a91f8ba204c604eb1ad5333fa51eb0fa8
235
py
Python
pacman-arch/test/pacman/tests/sync104.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/sync104.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/sync104.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "-Suu" sp = pmpkg("dummy", "0.9-1") lp = pmpkg("dummy", "1.0-1") self.addpkg2db("sync", sp) self.addpkg2db("local", lp) self.args = "-Suu" self.addrule("PACMAN_RETCODE=0") self.addrule("PKG_VERSION=dummy|0.9-1")
18.076923
39
0.655319
2832e76a75b14d65485b551b477ee8fec1daeb5c
1,807
py
Python
tests/test.py
ChristofDubs/DoubleBallBalancer
6869220ed9f8c5234b00fc653bf05bb7e0bf6737
[ "Apache-2.0" ]
3
2018-04-08T13:32:26.000Z
2018-06-29T16:15:50.000Z
tests/test.py
ChristofDubs/DoubleBallBalancer
6869220ed9f8c5234b00fc653bf05bb7e0bf6737
[ "Apache-2.0" ]
null
null
null
tests/test.py
ChristofDubs/DoubleBallBalancer
6869220ed9f8c5234b00fc653bf05bb7e0bf6737
[ "Apache-2.0" ]
1
2020-07-18T03:47:41.000Z
2020-07-18T03:47:41.000Z
import unittest import numpy as np import context from model_2d.controller_2 import Controller as Controller2 from model_2d.dynamics_2 import StateIndex as StateIndex2 from model_2d.controller_3 import Controller as Controller3 from model_2d.dynamics_3 import StateIndex as StateIndex3 from model_2d.param import getD...
30.116667
76
0.663531
048c97aa6e972722ee96c6f677210e8f09287695
35,675
py
Python
pyqt_app/taskwidgetui.py
fffoobibi/pyqt_novel
08141735ce7937f817f99686bfc239259604558c
[ "MIT" ]
null
null
null
pyqt_app/taskwidgetui.py
fffoobibi/pyqt_novel
08141735ce7937f817f99686bfc239259604558c
[ "MIT" ]
null
null
null
pyqt_app/taskwidgetui.py
fffoobibi/pyqt_novel
08141735ce7937f817f99686bfc239259604558c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '.\task_widget.ui' # # Created by: PyQt5 UI code generator 5.15.1 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore...
56.269716
164
0.70918
19d30a0e8303dd7f558a8039eef41a64b8affc5a
7,342
py
Python
catkin_tools/jobs/commands/cmake.py
iwanders/catkin_tools
76bfe96cc18cdf4b4e88a1f764f73260f77843b5
[ "Apache-2.0" ]
null
null
null
catkin_tools/jobs/commands/cmake.py
iwanders/catkin_tools
76bfe96cc18cdf4b4e88a1f764f73260f77843b5
[ "Apache-2.0" ]
null
null
null
catkin_tools/jobs/commands/cmake.py
iwanders/catkin_tools
76bfe96cc18cdf4b4e88a1f764f73260f77843b5
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Open Source Robotics Foundation, 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...
41.480226
119
0.652411
a7b32b1c0e08ff923d00c75837198cf6fe90e147
14,074
py
Python
datalad/support/tests/test_fileinfo.py
mslw/datalad
5adfde7818a9582cd12c2d25fe6f008132de1b2f
[ "MIT" ]
298
2015-01-25T17:36:29.000Z
2022-03-20T03:38:47.000Z
datalad/support/tests/test_fileinfo.py
adswa/datalad
c86643fe2e974da8d7403e9799997efcfee97384
[ "MIT" ]
6,387
2015-01-02T18:15:01.000Z
2022-03-31T20:58:58.000Z
datalad/support/tests/test_fileinfo.py
adswa/datalad
c86643fe2e974da8d7403e9799997efcfee97384
[ "MIT" ]
109
2015-01-25T17:49:40.000Z
2022-03-06T06:54:54.000Z
# ex: set sts=4 ts=4 sw=4 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## """Test file info g...
37.631016
87
0.62619
694af4168970c99ad8aea7a0af5a3636e2ee04fe
1,565
py
Python
book/book/pipelines.py
qingtianfei/Dangdangspider
bdfc5c83fbda4ba0f5afef31265d17b9dc8f1f5c
[ "MIT" ]
null
null
null
book/book/pipelines.py
qingtianfei/Dangdangspider
bdfc5c83fbda4ba0f5afef31265d17b9dc8f1f5c
[ "MIT" ]
null
null
null
book/book/pipelines.py
qingtianfei/Dangdangspider
bdfc5c83fbda4ba0f5afef31265d17b9dc8f1f5c
[ "MIT" ]
1
2019-11-16T12:11:24.000Z
2019-11-16T12:11:24.000Z
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html import requests import os import pymysql db = pymysql.connect(host = "localhost",port = 3306, user = "root",password = "", ...
30.096154
151
0.514377
125b79dd286390a2c4eb5d9b9401b2b8216a6a7d
40,843
py
Python
residue/crud/orm.py
magfest/residue
d8621d8a9c43c19b67f0ee532655aaeaaae4ca62
[ "BSD-3-Clause" ]
1
2018-02-26T19:03:19.000Z
2018-02-26T19:03:19.000Z
residue/crud/orm.py
magfest/residue
d8621d8a9c43c19b67f0ee532655aaeaaae4ca62
[ "BSD-3-Clause" ]
null
null
null
residue/crud/orm.py
magfest/residue
d8621d8a9c43c19b67f0ee532655aaeaaae4ca62
[ "BSD-3-Clause" ]
2
2018-02-05T19:49:30.000Z
2018-02-24T18:10:30.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2017 the Residue team, see AUTHORS. # Licensed under the BSD License, see LICENSE for details. """CRUD support for SQLAlchemy orm objects.""" from __future__ import absolute_import import collections import inspect import re import uuid from collections import defaultdict, Mapp...
43.729122
118
0.594251
8296c4d4712c50f06a43899ea8df455a1baee006
821
py
Python
src/test_workflow/perf_test/perf_test_runner.py
naveenpajjuri/opensearch-build
855f0296b36ba32b18cf4fc40b096659b5b3f1f0
[ "Apache-2.0" ]
null
null
null
src/test_workflow/perf_test/perf_test_runner.py
naveenpajjuri/opensearch-build
855f0296b36ba32b18cf4fc40b096659b5b3f1f0
[ "Apache-2.0" ]
null
null
null
src/test_workflow/perf_test/perf_test_runner.py
naveenpajjuri/opensearch-build
855f0296b36ba32b18cf4fc40b096659b5b3f1f0
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. import abc import os from manifests.bundle_manifest import BundleManifest from test_workflow.perf_test.perf_args import PerfAr...
32.84
133
0.73447
c7fd094ba0bfa565e25600a10ee0e3e77a78e98f
16,830
py
Python
c2cgeoportal/scaffolds/update/CONST_alembic/main/versions/415746eb9f6_changes_for_v2.py
craxxkid/c2cgeoportal
60ca7d5d014d69b0a938f858271c911a30da77c3
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
c2cgeoportal/scaffolds/update/CONST_alembic/main/versions/415746eb9f6_changes_for_v2.py
craxxkid/c2cgeoportal
60ca7d5d014d69b0a938f858271c911a30da77c3
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
c2cgeoportal/scaffolds/update/CONST_alembic/main/versions/415746eb9f6_changes_for_v2.py
craxxkid/c2cgeoportal
60ca7d5d014d69b0a938f858271c911a30da77c3
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2014-2016, Camptocamp SA # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this #...
41.555556
100
0.644742
e486effd351757fcc0884067943b4129ba26f878
1,694
py
Python
scripts/export-dos-opportunities.py
alphagov-mirror/digitalmarketplace-scripts
8a7ef9b2b5f5fffea6e012bd676b095a27d35101
[ "MIT" ]
1
2020-06-23T01:55:31.000Z
2020-06-23T01:55:31.000Z
scripts/export-dos-opportunities.py
alphagov-mirror/digitalmarketplace-scripts
8a7ef9b2b5f5fffea6e012bd676b095a27d35101
[ "MIT" ]
267
2015-10-12T12:43:52.000Z
2021-08-19T10:38:55.000Z
scripts/export-dos-opportunities.py
alphagov-mirror/digitalmarketplace-scripts
8a7ef9b2b5f5fffea6e012bd676b095a27d35101
[ "MIT" ]
7
2015-11-11T16:47:41.000Z
2021-04-10T18:03:04.000Z
#!/usr/bin/env python3 """Generate DOS opportunity data export CSV Loads data from the Brief and BriefResponse API models, filters for closed/awarded briefs and stores the output in the CSV. This script generates two CSVs, one with buyer user details and one without. The CSV without buyer user details is made public...
33.88
92
0.753837
3832ea4c713b1d009149a89fe5add279d5d6762a
363
py
Python
src/rst2text/__main__.py
1oglop1/rst2text
730b1bf5b9f7d9c223e0252837f37ce6e51b751e
[ "MIT" ]
null
null
null
src/rst2text/__main__.py
1oglop1/rst2text
730b1bf5b9f7d9c223e0252837f37ce6e51b751e
[ "MIT" ]
null
null
null
src/rst2text/__main__.py
1oglop1/rst2text
730b1bf5b9f7d9c223e0252837f37ce6e51b751e
[ "MIT" ]
null
null
null
""" Entrypoint module, in case you use `python -mrst2text`. Why does this file exist, and why __main__? For more info, read: - https://www.python.org/dev/peps/pep-0338/ - https://docs.python.org/2/using/cmdline.html#cmdoption-m - https://docs.python.org/3/using/cmdline.html#cmdoption-m """ from rst2text.cli import m...
24.2
64
0.716253
d2b64f99c6695fed163a22dce173932f01aed20e
4,737
py
Python
axelrod/tests/integration/test_filtering.py
nandhinianandj/Axelrod
379b907d64c51816a50abfd8480240276c893953
[ "MIT" ]
596
2015-03-30T17:34:14.000Z
2022-03-21T19:32:38.000Z
axelrod/tests/integration/test_filtering.py
nandhinianandj/Axelrod
379b907d64c51816a50abfd8480240276c893953
[ "MIT" ]
1,018
2015-03-30T14:57:33.000Z
2022-03-14T14:57:48.000Z
axelrod/tests/integration/test_filtering.py
nandhinianandj/Axelrod
379b907d64c51816a50abfd8480240276c893953
[ "MIT" ]
263
2015-03-31T10:26:28.000Z
2022-03-29T09:26:02.000Z
import unittest import warnings import axelrod as axl from axelrod.tests.property import strategy_lists from hypothesis import example, given, settings from hypothesis.strategies import integers, lists, sampled_from def classifiers_lists(min_size=1, max_size=5): """ A function to return a list of classifiers...
31.58
80
0.610091
9c34799279023f2497ddaff2cf479492b85d1fce
2,983
py
Python
tests/unit/algorithms/TransientAdvectionDiffusionTest.py
Jimmy-INL/OpenPNM
1546fa1ac2204443bde916f2037fac383c5069ae
[ "MIT" ]
1
2020-06-08T19:48:00.000Z
2020-06-08T19:48:00.000Z
tests/unit/algorithms/TransientAdvectionDiffusionTest.py
Jimmy-INL/OpenPNM
1546fa1ac2204443bde916f2037fac383c5069ae
[ "MIT" ]
null
null
null
tests/unit/algorithms/TransientAdvectionDiffusionTest.py
Jimmy-INL/OpenPNM
1546fa1ac2204443bde916f2037fac383c5069ae
[ "MIT" ]
null
null
null
import numpy as np import scipy as sp import openpnm as op class TransientAdvectionDiffusionTest: def setup_class(self): np.random.seed(0) self.net = op.network.Cubic(shape=[4, 3, 1], spacing=1.0) self.geo = op.geometry.GenericGeometry(network=self.net, ...
39.773333
78
0.573584
8c60aa0cc192fe4fb0f1695abf7f5f15c83739b4
3,144
py
Python
CIM16/IEC61970/Informative/InfLocations/LocationGrant.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
null
null
null
CIM16/IEC61970/Informative/InfLocations/LocationGrant.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
null
null
null
CIM16/IEC61970/Informative/InfLocations/LocationGrant.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
1
2021-04-02T18:04:49.000Z
2021-04-02T18:04:49.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...
48.369231
397
0.724237
a1b43197d4ca5dd3de486f2766065c87fb56e7b4
5,487
py
Python
tests/integration_tests/test_integration.py
JimmyBoyle/FeatureToggles
7e6ec7619764ee93882fb9c07f7076e076023eb9
[ "MIT" ]
null
null
null
tests/integration_tests/test_integration.py
JimmyBoyle/FeatureToggles
7e6ec7619764ee93882fb9c07f7076e076023eb9
[ "MIT" ]
1
2018-11-02T22:00:08.000Z
2018-11-02T22:00:08.000Z
tests/integration_tests/test_integration.py
JimmyBoyle/FeatureToggles
7e6ec7619764ee93882fb9c07f7076e076023eb9
[ "MIT" ]
null
null
null
import boto3 import json import lambda_functions import sys lambda_client = boto3.client('lambda') def test_basic_load(): updates = { "operator_id": "tester", "updates": [ { "action": "SET", "toggle_name": "feature1", "dimension": "dimen...
24.278761
60
0.446692
9f28a123848cd59592f4ab2a4ba4e8be20ca9391
1,829
py
Python
apiV1/routes/driver.py
DerKip/Ride-My-Way
30600349b4225272c4b6e78851c1dce96e586d31
[ "MIT" ]
1
2021-04-06T07:18:06.000Z
2021-04-06T07:18:06.000Z
apiV1/routes/driver.py
DerKip/Ride-My-Way
30600349b4225272c4b6e78851c1dce96e586d31
[ "MIT" ]
13
2018-06-13T05:09:35.000Z
2019-10-21T16:15:50.000Z
apiV1/routes/driver.py
DerKip/Ride-My-Way
30600349b4225272c4b6e78851c1dce96e586d31
[ "MIT" ]
1
2019-05-08T14:40:51.000Z
2019-05-08T14:40:51.000Z
from flask import Blueprint, jsonify, request, Response from ..app.controllers import registration_controller, rides_controller from ..models.rides import all_ride_offers from utils import JSON_MIME_TYPE, json_response driver_route = Blueprint("route_driver",__name__) @driver_route.route('/register', methods=['POS...
35.862745
83
0.718972
b230d891805bd7cec875dae1d28fff1ec4770671
2,201
py
Python
ITP2/ITP2_10_D.py
yu8ikmnbgt6y/MyAOJ
474b21a2a0c25e1c1f3d6d66d2a2ea52aecaa39b
[ "Unlicense" ]
1
2020-01-08T16:33:46.000Z
2020-01-08T16:33:46.000Z
ITP2/ITP2_10_D.py
yu8ikmnbgt6y/MyAOJ
474b21a2a0c25e1c1f3d6d66d2a2ea52aecaa39b
[ "Unlicense" ]
null
null
null
ITP2/ITP2_10_D.py
yu8ikmnbgt6y/MyAOJ
474b21a2a0c25e1c1f3d6d66d2a2ea52aecaa39b
[ "Unlicense" ]
null
null
null
import sys import io import time import pprint input_txt = """ 3 3 0 1 3 1 3 3 0 1 2 8 1 0 2 1 3 1 4 2 5 2 6 2 7 2 8 2 """ sys.stdin = io.StringIO(input_txt);input() #sys.stdin = open('in.test') start = time.time() # copy the below part and paste to the submission form. # ---------function---...
21.163462
72
0.524307
862fc353c28cda53807147358ed0f087f58f4ca4
1,197
py
Python
profiles_api/serializers.py
khangnguyen211195/profiles-rest-api
b74577159874e100b06e682814b465ef175d7d2f
[ "MIT" ]
null
null
null
profiles_api/serializers.py
khangnguyen211195/profiles-rest-api
b74577159874e100b06e682814b465ef175d7d2f
[ "MIT" ]
null
null
null
profiles_api/serializers.py
khangnguyen211195/profiles-rest-api
b74577159874e100b06e682814b465ef175d7d2f
[ "MIT" ]
null
null
null
from rest_framework import serializers from profiles_api import models class HelloSerializer(serializers.Serializer): """Serializes a name field for testing our APIView""" name = serializers.CharField(max_length = 10) class UserProfileSerializer(serializers.ModelSerializer): """Serializes a user profil...
29.925
68
0.621554
5f5bad289bafe45d52b9a87b7dd7279ef0ae305c
5,948
py
Python
jello/cli.py
roehling/jello
1073355e2bbfcd4f92af2584c9e539ce34859fc0
[ "MIT" ]
null
null
null
jello/cli.py
roehling/jello
1073355e2bbfcd4f92af2584c9e539ce34859fc0
[ "MIT" ]
null
null
null
jello/cli.py
roehling/jello
1073355e2bbfcd4f92af2584c9e539ce34859fc0
[ "MIT" ]
null
null
null
"""jello - query JSON at the command line with python syntax""" import os import sys import textwrap import signal import jello from jello.lib import opts, load_json, pyquery, Schema, Json def ctrlc(signum, frame): """exit with error on SIGINT""" sys.exit(1) def get_stdin(): """return STDIN data""" ...
29.156863
98
0.561533
a9b08e21bf2138a7f53246cef7d893882f651385
7,818
py
Python
tests/test_patches_chains.py
IzeBerg/python-wgus
c457af6ea57c40c7a2552fb69db1dd74bc6c9740
[ "MIT" ]
null
null
null
tests/test_patches_chains.py
IzeBerg/python-wgus
c457af6ea57c40c7a2552fb69db1dd74bc6c9740
[ "MIT" ]
null
null
null
tests/test_patches_chains.py
IzeBerg/python-wgus
c457af6ea57c40c7a2552fb69db1dd74bc6c9740
[ "MIT" ]
null
null
null
import pytest from wgus import PatchesChains, get_patches_chains def test_parse(): data = """ <protocol name="patches_chain" version="1.9" wgc_publisher_id="wargaming,steam"> <patches_chain type="install"> <patch> <files> <file> <name>wot_1.14.1.3252_ru_vtlj1d/wot_1.14.1.1663850_locale_ru...
32.040984
110
0.680353
1d8e9b0c45344da5cc18e06555c10b334404499b
3,970
py
Python
tests/test_builder.py
georgeyk/simple-model
95eaacb0da70364c1ee3aaf5e0d205f8e3255dfe
[ "MIT" ]
null
null
null
tests/test_builder.py
georgeyk/simple-model
95eaacb0da70364c1ee3aaf5e0d205f8e3255dfe
[ "MIT" ]
null
null
null
tests/test_builder.py
georgeyk/simple-model
95eaacb0da70364c1ee3aaf5e0d205f8e3255dfe
[ "MIT" ]
null
null
null
import typing import pytest from simple_model.builder import model_builder, model_class_builder, model_many_builder from simple_model import Model, to_dict def test_model_class_builder(): Birl = model_class_builder('Birl', {'f': 'foo', 'b': 'bar'}) birl = Birl() assert isinstance(birl, Model) keys ...
24.658385
87
0.615113
272f65947e07bdacc5832ed3acdce26b0e3b04d2
3,533
py
Python
vprof/profiler.py
ltetrel/vprof
4cab77f345be71b8f2841e0af7f32979e17b9b44
[ "BSD-2-Clause" ]
4,222
2015-07-19T06:16:39.000Z
2022-03-31T13:04:35.000Z
vprof/profiler.py
ltetrel/vprof
4cab77f345be71b8f2841e0af7f32979e17b9b44
[ "BSD-2-Clause" ]
105
2015-12-18T10:33:08.000Z
2022-01-03T21:15:51.000Z
vprof/profiler.py
ltetrel/vprof
4cab77f345be71b8f2841e0af7f32979e17b9b44
[ "BSD-2-Clause" ]
224
2015-12-22T20:54:53.000Z
2022-01-05T20:27:25.000Z
"""Profiler wrapper module.""" import cProfile import operator import pstats import runpy import time from vprof import base_profiler class Profiler(base_profiler.BaseProfiler): """Python profiler wrapper. Runs cProfile on specified program and returns collected stats. """ @staticmethod def _tr...
34.980198
77
0.600906
23d7b7136e43be77be11baa7da44e767ad821cb9
2,935
py
Python
src/tests/crazy_mesh_test.py
Idate96/Mimetic-Fem
75ad3b982ef7ed7c6198f526d19dc460dec28f4d
[ "MIT" ]
null
null
null
src/tests/crazy_mesh_test.py
Idate96/Mimetic-Fem
75ad3b982ef7ed7c6198f526d19dc460dec28f4d
[ "MIT" ]
null
null
null
src/tests/crazy_mesh_test.py
Idate96/Mimetic-Fem
75ad3b982ef7ed7c6198f526d19dc460dec28f4d
[ "MIT" ]
null
null
null
"""Module to test mapping of compuational domain into an arbitrary one.""" import path_magic import unittest import os import mesh import numpy as np import matplotlib.pyplot as plt import numpy.testing as npt # os.chdir(os.getcwd() + '/tests') class TestMappingMesh22(unittest.TestCase): def setUp(self): ...
41.928571
101
0.587394
ec6ba2fdddb957f8f47695187781177ac2dbd234
66
py
Python
npbench/benchmarks/polybench/bicg/bicg_cupy.py
frahlg/npbench
1bc4d9e2e22f3ca67fa2bc7f40e2e751a9c8dd26
[ "BSD-3-Clause" ]
27
2021-05-10T11:49:13.000Z
2022-03-22T18:07:19.000Z
npbench/benchmarks/polybench/bicg/bicg_cupy.py
frahlg/npbench
1bc4d9e2e22f3ca67fa2bc7f40e2e751a9c8dd26
[ "BSD-3-Clause" ]
3
2021-12-01T13:03:17.000Z
2022-03-17T10:53:00.000Z
npbench/benchmarks/polybench/bicg/bicg_cupy.py
frahlg/npbench
1bc4d9e2e22f3ca67fa2bc7f40e2e751a9c8dd26
[ "BSD-3-Clause" ]
7
2021-06-24T03:40:25.000Z
2022-01-26T09:04:33.000Z
import cupy as np def kernel(A, p, r): return r @ A, A @ p
9.428571
23
0.545455
a212c64c25f9aba5d25f36332b608ab569738d40
4,045
py
Python
soln_obamacon.py
GirlswhocodeKS2017/obamacon-photo
3508f20163dc4a4ec1dfd5b3ddb8ae223944f4c9
[ "MIT" ]
null
null
null
soln_obamacon.py
GirlswhocodeKS2017/obamacon-photo
3508f20163dc4a4ec1dfd5b3ddb8ae223944f4c9
[ "MIT" ]
null
null
null
soln_obamacon.py
GirlswhocodeKS2017/obamacon-photo
3508f20163dc4a4ec1dfd5b3ddb8ae223944f4c9
[ "MIT" ]
null
null
null
from PIL import Image def change_pixel_colors(my_image,obamacon_colors): """ Your image is coverted to pixels with a certain color (rgb value). pixel_data_list is a list of tuples. It is a list of pixels, but every pixel has 3 rgb values. (1) Print the pixel_data_list. What do you see? Does it m...
36.772727
83
0.663782
456430e72bf8eec0aaab4f8256291c238aef71aa
526
py
Python
Egzersiz/ali/NoSQLEgzersiz.py.py
ibrahimediz/ornekproje
c5ebeafc43a9c6d2aa639d0d95eedbce65991576
[ "Apache-2.0" ]
null
null
null
Egzersiz/ali/NoSQLEgzersiz.py.py
ibrahimediz/ornekproje
c5ebeafc43a9c6d2aa639d0d95eedbce65991576
[ "Apache-2.0" ]
null
null
null
Egzersiz/ali/NoSQLEgzersiz.py.py
ibrahimediz/ornekproje
c5ebeafc43a9c6d2aa639d0d95eedbce65991576
[ "Apache-2.0" ]
null
null
null
import pymongo cli = pymongo.MongoClient("mongodb+srv://dbuser:dbUser123@cluster0.6iawp.mongodb.net/myFirstDatabase?retryWrites=true&w=majority") # print(*cli.list_database_names(),sep="\n") db = cli["patika"] print(*db.list_collection_names(),sep="\n") col = db["153_yemeksepeti"] # yukarıdaki kod bloğunu kullanarak ...
47.818182
149
0.754753