hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
7d84c34bf554a96a95880cb1e002b94f919769e8
17,684
py
Python
trac/util/tests/__init__.py
DanVerh/trac_az
24ac877f9f43ad08372cb1d15a838d764d9e7df4
[ "BSD-3-Clause" ]
324
2015-01-07T05:30:52.000Z
2022-03-22T07:20:56.000Z
trac/util/tests/__init__.py
DanVerh/trac_az
24ac877f9f43ad08372cb1d15a838d764d9e7df4
[ "BSD-3-Clause" ]
12
2017-03-24T23:24:55.000Z
2019-08-10T05:13:20.000Z
trac/util/tests/__init__.py
DanVerh/trac_az
24ac877f9f43ad08372cb1d15a838d764d9e7df4
[ "BSD-3-Clause" ]
142
2015-01-12T09:30:28.000Z
2022-02-21T00:39:38.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2006-2021 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at https://trac.edgewall.org/wiki/TracLicense. # # This software cons...
38.527233
79
0.611683
b1b15b9b79ef298f3b63882c8493148dab64f12b
2,024
py
Python
config/settings/test.py
ankmishra/whitenose
eb12ad5bb4e1e93daa70a6ef27a0be3a57a4c22e
[ "MIT" ]
1
2020-02-11T13:28:19.000Z
2020-02-11T13:28:19.000Z
config/settings/test.py
ankmishra/whitenose
eb12ad5bb4e1e93daa70a6ef27a0be3a57a4c22e
[ "MIT" ]
null
null
null
config/settings/test.py
ankmishra/whitenose
eb12ad5bb4e1e93daa70a6ef27a0be3a57a4c22e
[ "MIT" ]
null
null
null
""" With these settings, tests run faster. """ from .base import * # noqa from .base import env # GENERAL # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/settings/#debug DEBUG = False # https://docs.djangoproject.com/en/dev/ref/settings/#se...
36.142857
113
0.546443
fdbd55a2a9fb1337f9086aef5d9aa5d5228f126d
287
py
Python
emptycabinet/routers/products.py
aldrickdev/emptycabinet
cb8f5ecd06cb53c884086e310a1a2bae39f025f7
[ "MIT" ]
null
null
null
emptycabinet/routers/products.py
aldrickdev/emptycabinet
cb8f5ecd06cb53c884086e310a1a2bae39f025f7
[ "MIT" ]
null
null
null
emptycabinet/routers/products.py
aldrickdev/emptycabinet
cb8f5ecd06cb53c884086e310a1a2bae39f025f7
[ "MIT" ]
null
null
null
from fastapi import APIRouter router = APIRouter(prefix="/api/products", tags=["products"]) product_list = [ {"name": "Beans"}, {"name": "Bread"}, {"name": "Milk"}, {"name": "Eggs"}, ] @router.get("/") async def get_products(): return {"Products": product_list}
16.882353
61
0.595819
6cca4667240ce71f56e3046ae71f0e40098b0925
17,546
py
Python
hnswlib-pyspark/pyspark_hnsw/knn.py
chenjia123/hnswlib
3afc4ecb96f3e5b651fe5c4ab912262058b319f2
[ "Apache-2.0" ]
158
2019-06-10T13:32:11.000Z
2022-03-23T10:49:41.000Z
hnswlib-pyspark/pyspark_hnsw/knn.py
chenjia123/hnswlib
3afc4ecb96f3e5b651fe5c4ab912262058b319f2
[ "Apache-2.0" ]
43
2019-07-16T19:17:02.000Z
2022-02-27T11:27:30.000Z
hnswlib-pyspark/pyspark_hnsw/knn.py
chenjia123/hnswlib
3afc4ecb96f3e5b651fe5c4ab912262058b319f2
[ "Apache-2.0" ]
38
2019-09-23T06:31:02.000Z
2022-02-27T15:03:25.000Z
from pyspark.ml.wrapper import JavaEstimator, JavaModel, JavaParams from pyspark.ml.param.shared import * from pyspark.mllib.common import inherit_doc from pyspark import keyword_only from pyspark.ml.util import JavaMLReadable, JavaMLWritable, MLReader, _jvm __all__ = ['HnswSimilarity', 'HnswSimilarityModel', 'BruteFo...
32.135531
143
0.62681
3a1cfa86766902dfcfcd5a490790b20ed1ec0009
1,807
py
Python
hummingbot/connector/exchange/kraken/kraken_user_stream_tracker.py
csdenboer/hummingbot
8a799675a325ebdbb74d76b2a44472cdbf74d691
[ "Apache-2.0" ]
37
2020-07-08T03:44:26.000Z
2022-01-16T12:35:26.000Z
hummingbot/connector/exchange/kraken/kraken_user_stream_tracker.py
csdenboer/hummingbot
8a799675a325ebdbb74d76b2a44472cdbf74d691
[ "Apache-2.0" ]
13
2021-02-16T01:57:23.000Z
2021-02-16T03:50:03.000Z
hummingbot/connector/exchange/kraken/kraken_user_stream_tracker.py
csdenboer/hummingbot
8a799675a325ebdbb74d76b2a44472cdbf74d691
[ "Apache-2.0" ]
17
2021-04-07T21:29:46.000Z
2022-02-03T02:01:04.000Z
#!/usr/bin/env python import asyncio import logging from typing import ( Optional ) from hummingbot.core.data_type.user_stream_tracker_data_source import UserStreamTrackerDataSource from hummingbot.logger import HummingbotLogger from hummingbot.core.data_type.user_stream_tracker import UserStreamTracker from hummi...
35.431373
113
0.753182
65618987c76990020ab25ab3fdc7979222f60245
2,544
py
Python
gestao_rh/settings.py
jesielcarlos/gestao_rh
8fdf155bfb772dfb4cab507ba82fca9882f0bf34
[ "MIT" ]
null
null
null
gestao_rh/settings.py
jesielcarlos/gestao_rh
8fdf155bfb772dfb4cab507ba82fca9882f0bf34
[ "MIT" ]
null
null
null
gestao_rh/settings.py
jesielcarlos/gestao_rh
8fdf155bfb772dfb4cab507ba82fca9882f0bf34
[ "MIT" ]
null
null
null
from pathlib import Path import os BASE_DIR = Path(__file__).resolve().parent.parent SECRET_KEY = 'django-insecure-w&-^j@#u1z+r6qh(de_8-l6n-uo-2o3s&nu0!xc!c32)igzpok' DEBUG = True ALLOWED_HOSTS = [] INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', ...
21.931034
91
0.668632
b2f34f8bf110afe89a3823a2776f0e88da455171
3,858
py
Python
main/src/preparation/pandas_dataframe_generator.py
jason424217/Artificial-Code-Gen
a6e2c097c5ffe8cb0929e6703035b526f477e514
[ "MIT" ]
null
null
null
main/src/preparation/pandas_dataframe_generator.py
jason424217/Artificial-Code-Gen
a6e2c097c5ffe8cb0929e6703035b526f477e514
[ "MIT" ]
null
null
null
main/src/preparation/pandas_dataframe_generator.py
jason424217/Artificial-Code-Gen
a6e2c097c5ffe8cb0929e6703035b526f477e514
[ "MIT" ]
null
null
null
import pandas as pd import sys import os def save_to_pickle(dataframe, path, language, partition, data_level): pickle_path = os.path.join(path, "../dataframes", language) if not os.path.exists(pickle_path): os.makedirs(pickle_path) pickle_name = f"{language}_{data_level}_{partition}.pkl" pickl...
46.481928
122
0.659409
458914f50576f5387fd6d137a40844f2fa45ce67
4,314
py
Python
src/python/nispor/route.py
robgc/nispor
32e5d0a2e217322e144fe1ffe916e217133c2b74
[ "Apache-2.0" ]
15
2020-05-18T18:55:38.000Z
2022-01-18T22:50:44.000Z
src/python/nispor/route.py
robgc/nispor
32e5d0a2e217322e144fe1ffe916e217133c2b74
[ "Apache-2.0" ]
89
2020-05-18T18:55:33.000Z
2022-03-30T14:01:34.000Z
src/python/nispor/route.py
robgc/nispor
32e5d0a2e217322e144fe1ffe916e217133c2b74
[ "Apache-2.0" ]
16
2020-05-18T18:48:08.000Z
2021-12-09T15:03:10.000Z
# Copyright 2020 Red Hat # # 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, soft...
21.147059
74
0.619611
06582088aad30e9426b12d5190329b5224596cdd
985
py
Python
src/reqompyler/__init__.py
zurutech/reqompyler
433e92b1771bf049e0ce7d338def83250ed1acf3
[ "Apache-2.0" ]
4
2020-02-13T12:01:39.000Z
2020-03-18T16:41:14.000Z
src/reqompyler/__init__.py
zurutech/reqompyler
433e92b1771bf049e0ce7d338def83250ed1acf3
[ "Apache-2.0" ]
87
2020-02-20T11:19:38.000Z
2021-07-13T00:47:27.000Z
src/reqompyler/__init__.py
zurutech/reqompyler
433e92b1771bf049e0ce7d338def83250ed1acf3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2020 Zuru Tech HK Limited. 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 # # Un...
24.625
74
0.724873
6c5a66a5eb978d0d19b08a4d336a5174ec9b5db3
4,774
py
Python
venv/lib/python3.5/site-packages/jsonrpcclient/request.py
kntoukakis/wifiportal21-map
1f1917c2f3c2987f7a88cc537d7c50449d144ea0
[ "MIT" ]
1
2016-09-10T18:14:33.000Z
2016-09-10T18:14:33.000Z
venv/lib/python3.5/site-packages/jsonrpcclient/request.py
dukakisxyz/wifiportal21-map
1f1917c2f3c2987f7a88cc537d7c50449d144ea0
[ "MIT" ]
null
null
null
venv/lib/python3.5/site-packages/jsonrpcclient/request.py
dukakisxyz/wifiportal21-map
1f1917c2f3c2987f7a88cc537d7c50449d144ea0
[ "MIT" ]
1
2020-11-04T05:01:17.000Z
2020-11-04T05:01:17.000Z
""" Requests ******** These classes make it easy to create JSON-RPC Request objects. """ import itertools import json from collections import OrderedDict from future.utils import with_metaclass def _sort_request(req): """Sorts a JSON-RPC request dict returning a sorted OrderedDict, having no effect other tha...
33.152778
84
0.58253
80a6d31b35dd40a8642707b533712a082f0168e4
12,049
py
Python
experiments/train_eoi.py
YYT-t/maddpg
23f2ef71e000b5422b7d21d69b0be1d2deabffd3
[ "MIT" ]
1
2021-11-06T08:43:00.000Z
2021-11-06T08:43:00.000Z
experiments/train_eoi.py
YYT-t/maddpg
23f2ef71e000b5422b7d21d69b0be1d2deabffd3
[ "MIT" ]
null
null
null
experiments/train_eoi.py
YYT-t/maddpg
23f2ef71e000b5422b7d21d69b0be1d2deabffd3
[ "MIT" ]
null
null
null
import argparse import numpy as np import tensorflow as tf import time import pickle from model3 import * from AllBuffer import AllBuffer from configure import * import maddpg.common.tf_util as U from maddpg.trainer.maddpg_eoi import MADDPGAgentTrainer import tensorflow.contrib.layers as layers def to_categorical(y, n...
49.995851
139
0.640219
b39ae642dea1d3f27638ad147061713e5c5708d6
1,304
py
Python
admin/pin_dist.py
edmcman/angr-dev
ff7fdfb41146e91f7a877e0e9517c3cdfaffa7c5
[ "BSD-2-Clause" ]
94
2015-11-05T04:01:09.000Z
2022-02-25T07:43:16.000Z
admin/pin_dist.py
edmcman/angr-dev
ff7fdfb41146e91f7a877e0e9517c3cdfaffa7c5
[ "BSD-2-Clause" ]
94
2016-02-26T00:44:59.000Z
2022-01-28T20:27:34.000Z
admin/pin_dist.py
edmcman/angr-dev
ff7fdfb41146e91f7a877e0e9517c3cdfaffa7c5
[ "BSD-2-Clause" ]
109
2015-09-11T04:26:55.000Z
2022-03-29T15:42:47.000Z
#!/usr/bin/env python3 version = '8.1.0' github_repos = [ # NOTE this will need a refactor of some sort if we add packages that have different package names than repo names, e.g. bc dashes/underscores differences 'angr/angr', 'angr/pyvex', 'angr/claripy', 'angr/cle', 'angr/archinfo', 'angr...
26.612245
158
0.684816
ed72f7e4fbaeeb4dd22196faa3a5ed5237306bb8
7,076
py
Python
forex_trade_tests.py
sizhe198/simple-forex-strategy-tester-with-python
90a30a2f46efefe46e2f5bf7c5ed9ab3ac9a6cc7
[ "MIT" ]
null
null
null
forex_trade_tests.py
sizhe198/simple-forex-strategy-tester-with-python
90a30a2f46efefe46e2f5bf7c5ed9ab3ac9a6cc7
[ "MIT" ]
null
null
null
forex_trade_tests.py
sizhe198/simple-forex-strategy-tester-with-python
90a30a2f46efefe46e2f5bf7c5ed9ab3ac9a6cc7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Aug 12 02:44:36 2019 @author: sizhe198 """ import cx_Oracle import talib import numpy as np def jincha(short,long,price): #gloden cross singnal for moving average ma_s =talib.SMA(price,timeperiod=short) ma_l =tali...
35.557789
130
0.547343
7b126b0c8f3837d5226e1bf423ba71d1ad8062ea
1,125
py
Python
examples/GA3C/ThreadTrainer.py
neopenx/Dragon
0e639a7319035ddc81918bd3df059230436ee0a1
[ "BSD-2-Clause" ]
212
2015-07-05T07:57:17.000Z
2022-02-27T01:55:35.000Z
examples/GA3C/ThreadTrainer.py
neopenx/Dragon
0e639a7319035ddc81918bd3df059230436ee0a1
[ "BSD-2-Clause" ]
6
2016-07-07T14:31:56.000Z
2017-12-12T02:21:15.000Z
examples/GA3C/ThreadTrainer.py
neopenx/Dragon
0e639a7319035ddc81918bd3df059230436ee0a1
[ "BSD-2-Clause" ]
71
2016-03-24T09:02:41.000Z
2021-06-03T01:52:41.000Z
# -------------------------------------------------------- # GA3C for Dragon # Copyright(c) 2017 SeetaTech # Written by Ting Pan # -------------------------------------------------------- from threading import Thread import numpy as np from Config import Config class ThreadTrainer(Thread): def __init__(self, se...
29.605263
63
0.469333
27f93b73847740abb55ac05dc7b24f174815ec82
534
py
Python
dowhy/interpreters/visual_interpreter.py
Sid-darthvader/dowhy
535cdb47d7eed8988573770769ecea3856180b48
[ "MIT" ]
2,904
2019-05-07T08:09:33.000Z
2022-03-31T18:28:41.000Z
dowhy/interpreters/visual_interpreter.py
Sid-darthvader/dowhy
535cdb47d7eed8988573770769ecea3856180b48
[ "MIT" ]
238
2019-05-11T02:57:22.000Z
2022-03-31T23:47:18.000Z
dowhy/interpreters/visual_interpreter.py
Sid-darthvader/dowhy
535cdb47d7eed8988573770769ecea3856180b48
[ "MIT" ]
527
2019-05-08T16:23:45.000Z
2022-03-30T21:02:41.000Z
from dowhy.interpreter import Interpreter class VisualInterpreter(Interpreter): """Base class for interpreters that show plots or visualizations as output. """ def __init__(self, instance, **kwargs): super().__init__(instance, **kwargs) def show(self, interpret_plot): """Display the i...
26.7
79
0.662921
9b8962ae1961d74b8fb83870c40b8903aab346e5
10,635
py
Python
homeassistant/components/tesla/__init__.py
Toxblh/core
800cf6c8c0b1d688ab0a364d719bc908539ed3cf
[ "Apache-2.0" ]
1
2020-09-07T17:15:34.000Z
2020-09-07T17:15:34.000Z
homeassistant/components/tesla/__init__.py
Toxblh/core
800cf6c8c0b1d688ab0a364d719bc908539ed3cf
[ "Apache-2.0" ]
null
null
null
homeassistant/components/tesla/__init__.py
Toxblh/core
800cf6c8c0b1d688ab0a364d719bc908539ed3cf
[ "Apache-2.0" ]
null
null
null
"""Support for Tesla cars.""" import asyncio from collections import defaultdict from datetime import timedelta import logging import async_timeout from teslajsonpy import Controller as TeslaAPI, TeslaException import voluptuous as vol from homeassistant.config_entries import SOURCE_IMPORT from homeassistant.const im...
32.325228
88
0.654067
0af349056989c0d01e8b8daeb4af5d8950ae8c39
3,135
py
Python
nsd1802/python/ansible_project/myansible/myansible/settings.py
MrWangwf/nsd1806
069e993b0bb64cb21adc2a25aa56f6da674453bc
[ "Apache-2.0" ]
null
null
null
nsd1802/python/ansible_project/myansible/myansible/settings.py
MrWangwf/nsd1806
069e993b0bb64cb21adc2a25aa56f6da674453bc
[ "Apache-2.0" ]
null
null
null
nsd1802/python/ansible_project/myansible/myansible/settings.py
MrWangwf/nsd1806
069e993b0bb64cb21adc2a25aa56f6da674453bc
[ "Apache-2.0" ]
null
null
null
""" Django settings for myansible project. Generated by 'django-admin startproject' using Django 1.11.6. 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/ """ import ...
25.696721
91
0.69697
9e0ccc962b147fa391ddf096005d3f0d70b379ec
1,780
py
Python
web/addons/hw_escpos/__openerp__.py
diogocs1/comps
63df07f6cf21c41e4527c06e2d0499f23f4322e7
[ "Apache-2.0" ]
1
2019-12-29T11:53:56.000Z
2019-12-29T11:53:56.000Z
odoo/addons/hw_escpos/__openerp__.py
tuanquanghpvn/odoo8-tutorial
52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e
[ "MIT" ]
null
null
null
odoo/addons/hw_escpos/__openerp__.py
tuanquanghpvn/odoo8-tutorial
52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e
[ "MIT" ]
3
2020-10-08T14:42:10.000Z
2022-01-28T14:12:29.000Z
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
34.901961
78
0.612921
d4c9d827be35b57687d1102ff7aa5ccfe875e76a
32,810
py
Python
autotest/gdrivers/vrtderived.py
rcoup/gdal
31240deb7b71d990a2abbad1bebedd0918989ca0
[ "MIT" ]
null
null
null
autotest/gdrivers/vrtderived.py
rcoup/gdal
31240deb7b71d990a2abbad1bebedd0918989ca0
[ "MIT" ]
null
null
null
autotest/gdrivers/vrtderived.py
rcoup/gdal
31240deb7b71d990a2abbad1bebedd0918989ca0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test AddBand() with VRTDerivedRasterBand. # Author: Antonio Valentino <a_valentino@users.sf.net> # ########################################...
32.517344
201
0.639012
1161d07b703bb2ab93da5b3c6470f478d74a7e3b
8,972
py
Python
test/functional/wallet_abandonconflict.py
btcavenue/btcavenue
63c135c40dbb1aef3078abb4dffefa04b8ef8217
[ "MIT" ]
null
null
null
test/functional/wallet_abandonconflict.py
btcavenue/btcavenue
63c135c40dbb1aef3078abb4dffefa04b8ef8217
[ "MIT" ]
null
null
null
test/functional/wallet_abandonconflict.py
btcavenue/btcavenue
63c135c40dbb1aef3078abb4dffefa04b8ef8217
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2019 The Btcavenue Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the abandontransaction RPC. The abandontransaction RPC marks a transaction and all its in-wall...
47.470899
138
0.667187
c6bed513942075f563f0fa55a70f495c52d0ebd3
12,530
py
Python
sphinx/domains/c.py
PeerHerholz/smobsc
db34d2bb96b80579bd4a3f4c198a6b524c5a134a
[ "BSD-2-Clause" ]
3
2019-06-11T09:42:08.000Z
2020-03-10T15:57:09.000Z
sphinx/domains/c.py
PeerHerholz/smobsc
db34d2bb96b80579bd4a3f4c198a6b524c5a134a
[ "BSD-2-Clause" ]
12
2019-01-09T15:43:57.000Z
2020-01-21T10:46:30.000Z
sphinx/domains/c.py
PeerHerholz/smobsc
db34d2bb96b80579bd4a3f4c198a6b524c5a134a
[ "BSD-2-Clause" ]
10
2019-02-04T11:49:35.000Z
2020-03-21T13:32:20.000Z
""" sphinx.domains.c ~~~~~~~~~~~~~~~~ The C language domain. :copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re import string from docutils import nodes from sphinx import addnodes from sphinx.directives import ObjectDescriptio...
37.071006
134
0.532003
57e115e06fdf4c25006e2df0936979306f3b9b4f
1,861
py
Python
src/model.py
PeppeSaccardi/cnn-with-pytorch
52a3566cbaf1e99e4cb766bdd2cbd828de267838
[ "MIT" ]
null
null
null
src/model.py
PeppeSaccardi/cnn-with-pytorch
52a3566cbaf1e99e4cb766bdd2cbd828de267838
[ "MIT" ]
null
null
null
src/model.py
PeppeSaccardi/cnn-with-pytorch
52a3566cbaf1e99e4cb766bdd2cbd828de267838
[ "MIT" ]
null
null
null
import torch import config import pandas as pd import numpy as np import torch.nn as nn import torch.nn.functional as F import torch.utils.data.dataset as dataset class ShapeDataset(dataset.Dataset): def __init__(self, features, targets): self.features = features self.targets = targets ...
30.016129
70
0.579796
4d1e4c353e8f2e3cfa0ebc33614a3634810d6779
111
py
Python
kapture/converter/opensfm/__init__.py
v-mehta/kapture
b95a15b83032d667282ab96fa5be5327b2c99ec7
[ "BSD-3-Clause" ]
264
2020-07-21T14:48:33.000Z
2022-03-16T17:05:21.000Z
kapture/converter/opensfm/__init__.py
v-mehta/kapture
b95a15b83032d667282ab96fa5be5327b2c99ec7
[ "BSD-3-Clause" ]
30
2020-08-31T19:27:26.000Z
2022-03-11T08:50:23.000Z
kapture/converter/opensfm/__init__.py
v-mehta/kapture
b95a15b83032d667282ab96fa5be5327b2c99ec7
[ "BSD-3-Clause" ]
49
2020-07-30T06:11:22.000Z
2022-03-22T13:46:06.000Z
# Copyright 2020-present NAVER Corp. Under BSD 3-clause license """ OpenSfM to kapture import and export. """
18.5
63
0.738739
1a627b7258bc335c5be11acd4ec23e9f4455852f
3,981
py
Python
data_timeslice.py
gonuke/cyc3d
13350ea7f588a16c5971d30e86c0c53aa0cf60e6
[ "BSD-3-Clause" ]
null
null
null
data_timeslice.py
gonuke/cyc3d
13350ea7f588a16c5971d30e86c0c53aa0cf60e6
[ "BSD-3-Clause" ]
null
null
null
data_timeslice.py
gonuke/cyc3d
13350ea7f588a16c5971d30e86c0c53aa0cf60e6
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function import os #import json import simplejson as json from argparse import ArgumentParser from datetime import datetime import time from pprint import pprint import numpy as np from tools import diff_last, cost_val, load_kind, label_kind, MAX_COST, MAX_WASTE, \ ...
38.278846
93
0.568701
d6870e753264855d903190aecbef227d30cae2dd
424
py
Python
other_parsers_templates/numpy_parser.py
sushmaakoju/parser
e40e3f818921141044b499e231ae75e6bf4141c2
[ "MIT" ]
null
null
null
other_parsers_templates/numpy_parser.py
sushmaakoju/parser
e40e3f818921141044b499e231ae75e6bf4141c2
[ "MIT" ]
null
null
null
other_parsers_templates/numpy_parser.py
sushmaakoju/parser
e40e3f818921141044b499e231ae75e6bf4141c2
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import sympy as sp from sympy import * #numpy polynomial evaluation #using x_i notation directly which is not real-world case anyway. df = pd.DataFrame( [[21, 72, 67.1], [23, 78, 69.5], [32, 74, 56.6], [52, 54, 76.2]], columns = ['x1','x2', 'x3']) x1, x2, x3 = [df[c].to_nu...
26.5
73
0.641509
cd27c2d372406581550f7169b2b3e7d14ce6a5aa
8,385
py
Python
rltools/rltools/util.py
karlhthompson/cwrc
9fadf113712908c1bfa73bf8a696108a846e4677
[ "MIT" ]
9
2018-04-04T10:46:31.000Z
2020-05-19T09:47:36.000Z
rltools/rltools/util.py
karlhthompson/cwrc
9fadf113712908c1bfa73bf8a696108a846e4677
[ "MIT" ]
null
null
null
rltools/rltools/util.py
karlhthompson/cwrc
9fadf113712908c1bfa73bf8a696108a846e4677
[ "MIT" ]
2
2021-12-11T22:53:05.000Z
2021-12-14T08:18:16.000Z
from __future__ import print_function import errno import os import timeit import h5py import numpy as np from colorama import Fore, Style class Timer(object): def __enter__(self): self.t_start = timeit.default_timer() return self def __exit__(self, _1, _2, _3): self.t_end = timeit...
29.013841
101
0.591055
4784c8d66dbc9d110c96e56b6379fede7ef4a2c7
47
py
Python
PlayStore/AppNotFoundException.py
geoffduong/PlayStoreLinks_Bot
710867fcb7df08a07fec357b9d3c424464531ae0
[ "MIT" ]
81
2015-06-01T10:05:12.000Z
2021-11-16T13:49:10.000Z
PlayStore/AppNotFoundException.py
geoffduong/PlayStoreLinks_Bot
710867fcb7df08a07fec357b9d3c424464531ae0
[ "MIT" ]
13
2015-05-19T17:39:03.000Z
2021-12-13T19:43:55.000Z
PlayStore/AppNotFoundException.py
geoffduong/PlayStoreLinks_Bot
710867fcb7df08a07fec357b9d3c424464531ae0
[ "MIT" ]
22
2015-11-17T00:59:08.000Z
2020-04-19T22:37:42.000Z
class AppNotFoundException(Exception): pass
23.5
38
0.808511
4d17d70a2746821203fb3300fe896fc0e7e0343d
1,781
py
Python
src/competition/forms/registration_forms.py
michaelwisely/django-competition
0c2ae28856d13738140820104dab2413e6e55ecb
[ "BSD-3-Clause" ]
4
2015-12-29T07:35:56.000Z
2021-05-14T14:32:54.000Z
src/competition/forms/registration_forms.py
michaelwisely/django-competition
0c2ae28856d13738140820104dab2413e6e55ecb
[ "BSD-3-Clause" ]
3
2015-09-11T01:10:39.000Z
2016-02-12T02:40:02.000Z
src/competition/forms/registration_forms.py
michaelwisely/django-competition
0c2ae28856d13738140820104dab2413e6e55ecb
[ "BSD-3-Clause" ]
2
2016-03-15T09:48:35.000Z
2020-01-04T19:39:01.000Z
from django import forms def get_form_choices(registration_question): """Takes a RegistrationQuestion object and returns a list of properly formatted choices for a ChoiceField. Namely, a list of tuples. """ raw_choices = registration_question.question_choice_set.all() return [(str(rc.id), rc.ch...
31.245614
67
0.653565
759c04d77a23e0860cc8d2c59322e7cb749d44d9
6,315
py
Python
tests/test_signer.py
0xOmarA/RadixLib
85d75a47d4c4df4c1a319b74857ae2c513933623
[ "MIT" ]
32
2022-01-12T16:52:28.000Z
2022-03-24T18:05:47.000Z
tests/test_signer.py
0xOmarA/RadixLib
85d75a47d4c4df4c1a319b74857ae2c513933623
[ "MIT" ]
3
2022-01-12T17:01:55.000Z
2022-02-12T15:14:16.000Z
tests/test_signer.py
0xOmarA/RadixLib
85d75a47d4c4df4c1a319b74857ae2c513933623
[ "MIT" ]
1
2022-01-21T04:28:07.000Z
2022-01-21T04:28:07.000Z
import radixlib as radix import unittest import os class TestSigner(unittest.TestCase): """ Unit tests for the Signer class """ # The mnemonic phrase which will be used throughout the signer tests. The mnemonic phrase that # you see here is not of an active wallet or a real wallet. This is the mnemonic p...
48.576923
108
0.689945
f7159091f18210b97ef9f6170f617a8643d4d010
1,414
py
Python
hbi/server/tornado_server.py
Glutexo/host-inventory
558b77eff633e5ec7cdb45393e767e4a05bca470
[ "Apache-2.0" ]
1
2018-09-17T13:57:55.000Z
2018-09-17T13:57:55.000Z
hbi/server/tornado_server.py
Glutexo/host-inventory
558b77eff633e5ec7cdb45393e767e4a05bca470
[ "Apache-2.0" ]
3
2018-10-02T10:05:12.000Z
2018-10-10T09:33:47.000Z
hbi/server/tornado_server.py
Glutexo/host-inventory
558b77eff633e5ec7cdb45393e767e4a05bca470
[ "Apache-2.0" ]
3
2018-08-15T16:50:51.000Z
2018-09-26T08:52:44.000Z
import json, os from threading import Thread from tornado.ioloop import IOLoop import tornado.web from hbi.model import Host, Filter from hbi.server import Service class RootHandler(tornado.web.RequestHandler): def get(self): self.write("boop") class EntitiesPoster(tornado.web.RequestHandler): d...
25.709091
87
0.66761
4f39ba161cccf4823418208373af83cc6e00f6f6
11,485
py
Python
app/core/migrations/0001_initial.py
pravintandale/password-poc
4cf7b960390785bc9d884da3ae9c510f37c82a73
[ "MIT" ]
1
2021-01-18T05:03:35.000Z
2021-01-18T05:03:35.000Z
app/core/migrations/0001_initial.py
pravintandale/password-poc
4cf7b960390785bc9d884da3ae9c510f37c82a73
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
pravintandale/password-poc
4cf7b960390785bc9d884da3ae9c510f37c82a73
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2021-01-18 09:55 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = ...
201.491228
8,192
0.642055
f52042453875de2331fb323ec4971cb1d3f480b5
11,297
py
Python
bvh/BVHplay/geo.py
EducationalTestingService/VAMP
4dd18e12db8dc5d7211fed8f120e5a7059bebd87
[ "MIT" ]
9
2015-09-22T21:04:20.000Z
2020-06-28T04:16:10.000Z
bvh/BVHplay/geo.py
EducationalTestingService/tamp
4dd18e12db8dc5d7211fed8f120e5a7059bebd87
[ "MIT" ]
null
null
null
bvh/BVHplay/geo.py
EducationalTestingService/tamp
4dd18e12db8dc5d7211fed8f120e5a7059bebd87
[ "MIT" ]
3
2015-12-10T13:36:20.000Z
2016-02-28T04:02:00.000Z
# from numpy import array, dot ######################################################### # WORLDVERT class ######################################################### class worldvert: def __init__(self, x=0, y=0, z=0, description='', DEBUG=0): self.tr = array([x,y,z,1]) # tr = "translate position" se...
36.092652
79
0.550323
bf17e821c49219ee8a57f48e7d18f08401d67c42
891
py
Python
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/disk/models/Quota.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
14
2018-04-19T09:53:56.000Z
2022-01-27T06:05:48.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/disk/models/Quota.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
15
2018-09-11T05:39:54.000Z
2021-07-02T12:38:02.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/disk/models/Quota.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
33
2018-04-20T05:29:16.000Z
2022-02-17T09:10:05.000Z
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
29.7
75
0.702581
2e23180e5b8f70a7bb9a9cddfde7030af497031e
3,161
py
Python
player_types.py
yutaro-suzuki/batting_order_simulator
4ecc8a3b630ef11f908df4d9a97c3b9101bbbf5e
[ "MIT" ]
null
null
null
player_types.py
yutaro-suzuki/batting_order_simulator
4ecc8a3b630ef11f908df4d9a97c3b9101bbbf5e
[ "MIT" ]
null
null
null
player_types.py
yutaro-suzuki/batting_order_simulator
4ecc8a3b630ef11f908df4d9a97c3b9101bbbf5e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from player import Player from ball import status import numpy as np class Pitcher(Player): def __init__(self, f, p, mw): super().__init__(f, p, mw) self.range = 60 self.radians = 30 self.kyori = 150 def pitchTheBall(self, ball): print('pitch!...
29.820755
121
0.574818
7df338c973634676b438591cf0b10b488b28395b
20,200
py
Python
tests/test_modeling_fsmt.py
suliuzh/transformers
f34372a9ff99f6bc8619ac83dc07f7afe6b92141
[ "Apache-2.0" ]
1
2022-03-25T00:00:49.000Z
2022-03-25T00:00:49.000Z
tests/test_modeling_fsmt.py
suliuzh/transformers
f34372a9ff99f6bc8619ac83dc07f7afe6b92141
[ "Apache-2.0" ]
1
2021-03-21T03:28:23.000Z
2021-03-21T06:06:39.000Z
tests/test_modeling_fsmt.py
suliuzh/transformers
f34372a9ff99f6bc8619ac83dc07f7afe6b92141
[ "Apache-2.0" ]
2
2021-03-27T16:46:26.000Z
2021-12-24T00:33:28.000Z
# coding=utf-8 # Copyright 2020 Huggingface # # 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 ...
38.846154
118
0.652426
01934dcc8c20c3107c6c7c886f5a8ce9c5d2cc38
7,859
py
Python
virtual_env/lib/python3.5/site-packages/google_compute_engine/metadata_scripts/script_retriever.py
straydag/To_Due_Backend
ac91f5ebabe8e4f2b6db7faa5ccbd30ebdb4e3f6
[ "MIT" ]
2
2019-06-25T18:25:49.000Z
2019-06-27T04:48:53.000Z
virtual_env/lib/python3.5/site-packages/google_compute_engine/metadata_scripts/script_retriever.py
straydag/To_Due_Backend
ac91f5ebabe8e4f2b6db7faa5ccbd30ebdb4e3f6
[ "MIT" ]
6
2020-09-08T00:13:19.000Z
2022-02-27T01:04:42.000Z
virtual_env/lib/python3.5/site-packages/google_compute_engine/metadata_scripts/script_retriever.py
straydag/To_Due_Backend
ac91f5ebabe8e4f2b6db7faa5ccbd30ebdb4e3f6
[ "MIT" ]
null
null
null
#!/usr/bin/python # Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
34.928889
79
0.692455
e4d0c37d9e1e89f3cd4105cd09ca4059403bb819
515
py
Python
tests/gamestonk_terminal/stocks/quantitative_analysis/test_factors_view.py
elan17/GamestonkTerminal
f958f8275dc15ffaf30c1f0652f5b033725b7f10
[ "MIT" ]
1,835
2021-05-09T02:55:06.000Z
2022-03-29T12:37:05.000Z
tests/gamestonk_terminal/stocks/quantitative_analysis/test_factors_view.py
elan17/GamestonkTerminal
f958f8275dc15ffaf30c1f0652f5b033725b7f10
[ "MIT" ]
569
2021-05-09T15:59:41.000Z
2022-03-29T12:25:16.000Z
tests/gamestonk_terminal/stocks/quantitative_analysis/test_factors_view.py
elan17/GamestonkTerminal
f958f8275dc15ffaf30c1f0652f5b033725b7f10
[ "MIT" ]
268
2021-05-10T21:46:50.000Z
2022-03-28T09:18:38.000Z
# IMPORTATION STANDARD # IMPORTATION THIRDPARTY import pytest # IMPORTATION INTERNAL from gamestonk_terminal.stocks.quantitative_analysis import factors_view @pytest.fixture(scope="module") def vcr_config(): return { "filter_headers": [("User-Agent", None)], "filter_query_parameters": [ ...
20.6
72
0.673786
c6381f63306b08db3956c887602908c43750568b
3,546
py
Python
src/model-data/generator.py
carseven/color-blind-test-hack
debac7cc1c8176ff722e1e7fb5f5eae12a92d3a0
[ "MIT" ]
null
null
null
src/model-data/generator.py
carseven/color-blind-test-hack
debac7cc1c8176ff722e1e7fb5f5eae12a92d3a0
[ "MIT" ]
null
null
null
src/model-data/generator.py
carseven/color-blind-test-hack
debac7cc1c8176ff722e1e7fb5f5eae12a92d3a0
[ "MIT" ]
null
null
null
import math import random import sys from PIL import Image, ImageDraw try: from scipy.spatial import cKDTree as KDTree import numpy as np IMPORTED_SCIPY = True except ImportError: IMPORTED_SCIPY = False BACKGROUND = (255, 255, 255) TOTAL_CIRCLES = 1500 def color(c): return ((c >> 16) & 255, (c >> 8...
30.307692
148
0.576988
cf4d650780237d27c28c3ef4f710a95fadc69ddc
306
py
Python
pirates/kraken/KrakenAI.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
81
2018-04-08T18:14:24.000Z
2022-01-11T07:22:15.000Z
pirates/kraken/KrakenAI.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
4
2018-09-13T20:41:22.000Z
2022-01-08T06:57:00.000Z
pirates/kraken/KrakenAI.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
26
2018-05-26T12:49:27.000Z
2021-09-11T09:11:59.000Z
from direct.distributed.DistributedObjectAI import DistributedObjectAI from direct.directnotify import DirectNotifyGlobal class KrakenAI(DistributedObjectAI): notify = DirectNotifyGlobal.directNotify.newCategory('KrakenAI') def __init__(self, air): DistributedObjectAI.__init__(self, air)
38.25
70
0.816993
9eb49d6dcd91153745aedd963e02c902a85d6d71
2,347
py
Python
theano/misc/check_duplicate_key.py
royxue/Theano
626104a8c2b16898d270dc99e16a3ddb4a74678e
[ "BSD-3-Clause" ]
2
2015-01-20T04:53:37.000Z
2015-01-20T04:53:40.000Z
theano/misc/check_duplicate_key.py
RoyXue/Theano
626104a8c2b16898d270dc99e16a3ddb4a74678e
[ "BSD-3-Clause" ]
null
null
null
theano/misc/check_duplicate_key.py
RoyXue/Theano
626104a8c2b16898d270dc99e16a3ddb4a74678e
[ "BSD-3-Clause" ]
null
null
null
import cPickle import os, sys import theano DISPLAY_DUPLICATE_KEYS = False DISPLAY_MOST_FREQUENT_DUPLICATE_CCODE = False dirs = [] if len(sys.argv) > 1: for compiledir in sys.argv[1:]: dirs.extend([os.path.join(compiledir, d) for d in os.listdir(compiledir)]) else: dirs = os.listdir(theano.config.com...
24.968085
82
0.599489
121aa6671885653199df30676926ef804787b00f
4,737
py
Python
tests/test_sources.py
aaronspring/climetlab
05a478d373f29415304064ca2449b19121e0a856
[ "Apache-2.0" ]
null
null
null
tests/test_sources.py
aaronspring/climetlab
05a478d373f29415304064ca2449b19121e0a856
[ "Apache-2.0" ]
null
null
null
tests/test_sources.py
aaronspring/climetlab
05a478d373f29415304064ca2449b19121e0a856
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # (C) Copyright 2020 ECMWF. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its statu...
25.605405
87
0.634157
eb86946feacc1791e66d5f9fdbed2211e94e1d87
4,221
py
Python
library/nsxt_fabric_details.py
VuppalaJagadeesh/ansible-for-nsxt
d7605e1d4d154e2664c062c47191d374011f025c
[ "BSD-2-Clause" ]
1
2019-05-21T09:13:58.000Z
2019-05-21T09:13:58.000Z
library/nsxt_fabric_details.py
VuppalaJagadeesh/ansible-for-nsxt
d7605e1d4d154e2664c062c47191d374011f025c
[ "BSD-2-Clause" ]
null
null
null
library/nsxt_fabric_details.py
VuppalaJagadeesh/ansible-for-nsxt
d7605e1d4d154e2664c062c47191d374011f025c
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 # # Copyright © 2015 VMware, Inc. All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated # documentation files (the "Software"), to deal in the Software without restriction, including without limita...
41.792079
117
0.646766
1d882f0a1abc80177beb7513a64d77ac407b8cdf
5,027
py
Python
sdk/python/pulumi_aws/elasticache/security_group.py
michael-golden/pulumi-aws
165e876e166ecab1870e857822247585d78aef64
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/elasticache/security_group.py
michael-golden/pulumi-aws
165e876e166ecab1870e857822247585d78aef64
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/elasticache/security_group.py
michael-golden/pulumi-aws
165e876e166ecab1870e857822247585d78aef64
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Union from .. import utilities, tables class SecurityGroup(pul...
45.7
178
0.681918
4c6de8d6d3839ec0591fd9933d31099140c6ee07
176
py
Python
modeling/backbone/efficientnet_pytorch/temp.py
sunggukcha/deeplabs
739be4accdc27fbb912c131aaafc9fcf10e04929
[ "MIT" ]
34
2019-08-07T20:44:15.000Z
2021-12-05T10:23:47.000Z
modeling/backbone/efficientnet_pytorch/temp.py
toluwajosh/deeplabs
59e292e6777d1e53ed7716b7afd3c3489d57f61a
[ "MIT" ]
9
2020-05-08T07:55:12.000Z
2020-12-23T08:36:08.000Z
modeling/backbone/efficientnet_pytorch/temp.py
toluwajosh/deeplabs
59e292e6777d1e53ed7716b7afd3c3489d57f61a
[ "MIT" ]
6
2020-03-09T15:42:51.000Z
2021-09-12T19:33:08.000Z
from model import EfficientNet from torchsummary import summary model = EfficientNet.from_pretrained('efficientnet-b7') model.cuda() summary(model, input_size=(3, 360, 640))
22
55
0.795455
6e67212952c1c12e88c50c7cbc68aca8937ca807
6,979
py
Python
lib/deepsecurity/policies.py
kn0630/vulssimulator_ds
c0b9ebb11677d616408b35b74aa47d52d59703b2
[ "Apache-2.0" ]
6
2016-10-01T07:48:15.000Z
2016-12-06T02:18:21.000Z
lib/deepsecurity/policies.py
kn0630/vulssimulator_ds
c0b9ebb11677d616408b35b74aa47d52d59703b2
[ "Apache-2.0" ]
null
null
null
lib/deepsecurity/policies.py
kn0630/vulssimulator_ds
c0b9ebb11677d616408b35b74aa47d52d59703b2
[ "Apache-2.0" ]
null
null
null
# standard library import datetime # 3rd party libraries # project libraries from . import core from . import translation class Policies(core.CoreDict): def __init__(self, manager=None): core.CoreDict.__init__(self) self.manager = manager self.log = self.manager.log if self.manager else...
35.426396
153
0.551082
a1cc5a98ce9172e6a20d4505ed758b3af1121a30
422
py
Python
setup.py
paulosoaresua/mlbase
8b60b80fd1745d6565fd38e9bc9d2e203033ae27
[ "MIT" ]
null
null
null
setup.py
paulosoaresua/mlbase
8b60b80fd1745d6565fd38e9bc9d2e203033ae27
[ "MIT" ]
null
null
null
setup.py
paulosoaresua/mlbase
8b60b80fd1745d6565fd38e9bc9d2e203033ae27
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open('requirements.txt') as f: libs = [lib.strip() for lib in f.readlines() if lib] setup( name='MLBase', version='0.1.0_dev', description='General structure to evaluate ML models.', author='Paulo Soares', packages=find_...
26.375
63
0.637441
cbe59536593b2748ea16f3a1bd169e24d1a124a2
9,823
py
Python
core/python/kungfu/yijinjing/journal.py
awesome-archive/kungfu
a8dd41fbbfbf734e00daeaca04f19b391f525e77
[ "Apache-2.0" ]
null
null
null
core/python/kungfu/yijinjing/journal.py
awesome-archive/kungfu
a8dd41fbbfbf734e00daeaca04f19b391f525e77
[ "Apache-2.0" ]
null
null
null
core/python/kungfu/yijinjing/journal.py
awesome-archive/kungfu
a8dd41fbbfbf734e00daeaca04f19b391f525e77
[ "Apache-2.0" ]
null
null
null
import os import shutil import glob import re import json import pyyjj import pandas as pd import kungfu.yijinjing.msg as yjj_msg os_sep = re.escape(os.sep) JOURNAL_LOCATION_REGEX = '{}{}{}{}{}{}{}{}{}{}{}'.format( r'(.*)', os_sep, # category r'(.*)', os_sep, # group r'(.*)', os_sep, # name r'journ...
39.292
147
0.609692
2e777d0e35b2ee13b9f02168f22b742fdc524503
21,386
py
Python
pyscf/mp/mp2.py
LeonOtis/pyscf
98ba8106396ac4c90dc65207059773ce048b0ebf
[ "Apache-2.0" ]
2
2021-08-03T12:32:25.000Z
2021-09-29T08:19:02.000Z
pyscf/mp/mp2.py
LeonOtis/pyscf
98ba8106396ac4c90dc65207059773ce048b0ebf
[ "Apache-2.0" ]
null
null
null
pyscf/mp/mp2.py
LeonOtis/pyscf
98ba8106396ac4c90dc65207059773ce048b0ebf
[ "Apache-2.0" ]
2
2020-06-01T05:31:38.000Z
2022-02-08T02:38:33.000Z
#!/usr/bin/env python # Copyright 2014-2019 The PySCF Developers. 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 # # U...
35.059016
92
0.588516
ca822a43b82867bc16d500e57aba15472b530da1
17
py
Python
config/version.py
veltzer/pyconf
2a06b5890ab41acca12b22cccb59f596ba454d96
[ "MIT" ]
null
null
null
config/version.py
veltzer/pyconf
2a06b5890ab41acca12b22cccb59f596ba454d96
[ "MIT" ]
null
null
null
config/version.py
veltzer/pyconf
2a06b5890ab41acca12b22cccb59f596ba454d96
[ "MIT" ]
null
null
null
tup = (0, 0, 81)
8.5
16
0.411765
de325023a0bea5fceb31dbdd066786e1d739630a
34,830
py
Python
gui/qt/network_dialog.py
sfoxhq/electron-cash
7b07a51b76d199cc104fed7572090c7c4d686f74
[ "MIT" ]
null
null
null
gui/qt/network_dialog.py
sfoxhq/electron-cash
7b07a51b76d199cc104fed7572090c7c4d686f74
[ "MIT" ]
null
null
null
gui/qt/network_dialog.py
sfoxhq/electron-cash
7b07a51b76d199cc104fed7572090c7c4d686f74
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Electrum - lightweight Bitcoin client # Copyright (C) 2012 thomasv@gitorious # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including with...
45.648755
363
0.62472
f2627c0d8155f18f70c48823984ae39d89a9221f
1,488
py
Python
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/ipanti/apis/SwitchForwardRuleProtectRequest.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
null
null
null
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/ipanti/apis/SwitchForwardRuleProtectRequest.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
null
null
null
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/ipanti/apis/SwitchForwardRuleProtectRequest.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
null
null
null
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
32.347826
119
0.718414
6b3ae162c36b26820121078f458bbc30a289c216
1,024
py
Python
tic_tac_toe/agent/strategy/boltzmann.py
erikgrip/tictactoe_reinforcement_learning
d763ec4e30c1cf7424165c369f8ef2b8a91bdbca
[ "MIT" ]
null
null
null
tic_tac_toe/agent/strategy/boltzmann.py
erikgrip/tictactoe_reinforcement_learning
d763ec4e30c1cf7424165c369f8ef2b8a91bdbca
[ "MIT" ]
null
null
null
tic_tac_toe/agent/strategy/boltzmann.py
erikgrip/tictactoe_reinforcement_learning
d763ec4e30c1cf7424165c369f8ef2b8a91bdbca
[ "MIT" ]
null
null
null
from agent.strategy.base_strategy import BaseStrategy import numpy as np class Boltzmann(BaseStrategy): def __init__(self, start, end, decay): super().__init__(start, end, decay) def _action_probs(self, aq_pairs): # As defined by Graessner anf Keng p.86. tau = self.get_decayed_rate() ...
36.571429
78
0.613281
d5c63851bd8e3d0e1b101dfd4e52705b7a76124f
489
py
Python
GrapPlotter/plot.py
ujjwal3067/TravelReservationSystem
5775366fd8ac664c1bc0da53a817a40a604e9628
[ "Apache-2.0" ]
1
2021-03-10T22:28:38.000Z
2021-03-10T22:28:38.000Z
GrapPlotter/plot.py
ujjwal3067/TravelReservationSystem
5775366fd8ac664c1bc0da53a817a40a604e9628
[ "Apache-2.0" ]
null
null
null
GrapPlotter/plot.py
ujjwal3067/TravelReservationSystem
5775366fd8ac664c1bc0da53a817a40a604e9628
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np filePointer = open("output.txt", "r") Lines = filePointer.readlines() x = [] y = [] # populates points for x axis and y axis for line in Lines: tmp = line.strip().split(",") x.append(float(tmp[0])) y.append(float(tmp[1])) plt.plot(x, y) plt.locator_para...
21.26087
40
0.687117
6fc91c8dd3a032b9dc2e347659623f6d77f04d92
3,883
py
Python
component_sdk/python/kfp_component/_base_op.py
ohmystack/pipelines
ef851e80fc2027842ff4773f2aba1bdee8f25422
[ "Apache-2.0" ]
null
null
null
component_sdk/python/kfp_component/_base_op.py
ohmystack/pipelines
ef851e80fc2027842ff4773f2aba1bdee8f25422
[ "Apache-2.0" ]
null
null
null
component_sdk/python/kfp_component/_base_op.py
ohmystack/pipelines
ef851e80fc2027842ff4773f2aba1bdee8f25422
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
34.061404
106
0.656966
7e25ea0717a3d9b8fa6bafb605441a53bc41d0b1
13,534
py
Python
tracery/__init__.py
dav000/pytracery
9d97a6cc979fcef1628167741523ad8c8828fb7e
[ "Apache-2.0" ]
null
null
null
tracery/__init__.py
dav000/pytracery
9d97a6cc979fcef1628167741523ad8c8828fb7e
[ "Apache-2.0" ]
null
null
null
tracery/__init__.py
dav000/pytracery
9d97a6cc979fcef1628167741523ad8c8828fb7e
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations from typing import Callable, Dict, List, Optional, Union from enum import Enum import re import random basestring = (str, bytes) class NodeType(Enum): RAW = -1 TEXT = 0 TAG = 1 ACTION = 2 class Node: regexp = re.compile(r"\(([^)]+)\)") def __init__( ...
34.613811
88
0.535097
6a1257335a97c9e117acf2cb67223fbd48bb4a3f
820
py
Python
code/glucocheck/homepage/migrations/0001_initial.py
kmcgreg5/Glucocheck
4ab4ada7f967ae41c1241c94523d14e693e05dd4
[ "FSFAP" ]
null
null
null
code/glucocheck/homepage/migrations/0001_initial.py
kmcgreg5/Glucocheck
4ab4ada7f967ae41c1241c94523d14e693e05dd4
[ "FSFAP" ]
null
null
null
code/glucocheck/homepage/migrations/0001_initial.py
kmcgreg5/Glucocheck
4ab4ada7f967ae41c1241c94523d14e693e05dd4
[ "FSFAP" ]
null
null
null
# Generated by Django 3.1.6 on 2021-02-17 13:51 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
30.37037
121
0.636585
8c5ea4d3b12f9267afefd92e5d749becc4f4352f
5,108
py
Python
var/spack/repos/builtin/packages/cbtf-argonavis/package.py
padamson/spack
d3f67a48552691b4846ccc4a10f76740b154090c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2018-11-16T02:42:57.000Z
2019-06-06T19:18:50.000Z
var/spack/repos/builtin/packages/cbtf-argonavis/package.py
padamson/spack
d3f67a48552691b4846ccc4a10f76740b154090c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
32
2020-12-15T17:29:20.000Z
2022-03-21T15:08:31.000Z
var/spack/repos/builtin/packages/cbtf-argonavis/package.py
Kerilk/spack
e027942b55407a4a5fe323b93d8e57200c873a43
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2021-07-19T20:31:27.000Z
2021-07-19T21:14:14.000Z
# Copyright 2013-2021 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 CbtfArgonavis(CMakePackage): """CBTF Argo Navis project contains the CUDA collector and su...
41.868852
106
0.591817
1f609f158c146d33abcc9d438d636590f2cd4066
19,188
py
Python
synapse/replication/tcp/streams/_base.py
hailzam/synapse
837293c314b47e988fe9532115476a6536cd6406
[ "Apache-2.0" ]
null
null
null
synapse/replication/tcp/streams/_base.py
hailzam/synapse
837293c314b47e988fe9532115476a6536cd6406
[ "Apache-2.0" ]
null
null
null
synapse/replication/tcp/streams/_base.py
hailzam/synapse
837293c314b47e988fe9532115476a6536cd6406
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2017 Vector Creations Ltd # Copyright 2019 New Vector 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....
31.873754
88
0.648113
90c4e436bb1182cde5a4182bb06b5afab0b1f199
4,469
py
Python
cython/gtsam_unstable/tests/test_FixedLagSmootherExample.py
stillbreeze/Online-Stereo-Calibration
7813f470a7a475c67608e536f7704bce47e8fadf
[ "BSD-3-Clause" ]
14
2019-12-11T18:33:57.000Z
2022-01-04T04:52:45.000Z
cython/gtsam_unstable/tests/test_FixedLagSmootherExample.py
stillbreeze/Online-Stereo-Calibration
7813f470a7a475c67608e536f7704bce47e8fadf
[ "BSD-3-Clause" ]
null
null
null
cython/gtsam_unstable/tests/test_FixedLagSmootherExample.py
stillbreeze/Online-Stereo-Calibration
7813f470a7a475c67608e536f7704bce47e8fadf
[ "BSD-3-Clause" ]
5
2020-01-09T16:24:50.000Z
2021-09-24T11:10:49.000Z
import unittest import gtsam import gtsam_unstable import numpy as np def _timestamp_key_value(key, value): return gtsam_unstable.FixedLagSmootherKeyTimestampMapValue( key, value ) class TestFixedLagSmootherExample(unittest.TestCase): ''' Tests the fixed lag smoother wrapper ''' def...
36.333333
78
0.590736
2b09aeb7ef53ad5d88f46eee67ffea96915a9e33
9,225
py
Python
lazycon/semantics/analyzer.py
maxme1/lazycon
9a898bedeb0e7af506dad1f73a8f68062414b00d
[ "MIT" ]
8
2021-04-03T08:13:12.000Z
2022-01-17T12:36:46.000Z
lazycon/semantics/analyzer.py
maxme1/lazycon
9a898bedeb0e7af506dad1f73a8f68062414b00d
[ "MIT" ]
4
2021-04-02T11:59:30.000Z
2022-01-17T15:31:35.000Z
lazycon/semantics/analyzer.py
maxme1/lazycon
9a898bedeb0e7af506dad1f73a8f68062414b00d
[ "MIT" ]
null
null
null
import ast from collections import defaultdict from enum import Enum from typing import Iterable, List, Dict, Optional from .locals import LocalsGatherer from ..parser import IGNORE_NAME, extract_assign_targets from ..statements import GlobalStatement, GlobalFunction, GlobalAssign, GlobalImport, Definitions from ..exc...
31.810345
112
0.617019
8f7eaf7904747d2e5876d8d13a725417e1040ffb
330
py
Python
flask/get_connection.py
Artelys/Safer-Roads
ba9eb4b2c0f02c40142caa612ed7998c7ee01155
[ "MIT" ]
null
null
null
flask/get_connection.py
Artelys/Safer-Roads
ba9eb4b2c0f02c40142caa612ed7998c7ee01155
[ "MIT" ]
null
null
null
flask/get_connection.py
Artelys/Safer-Roads
ba9eb4b2c0f02c40142caa612ed7998c7ee01155
[ "MIT" ]
null
null
null
from elasticsearch import Elasticsearch def get_connection(): # Elastic Search parameters #AUTH = ('elastic', 'changeme') PORT = 9200 HOST = "elastic" # change this to use AUTH #return Elasticsearch([{'host': HOST, 'port': PORT}], http_auth=AUTH) return Elasticsearch([{'host': HOST, 'port':...
27.5
73
0.654545
be7b978048d3967ab2b2894dc1b2bcb6a5cf1bd6
3,238
py
Python
python3/297.serialize-and-deserialize-binary-tree.245224010.ac.py
Diego-Zulu/leetcode_answers
ad435df1bd95fb2c6e17d2d9ff349282c98ee0f4
[ "MIT" ]
null
null
null
python3/297.serialize-and-deserialize-binary-tree.245224010.ac.py
Diego-Zulu/leetcode_answers
ad435df1bd95fb2c6e17d2d9ff349282c98ee0f4
[ "MIT" ]
null
null
null
python3/297.serialize-and-deserialize-binary-tree.245224010.ac.py
Diego-Zulu/leetcode_answers
ad435df1bd95fb2c6e17d2d9ff349282c98ee0f4
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=297 lang=python3 # # [297] Serialize and Deserialize Binary Tree # # https://leetcode.com/problems/serialize-and-deserialize-binary-tree/description/ # # algorithms # Hard (46.18%) # Likes: 2721 # Dislikes: 136 # Total Accepted: 300.9K # Total Submissions: 651K # Testcase Example: '[1,2,3...
29.436364
82
0.616121
7764b3453c5361fc2f4041c376081f37d7660bc1
577
py
Python
atcoder/abc151C_welcome_to_atcoder.py
da-edra/kyopro
ad531d15bcccf6aafdaaef3cc69db850b0f7c471
[ "BSD-3-Clause" ]
2
2020-08-31T17:19:07.000Z
2021-01-08T21:35:48.000Z
atcoder/abc151C_welcome_to_atcoder.py
edglaz/kyopro
b8ac4f6873418ad20ad417e46d731c35a8062c0d
[ "BSD-3-Clause" ]
null
null
null
atcoder/abc151C_welcome_to_atcoder.py
edglaz/kyopro
b8ac4f6873418ad20ad417e46d731c35a8062c0d
[ "BSD-3-Clause" ]
null
null
null
# unihernandez22 # https://atcoder.jp/contests/abc151/tasks/abc151_c # implementation class Counter(dict): def __missing__(self, i): return 0 class BoolDict(dict): def __missing__(self, i): return False n, m = map(int, input().split()) passed = 0 penalties = Counter() ac = BoolDict() for i...
16.970588
51
0.559792
e5cc8267025203629fd31151aae4bbbe6db3045f
5,016
py
Python
nipype/interfaces/camino2trackvis/convert.py
FredLoney/nipype
ceaa28dcbfe29ca4373479c897da9fc958167ccd
[ "BSD-3-Clause" ]
1
2018-09-09T14:47:04.000Z
2018-09-09T14:47:04.000Z
nipype/interfaces/camino2trackvis/convert.py
MarcCote/nipype
b4014e1d87509f35242f0547f51d2b8962f83cbe
[ "BSD-3-Clause" ]
null
null
null
nipype/interfaces/camino2trackvis/convert.py
MarcCote/nipype
b4014e1d87509f35242f0547f51d2b8962f83cbe
[ "BSD-3-Clause" ]
null
null
null
""" Change directory to provide relative paths for doctests >>> import os >>> filepath = os.path.dirname( os.path.realpath( __file__ ) ) >>> datadir = os.path.realpath(os.path.join(filepath, '../../testing/data')) >>> os.chdir(datadir) """ from nipype.interfaces.base import CommandLineInputSpec, C...
37.714286
116
0.666069
f875dffef493cc08efb4fecc1f0b1e2f87c7eadb
19,894
py
Python
app-sg/utils_tf_train.py
AleksanderZawisza/Human-Emotion-Classification-Kit
13c71a65898ab3f539cae58f4b42960a596968cf
[ "MIT" ]
1
2022-01-18T18:38:53.000Z
2022-01-18T18:38:53.000Z
app-sg/utils_tf_train.py
AleksanderZawisza/Human-Emotion-Classification-Kit
13c71a65898ab3f539cae58f4b42960a596968cf
[ "MIT" ]
null
null
null
app-sg/utils_tf_train.py
AleksanderZawisza/Human-Emotion-Classification-Kit
13c71a65898ab3f539cae58f4b42960a596968cf
[ "MIT" ]
1
2022-01-18T18:40:38.000Z
2022-01-18T18:40:38.000Z
import tensorflow as tf import numpy as np import random import cv2 import os import PySimpleGUI as sg import dlib from keras import backend as K from sklearn.metrics import roc_auc_score, classification_report class tf_flags_StopSave(): def __init__(self, stopped=False, save=False): self.stopped = stoppe...
40.271255
119
0.628079
2987c5c6a6a15d841d7857f33acfddf4c18fb60e
754
py
Python
Chapter02/moviereviewsproject/moviereviews/urls.py
PacktPublishing/Django-4-for-the-Impatient
a7571124eb414fb0f8bcabe7ae23d64460a1a882
[ "MIT" ]
null
null
null
Chapter02/moviereviewsproject/moviereviews/urls.py
PacktPublishing/Django-4-for-the-Impatient
a7571124eb414fb0f8bcabe7ae23d64460a1a882
[ "MIT" ]
null
null
null
Chapter02/moviereviewsproject/moviereviews/urls.py
PacktPublishing/Django-4-for-the-Impatient
a7571124eb414fb0f8bcabe7ae23d64460a1a882
[ "MIT" ]
null
null
null
"""moviereviews URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/4.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-...
34.272727
77
0.710875
c0f869b52046328a3e938abc2d2cb9c2ae8535dc
2,860
py
Python
test/python/providers/test_fake_backends.py
dlyongemallo/qiskit-terra
2909eac4215e772440c35c5ee64197187894c719
[ "Apache-2.0" ]
2
2020-12-26T21:12:30.000Z
2021-05-18T12:53:42.000Z
test/python/providers/test_fake_backends.py
dlyongemallo/qiskit-terra
2909eac4215e772440c35c5ee64197187894c719
[ "Apache-2.0" ]
1
2020-03-29T19:57:14.000Z
2020-03-29T21:49:25.000Z
test/python/providers/test_fake_backends.py
dlyongemallo/qiskit-terra
2909eac4215e772440c35c5ee64197187894c719
[ "Apache-2.0" ]
1
2020-07-13T17:56:46.000Z
2020-07-13T17:56:46.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
34.457831
77
0.676923
2f631c2bb8b095e8f46a31c8409e587f71c8a96b
4,264
py
Python
web_project_architectural_designs/settings.py
Yordanova-arch/web_project_architectural_designs
7b379d760287ba920a20f2beb637e4e43747be4a
[ "MIT" ]
null
null
null
web_project_architectural_designs/settings.py
Yordanova-arch/web_project_architectural_designs
7b379d760287ba920a20f2beb637e4e43747be4a
[ "MIT" ]
null
null
null
web_project_architectural_designs/settings.py
Yordanova-arch/web_project_architectural_designs
7b379d760287ba920a20f2beb637e4e43747be4a
[ "MIT" ]
null
null
null
""" Django settings for web_project_architectural_designs project. Generated by 'django-admin startproject' using Django 3.1.4. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/s...
23.821229
91
0.651501
792be766e0c5e2a899b1ea6890f3a81a67f524c5
853
py
Python
src/main.py
nick-cheatwood7/spotify-recommend-python
5d00756d1d4ff973f74e73841ae5640742c7745e
[ "MIT" ]
null
null
null
src/main.py
nick-cheatwood7/spotify-recommend-python
5d00756d1d4ff973f74e73841ae5640742c7745e
[ "MIT" ]
null
null
null
src/main.py
nick-cheatwood7/spotify-recommend-python
5d00756d1d4ff973f74e73841ae5640742c7745e
[ "MIT" ]
null
null
null
# Import needed packages import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns # Import custom module import spotify as sp def main(): # Init seaborn sns.set() # Read in data data = pd.read_csv("./data/tracks.csv") # Get metrics on the data # data.info...
20.309524
77
0.682298
cfafd615d5bc5bc7612c7fad1ac4434d25657eaa
35,737
py
Python
reviewboard/datagrids/columns.py
amalik2/reviewboard
676aa2dce38ce619a74f2d4cb3cfae9bce21416e
[ "MIT" ]
921
2015-01-01T15:26:28.000Z
2022-03-29T11:30:38.000Z
reviewboard/datagrids/columns.py
amalik2/reviewboard
676aa2dce38ce619a74f2d4cb3cfae9bce21416e
[ "MIT" ]
5
2015-03-17T18:57:47.000Z
2020-10-02T13:24:31.000Z
reviewboard/datagrids/columns.py
amalik2/reviewboard
676aa2dce38ce619a74f2d4cb3cfae9bce21416e
[ "MIT" ]
285
2015-01-12T06:24:36.000Z
2022-03-29T11:03:50.000Z
from __future__ import unicode_literals from django.core.urlresolvers import NoReverseMatch from django.template.defaultfilters import date from django.utils import six from django.utils.html import (conditional_escape, escape, format_html, format_html_join) from django.utils.safestring ...
34.561896
85
0.584268
ab24d09b4b04fd7384ccf30dd51abe9f61cd739a
10,782
py
Python
ivy/functional/backends/jax/general.py
Darshan-H-E/ivy
f31bb5886722ab9c1ccbeacd01b9d26f2f7ea8e7
[ "Apache-2.0" ]
null
null
null
ivy/functional/backends/jax/general.py
Darshan-H-E/ivy
f31bb5886722ab9c1ccbeacd01b9d26f2f7ea8e7
[ "Apache-2.0" ]
null
null
null
ivy/functional/backends/jax/general.py
Darshan-H-E/ivy
f31bb5886722ab9c1ccbeacd01b9d26f2f7ea8e7
[ "Apache-2.0" ]
null
null
null
"""Collection of Jax general functions, wrapped to fit Ivy syntax and signature.""" # global from optparse import Option import jax as jax import numpy as np import jax.numpy as jnp import jaxlib as jaxlib from numbers import Number from operator import mul as _mul from functools import reduce as _reduce from jaxlib.x...
31.711765
107
0.650158
a4c709290d894f38242afab6d7a0c34dc31879ae
1,717
py
Python
catalog/redis_keys.py
cognitivefashion/cf-sdk-python
9eb90245314a54d1a472f835fb427e7f6509d92a
[ "Apache-2.0" ]
9
2019-03-05T02:50:48.000Z
2022-02-25T20:21:42.000Z
catalog/redis_keys.py
cognitivefashion/cf-sdk-python
9eb90245314a54d1a472f835fb427e7f6509d92a
[ "Apache-2.0" ]
1
2019-05-21T02:04:27.000Z
2020-02-10T20:33:10.000Z
catalog/redis_keys.py
cognitivefashion/cf-sdk-python
9eb90245314a54d1a472f835fb427e7f6509d92a
[ "Apache-2.0" ]
5
2017-06-16T00:00:13.000Z
2021-02-08T19:23:59.000Z
#------------------------------------------------------------------------------ # Get the redis key/value pairs. # GET /v1/redis/{db} #------------------------------------------------------------------------------ import os import json import requests from urlparse import urljoin from pprint import pprint from props ...
33.019231
79
0.301107
9c1eb3a0dcfcd55a091cb583d47dc6ab329b5f04
1,239
py
Python
clients/keto/python/setup.py
kolotaev/sdk
0dda1becd70be8d7b9d678321ebe780c1ba00485
[ "Apache-2.0" ]
null
null
null
clients/keto/python/setup.py
kolotaev/sdk
0dda1becd70be8d7b9d678321ebe780c1ba00485
[ "Apache-2.0" ]
null
null
null
clients/keto/python/setup.py
kolotaev/sdk
0dda1becd70be8d7b9d678321ebe780c1ba00485
[ "Apache-2.0" ]
null
null
null
""" ORY Keto Ory Keto is a cloud native access control server providing best-practice patterns (RBAC, ABAC, ACL, AWS IAM Policies, Kubernetes Roles, ...) via REST APIs. # noqa: E501 The version of the OpenAPI document: v0.6.0-alpha.6 Contact: hi@ory.sh Generated by: https://openapi-generator.tech...
27.533333
173
0.677966
bda99a4d078a24aa9dfdd1aa055ba53c05e7ea51
3,328
py
Python
kivymd/toast/kivytoast/kivytoast.py
gottadiveintopython/KivyMD
68bccd69219192dc50ff2f1f18cddfc2c13a8443
[ "MIT" ]
9
2019-06-19T01:15:19.000Z
2021-09-05T16:26:22.000Z
kivymd/toast/kivytoast/kivytoast.py
gottadiveintopython/KivyMD
68bccd69219192dc50ff2f1f18cddfc2c13a8443
[ "MIT" ]
null
null
null
kivymd/toast/kivytoast/kivytoast.py
gottadiveintopython/KivyMD
68bccd69219192dc50ff2f1f18cddfc2c13a8443
[ "MIT" ]
12
2019-07-14T10:54:59.000Z
2022-02-02T18:38:42.000Z
""" KivyToast ========= Copyright (c) 2019 Ivanov Yuri For suggestions and questions: <kivydevelopment@gmail.com> This file is distributed under the terms of the same license, as the Kivy framework. Example: from kivy.app import App from kivymd.theming import ThemeManager from kivymd.toast.kivytoast.kivytoast impo...
26
73
0.643029
1342c28ed684e1aad4a5e79b3971a4ee843121f5
2,044
py
Python
Crypto/__init__.py
matthid/ironpycrypto
fbcffa058cbe32bef681cc57046f9182fb2ea363
[ "MIT" ]
1
2018-09-18T15:01:49.000Z
2018-09-18T15:01:49.000Z
Crypto/__init__.py
matthid/ironpycrypto
fbcffa058cbe32bef681cc57046f9182fb2ea363
[ "MIT" ]
null
null
null
Crypto/__init__.py
matthid/ironpycrypto
fbcffa058cbe32bef681cc57046f9182fb2ea363
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # =================================================================== # The contents of this file are dedicated to the public domain. To # the extent that dedication to the public domain is not available, # everyone is granted a worldwide, perpetual, royalty-free, # non-exclusive license to e...
43.489362
78
0.642857
cbe23edc512c5f2941248826a2dd6a4fe41703d8
2,249
py
Python
Asset/MRRModels/MRRFourActions.py
vd1371/GIAMS
dd6551f344b8d0377131d4496846eb5d03b6189c
[ "MIT" ]
null
null
null
Asset/MRRModels/MRRFourActions.py
vd1371/GIAMS
dd6551f344b8d0377131d4496846eb5d03b6189c
[ "MIT" ]
null
null
null
Asset/MRRModels/MRRFourActions.py
vd1371/GIAMS
dd6551f344b8d0377131d4496846eb5d03b6189c
[ "MIT" ]
null
null
null
#Loading dependencies import numpy as np from collections import Counter from .BaseMRRPlan import * class MRRFourActions(BaseMRRPlan): def __init__(self, **params): super().__init__(**params) maint_duration = params.pop('maint_duration') rehab_duration = params.pop('rehab_duration') recon_duration = param...
28.468354
117
0.707426
e6d5b4989a0e8a624d8fe2f437c27765c78cd0df
11,942
py
Python
tools/run_tests/xds_k8s_test_driver/framework/infrastructure/gcp/iam.py
vixadd/grpc
7c9e8b425166276232653725de32ea0422a39b33
[ "Apache-2.0" ]
1
2021-07-01T03:15:14.000Z
2021-07-01T03:15:14.000Z
tools/run_tests/xds_k8s_test_driver/framework/infrastructure/gcp/iam.py
vixadd/grpc
7c9e8b425166276232653725de32ea0422a39b33
[ "Apache-2.0" ]
null
null
null
tools/run_tests/xds_k8s_test_driver/framework/infrastructure/gcp/iam.py
vixadd/grpc
7c9e8b425166276232653725de32ea0422a39b33
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
38.153355
97
0.639843
04b47a28e98e5289717eac983cde7e2f5830476a
111,643
py
Python
OpenGLWrapper_JE/venv/Lib/site-packages/pkg_resources/__init__.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/pkg_resources/__init__.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/pkg_resources/__init__.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
# coding: utf-8 """ Package resource API -------------------- A resource is a logical file contained within a package, or a logical subdirectory thereof. The package resource API expects resource names to have their path parts separated with ``/``, *not* whatever the local path separator is. Do not use os.pa...
33.861996
93
0.602384
560904ae10cde13399916dcb6b9dace105d04165
3,935
py
Python
MWCIoTDemo/device/modules/ImageClassifierService/app/predict.py
jamiewilbraham/IoTDemos
fb61ed134984daccece3512202d602be4173a387
[ "MIT" ]
129
2020-03-28T15:56:42.000Z
2022-03-30T19:54:19.000Z
MWCIoTDemo/device/modules/ImageClassifierService/app/predict.py
jamiewilbraham/IoTDemos
fb61ed134984daccece3512202d602be4173a387
[ "MIT" ]
23
2020-04-14T01:03:47.000Z
2022-02-27T12:37:04.000Z
MWCIoTDemo/device/modules/ImageClassifierService/app/predict.py
marcusgaspar/IoTDemos
d91650de84b2ae42e7d822e6c7f841f8942111c6
[ "MIT" ]
62
2020-04-23T23:17:48.000Z
2022-03-21T01:43:31.000Z
from urllib.request import urlopen from datetime import datetime from operator import itemgetter import tensorflow as tf from PIL import Image, ImageDraw from object_detection import ObjectDetection from azure.storage.blob import BlobServiceClient, BlobClient import numpy as np import sys import uuid import io import...
34.517544
111
0.621601
eb999ca9955fa9cab5136254a18f690879a9052b
1,565
py
Python
download_pdfs.py
Randl/arxiv-sanity-preserver
f14997edcb834622c89aba47f82e1df124aaa137
[ "MIT" ]
1
2021-06-03T20:34:00.000Z
2021-06-03T20:34:00.000Z
download_pdfs.py
Randl/arxiv-sanity-preserver
f14997edcb834622c89aba47f82e1df124aaa137
[ "MIT" ]
null
null
null
download_pdfs.py
Randl/arxiv-sanity-preserver
f14997edcb834622c89aba47f82e1df124aaa137
[ "MIT" ]
null
null
null
import os import pickle import random import shutil import time from urllib.request import urlopen from utils import Config timeout_secs = 10 # after this many seconds we give up on a paper if not os.path.exists(Config.pdf_dir): os.makedirs(Config.pdf_dir) print('Reading pdf list') files = list() for (dirpath, ...
30.096154
103
0.615974
2f73119355d263ff7538c9f3857ae2e6a3aee29c
199
py
Python
django_wireguard/templatetags/django_wireguard_filters.py
thatsed/django-wireguard
d7f076ad0a0170bcf3b63f1b18a664cbfe3d95d7
[ "MIT" ]
1
2021-11-27T09:59:42.000Z
2021-11-27T09:59:42.000Z
django_wireguard/templatetags/django_wireguard_filters.py
thatsed/django-wireguard
d7f076ad0a0170bcf3b63f1b18a664cbfe3d95d7
[ "MIT" ]
null
null
null
django_wireguard/templatetags/django_wireguard_filters.py
thatsed/django-wireguard
d7f076ad0a0170bcf3b63f1b18a664cbfe3d95d7
[ "MIT" ]
null
null
null
import base64 from django import template register = template.Library() @register.filter def base64encode(string: str) -> str: return base64.b64encode(string.encode('utf-8')).decode('ascii')
18.090909
67
0.743719
c784f3a10ea54191f28a85b2f8811a508071eb44
977
py
Python
eval.py
714627034/PaddlePaddle-MobileFaceNets
d810f0d786e423bd10ec7ff6a015ea534fe08d76
[ "Apache-2.0" ]
23
2021-05-08T09:00:13.000Z
2022-03-30T06:21:17.000Z
eval.py
714627034/PaddlePaddle-MobileFaceNets
d810f0d786e423bd10ec7ff6a015ea534fe08d76
[ "Apache-2.0" ]
null
null
null
eval.py
714627034/PaddlePaddle-MobileFaceNets
d810f0d786e423bd10ec7ff6a015ea534fe08d76
[ "Apache-2.0" ]
3
2021-05-28T05:53:42.000Z
2021-12-10T08:44:42.000Z
import argparse import functools import paddle from utils.utils import add_arguments, print_arguments, get_lfw_list from utils.utils import get_features, get_feature_dict, test_performance parser = argparse.ArgumentParser(description=__doc__) add_arg = functools.partial(add_arguments, argparser=parser) add_arg('batc...
36.185185
90
0.721597
1748f80ea50b348545a4015bf3ef54a43b930553
2,049
py
Python
samples/simple_spellcheck.py
ElementAI/eai-spellchecker
9c68be2c50d9312f4f43ab263a60a5221f1f00f4
[ "MIT" ]
1
2020-05-22T22:46:50.000Z
2020-05-22T22:46:50.000Z
samples/simple_spellcheck.py
arita37/eai-spellchecker
9c68be2c50d9312f4f43ab263a60a5221f1f00f4
[ "MIT" ]
1
2018-09-28T17:08:11.000Z
2018-09-28T17:08:11.000Z
samples/simple_spellcheck.py
arita37/eai-spellchecker
9c68be2c50d9312f4f43ab263a60a5221f1f00f4
[ "MIT" ]
1
2020-05-22T22:46:53.000Z
2020-05-22T22:46:53.000Z
# simple_spellcheck.py # Guy Dumais, 2018-08-30 # Copyright (c) 2018 Element AI. All rights reserved. import pkg_resources from spellchecker.symspell import SymSpell, Verbosity # import the module def main(): # create object initial_capacity = 83000 # maximum edit distance per dictionary precalculation...
40.176471
107
0.695949
f8923b282b2fd0f95590c6de4cddc465f1ddb82a
75,237
py
Python
venv/lib/python3.8/site-packages/bqplot/marks.py
johncollinsai/post-high-frequency-data
88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4
[ "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/bqplot/marks.py
johncollinsai/post-high-frequency-data
88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4
[ "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/bqplot/marks.py
johncollinsai/post-high-frequency-data
88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4
[ "MIT" ]
null
null
null
# Copyright 2015 Bloomberg Finance L.P. # # 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 i...
41.293633
117
0.618605
3066392e4ca2d54076669b0b883660ad1c79b53f
3,118
py
Python
app.py
herreriasjose/Twitter_user_timeline_entities_recognition
cf1be6b0df50defe7d4c4358f5f95cf4bf1f7584
[ "MIT" ]
1
2019-02-15T15:29:31.000Z
2019-02-15T15:29:31.000Z
app.py
herreriasjose/Twitter_user_timeline_entities_recognition
cf1be6b0df50defe7d4c4358f5f95cf4bf1f7584
[ "MIT" ]
null
null
null
app.py
herreriasjose/Twitter_user_timeline_entities_recognition
cf1be6b0df50defe7d4c4358f5f95cf4bf1f7584
[ "MIT" ]
null
null
null
# app.py __author__ = "Jose Herrerias" __version__ = "0.1.0" __email__ = "herreriasjose@gmail.com" __status__ = "Test" import datetime import json import logging import pickle import re import sqlite3 import spacy import time from geopy.geocoders import Nominatim logging.basicConfig(level=logging.INFO) logger = log...
27.113043
118
0.616742
ee7d64c6d4404290c830b711b451418d214e77e6
35,298
py
Python
Packs/CortexXDR/Scripts/XDRSyncScript/XDRSyncScript_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CortexXDR/Scripts/XDRSyncScript/XDRSyncScript_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CortexXDR/Scripts/XDRSyncScript/XDRSyncScript_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from CommonServerPython import * import copy import json import XDRSyncScript as xdr_script from XDRSyncScript import ASSIGNED_USER_MAIL_XDR_FIELD, MODIFICATION_TIME_XDR_FIELD, MANUAL_SEVERITY_XDR_FIELD, \ SEVERITY_XDR_FIELD INCIDENT_IN_DEMISTO = { "sourceInstance": "Palo Alto Networks Cortext XDR IR_instance...
33.362949
120
0.6359
e2fe4903ce988a00434a1f1123e6a351b714827c
2,294
py
Python
hand2.py
JiemeZen/gestureController
ee066f87c0113341f6bc65bcc558bb8a22698ac8
[ "MIT" ]
1
2022-02-28T05:05:37.000Z
2022-02-28T05:05:37.000Z
hand2.py
JiemeZen/gestureController
ee066f87c0113341f6bc65bcc558bb8a22698ac8
[ "MIT" ]
null
null
null
hand2.py
JiemeZen/gestureController
ee066f87c0113341f6bc65bcc558bb8a22698ac8
[ "MIT" ]
null
null
null
import mediapipe as mp import cv2 import numpy as np import uuid import os import time # Grabbing the Holistic Model from Mediapipe and # Initializing the Model mp_holistic = mp.solutions.holistic holistic_model = mp_holistic.Holistic( min_detection_confidence=0.5, min_tracking_confidence=0.5 ) # Initializin...
23.895833
94
0.757193
390edd4379662f301b3f30237b797caca412286a
2,581
py
Python
cnc/hal.py
UncleRus/PyCNC
dfb710f4a516bd39d30b902f78409310a1baf676
[ "MIT" ]
null
null
null
cnc/hal.py
UncleRus/PyCNC
dfb710f4a516bd39d30b902f78409310a1baf676
[ "MIT" ]
null
null
null
cnc/hal.py
UncleRus/PyCNC
dfb710f4a516bd39d30b902f78409310a1baf676
[ "MIT" ]
1
2021-09-26T16:16:16.000Z
2021-09-26T16:16:16.000Z
# This implementation allows to use different hardware. # Imported module contains functions for hardware access fo some board/SoC. # List of HAL methods that should be implemented in each module: # def init(): # """ Initialize GPIO pins and machine itself, including calibration if # needed. Do not...
34.878378
78
0.650136
252937609897076f21efb57f7b801c0c2450870e
31,261
py
Python
tests/test_sessionmanager.py
fantomfp/python-omemo
43244e37bae31b3d1591474c73e948652c1c0e91
[ "MIT" ]
null
null
null
tests/test_sessionmanager.py
fantomfp/python-omemo
43244e37bae31b3d1591474c73e948652c1c0e91
[ "MIT" ]
null
null
null
tests/test_sessionmanager.py
fantomfp/python-omemo
43244e37bae31b3d1591474c73e948652c1c0e91
[ "MIT" ]
null
null
null
import pytest import cProfile import logging import os import time logging.basicConfig(level = logging.DEBUG) import omemo from omemo import SessionManager from omemo.exceptions import * from omemo_backend_signal import BACKEND as SignalBackend from asyncinmemorystorage import AsyncInMemoryStorage from syncinmemor...
30.409533
90
0.627331
8f79173c22e818aaf95dff3a4f8955ebc3f7b348
4,111
py
Python
test/functional/feature_notifications.py
QuarterCoin/QuaterCoin-Wallet
bf6bf8ec8a2907e1fa29305df389e0ae7156e544
[ "MIT" ]
null
null
null
test/functional/feature_notifications.py
QuarterCoin/QuaterCoin-Wallet
bf6bf8ec8a2907e1fa29305df389e0ae7156e544
[ "MIT" ]
null
null
null
test/functional/feature_notifications.py
QuarterCoin/QuaterCoin-Wallet
bf6bf8ec8a2907e1fa29305df389e0ae7156e544
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2018 The Bitcoin Core developers # Copyright (c) 2017 The Raven Core developers # Copyright (c) 2018 The Quartercoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the...
46.191011
138
0.662126
beaf1d7f5050214fc20a220341da3989c69f3191
55
py
Python
conftest.py
ssebastianj/pywebtasks
7596558ab806de2b4a48a01c6d324f21f22bdd0f
[ "MIT" ]
7
2015-05-25T22:15:04.000Z
2020-03-14T14:11:11.000Z
conftest.py
ssebastianj/pywebtasks
7596558ab806de2b4a48a01c6d324f21f22bdd0f
[ "MIT" ]
null
null
null
conftest.py
ssebastianj/pywebtasks
7596558ab806de2b4a48a01c6d324f21f22bdd0f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- collect_ignore = ["setup.py"]
13.75
29
0.563636
7fdad6eb7d7ee02360fc26e3fc206911aba22fda
7,437
py
Python
python/paddle/tensor/stat.py
slf12/Paddle
fa43d74a3a16ac696db5dc893c9a7b1c6913dc85
[ "Apache-2.0" ]
1
2020-05-02T00:00:20.000Z
2020-05-02T00:00:20.000Z
python/paddle/tensor/stat.py
slf12/Paddle
fa43d74a3a16ac696db5dc893c9a7b1c6913dc85
[ "Apache-2.0" ]
null
null
null
python/paddle/tensor/stat.py
slf12/Paddle
fa43d74a3a16ac696db5dc893c9a7b1c6913dc85
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
46.773585
96
0.631303
15a5661fbe5fe7f39236ae5a800e37694d635e03
658
py
Python
aws-pentesting-with-python/user.py
qodirovshohijahon/dates-in-uzbek
8ac4adb1624a9735ea85819714249ca41a041bce
[ "CNRI-Python" ]
null
null
null
aws-pentesting-with-python/user.py
qodirovshohijahon/dates-in-uzbek
8ac4adb1624a9735ea85819714249ca41a041bce
[ "CNRI-Python" ]
null
null
null
aws-pentesting-with-python/user.py
qodirovshohijahon/dates-in-uzbek
8ac4adb1624a9735ea85819714249ca41a041bce
[ "CNRI-Python" ]
null
null
null
#!/usr/bin/env python3 # get acoount authorization detailsusing boto3 and aws-shell (aws-cli) import boto3 import json import sys import os import pprint from color import color # declare env var for aws-shell AWS_ACCESS_KEY_ID = os.environ["AWS_ACCESS_KEY_ID"] AWS_SECRET_ACCESS_KEY = os.environ["AWS_SECRET_ACCESS_K...
26.32
116
0.709726
c482f715629b3ce5dcb8b6a0232fff4b0db095a3
642
py
Python
yahoo_news_jp.py
ingyunson/personal_assistant
798f2e81aef58853828a9f77d01f6f2888237c2a
[ "MIT" ]
null
null
null
yahoo_news_jp.py
ingyunson/personal_assistant
798f2e81aef58853828a9f77d01f6f2888237c2a
[ "MIT" ]
null
null
null
yahoo_news_jp.py
ingyunson/personal_assistant
798f2e81aef58853828a9f77d01f6f2888237c2a
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup as bs url = 'https://news.yahoo.co.jp/' news = requests.get(url) html = news.text soup = bs(html, 'lxml') headline_title = [] headline_url = [] news_head = soup.select('#epTabTop > ul.topics > li.topTpi > div > h1 > a') headline_title.append(news_head[0].text.replace("写真...
30.571429
98
0.690031
60192d228495af3bd28104561f9439323e4faac8
1,010
py
Python
LineMe/utils.py
HevLfreis/LineMe
11456ca14d1ae61af65372df6b0cb5e1a1c03748
[ "PostgreSQL", "MIT" ]
6
2016-05-16T07:59:31.000Z
2018-08-19T17:51:18.000Z
LineMe/utils.py
HevLfreis/LineMe
11456ca14d1ae61af65372df6b0cb5e1a1c03748
[ "PostgreSQL", "MIT" ]
null
null
null
LineMe/utils.py
HevLfreis/LineMe
11456ca14d1ae61af65372df6b0cb5e1a1c03748
[ "PostgreSQL", "MIT" ]
5
2016-05-16T08:00:20.000Z
2021-08-13T01:41:18.000Z
#!/usr/bin/env python # coding: utf-8 # created by hevlhayt@foxmail.com # Date: 2016/10/26 # Time: 19:09 import hashlib import re from LineMe.settings import DEPLOYED_LANGUAGE def get_template_dir(appname): lang = DEPLOYED_LANGUAGE if lang == 'zh-cn': return appname + '/zh_cn/' else: re...
21.489362
113
0.556436
90922494ea9d058a94d66e2a883e605a86077cc0
69
py
Python
release/stubs.min/Tekla/Structures/ModelInternal_parts/dotMaterial_t.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/Tekla/Structures/ModelInternal_parts/dotMaterial_t.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/Tekla/Structures/ModelInternal_parts/dotMaterial_t.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
class dotMaterial_t(object): # no doc aMaterialString = None
17.25
28
0.695652
759d36adb4e2c375e08fd2cd584596b2d2346e2e
1,269
py
Python
poco/scripts/insert_raw_logs.py
sunliwen/poco
a4b8c4ede63711eea42a444fb9d922c350855364
[ "MIT" ]
null
null
null
poco/scripts/insert_raw_logs.py
sunliwen/poco
a4b8c4ede63711eea42a444fb9d922c350855364
[ "MIT" ]
7
2019-03-22T06:26:39.000Z
2021-06-10T19:36:06.000Z
poco/scripts/insert_raw_logs.py
sunliwen/poco
a4b8c4ede63711eea42a444fb9d922c350855364
[ "MIT" ]
1
2017-10-25T03:43:51.000Z
2017-10-25T03:43:51.000Z
import json import datetime import time from pymongo.errors import ConnectionFailure from recommender.tasks import _write_log def run(site_id, file_path): answer = raw_input("Do you really want to insert raw_logs from %s to site: %s (enter 'yes' to continue)" % (file_path, site_id)) if answer == "yes": ...
32.538462
132
0.527975
e084249bc0d8fee296864d21f07e751288ecd0f5
1,006
py
Python
mailchimp/urls.py
Wirzi/django-mailchimp
fe34b83fa05aede06c294ac5861cb3b983b49bde
[ "BSD-3-Clause" ]
null
null
null
mailchimp/urls.py
Wirzi/django-mailchimp
fe34b83fa05aede06c294ac5861cb3b983b49bde
[ "BSD-3-Clause" ]
null
null
null
mailchimp/urls.py
Wirzi/django-mailchimp
fe34b83fa05aede06c294ac5861cb3b983b49bde
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import * from mailchimp.settings import VIEWS_INFO, VIEWS_OVERVIEW, VIEWS_SCHEDULE_OBJECT, VIEWS_TEST_OBJECT from mailchimp.views import webhook, dequeue, cancel, test_real urlpatterns = patterns('', url(r'^$', VIEWS_OVERVIEW, name='mailchimp_overview', kwargs={'page':'1'}), url(r'^(?P<pa...
62.875
115
0.687873
927de2582cd1816352e25de8f25451dfb9f819fe
23
py
Python
nbdev/__init__.py
tcapelle/nbdev
79ad686f4831fa25447e366b7bac66957675c53f
[ "Apache-2.0" ]
null
null
null
nbdev/__init__.py
tcapelle/nbdev
79ad686f4831fa25447e366b7bac66957675c53f
[ "Apache-2.0" ]
null
null
null
nbdev/__init__.py
tcapelle/nbdev
79ad686f4831fa25447e366b7bac66957675c53f
[ "Apache-2.0" ]
null
null
null
__version__ = "0.2.18"
11.5
22
0.652174
64e9054b224e15574b4bbac19ed8fcb2f3fed55c
358
py
Python
tests/pep542_testfile.py
aroberge/nonstandard
b415e4b5360a44ee2e1927a2b5b45c4d74ca9803
[ "MIT" ]
2
2017-04-30T23:27:06.000Z
2017-05-01T18:30:54.000Z
tests/pep542_testfile.py
aroberge/nonstandard
b415e4b5360a44ee2e1927a2b5b45c4d74ca9803
[ "MIT" ]
null
null
null
tests/pep542_testfile.py
aroberge/nonstandard
b415e4b5360a44ee2e1927a2b5b45c4d74ca9803
[ "MIT" ]
null
null
null
from __nonstandard__ import pep542 def test_pep542(): class MyClass: pass def MyClass.square(self, x): return x**2 my_instance = MyClass() def my_instance.out(): return 42 assert my_instance.out() == 42 assert my_instance.square(3) == 9 if __name__ == "__main__": ...
17.047619
37
0.617318