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
d2fdaf29e5eee6e1f2186c5c0f6661d86d86d34e
1,783
py
Python
config.py
if1y/qiandao
82278d118532dc44a538330db24d8bd7b6ab6e40
[ "MIT" ]
null
null
null
config.py
if1y/qiandao
82278d118532dc44a538330db24d8bd7b6ab6e40
[ "MIT" ]
null
null
null
config.py
if1y/qiandao
82278d118532dc44a538330db24d8bd7b6ab6e40
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- # vim: set et sw=4 ts=4 sts=4 ff=unix fenc=utf8: # Author: Binux<i@binux.me> # http://binux.me # Created on 2014-07-30 12:21:48 import os import hashlib import urlparse debug = False gzip = True bind = str(os.getenv('BIND', '0.0.0.0')) port = int(os.getenv('PORT...
26.220588
76
0.696018
197a82d37dc0dc83ee71baaf0cb03746bd8f859b
20,338
py
Python
explaining_risk_increase/observation_sequence_model_test.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-19T04:26:12.000Z
2022-03-19T04:26:12.000Z
explaining_risk_increase/observation_sequence_model_test.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
explaining_risk_increase/observation_sequence_model_test.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
41.25355
80
0.620956
a672f8e9ab96cf54ac6c86a52541a63bb8880dbb
1,794
py
Python
chainer/functions/math/clip.py
fukuta0614/Chainer
337fe78e1c27924c1195b8b677a9b2cd3ea68828
[ "MIT" ]
null
null
null
chainer/functions/math/clip.py
fukuta0614/Chainer
337fe78e1c27924c1195b8b677a9b2cd3ea68828
[ "MIT" ]
null
null
null
chainer/functions/math/clip.py
fukuta0614/Chainer
337fe78e1c27924c1195b8b677a9b2cd3ea68828
[ "MIT" ]
null
null
null
import numpy from chainer import cuda from chainer import function from chainer import utils from chainer.utils import type_check class Clip(function.Function): """Clips (limits) elements of input variable.""" def __init__(self, x_min, x_max): if not isinstance(x_min, float): raise TypeE...
28.935484
74
0.605351
0b20228b416a99651667b6b1a4bc77505e0e2750
230
py
Python
mara_schema/config.py
TimWitzel/mara-schema
1d614878a0d03c65772ef93ea11c57e762895fb8
[ "MIT" ]
52
2020-06-29T21:17:26.000Z
2022-03-31T22:55:04.000Z
mara_schema/config.py
TimWitzel/mara-schema
1d614878a0d03c65772ef93ea11c57e762895fb8
[ "MIT" ]
10
2020-07-06T21:07:56.000Z
2022-03-04T14:08:54.000Z
mara_schema/config.py
TimWitzel/mara-schema
1d614878a0d03c65772ef93ea11c57e762895fb8
[ "MIT" ]
3
2020-11-05T13:53:15.000Z
2022-01-17T10:39:42.000Z
import functools from .data_set import DataSet @functools.lru_cache(maxsize=None) def data_sets() -> [DataSet]: """Returns all available data_sets.""" from .example import example_data_sets return example_data_sets()
25.555556
42
0.752174
5b742ce13fd488fd446e0ac1cce26c5f763766ac
549
py
Python
2021-07/__init__.py
zhouyuanmin/MyDemo
664977a6243992c77931e58b98f5262745759d1a
[ "MIT" ]
null
null
null
2021-07/__init__.py
zhouyuanmin/MyDemo
664977a6243992c77931e58b98f5262745759d1a
[ "MIT" ]
null
null
null
2021-07/__init__.py
zhouyuanmin/MyDemo
664977a6243992c77931e58b98f5262745759d1a
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup base_url = 'https://www.runoob.com/cprogramming/c-exercise-example{}.html' headers = { 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36' } for i in range(50, 101): url = base_url...
30.5
140
0.688525
3652f9012cd92e0545881bb8849ee2be25fcbbe7
333
py
Python
connection/Conexao.py
labdeviemac/flora_iemac
4c13f0d1e94500e31b5368ee33ce69a823351ae5
[ "MIT" ]
null
null
null
connection/Conexao.py
labdeviemac/flora_iemac
4c13f0d1e94500e31b5368ee33ce69a823351ae5
[ "MIT" ]
null
null
null
connection/Conexao.py
labdeviemac/flora_iemac
4c13f0d1e94500e31b5368ee33ce69a823351ae5
[ "MIT" ]
null
null
null
import mysql.connector import os class Conexao: def __init__(self): self.conexao = mysql.connector.connect( host=os.environ["HOST"], port=os.environ["PORT"], user=os.environ["USER"], password=os.environ["PASSWORD"], database=os.environ["DATABASE...
22.2
47
0.564565
c642457b63ece37b04f61c72975935a539fcbb0e
6,252
py
Python
tests/components/climacell/test_sensor.py
basicpail/core
5cc54618c5af3f75c08314bf2375cc7ac40d2b7e
[ "Apache-2.0" ]
11
2018-02-16T15:35:47.000Z
2020-01-14T15:20:00.000Z
tests/components/climacell/test_sensor.py
basicpail/core
5cc54618c5af3f75c08314bf2375cc7ac40d2b7e
[ "Apache-2.0" ]
77
2020-07-16T16:43:09.000Z
2022-03-31T06:14:37.000Z
tests/components/climacell/test_sensor.py
Vaarlion/core
f3de8b9f28de01abf72c0f5bb0b457eb1841f201
[ "Apache-2.0" ]
11
2020-12-16T13:48:14.000Z
2022-02-01T00:28:05.000Z
"""Tests for Climacell sensor entities.""" from __future__ import annotations from datetime import datetime import logging from typing import Any from unittest.mock import patch import pytest from homeassistant.components.climacell.config_flow import ( _get_config_schema, _get_unique_id, ) from homeassistant...
33.079365
79
0.737204
08cb0eced25a4e8f4a0e56b611c05639f691e1e6
185
py
Python
apps/users/utils.py
rui1106/LemonShop
282e07358492a0e5912e508858ccb9c9cde63503
[ "CC0-1.0" ]
null
null
null
apps/users/utils.py
rui1106/LemonShop
282e07358492a0e5912e508858ccb9c9cde63503
[ "CC0-1.0" ]
null
null
null
apps/users/utils.py
rui1106/LemonShop
282e07358492a0e5912e508858ccb9c9cde63503
[ "CC0-1.0" ]
null
null
null
def jwt_response_payload_handler(token, user=None, request=None): return { 'code': 0, 'token': token, 'id': user.id, 'username': user.username }
23.125
65
0.562162
9af6d3d1bd36fb05da83d12dec889be84b8b6cab
1,069
py
Python
api.py
bocadilloproject/tarantula
30b164aba96201c794fb15100400591701f57f1d
[ "MIT" ]
null
null
null
api.py
bocadilloproject/tarantula
30b164aba96201c794fb15100400591701f57f1d
[ "MIT" ]
null
null
null
api.py
bocadilloproject/tarantula
30b164aba96201c794fb15100400591701f57f1d
[ "MIT" ]
null
null
null
from itertools import count from typing import Dict import bocadillo from bocadillo.exceptions import HTTPError from jobs import Job api = bocadillo.API() @api.error_handler(HTTPError) def to_json(req, res, exc: HTTPError): res.status_code = exc.status_code res.media = {"error": str(exc), "state": exc.stat...
20.960784
62
0.667914
9933c152d3b03bd2be70b03f1f90eb07b72e9f20
128,539
py
Python
mrcnn/model.py
M-Usman10/maskrcnn
7d37b90d125d4d22d4ea66dcd5081cb30dc478b5
[ "MIT" ]
null
null
null
mrcnn/model.py
M-Usman10/maskrcnn
7d37b90d125d4d22d4ea66dcd5081cb30dc478b5
[ "MIT" ]
null
null
null
mrcnn/model.py
M-Usman10/maskrcnn
7d37b90d125d4d22d4ea66dcd5081cb30dc478b5
[ "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.339082
115
0.612343
f792ebed7e0bde1fb4802c7a3f12b9204fc2034f
741
py
Python
tests/snmp.py
premandfriends/boardfarm-1
3c952c94507fff25ba9955cad993610ea4a95e2e
[ "BSD-3-Clause-Clear" ]
null
null
null
tests/snmp.py
premandfriends/boardfarm-1
3c952c94507fff25ba9955cad993610ea4a95e2e
[ "BSD-3-Clause-Clear" ]
1
2019-02-03T17:06:21.000Z
2019-02-03T17:06:21.000Z
tests/snmp.py
mgualco-contractor/boardfarm
6a033e5dc84c7368fdd8ec2738b08b35ca7b07e7
[ "BSD-3-Clause-Clear" ]
1
2020-03-05T01:58:34.000Z
2020-03-05T01:58:34.000Z
# Copyright (c) 2015 # # All rights reserved. # # This file is distributed under the Clear BSD license. # The full text can be found in LICENSE in the root directory. import rootfs_boot from devices import board, wan, lan, wlan, prompt class SNMPSysDescrWAN(rootfs_boot.RootFSBootTest): '''Runs SNMP sysDescr on WA...
29.64
96
0.669366
c91dc610c6b2cea2175fd67533405bab9cbafede
1,714
py
Python
aliyun-python-sdk-emr/aliyunsdkemr/request/v20160408/GetQueueInputStatisticInfoRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
1
2019-12-23T12:36:43.000Z
2019-12-23T12:36:43.000Z
aliyun-python-sdk-emr/aliyunsdkemr/request/v20160408/GetQueueInputStatisticInfoRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-emr/aliyunsdkemr/request/v20160408/GetQueueInputStatisticInfoRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
1
2021-02-23T11:27:54.000Z
2021-02-23T11:27:54.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35.708333
79
0.773046
90f7fbba25c0ad00a31bb09db8068e130ac8d19f
5,971
py
Python
python/TrainDnn.py
entn-at/GlottDNN
b7db669d7f34da92ab34742d75a8ba3c70763a65
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
python/TrainDnn.py
entn-at/GlottDNN
b7db669d7f34da92ab34742d75a8ba3c70763a65
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
python/TrainDnn.py
entn-at/GlottDNN
b7db669d7f34da92ab34742d75a8ba3c70763a65
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import os import sys import timeit from importlib.machinery import SourceFileLoader import numpy as np import torch from dnnClasses import HiddenLayer # Config file if len(sys.argv) < 2: sys.exit("Usage: python GlottDnnScript.py config.py") if os.path.isfile(sys.argv[1]): conf = SourceFileLoader('', sys.ar...
31.930481
173
0.61648
85b6d709b0dc60ef75e56d7a62094819508b5dbc
1,390
py
Python
Examples/WorkingWithOutlookMSGs/CreatingAndSavingOutlookTask.py
Muzammil-khan/Aspose.Email-Python-Dotnet
04ca3a6f440339f3ddf316218f92d15d66f24e7e
[ "MIT" ]
5
2019-01-28T05:17:12.000Z
2020-04-14T14:31:34.000Z
Examples/WorkingWithOutlookMSGs/CreatingAndSavingOutlookTask.py
Muzammil-khan/Aspose.Email-Python-Dotnet
04ca3a6f440339f3ddf316218f92d15d66f24e7e
[ "MIT" ]
1
2019-01-28T16:07:26.000Z
2021-11-25T10:59:52.000Z
Examples/WorkingWithOutlookMSGs/CreatingAndSavingOutlookTask.py
Muzammil-khan/Aspose.Email-Python-Dotnet
04ca3a6f440339f3ddf316218f92d15d66f24e7e
[ "MIT" ]
6
2018-07-16T14:57:34.000Z
2020-08-30T05:59:52.000Z
from aspose.email import MailMessage from aspose.email.storage.pst import * from aspose.email.mime import HeaderCollection import aspose.email.mapi.msg as msg from aspose.email.mapi import MapiTask, MapiProperty, TaskSaveFormat, MapiTaskHistory from aspose.email.mapi import MapiTaskOwnership, MapiTaskStatus import dat...
39.714286
136
0.764748
56ae20e168a9834f9c54de03c8cad19ffcb64872
5,344
py
Python
docs/conf.py
annliirosales/msanalysis
b50008a6caebdd78bdbcb868ce042e4251151476
[ "MIT" ]
3
2020-10-21T09:06:46.000Z
2021-04-05T20:52:15.000Z
docs/conf.py
annliirosales/msanalysis
b50008a6caebdd78bdbcb868ce042e4251151476
[ "MIT" ]
8
2020-01-24T00:58:51.000Z
2021-09-17T18:20:58.000Z
docs/conf.py
jamesETsmith/MSAnalysis
58ede839148f13c4d23bec988dc0481ca1f30c96
[ "MIT" ]
2
2020-04-12T15:52:22.000Z
2021-02-03T23:57:01.000Z
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/stable/config # -- Path setup ------------------------------------------------------------...
30.537143
83
0.657186
895948f771dc172524bc743efe7594ec88a54d4d
36,488
py
Python
cmdstanpy/utils.py
tcbegley/cmdstanpy
17b4e55f55958649d9bf396013583874cb9c32b6
[ "BSD-3-Clause" ]
null
null
null
cmdstanpy/utils.py
tcbegley/cmdstanpy
17b4e55f55958649d9bf396013583874cb9c32b6
[ "BSD-3-Clause" ]
null
null
null
cmdstanpy/utils.py
tcbegley/cmdstanpy
17b4e55f55958649d9bf396013583874cb9c32b6
[ "BSD-3-Clause" ]
null
null
null
""" Utility functions """ import os from collections import OrderedDict from collections.abc import Sequence from numbers import Integral, Real try: import ujson as json except ImportError: import json import math import platform import re import subprocess import shutil import tempfile import logging import s...
33.536765
80
0.546234
6be8000154a163fe9eabfd1f7e1110ddcc723418
1,659
py
Python
tests/compare_global_simple.py
asteroidhouse/equibel
476d58e4c8d4b5aabe4b94b650e6d326acb41ec8
[ "MIT" ]
4
2015-05-19T04:31:52.000Z
2019-08-13T23:57:29.000Z
tests/compare_global_simple.py
asteroidhouse/equibel
476d58e4c8d4b5aabe4b94b650e6d326acb41ec8
[ "MIT" ]
null
null
null
tests/compare_global_simple.py
asteroidhouse/equibel
476d58e4c8d4b5aabe4b94b650e6d326acb41ec8
[ "MIT" ]
null
null
null
from sympy.logic.inference import entails import equibel as eb def strictly_stronger(S,T): """Returns True if every formula in S entails the corresponding formula in T.""" for node in S: s_formula = S.formula_conj(node) t_formula = T.formula_conj(node) if not entails(t_formula, [s_formu...
36.065217
84
0.701025
a573fa8c82683d9244330dfff151b29d51a88641
9,883
py
Python
tests/eth2/core/beacon/chains/test_lmd_ghost_chain.py
ralexstokes/trinity
57bee06c9ad350ddfba1ae4b2081025aa454880d
[ "MIT" ]
null
null
null
tests/eth2/core/beacon/chains/test_lmd_ghost_chain.py
ralexstokes/trinity
57bee06c9ad350ddfba1ae4b2081025aa454880d
[ "MIT" ]
null
null
null
tests/eth2/core/beacon/chains/test_lmd_ghost_chain.py
ralexstokes/trinity
57bee06c9ad350ddfba1ae4b2081025aa454880d
[ "MIT" ]
null
null
null
import random from eth_utils import to_tuple import pytest from eth2.beacon.chains.exceptions import SlashableBlockError from eth2.beacon.chains.testnet.medalla import BeaconChain from eth2.beacon.committee_helpers import get_beacon_proposer_index from eth2.beacon.constants import ZERO_HASH32 from eth2.beacon.fork_ch...
33.276094
93
0.707376
4cafb0fe58fb2ca21e21392191b33592944359d4
5,409
py
Python
tests/integration/cloudformation/test_connection.py
Yurzs/boto
d739d6c52877699206e69b9901bbe92ea437ba5d
[ "MIT" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
tests/integration/cloudformation/test_connection.py
Yurzs/boto
d739d6c52877699206e69b9901bbe92ea437ba5d
[ "MIT" ]
4,640
2015-07-08T16:19:08.000Z
2019-12-02T15:01:27.000Z
tests/integration/cloudformation/test_connection.py
Yurzs/boto
d739d6c52877699206e69b9901bbe92ea437ba5d
[ "MIT" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
#!/usr/bin/env python import time import json from tests.unit import unittest from boto.cloudformation.connection import CloudFormationConnection BASIC_EC2_TEMPLATE = { "AWSTemplateFormatVersion": "2010-09-09", "Description": "AWS CloudFormation Sample Template EC2InstanceSample", "Parameters": { ...
31.817647
82
0.460529
9b1174271fe21e8b6d8dcd7b74c26795e079e2c6
2,228
py
Python
fHDHR_web/pages/settings_html.py
arrmo/fHDHR
eb84920e0b5ed0cd288352be6544d67b11d1c973
[ "WTFPL" ]
1
2022-03-04T21:39:08.000Z
2022-03-04T21:39:08.000Z
fHDHR_web/pages/settings_html.py
arrmo/fHDHR
eb84920e0b5ed0cd288352be6544d67b11d1c973
[ "WTFPL" ]
null
null
null
fHDHR_web/pages/settings_html.py
arrmo/fHDHR
eb84920e0b5ed0cd288352be6544d67b11d1c973
[ "WTFPL" ]
null
null
null
from flask import request, render_template, session class Settings_HTML(): endpoints = ["/settings", "/settings.html"] endpoint_name = "page_settings_html" endpoint_access_level = 1 endpoint_category = "tool_pages" pretty_name = "Settings" def __init__(self, fhdhr): self.fhdhr = fhdhr...
49.511111
207
0.647666
33528fa351902aaf4eae74cda0a06c124882420b
152
py
Python
tests/model_control/detailed/transf_Integration/model_control_one_enabled_Integration_Lag1Trend_NoCycle_MLP.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/model_control/detailed/transf_Integration/model_control_one_enabled_Integration_Lag1Trend_NoCycle_MLP.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/model_control/detailed/transf_Integration/model_control_one_enabled_Integration_Lag1Trend_NoCycle_MLP.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['Integration'] , ['Lag1Trend'] , ['NoCycle'] , ['MLP'] );
38
79
0.743421
ef7fbcc75e4b2882ec52547010aad06a13852a49
2,272
py
Python
src/db-up/azext_db_up/vendored_sdks/azure_mgmt_sql/sql/models/automatic_tuning_server_options.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/db-up/azext_db_up/vendored_sdks/azure_mgmt_sql/sql/models/automatic_tuning_server_options.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/db-up/azext_db_up/vendored_sdks/azure_mgmt_sql/sql/models/automatic_tuning_server_options.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
39.859649
93
0.652729
be2b372c4d0f14e1fb237560505316fd8f5b8b70
4,660
py
Python
xblock/django/request.py
edly-io/XBlock
60d01a32e5bfe1b543f598cbc56ba3f4d736129d
[ "Apache-2.0" ]
null
null
null
xblock/django/request.py
edly-io/XBlock
60d01a32e5bfe1b543f598cbc56ba3f4d736129d
[ "Apache-2.0" ]
null
null
null
xblock/django/request.py
edly-io/XBlock
60d01a32e5bfe1b543f598cbc56ba3f4d736129d
[ "Apache-2.0" ]
null
null
null
"""Helpers for WebOb requests and responses.""" from collections import MutableMapping # pylint: disable=no-name-in-module from itertools import chain, repeat from lazy import lazy import six import webob from django.http import HttpResponse from webob.multidict import MultiDict, NestedMultiDict, NoVars def webob_t...
28.414634
100
0.642918
3fe6f65b033d51f89fddab9bfee1f91958b17285
18,681
py
Python
satchmo/apps/product/modules/configurable/models.py
predatell/satchmo
6ced1f845aadec240c7e433c3cbf4caca96e0d92
[ "BSD-3-Clause" ]
null
null
null
satchmo/apps/product/modules/configurable/models.py
predatell/satchmo
6ced1f845aadec240c7e433c3cbf4caca96e0d92
[ "BSD-3-Clause" ]
null
null
null
satchmo/apps/product/modules/configurable/models.py
predatell/satchmo
6ced1f845aadec240c7e433c3cbf4caca96e0d92
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals import datetime import logging import six from six import python_2_unicode_compatible from decimal import Decimal from django import forms from django.db import models from django.utils.translation import ugettext_lazy as _ from django.utils.encoding import smart_str from produc...
37.287425
248
0.62941
2c6a7e77a9b308890e6dec09e1be4c57859cc4cd
2,497
py
Python
test_SR_4x.py
IRVLab/srdrm
dfa9bedbfef1d6fec0cfa3c88eae125a7f4fc2fc
[ "MIT" ]
33
2020-02-14T16:57:55.000Z
2022-03-01T03:56:00.000Z
test_SR_4x.py
IRVLab/srdrm
dfa9bedbfef1d6fec0cfa3c88eae125a7f4fc2fc
[ "MIT" ]
null
null
null
test_SR_4x.py
IRVLab/srdrm
dfa9bedbfef1d6fec0cfa3c88eae125a7f4fc2fc
[ "MIT" ]
12
2020-02-05T21:03:59.000Z
2022-02-17T10:27:30.000Z
#!/usr/bin/env python """ # > Script for evaluating 4x SISR models # - Paper: https://arxiv.org/pdf/1909.09437.pdf # # Maintainer: Jahid (email: islam034@umn.edu) # Interactive Robotics and Vision Lab (http://irvlab.cs.umn.edu/) # Any part of this repo can be used for academic and educational purposes only """ impo...
33.293333
78
0.708851
6f8521159248cda682d9dd41f379ccd01d3897f3
488
py
Python
theme_clean/models/theme_clean.py
YnievesDotNetTeam/addons
2dd619ed7897a61bedef720d73509cb693a7f6cf
[ "MIT" ]
null
null
null
theme_clean/models/theme_clean.py
YnievesDotNetTeam/addons
2dd619ed7897a61bedef720d73509cb693a7f6cf
[ "MIT" ]
null
null
null
theme_clean/models/theme_clean.py
YnievesDotNetTeam/addons
2dd619ed7897a61bedef720d73509cb693a7f6cf
[ "MIT" ]
null
null
null
from odoo import models class ThemeClean(models.AbstractModel): _inherit = 'theme.utils' def _theme_clean_post_copy(self, mod): self.disable_view('website.template_header_default') self.enable_view('website.template_header_hamburger') self.enable_view('website.template_header_hamburge...
32.533333
73
0.747951
927eb8d7fc064f99214e54a40a862b75ed4d18f2
458
py
Python
contacts/app/migrations/0018_auto_20200222_1340.py
Jeevan-Kiran-Lenka/IPARK
2d1c64672708a21e7b3c4608cbcd63b06996504f
[ "MIT" ]
5
2020-03-04T05:12:35.000Z
2021-11-17T11:31:40.000Z
contacts/app/migrations/0018_auto_20200222_1340.py
Jeevan-Kiran-Lenka/IPARK
2d1c64672708a21e7b3c4608cbcd63b06996504f
[ "MIT" ]
null
null
null
contacts/app/migrations/0018_auto_20200222_1340.py
Jeevan-Kiran-Lenka/IPARK
2d1c64672708a21e7b3c4608cbcd63b06996504f
[ "MIT" ]
2
2020-03-21T17:35:26.000Z
2021-03-27T16:25:51.000Z
# Generated by Django 2.2.1 on 2020-02-22 08:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0017_remove_contact_gender'), ] operations = [ migrations.AlterField( model_name='contact', name='info', ...
24.105263
124
0.606987
167be88eac42ddc60e27acf1e91fec999054073f
766
py
Python
src/trainer/train.py
AkibMashrur/multi_gpu_bots
e70599534120829d95f6e630aff4212c4b279004
[ "Apache-2.0" ]
null
null
null
src/trainer/train.py
AkibMashrur/multi_gpu_bots
e70599534120829d95f6e630aff4212c4b279004
[ "Apache-2.0" ]
null
null
null
src/trainer/train.py
AkibMashrur/multi_gpu_bots
e70599534120829d95f6e630aff4212c4b279004
[ "Apache-2.0" ]
null
null
null
import os import subprocess import argparse import numpy as np import torch FILE_NAME = 'number_of_devices.txt' def get_args(): parser = argparse.ArgumentParser(description='Device count checker') parser.add_argument( '--model_dir', default=os.environ.get("MODEL_DIR"), help='Directory...
24.709677
78
0.655352
0730da374b1861f2fa31a48bafe5feec70c1353d
6,864
py
Python
tests/test_modeling_mbart.py
zyxdSTU/pytorch-pretrained-BERT
5ec89489dd66302023821f2d27e109861e9f593d
[ "Apache-2.0" ]
4
2021-01-15T20:20:47.000Z
2021-11-14T18:33:42.000Z
tests/test_modeling_mbart.py
yym6472/transformers
abd01205561e5caec167c1fbb20bccea24d7ba46
[ "Apache-2.0" ]
1
2021-09-15T09:20:01.000Z
2022-03-02T17:16:01.000Z
tests/test_modeling_mbart.py
yym6472/transformers
abd01205561e5caec167c1fbb20bccea24d7ba46
[ "Apache-2.0" ]
3
2021-04-26T08:01:16.000Z
2022-03-23T04:47:56.000Z
import unittest from transformers import is_torch_available from transformers.file_utils import cached_property from transformers.testing_utils import require_torch, slow, torch_device from .test_modeling_bart import TOLERANCE, _long_tensor, assert_tensors_close if is_torch_available(): import torch from t...
41.6
298
0.65472
fc4334d2be9cfde297d01b14a8499e4f81e7be6f
523
py
Python
models/menu.py
sloe/analyseapp
504521f45fc6aad53a33660f9e882947dffe8f59
[ "Apache-2.0" ]
1
2015-08-26T06:23:58.000Z
2015-08-26T06:23:58.000Z
models/menu.py
sloe/analyseapp
504521f45fc6aad53a33660f9e882947dffe8f59
[ "Apache-2.0" ]
null
null
null
models/menu.py
sloe/analyseapp
504521f45fc6aad53a33660f9e882947dffe8f59
[ "Apache-2.0" ]
null
null
null
response.title = settings.title response.subtitle = settings.subtitle response.meta.author = '%(author)s <%(author_email)s>' % settings response.meta.keywords = settings.keywords response.meta.description = settings.description response.menu = [ (T('Index'),URL('default','index')==URL(),URL('default','index'),[]), ...
43.583333
81
0.688337
ac30f5d00c2fc0dc5fb6c2e7f359373e4707a647
7,572
py
Python
fishbone_diagram_generator/diagram_painter.py
goshawk111/FishboneDiagramGenerator
e10b5d7aced5ce78e62f4b769145121968a4cfd1
[ "MIT" ]
1
2022-03-30T18:56:52.000Z
2022-03-30T18:56:52.000Z
fishbone_diagram_generator/diagram_painter.py
goshawk111/FishboneDiagramGenerator
e10b5d7aced5ce78e62f4b769145121968a4cfd1
[ "MIT" ]
1
2021-05-10T08:10:42.000Z
2021-05-11T02:44:00.000Z
fishbone_diagram_generator/diagram_painter.py
goshawk111/FishboneDiagramGenerator
e10b5d7aced5ce78e62f4b769145121968a4cfd1
[ "MIT" ]
null
null
null
""" Diagram drawing module """ import fishbone_diagram_generator.const as const from fishbone_diagram_generator.fishbone_generator import FishBoneGenerator from fishbone_diagram_generator.fishbone import Pos from kivy.uix.label import Label from kivy.graphics import Color from kivy.graphics import Triangle from kivy.gr...
39.4375
204
0.547147
06328ddb33c013ca46d1909ba26d5fe0c9883f4d
2,324
py
Python
oidc_provider/migrations/0018_hybridflow_and_clientattrs.py
jbking/django-oidc-provider
f0daed07b2ac7608565b80d4c80ccf04d8c416a8
[ "MIT" ]
370
2015-03-10T03:12:53.000Z
2022-03-13T05:49:40.000Z
oidc_provider/migrations/0018_hybridflow_and_clientattrs.py
jbking/django-oidc-provider
f0daed07b2ac7608565b80d4c80ccf04d8c416a8
[ "MIT" ]
305
2015-02-12T17:58:26.000Z
2022-02-25T19:48:41.000Z
oidc_provider/migrations/0018_hybridflow_and_clientattrs.py
jbking/django-oidc-provider
f0daed07b2ac7608565b80d4c80ccf04d8c416a8
[ "MIT" ]
271
2015-03-17T00:57:22.000Z
2022-02-17T11:21:22.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-09-12 14:08 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('oidc_provider', '0017_auto_20160811_1954'), ] operations = [ migrations.AddF...
36.3125
117
0.535714
cff179492c30854d9a2181907dcb9b0274dcf331
566
py
Python
2020/09/week1/huisam/1481_Least_Number_Unique_Integer.py
sunivers/stupid-week
e3438b27ef319ef9995759585dc4c9ac2880c079
[ "MIT" ]
45
2020-06-07T05:23:58.000Z
2020-12-13T12:09:58.000Z
2020/09/week1/huisam/1481_Least_Number_Unique_Integer.py
sunivers/stupid-week
e3438b27ef319ef9995759585dc4c9ac2880c079
[ "MIT" ]
69
2020-09-15T09:55:40.000Z
2020-12-30T06:00:58.000Z
2020/09/week1/huisam/1481_Least_Number_Unique_Integer.py
sunivers/stupid-week
e3438b27ef319ef9995759585dc4c9ac2880c079
[ "MIT" ]
17
2020-06-06T14:59:48.000Z
2020-12-27T14:08:14.000Z
from typing import List from collections import Counter class Solution: def findLeastNumOfUniqueInts(self, arr: List[int], k: int) -> int: counter = Counter(arr) number_count_array = sorted(counter.values(), reverse=True) answer = len(number_count_array) while k > 0 and number_coun...
28.3
70
0.586572
d78f579bf7de8aa052c68255cb166fb370580ae2
5,060
py
Python
timesheet.py
henchc/Timesheet-GCal
1dfa46fb7b67c1ae707c790d07974ac6aa2e8c15
[ "MIT" ]
null
null
null
timesheet.py
henchc/Timesheet-GCal
1dfa46fb7b67c1ae707c790d07974ac6aa2e8c15
[ "MIT" ]
null
null
null
timesheet.py
henchc/Timesheet-GCal
1dfa46fb7b67c1ae707c790d07974ac6aa2e8c15
[ "MIT" ]
null
null
null
from __future__ import print_function import httplib2 import os from apiclient import discovery from oauth2client import client from oauth2client import tools from oauth2client.file import Storage import datetime import re from dateutil.parser import parse import csv import subprocess # Skeleton code from # https:/...
32.229299
79
0.598221
9920d90b5e9e3457f05516fd774011351fa281a7
2,369
py
Python
shoppinglist.py
nullresponse/hackerman
489013b05d216b4a788a05c5f606a57dce221fe2
[ "CC0-1.0" ]
null
null
null
shoppinglist.py
nullresponse/hackerman
489013b05d216b4a788a05c5f606a57dce221fe2
[ "CC0-1.0" ]
1
2020-10-30T08:34:44.000Z
2020-10-30T08:34:44.000Z
shoppinglist.py
nullresponse/hackerman
489013b05d216b4a788a05c5f606a57dce221fe2
[ "CC0-1.0" ]
3
2020-10-28T12:12:46.000Z
2020-10-30T08:26:49.000Z
# Create the main menu def mainMenu(): while True: print() print('''### SHOPPING LIST ### Select a number for the action that you would like to do: 1. View shopping list 2. Add item to shopping list 3. Remove item from shopping list 4. Check if item is on sh...
31.171053
99
0.609118
169dc773fcf588f4e9333868e9c759668a927920
656
py
Python
src/sub/inputprocess.py
thanhph111/prosthetic-foot-design
9c303c54949feb09126e4d67ba2f6de0d88f22a2
[ "MIT" ]
3
2020-09-26T13:27:38.000Z
2020-10-12T06:12:44.000Z
src/sub/inputprocess.py
thanhph111/prosthetic-foot-design
9c303c54949feb09126e4d67ba2f6de0d88f22a2
[ "MIT" ]
null
null
null
src/sub/inputprocess.py
thanhph111/prosthetic-foot-design
9c303c54949feb09126e4d67ba2f6de0d88f22a2
[ "MIT" ]
null
null
null
import json import re from sub.translate import INPUT_FILE with open(INPUT_FILE) as file: string = "\n".join(file.read().splitlines()) result = json.loads( re.sub(r"(^|\s+)//.*$", "", string, flags=re.MULTILINE) ) # Public variables for key, value in result.items(): globals()[key] = value if...
23.428571
63
0.632622
56a93c3c502de9f535fe502acfc14c4176d4f14f
2,742
py
Python
HW3/ie590/image_utils.py
Salazar-Prime/Shallow_learn
a6e31383d44f505b897302cd916a157b27582f97
[ "Apache-2.0" ]
null
null
null
HW3/ie590/image_utils.py
Salazar-Prime/Shallow_learn
a6e31383d44f505b897302cd916a157b27582f97
[ "Apache-2.0" ]
7
2019-11-10T18:37:53.000Z
2019-11-10T18:38:17.000Z
HW3/ie590/image_utils.py
Salazar-Prime/Shallow_learn
a6e31383d44f505b897302cd916a157b27582f97
[ "Apache-2.0" ]
1
2019-11-23T21:28:15.000Z
2019-11-23T21:28:15.000Z
from __future__ import print_function from future import standard_library standard_library.install_aliases() from builtins import range import urllib.request, urllib.error, urllib.parse, os, tempfile import numpy as np from scipy.misc import imread, imresize """ Utility functions used for viewing and processing image...
30.466667
76
0.637491
821e74b487563ebc15deda1f58e35105f3d11758
407
py
Python
craigslistClone/wsgi.py
Ammar-Raneez/Py_Craigslist_Scraper
11aad407deb86f5bad0f3f144d7fb31ae1585135
[ "MIT" ]
null
null
null
craigslistClone/wsgi.py
Ammar-Raneez/Py_Craigslist_Scraper
11aad407deb86f5bad0f3f144d7fb31ae1585135
[ "MIT" ]
5
2021-03-30T14:07:38.000Z
2021-09-22T19:31:48.000Z
craigslistClone/wsgi.py
Ammar-Raneez/Craigslist_Scraper
4d8ef7d65f6cb4bbc7a461828ab02ec9e3006f71
[ "MIT" ]
null
null
null
""" WSGI config for craigslistClone project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJAN...
23.941176
78
0.793612
0d424928a530d7783e8e4c616d2e4923b5f4897c
6,940
py
Python
data/typing/pandas._libs.tslibs.offsets.py
vfdev-5/python-record-api
006faf0bba9cd4cb55fbacc13d2bbda365f5bf0b
[ "MIT" ]
null
null
null
data/typing/pandas._libs.tslibs.offsets.py
vfdev-5/python-record-api
006faf0bba9cd4cb55fbacc13d2bbda365f5bf0b
[ "MIT" ]
null
null
null
data/typing/pandas._libs.tslibs.offsets.py
vfdev-5/python-record-api
006faf0bba9cd4cb55fbacc13d2bbda365f5bf0b
[ "MIT" ]
null
null
null
from typing import * @overload def to_offset(_0: Literal["S"], /): """ usage.dask: 1 """ ... @overload def to_offset(_0: Literal["W"], /): """ usage.dask: 1 """ ... @overload def to_offset(_0: Literal["B"], /): """ usage.dask: 1 """ ... @overload def to_offset(_0:...
14.338843
75
0.476081
363b9bdee6a11cb4bb1728bc8747daec814cd805
561
py
Python
071_ordered_fractions.py
fbcom/project-euler
3c2194f797d54a0cc04031cd0be153f6a6f849ad
[ "MIT" ]
null
null
null
071_ordered_fractions.py
fbcom/project-euler
3c2194f797d54a0cc04031cd0be153f6a6f849ad
[ "MIT" ]
null
null
null
071_ordered_fractions.py
fbcom/project-euler
3c2194f797d54a0cc04031cd0be153f6a6f849ad
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # A Solution to "Ordered fractions" – Project Euler Problem No. 71 # by Florian Buetow # # Sourcecode: https://github.com/fbcom/project-euler # Problem statement: https://projecteuler.net/problem=71 from fractions import Fraction # Solve limit = 1000*1000 # one million...
25.5
66
0.684492
a8447e1af43a6220c7a383263054c4a7a2c9c152
981
py
Python
_static/cookbook/gravmag_fourier_ansig.py
fatiando/v0.2
e90e42f2073c4851453e0012238c915071613734
[ "BSD-3-Clause" ]
null
null
null
_static/cookbook/gravmag_fourier_ansig.py
fatiando/v0.2
e90e42f2073c4851453e0012238c915071613734
[ "BSD-3-Clause" ]
null
null
null
_static/cookbook/gravmag_fourier_ansig.py
fatiando/v0.2
e90e42f2073c4851453e0012238c915071613734
[ "BSD-3-Clause" ]
null
null
null
""" GravMag: Calculate the analytic signal of a total field anomaly using FFT """ from fatiando import mesher, gridder, utils from fatiando.gravmag import prism, fourier from fatiando.vis import mpl model = [mesher.Prism(-100,100,-100,100,0,2000,{'magnetization':10})] area = (-5000, 5000, -5000, 5000) shape = (100, 10...
28.852941
73
0.692151
7ec79ad0ae7e61c6d50f8aa17a9b0da1f9b772cb
12,328
py
Python
src/cpu/BaseCPU.py
eepalms/gem5-newcache
f8ffe44c10e3782790df79c5c3a52ce02f6d1a8a
[ "BSD-3-Clause" ]
12
2017-03-11T03:42:59.000Z
2022-03-29T02:24:32.000Z
src/cpu/BaseCPU.py
hungalab/gem5
58e0c1b71b1ffc353c87f0e45b74e81fea7448a6
[ "BSD-3-Clause" ]
null
null
null
src/cpu/BaseCPU.py
hungalab/gem5
58e0c1b71b1ffc353c87f0e45b74e81fea7448a6
[ "BSD-3-Clause" ]
3
2019-03-06T06:54:26.000Z
2021-06-10T13:29:58.000Z
# Copyright (c) 2012 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of the functionality ...
40.552632
78
0.662719
96ccab524f5a75007fe0cacdbdf25a46a394817f
706
py
Python
py-polars/tests/io/test_lazy_ipc.py
moritzwilksch/polars
7e206834923180f574945c569c8b21820bc02d8e
[ "MIT" ]
3
2022-03-06T12:45:47.000Z
2022-03-26T08:43:31.000Z
py-polars/tests/io/test_lazy_ipc.py
moritzwilksch/polars
7e206834923180f574945c569c8b21820bc02d8e
[ "MIT" ]
null
null
null
py-polars/tests/io/test_lazy_ipc.py
moritzwilksch/polars
7e206834923180f574945c569c8b21820bc02d8e
[ "MIT" ]
null
null
null
# flake8: noqa: W191,E101 import polars as pl def test_row_count(foods_ipc: str) -> None: df = pl.read_ipc(foods_ipc, row_count_name="row_count", use_pyarrow=False) assert df["row_count"].to_list() == list(range(27)) df = ( pl.scan_ipc(foods_ipc, row_count_name="row_count") .filter(pl.col...
28.24
78
0.593484
c4b8264f196a64cec6f3cc63dba6132203c9dfb1
1,071
py
Python
cumulusci/tests/test_schema.py
SFDODataScience/CumulusCI
9c869079a787971fa84b81bd103d7793ea7712a8
[ "BSD-3-Clause" ]
null
null
null
cumulusci/tests/test_schema.py
SFDODataScience/CumulusCI
9c869079a787971fa84b81bd103d7793ea7712a8
[ "BSD-3-Clause" ]
17
2022-01-24T15:18:18.000Z
2022-03-15T08:25:26.000Z
cumulusci/tests/test_schema.py
prescod/CumulusCI
9f235e15bb5487b11c570c2f75986ff11bc59711
[ "BSD-3-Clause" ]
null
null
null
import json import sys import pytest import yaml from cumulusci.utils.yaml import cumulusci_yml class TestSchema: @pytest.mark.skipif( sys.version_info < (3, 8), reason="requires python3.8 or higher" ) def test_schema_validates(self, cumulusci_test_repo_root): from jsonschema import vali...
29.75
83
0.672269
67c63d6d4820fab1797378f244d278c6b566ca3a
6,622
py
Python
tests/gpuarray/test_rng_mrg.py
hs2361/aesara
16f98e4fd69db92e0c2cde9dd97a0d005235deea
[ "BSD-3-Clause" ]
1
2021-11-30T06:38:39.000Z
2021-11-30T06:38:39.000Z
tests/gpuarray/test_rng_mrg.py
fonnesbeck/aesara
02378861f1a77135f2556018630092a09262ea76
[ "BSD-3-Clause" ]
null
null
null
tests/gpuarray/test_rng_mrg.py
fonnesbeck/aesara
02378861f1a77135f2556018630092a09262ea76
[ "BSD-3-Clause" ]
null
null
null
import functools import numpy as np import aesara from aesara import tensor as aet from aesara.configdefaults import config from aesara.gpuarray.rng_mrg import GPUA_mrg_uniform from aesara.gpuarray.type import gpuarray_shared_constructor from aesara.sandbox import rng_mrg from aesara.sandbox.rng_mrg import MRG_Random...
33.444444
87
0.654334
e705b4d69af8d15bb6f7bb2d46e4f3b56192a0e9
8,356
py
Python
mergify_engine/duplicate_pull.py
mauricedb/mergify-engine
b7c9c66e830a4c0c1ab54459a265c90cc67c968d
[ "Apache-2.0" ]
null
null
null
mergify_engine/duplicate_pull.py
mauricedb/mergify-engine
b7c9c66e830a4c0c1ab54459a265c90cc67c968d
[ "Apache-2.0" ]
null
null
null
mergify_engine/duplicate_pull.py
mauricedb/mergify-engine
b7c9c66e830a4c0c1ab54459a265c90cc67c968d
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- # # 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, so...
32.262548
87
0.595141
eca9d172afb4c5a3fd9aa7bd4caeb2a5fe48bad8
607
py
Python
sagemaker-pyspark-sdk/src/sagemaker_pyspark/transformation/__init__.py
hyandell/sagemaker-spark
0149cf0f52562008a1a163e455207bb6d00d3e4a
[ "Apache-2.0" ]
261
2017-11-30T04:53:01.000Z
2022-03-27T14:52:46.000Z
sagemaker-pyspark-sdk/src/sagemaker_pyspark/transformation/__init__.py
hyandell/sagemaker-spark
0149cf0f52562008a1a163e455207bb6d00d3e4a
[ "Apache-2.0" ]
114
2017-12-15T23:10:09.000Z
2022-01-07T18:52:30.000Z
sagemaker-pyspark-sdk/src/sagemaker_pyspark/transformation/__init__.py
hyandell/sagemaker-spark
0149cf0f52562008a1a163e455207bb6d00d3e4a
[ "Apache-2.0" ]
127
2017-11-30T18:53:51.000Z
2022-03-13T18:58:10.000Z
# Copyright 2017 Amazon.com, Inc. or its affiliates. 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. # A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accom...
40.466667
75
0.751236
71edf36dfe7d19ec6879203a26084c25c4ee71c1
2,363
py
Python
scanpy/metrics/_metrics.py
PauBadiaM/scanpy
560bd5d348a502d5152eaf20f5f8bef794562a97
[ "BSD-3-Clause" ]
null
null
null
scanpy/metrics/_metrics.py
PauBadiaM/scanpy
560bd5d348a502d5152eaf20f5f8bef794562a97
[ "BSD-3-Clause" ]
null
null
null
scanpy/metrics/_metrics.py
PauBadiaM/scanpy
560bd5d348a502d5152eaf20f5f8bef794562a97
[ "BSD-3-Clause" ]
null
null
null
""" Metrics which don't quite deserve their own file. """ from typing import Optional, Sequence, Union import pandas as pd from pandas.api.types import is_categorical from natsort import natsorted import numpy as np def confusion_matrix( orig: Union[pd.Series, np.ndarray, Sequence], new: Union[pd.Series, np....
26.550562
83
0.638595
a98b1a50edc02c6e1fbe30bf63c8406a0ac46a67
3,094
py
Python
example_project/example_project/settings.py
andang1390/showroom
562bc7203ee4d21e985dc171d67d4ea083439f26
[ "BSD-3-Clause" ]
27
2015-01-25T15:43:47.000Z
2021-11-08T11:20:29.000Z
example_project/example_project/settings.py
andang1390/showroom
562bc7203ee4d21e985dc171d67d4ea083439f26
[ "BSD-3-Clause" ]
2
2015-08-20T16:53:56.000Z
2018-07-05T15:43:09.000Z
example_project/example_project/settings.py
andang1390/showroom
562bc7203ee4d21e985dc171d67d4ea083439f26
[ "BSD-3-Clause" ]
21
2015-01-06T03:36:52.000Z
2020-12-08T12:03:49.000Z
""" Django settings for example_project project. Generated by 'django-admin startproject' using Django 1.8.4. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Bu...
26
71
0.700388
6fed7b523828214055fb607a3259d88a90222f7b
12,798
py
Python
pypy/module/cpyext/ndarrayobject.py
wdv4758h/mu-client-pypy
d2fcc01f0b4fe3ffa232762124e3e6d38ed3a0cf
[ "Apache-2.0", "OpenSSL" ]
null
null
null
pypy/module/cpyext/ndarrayobject.py
wdv4758h/mu-client-pypy
d2fcc01f0b4fe3ffa232762124e3e6d38ed3a0cf
[ "Apache-2.0", "OpenSSL" ]
null
null
null
pypy/module/cpyext/ndarrayobject.py
wdv4758h/mu-client-pypy
d2fcc01f0b4fe3ffa232762124e3e6d38ed3a0cf
[ "Apache-2.0", "OpenSSL" ]
null
null
null
""" Numpy C-API for PyPy - S. H. Muller, 2013/07/26 """ from pypy.interpreter.error import OperationError from rpython.rtyper.lltypesystem import rffi, lltype from pypy.module.cpyext.api import cpython_api, Py_ssize_t, CANNOT_FAIL from pypy.module.cpyext.api import PyObject from pypy.module.micronumpy.ndarray import ...
44.131034
106
0.715815
9261fb47d3d9152243a156cdd96dd220e8f0d6fe
4,908
py
Python
fidesctl/src/fidesapi/crud.py
nathanawmk/fides
1ab99b7bcec6dcc1a75df4cbcff50153e10ad115
[ "Apache-2.0" ]
null
null
null
fidesctl/src/fidesapi/crud.py
nathanawmk/fides
1ab99b7bcec6dcc1a75df4cbcff50153e10ad115
[ "Apache-2.0" ]
null
null
null
fidesctl/src/fidesapi/crud.py
nathanawmk/fides
1ab99b7bcec6dcc1a75df4cbcff50153e10ad115
[ "Apache-2.0" ]
null
null
null
""" Contains all of the generic CRUD endpoints that can be generated programmatically for each resource. """ # pylint: disable=redefined-outer-name,cell-var-from-loop from typing import List, Dict from fastapi import APIRouter, status from sqlalchemy import update as _update from fidesapi import db_session from fide...
31.261146
85
0.670945
23a8d694a592e8b9d99c8f6e5c5f945453c31207
776
py
Python
monoplySolutions/website/migrations/0008_teammember.py
CCecilia/MonoplyPropertySoltuions
6445fa8a2622fbba2812dc49dd1f20d41b2e2e2d
[ "MIT" ]
null
null
null
monoplySolutions/website/migrations/0008_teammember.py
CCecilia/MonoplyPropertySoltuions
6445fa8a2622fbba2812dc49dd1f20d41b2e2e2d
[ "MIT" ]
null
null
null
monoplySolutions/website/migrations/0008_teammember.py
CCecilia/MonoplyPropertySoltuions
6445fa8a2622fbba2812dc49dd1f20d41b2e2e2d
[ "MIT" ]
null
null
null
# Generated by Django 2.0.1 on 2018-01-05 19:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('website', '0007_auto_20180105_1937'), ] operations = [ migrations.CreateModel( name='TeamMember', fields=[ ...
31.04
114
0.574742
63b4aaf56de70b0a86ff88c831ac5e73f0c3c4e7
2,896
py
Python
cdr_controller/filters/template_01.py
JACKCHEN96/Large-Scale-Streaming-project
c5f9403ed02c60f38d5201d810039cdfd4dacd25
[ "MIT" ]
null
null
null
cdr_controller/filters/template_01.py
JACKCHEN96/Large-Scale-Streaming-project
c5f9403ed02c60f38d5201d810039cdfd4dacd25
[ "MIT" ]
null
null
null
cdr_controller/filters/template_01.py
JACKCHEN96/Large-Scale-Streaming-project
c5f9403ed02c60f38d5201d810039cdfd4dacd25
[ "MIT" ]
2
2020-05-19T21:03:52.000Z
2020-05-21T15:36:18.000Z
__author__ = "Wenjie Chen" __email__ = "wc2685@columbia.edu" import os from multiprocessing import Process import redis from pyspark.sql import SparkSession from pyspark import SparkConf, SparkContext from pyspark.streaming import StreamingContext STORE_DIR = os.path.join(os.path.dirname( os.path.dirname(os.path...
31.824176
133
0.628798
458d8d6715c2c7827ac4be0a0bf953034dc79dae
6,936
py
Python
saleor/extensions/base_plugin.py
lov3stor3/lov3stor3
1a0d94da1ce61d35ba5efbadbe737b039fedfe87
[ "CC-BY-4.0" ]
2
2019-08-29T14:17:59.000Z
2019-09-03T16:39:44.000Z
saleor/extensions/base_plugin.py
lov3stor3/lov3stor3
1a0d94da1ce61d35ba5efbadbe737b039fedfe87
[ "CC-BY-4.0" ]
3
2021-03-09T16:28:16.000Z
2022-02-10T19:08:00.000Z
saleor/extensions/base_plugin.py
JostCrow/saleor
854bcd3699703e613a4d9aaefc4299a6a6c0d1f9
[ "CC-BY-4.0" ]
1
2019-12-04T22:24:13.000Z
2019-12-04T22:24:13.000Z
from decimal import Decimal from typing import TYPE_CHECKING, Any, List, Union from django.db.models import QuerySet from django_countries.fields import Country from prices import Money, MoneyRange, TaxedMoney, TaxedMoneyRange from .models import PluginConfiguration if TYPE_CHECKING: from ..core.taxes import Tax...
33.834146
88
0.688437
1a9d2dfc5bf1d400e60abe4f602f0d6c1ce40650
60
py
Python
tests/__init__.py
starofrainnight/hiver
71c5dd392e809e4a28b3c993c9252d47bb3e05a3
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
starofrainnight/hiver
71c5dd392e809e4a28b3c993c9252d47bb3e05a3
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
starofrainnight/hiver
71c5dd392e809e4a28b3c993c9252d47bb3e05a3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Unit test package for hiver."""
15
34
0.55
773648ac540435dd17c3782ac09784a7a052a671
287
py
Python
shotglass/urls.py
johntellsall/shotglass
0ad5311f92bd79cd5b3bafe4a91dd9cdcce947e8
[ "MIT" ]
10
2015-08-23T14:39:13.000Z
2022-02-14T08:11:07.000Z
shotglass/urls.py
johntellsall/shotglass
0ad5311f92bd79cd5b3bafe4a91dd9cdcce947e8
[ "MIT" ]
13
2015-08-24T21:54:16.000Z
2022-02-04T04:34:48.000Z
shotglass/urls.py
johntellsall/shotglass
0ad5311f92bd79cd5b3bafe4a91dd9cdcce947e8
[ "MIT" ]
null
null
null
# shotglass.urls # from django.conf.urls import include, url # from django.contrib import admin # urlpatterns = [ # url(r'^$', views.index) # # url(r'^/', include('app.urls')), # # url(r'^/beer', include('app.urls')), # # url(r'^admin/', include(admin.site.urls)), # ]
23.916667
50
0.58885
1e11e67b080622055a9347ce4fe55a262e455105
137
py
Python
s3_file_field/signals.py
WayLit/django-s3-file-field
7683e9e7a07691326b131b8b478c8a51af4844a9
[ "Apache-2.0" ]
4
2019-11-06T23:28:01.000Z
2019-11-20T16:14:46.000Z
s3_file_field/signals.py
WayLit/django-s3-file-field
7683e9e7a07691326b131b8b478c8a51af4844a9
[ "Apache-2.0" ]
25
2019-11-18T16:06:42.000Z
2019-12-09T23:27:29.000Z
s3_file_field/signals.py
WayLit/django-s3-file-field
7683e9e7a07691326b131b8b478c8a51af4844a9
[ "Apache-2.0" ]
1
2019-11-25T00:21:39.000Z
2019-11-25T00:21:39.000Z
import django.dispatch s3_file_field_upload_prepare = django.dispatch.Signal() s3_file_field_upload_finalize = django.dispatch.Signal()
27.4
56
0.854015
cc2be577d242fadbe64817b01fbae4193c0ff380
1,441
py
Python
setup.py
boykovdn/elf
93e35509da82213e227f7abdbf88c8b5648e7674
[ "MIT" ]
null
null
null
setup.py
boykovdn/elf
93e35509da82213e227f7abdbf88c8b5648e7674
[ "MIT" ]
null
null
null
setup.py
boykovdn/elf
93e35509da82213e227f7abdbf88c8b5648e7674
[ "MIT" ]
null
null
null
import runpy import itertools from setuptools import setup, find_packages __version__ = runpy.run_path("elf/__version__.py")["__version__"] requires = [ "numpy", "imageio", "scikit-image", "scikit-learn", "skan" ] # optional dependencies for setuptools extras = { "hdf5": "h5py", "zarr": ...
27.188679
86
0.690493
68844ae86024d09643a2f13892de6e36d3bef6ab
626
py
Python
cryptovote/cryptovote/models/unconfirmed_authority.py
cryptovoting/cryptovote
b236cf031a8f9dfa5cca54ff45003313275a0fc8
[ "MIT" ]
8
2019-05-14T02:41:34.000Z
2021-11-25T08:07:22.000Z
cryptovote/cryptovote/models/unconfirmed_authority.py
cryptovoting/cryptovote
b236cf031a8f9dfa5cca54ff45003313275a0fc8
[ "MIT" ]
null
null
null
cryptovote/cryptovote/models/unconfirmed_authority.py
cryptovoting/cryptovote
b236cf031a8f9dfa5cca54ff45003313275a0fc8
[ "MIT" ]
2
2019-05-14T20:20:07.000Z
2021-11-25T08:07:24.000Z
from ..extensions import db from uuid import uuid4 class UnconfirmedAuthority(db.Model): id = db.Column(db.Integer, primary_key=True) election_name = db.Column(db.Text) name = db.Column(db.Text, nullable=False) email = db.Column(db.Text, nullable=False) email_key = db.Column(db.Text, unique=True,...
27.217391
64
0.653355
98a028b00e8038535ca9b4722f6dede765eb69da
808
py
Python
tests/getnet/services/plans/test_plan_response.py
rafagonc/getnet-py
d2a5278b497408b5245d5d0fecd2e424f4ddb0d5
[ "MIT" ]
2
2021-04-09T20:17:41.000Z
2021-04-09T20:18:06.000Z
tests/getnet/services/plans/test_plan_response.py
rafagonc/getnet-py
d2a5278b497408b5245d5d0fecd2e424f4ddb0d5
[ "MIT" ]
5
2019-11-24T16:24:11.000Z
2021-02-22T16:10:05.000Z
tests/getnet/services/plans/test_plan_response.py
rafagonc/getnet-py
d2a5278b497408b5245d5d0fecd2e424f4ddb0d5
[ "MIT" ]
3
2020-07-25T23:00:59.000Z
2022-02-15T02:37:27.000Z
import unittest from getnet.services.plans import Period from getnet.services.plans.plan_response import PlanResponse sample = { "seller_id": "6eb2412c-165a-41cd-b1d9-76c575d70a28", "plan_id": "51995e24-b1ae-4826-8e15-2a568a87abdd", "name": "Plano flex", "description": "Plano flex", "amount": 1999...
26.933333
84
0.67203
7bf047be88b0690c3b97dba9743e1907457cebc9
613
py
Python
cb_scripts/weather.py
christopher-burke/python-scripts
bdbea2456130e0958b6a6ab8d138f4f19b39b934
[ "MIT" ]
1
2022-02-05T06:39:05.000Z
2022-02-05T06:39:05.000Z
cb_scripts/weather.py
christopher-burke/python-scripts
bdbea2456130e0958b6a6ab8d138f4f19b39b934
[ "MIT" ]
null
null
null
cb_scripts/weather.py
christopher-burke/python-scripts
bdbea2456130e0958b6a6ab8d138f4f19b39b934
[ "MIT" ]
1
2021-06-10T22:04:35.000Z
2021-06-10T22:04:35.000Z
#!/usr/bin/python """Weather from weather.gov.""" import requests from bs4 import BeautifulSoup as soup # Go to http://w1.weather.gov/xml/current_obs/ and pick the # XML weather observations feed. def main(feed: str="http://w1.weather.gov/xml/current_obs/") -> str: """Weather feed from weather.gov.""" r = ...
24.52
68
0.665579
8ca58d4711b434aa6f428627f16c1f0245921ac8
9,324
py
Python
src/gluonts/nursery/SCott/pts/trainers/SCott.py
RingoIngo/gluon-ts
62fb20c36025fc969653accaffaa783671709564
[ "Apache-2.0" ]
1
2022-03-28T01:17:00.000Z
2022-03-28T01:17:00.000Z
src/gluonts/nursery/SCott/pts/trainers/SCott.py
RingoIngo/gluon-ts
62fb20c36025fc969653accaffaa783671709564
[ "Apache-2.0" ]
null
null
null
src/gluonts/nursery/SCott/pts/trainers/SCott.py
RingoIngo/gluon-ts
62fb20c36025fc969653accaffaa783671709564
[ "Apache-2.0" ]
null
null
null
import time from typing import List, Optional import torch import torch.nn as nn from torch.utils.tensorboard import SummaryWriter import copy import random import math from pts.trainers.timer import Timer class SCott: def __init__( self, freq: int = 1, task_name: str = "none", epo...
38.528926
79
0.499035
f5e25ba29a6ba47ecd7feef07b042b16fd73a76d
2,530
py
Python
problemset/496.py
frankpiva/leetcode
85540af1fd72ad9e92c5a6ad253b1aaeec5065d9
[ "MIT" ]
null
null
null
problemset/496.py
frankpiva/leetcode
85540af1fd72ad9e92c5a6ad253b1aaeec5065d9
[ "MIT" ]
null
null
null
problemset/496.py
frankpiva/leetcode
85540af1fd72ad9e92c5a6ad253b1aaeec5065d9
[ "MIT" ]
null
null
null
""" 496. Next Greater Element I Easy 1221 99 Add to List Share The next greater element of some element x in an array is the first greater element that is to the right of x in the same array. You are given two distinct 0-indexed integer arrays nums1 and nums2, where nums1 is a subset of nums2. For each 0 <= i < n...
34.189189
215
0.660079
030dc62ad39a47b76e62e17403a428734910f2ed
14,328
py
Python
nltk_contrib/timex3.py
hockenmaier/nltk_contrib
8ff9357c8078570ef8c0bdc7ea2b162c442f2be3
[ "Apache-2.0" ]
null
null
null
nltk_contrib/timex3.py
hockenmaier/nltk_contrib
8ff9357c8078570ef8c0bdc7ea2b162c442f2be3
[ "Apache-2.0" ]
null
null
null
nltk_contrib/timex3.py
hockenmaier/nltk_contrib
8ff9357c8078570ef8c0bdc7ea2b162c442f2be3
[ "Apache-2.0" ]
null
null
null
# Code for tagging temporal expressions in text # For details of the TIMEX format, see http://timex2.mitre.org/ # Converted to Python3 by Brian Hockenmaier in 2019 import re import string import os import sys from datetime import datetime, timedelta # Python3 version no longer requires eGenix.com mx Base Distribution...
39.147541
86
0.581588
b51677383ebc53975117b240b86fb6b569f77526
11,444
py
Python
Lib/test/support/socket_helper.py
oleksandr-pavlyk/cpython
eb002dbe0da9622245a355db5f0cd5aa2fc70b40
[ "0BSD" ]
52,316
2015-01-01T15:56:25.000Z
2022-03-31T23:19:01.000Z
Lib/test/support/socket_helper.py
dalakatt/cpython
2f49b97cc5426087b46515254b9a97a22ee8c807
[ "0BSD" ]
25,286
2015-03-03T23:18:02.000Z
2022-03-31T23:17:27.000Z
Lib/test/support/socket_helper.py
dalakatt/cpython
2f49b97cc5426087b46515254b9a97a22ee8c807
[ "0BSD" ]
31,623
2015-01-01T13:29:37.000Z
2022-03-31T19:55:06.000Z
import contextlib import errno import socket import unittest import sys from .. import support HOST = "localhost" HOSTv4 = "127.0.0.1" HOSTv6 = "::1" def find_unused_port(family=socket.AF_INET, socktype=socket.SOCK_STREAM): """Returns an unused port that should be suitable for binding. This is achieved by...
42.385185
89
0.658948
4124c86753e7e945d35e4135e6ddd3ee25af33a5
536
py
Python
dukaapp/migrations/0007_auto_20210113_0827.py
andyjohn23/E-DUKA-BACKEND
ec0ab6fffdad504f35be6442e729666603596748
[ "MIT" ]
null
null
null
dukaapp/migrations/0007_auto_20210113_0827.py
andyjohn23/E-DUKA-BACKEND
ec0ab6fffdad504f35be6442e729666603596748
[ "MIT" ]
null
null
null
dukaapp/migrations/0007_auto_20210113_0827.py
andyjohn23/E-DUKA-BACKEND
ec0ab6fffdad504f35be6442e729666603596748
[ "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2021-01-13 05:27 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('dukaapp', '0006_sub_category_image2'), ] operations = [ migrations.AlterFi...
25.52381
134
0.66791
8e9f54c98c8f319907441cd60dc5ce27f29bcceb
765
py
Python
crypto_classes/Cryptor.py
YJDoc2/Kerberos-Python-Library
f9aade850bbfec9a6ac736586117ab1c1a774f7e
[ "MIT" ]
1
2021-11-07T01:20:30.000Z
2021-11-07T01:20:30.000Z
crypto_classes/Cryptor.py
YJDoc2/Kerberos-Python-Library
f9aade850bbfec9a6ac736586117ab1c1a774f7e
[ "MIT" ]
null
null
null
crypto_classes/Cryptor.py
YJDoc2/Kerberos-Python-Library
f9aade850bbfec9a6ac736586117ab1c1a774f7e
[ "MIT" ]
null
null
null
"""Class Cryptor Intended to be base interface class for all cryptographers required in library. All Custom Cryptographers must extend this class and implement methods encrypt decrypt get_random_key The key returned by get_random_key will be given to encrypt and decrypt methods for encryption/decryption ""...
47.8125
109
0.768627
513e32b996666b6cd99366cd49620971ec5711c7
4,599
py
Python
sdk/yapily/models/api_response_of_payment_response.py
bs-yapily/yapily-sdk-python
0bba45e351b674eb655425a51190f539c4e9896f
[ "MIT" ]
null
null
null
sdk/yapily/models/api_response_of_payment_response.py
bs-yapily/yapily-sdk-python
0bba45e351b674eb655425a51190f539c4e9896f
[ "MIT" ]
null
null
null
sdk/yapily/models/api_response_of_payment_response.py
bs-yapily/yapily-sdk-python
0bba45e351b674eb655425a51190f539c4e9896f
[ "MIT" ]
null
null
null
# coding: utf-8 """ Yapily API To access endpoints that require authentication, use your application key and secret created in the Dashboard (https://dashboard.yapily.com) # noqa: E501 OpenAPI spec version: 0.0.155 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pp...
27.375
158
0.582083
9195aa315118f6e30b3543b2e9e62736c3288bec
148
py
Python
tests/test_is_it_bandcamp_friday.py
TR33HGR/bandcamp-friday
ce5530001ca0dd64ac0a8ef33d221f94ee78ba9f
[ "MIT" ]
null
null
null
tests/test_is_it_bandcamp_friday.py
TR33HGR/bandcamp-friday
ce5530001ca0dd64ac0a8ef33d221f94ee78ba9f
[ "MIT" ]
null
null
null
tests/test_is_it_bandcamp_friday.py
TR33HGR/bandcamp-friday
ce5530001ca0dd64ac0a8ef33d221f94ee78ba9f
[ "MIT" ]
null
null
null
from hamcrest import assert_that, is_ from bandcamp_friday.is_it_bandcamp_friday import is_true def test(): assert_that(is_true(), is_(True))
21.142857
57
0.790541
a6204ec641f6e6acb29c039bf0743a07cf1b04a9
2,035
py
Python
contrib/sarplus/python/setup.py
Tony-Feng/recommenders
d4181cf1d1df6e71f7e6b202b0875bb3bd54150c
[ "MIT" ]
10
2019-05-06T21:57:10.000Z
2019-05-07T06:15:39.000Z
contrib/sarplus/python/setup.py
Tony-Feng/recommenders
d4181cf1d1df6e71f7e6b202b0875bb3bd54150c
[ "MIT" ]
1
2019-05-07T06:46:26.000Z
2019-05-07T06:47:04.000Z
contrib/sarplus/python/setup.py
Tony-Feng/recommenders
d4181cf1d1df6e71f7e6b202b0875bb3bd54150c
[ "MIT" ]
3
2019-05-06T22:24:21.000Z
2019-05-07T02:50:46.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from pathlib import Path from setuptools import setup from setuptools.extension import Extension class get_pybind_include(object): def __init__(self, user=False): self.user = user def __str__(se...
31.307692
93
0.614742
bc1f5ad4fb280b0d8035167841505d8f378354c3
7,461
py
Python
rStuff/rBot.py
scrubjay55/Reddit-Tweet-Linker-Bot
06a3784c0d0ec48432eb27a09494b63f2ff09e6c
[ "Apache-2.0" ]
93
2020-03-27T17:20:40.000Z
2022-02-03T18:12:00.000Z
rStuff/rBot.py
j-hc/Reddit-Tweet-Linker-Bot
06a3784c0d0ec48432eb27a09494b63f2ff09e6c
[ "Apache-2.0" ]
2
2021-02-03T13:15:28.000Z
2021-04-09T16:48:33.000Z
rStuff/rBot.py
j-hc/Reddit-Tweet-Linker-Bot
06a3784c0d0ec48432eb27a09494b63f2ff09e6c
[ "Apache-2.0" ]
9
2020-07-13T12:50:23.000Z
2021-12-13T15:38:09.000Z
import requests import requests.auth import logging from http import cookiejar from .rUtils import rNotif, rBase, rPost from urllib3.util.retry import Retry from requests.adapters import HTTPAdapter from ratelimit import sleep_and_retry, limits from time import sleep, time logging.basicConfig(level=logging.INFO, date...
39.062827
116
0.594156
c98f416170a8bdd66806bae4fda922c546fb9783
4,862
py
Python
src/gmailCleaner.py
Mxngls/Gmail-Cleaner
788f9cab8c2c5688e86894fa3b7f94a514e9010c
[ "MIT" ]
null
null
null
src/gmailCleaner.py
Mxngls/Gmail-Cleaner
788f9cab8c2c5688e86894fa3b7f94a514e9010c
[ "MIT" ]
null
null
null
src/gmailCleaner.py
Mxngls/Gmail-Cleaner
788f9cab8c2c5688e86894fa3b7f94a514e9010c
[ "MIT" ]
null
null
null
from gmailMethods import GmailMethod from gmailClient import GmailClient import sys import re from collections import Counter from tqdm import tqdm def main(): gmail = GmailMethod() while True: print(""" 1. Show the most common senders 2. Move messages from a specific sender to trash 3. Move messages from a spe...
33.763889
151
0.662485
d5d5c2b0e63be0d8f51070c5731472e61e3b5b4f
2,755
py
Python
caffe2/python/operator_test/elementwise_ops_test.py
gautamkmr/caffe2
cde7f21d1e34ec714bc08dbfab945a1ad30e92ff
[ "MIT" ]
40
2017-09-03T13:23:42.000Z
2021-02-03T23:59:28.000Z
caffe2/python/operator_test/elementwise_ops_test.py
gautamkmr/caffe2
cde7f21d1e34ec714bc08dbfab945a1ad30e92ff
[ "MIT" ]
1
2017-12-15T09:49:26.000Z
2018-01-21T10:54:36.000Z
caffe2/python/operator_test/elementwise_ops_test.py
gautamkmr/caffe2
cde7f21d1e34ec714bc08dbfab945a1ad30e92ff
[ "MIT" ]
6
2017-09-01T22:12:44.000Z
2018-10-12T13:14:25.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from caffe2.python import core from hypothesis import given import caffe2.python.hypothesis_test_util as hu import hypothesis.strategies as st import numpy as np class ...
25.509259
66
0.509619
1925d3a4c6e462e7e8d507697af6bbac48e5ed7a
1,403
py
Python
pydflatex/cleaner.py
olivierverdier/pydflatex
a466693d0184e9b68b4592b829d0272d0aae4e05
[ "BSD-3-Clause" ]
21
2015-05-19T13:51:26.000Z
2021-03-27T10:38:37.000Z
pydflatex/cleaner.py
olivierverdier/pydflatex
a466693d0184e9b68b4592b829d0272d0aae4e05
[ "BSD-3-Clause" ]
2
2015-10-15T08:02:30.000Z
2016-02-24T15:15:25.000Z
pydflatex/cleaner.py
olivierverdier/pydflatex
a466693d0184e9b68b4592b829d0272d0aae4e05
[ "BSD-3-Clause" ]
5
2015-07-03T21:46:19.000Z
2018-05-20T03:51:04.000Z
#!/usr/bin/env python # coding: UTF-8 from __future__ import division import os import subprocess from .processor import Processor class Cleaner(Processor): """ Identify all the output files and make them invisible. """ @classmethod def fls_file(self, file_base): return os.path.join(os.curdir, file_base+os.p...
25.053571
113
0.712758
115dd888f335790f4fbdedc42b9bd858ee4ead39
180
py
Python
blog/forms.py
1nonlyabhi/icp-forum
665ed0ce0cd869417de3f40f6d46d78d73d48c82
[ "MIT" ]
2
2021-09-29T03:35:25.000Z
2022-02-06T14:19:02.000Z
blog/forms.py
1nonlyabhi/icp-forum
665ed0ce0cd869417de3f40f6d46d78d73d48c82
[ "MIT" ]
null
null
null
blog/forms.py
1nonlyabhi/icp-forum
665ed0ce0cd869417de3f40f6d46d78d73d48c82
[ "MIT" ]
null
null
null
from django import forms from .models import Comment class NewCommentForm(forms.ModelForm): class Meta: model = Comment fields = ['content', 'attachedurl']
16.363636
43
0.677778
01528b0d92082859c11134c3106d988562fa29b8
1,075
py
Python
TFM/scripts/medianBlur.py
jmanday/Master
388ee71d04a3fb1f64ed4b2d1164f1b5ec45179f
[ "Apache-2.0" ]
1
2017-03-21T17:57:22.000Z
2017-03-21T17:57:22.000Z
TFM/scripts/medianBlur.py
jmanday/Master
388ee71d04a3fb1f64ed4b2d1164f1b5ec45179f
[ "Apache-2.0" ]
28
2016-10-16T19:42:37.000Z
2018-09-14T21:29:48.000Z
TFM/scripts/medianBlur.py
jmanday/Master
388ee71d04a3fb1f64ed4b2d1164f1b5ec45179f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ######################################################################### ### Jesus Garcia Manday ### medianBlur.py ### @Descripcion: script to remove noise and apply blur the images ### ### @Params: the image to process ### ### @Output: the image with the operations applied ### ### @Execute: p...
26.875
83
0.628837
aa05c1d7b608431b7abee24f4b8bfc6c6d3cf7e4
431
py
Python
stac2dcache/drivers/textfiles.py
NLeSC-GO-common-infrastructure/stac2dcache
d7e7ff18b9d68038dd4275d0797af713b714b332
[ "Apache-2.0" ]
null
null
null
stac2dcache/drivers/textfiles.py
NLeSC-GO-common-infrastructure/stac2dcache
d7e7ff18b9d68038dd4275d0797af713b714b332
[ "Apache-2.0" ]
5
2021-04-06T11:49:17.000Z
2021-12-01T10:27:11.000Z
stac2dcache/drivers/textfiles.py
NLeSC-GO-common-infrastructure/stac2webdav
ffc381e2dd09481d125b1a26771f7382f7b50f29
[ "Apache-2.0" ]
null
null
null
from .base import Driver class TextfilesDriver(Driver): """ Driver to parse text files """ def get(self, **kwargs): """ Load the text file :param kwargs: (optional) arguments to be passed to the `open` method of the `fsspec` compatible FileSystem object :return (st...
26.9375
77
0.587007
9146042ec142bb87cf8a563ec5eb2d4df506e7a0
87
py
Python
mechanical_system/Lms/Sistem/apps.py
HugoJr778/TCC
97c55360dd4d5dd1564cc8772224e59b30af04cb
[ "Apache-2.0" ]
2
2019-09-17T21:48:32.000Z
2019-09-26T17:06:54.000Z
mechanical_system/System/apps.py
HugoJr778/TCC
97c55360dd4d5dd1564cc8772224e59b30af04cb
[ "Apache-2.0" ]
null
null
null
mechanical_system/System/apps.py
HugoJr778/TCC
97c55360dd4d5dd1564cc8772224e59b30af04cb
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class SistemConfig(AppConfig): name = 'Sistem'
14.5
33
0.747126
3b0558e7984b1b18f0bc8fb3bb9c34958fa8cd4e
813
py
Python
mcrouter/test/test_memcache_router.py
kiaplayer/mcrouter
c54233f1cd57dc9f541bdbff7ff485775ff289fc
[ "MIT" ]
2,205
2015-01-03T02:56:53.000Z
2022-03-31T09:24:08.000Z
mcrouter/test/test_memcache_router.py
kiaplayer/mcrouter
c54233f1cd57dc9f541bdbff7ff485775ff289fc
[ "MIT" ]
327
2015-01-07T00:59:57.000Z
2022-03-31T16:03:58.000Z
mcrouter/test/test_memcache_router.py
kiaplayer/mcrouter
c54233f1cd57dc9f541bdbff7ff485775ff289fc
[ "MIT" ]
479
2015-01-07T02:06:42.000Z
2022-03-24T11:44:31.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from mcrouter.test.MCProcess import Memcached from mcrouter.test.McrouterTestCase import McrouterTestCase class TestM...
35.347826
69
0.682657
dc8c9e5d8239e35faa52d813da6c2b78279456f0
843
py
Python
LeetCode/LeetCode_Python-master/LeetCode_Python-master/Algorithm-Easy/14_Longest_Common_Prefix.py
Sycamore-City-passerby/ML
605cfc70bdda2c99e5f1c16b25812b59c98a72ad
[ "MIT" ]
null
null
null
LeetCode/LeetCode_Python-master/LeetCode_Python-master/Algorithm-Easy/14_Longest_Common_Prefix.py
Sycamore-City-passerby/ML
605cfc70bdda2c99e5f1c16b25812b59c98a72ad
[ "MIT" ]
null
null
null
LeetCode/LeetCode_Python-master/LeetCode_Python-master/Algorithm-Easy/14_Longest_Common_Prefix.py
Sycamore-City-passerby/ML
605cfc70bdda2c99e5f1c16b25812b59c98a72ad
[ "MIT" ]
null
null
null
class Solution: def longestCommonPrefix(self, strs): """ :type strs: List[str] :rtype: str """ if not strs: return "" for i in range(len(strs[0])): for string in strs[1:]: if i >= len(string) or string[i] != strs[0][i]: ...
24.085714
94
0.52669
f1e5ee8043078253afd994cee2e18c35a36e6ab7
5,503
py
Python
ail/common/math.py
tianyudwang/adversarial_imitation_learning
1d5b0ce16cf6453ed29650b6ef565664d6742680
[ "MIT" ]
1
2021-10-05T00:51:30.000Z
2021-10-05T00:51:30.000Z
ail/common/math.py
yifanwu2828/Adversarial-imitation-learning
8c0049ab75fd63ce600542d95fc392e9de2f5d50
[ "MIT" ]
null
null
null
ail/common/math.py
yifanwu2828/Adversarial-imitation-learning
8c0049ab75fd63ce600542d95fc392e9de2f5d50
[ "MIT" ]
null
null
null
from math import pi, log from itertools import accumulate from typing import Union, List import numpy as np import torch as th from torch import nn import torch.nn.functional as F from scipy.signal import lfilter from ail.common.utils import zip_strict LOG2PI = log(2 * pi) def pure_discount_cumsum(x: Union[list, ...
33.150602
108
0.643831
40d04329095ca33d0fd25575157860aa9600c883
1,898
py
Python
time/datetime_test.py
DaviNakamuraCardoso/Projeto-ATMCP
ac4bbde04294681091d916e83c20c27be67c623a
[ "MIT" ]
null
null
null
time/datetime_test.py
DaviNakamuraCardoso/Projeto-ATMCP
ac4bbde04294681091d916e83c20c27be67c623a
[ "MIT" ]
null
null
null
time/datetime_test.py
DaviNakamuraCardoso/Projeto-ATMCP
ac4bbde04294681091d916e83c20c27be67c623a
[ "MIT" ]
null
null
null
import datetime import time print(datetime.datetime.now()) dt = datetime.datetime(2019, 10, 21, 16, 29, 0) print(dt) print(dt.year, dt.month, dt.day, dt.hour, dt.minute, dt.second) print(datetime.datetime.fromtimestamp(1_000_000_000)) print(datetime.datetime.fromtimestamp(time.time())) today = datetime.datetime.now() ...
36.5
115
0.747629
a5a3cc22f33ffe08bffd6ae2b1ea9f91ed65377c
10,303
py
Python
lib_pypy/pyrepl/historical_reader.py
akercheval/espy
f8317d2f01ba726ed4f03cab081176c32ae4cac4
[ "Apache-2.0", "OpenSSL" ]
4
2019-02-11T06:58:43.000Z
2020-03-15T14:12:32.000Z
lib_pypy/pyrepl/historical_reader.py
akercheval/espy
f8317d2f01ba726ed4f03cab081176c32ae4cac4
[ "Apache-2.0", "OpenSSL" ]
null
null
null
lib_pypy/pyrepl/historical_reader.py
akercheval/espy
f8317d2f01ba726ed4f03cab081176c32ae4cac4
[ "Apache-2.0", "OpenSSL" ]
null
null
null
# Copyright 2000-2004 Michael Hudson-Doyle <micahel@gmail.com> # # All Rights Reserved # # # Permission to use, copy, modify, and distribute this software and # its documentation for any purpose is hereby granted without fee, # provided that the above copyright notice appear in all copies and #...
33.128617
83
0.581772
332eaacaced718dbfd63af7e550dcbb96baa64ad
788
py
Python
ietf/codestand/matches/forms.py
wpjesus/codematch
eee7405259cce9239ea0545a2a1300ee1accfe94
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2015-09-02T19:53:12.000Z
2015-09-02T19:53:12.000Z
ietf/codestand/matches/forms.py
wpjesus/codematch
eee7405259cce9239ea0545a2a1300ee1accfe94
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
ietf/codestand/matches/forms.py
wpjesus/codematch
eee7405259cce9239ea0545a2a1300ee1accfe94
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
from django import forms from django.forms import ModelForm from ietf.codestand.matches.models import ProjectContainer, CodingProject, Implementation, ProjectContact class SearchForm(forms.Form): search = forms.CharField(label="Search", max_length=255, required=False) class LinkImplementationForm(ModelForm): ...
24.625
105
0.703046
1d3c8e1c7243a4d148e39da4a2a240bab859dbe4
909
py
Python
Python/python_basics/romanCript.py
paulolima18/ProgrammingMesh
2b91085fa5010e73a3bc1f3d9f02c20ce46eb8df
[ "MIT" ]
3
2021-02-15T11:36:52.000Z
2021-06-27T14:21:01.000Z
Python/python_basics/romanCript.py
paulolima18/ProgrammingMesh
2b91085fa5010e73a3bc1f3d9f02c20ce46eb8df
[ "MIT" ]
null
null
null
Python/python_basics/romanCript.py
paulolima18/ProgrammingMesh
2b91085fa5010e73a3bc1f3d9f02c20ce46eb8df
[ "MIT" ]
null
null
null
def encript(string,key):#code a certain message (key = times moved) library = (('a','z'),('A','P'),('0','9'),(' ','/')) new_string = "" for old_c in string: for lib_c in library: n_chars = ord(lib_c[1]) - ord(lib_c[0]) + 1 #number of chars in sequence if old_c >= lib_c[...
39.521739
97
0.561056
0752fd30dfbdb88e51a39106a02e2d89575ff3ac
1,040
py
Python
ex32.py
chidoski/Python-Projects
1f18cdc2f56ae10d0eb641f48f949053d14b23fa
[ "MIT" ]
null
null
null
ex32.py
chidoski/Python-Projects
1f18cdc2f56ae10d0eb641f48f949053d14b23fa
[ "MIT" ]
null
null
null
ex32.py
chidoski/Python-Projects
1f18cdc2f56ae10d0eb641f48f949053d14b23fa
[ "MIT" ]
null
null
null
the_count = [1, 2, 3, 4, 5] fruits = ['apples', 'oranges', 'pears', 'apriocts'] change = [1, 'pennies', 2, 'dimes', 3, 'quarters'] #the first kind of for-loop goes through a list for number in the_count: print "This is count %d" % number #same as above for fruit in fruits: print "These are the fruit %s" % fruit #G...
25.365854
64
0.675
38062976814915cef5b02cb3f17e6eb926fd42d6
5,894
py
Python
Examples/mei.py
industrial-optimization-group/O-NAUTILUS
4a8bc1f668c05ea23e59178fba7ae9ee77f01fa1
[ "MIT" ]
null
null
null
Examples/mei.py
industrial-optimization-group/O-NAUTILUS
4a8bc1f668c05ea23e59178fba7ae9ee77f01fa1
[ "MIT" ]
null
null
null
Examples/mei.py
industrial-optimization-group/O-NAUTILUS
4a8bc1f668c05ea23e59178fba7ae9ee77f01fa1
[ "MIT" ]
null
null
null
from onautilus.preferential_func_eval import preferential_func_eval as pfe import numpy as np from optproblems.zdt import ZDT2 import pandas as pd from desdeo_problem.Problem import DataProblem from desdeo_problem.surrogatemodels.SurrogateModels import GaussianProcessRegressor from sklearn.gaussian_process.kernels impo...
30.381443
85
0.61113
8e223f11529676fbef4d4911351d56e100bb2110
1,040
py
Python
raymon/__init__.py
raymon-ai/raymon
e1b0370de1f1d55c06b3c78fd820b1c1fe65db68
[ "MIT" ]
21
2021-06-14T08:37:22.000Z
2022-03-08T05:41:54.000Z
raymon/__init__.py
raymon-ai/raymon
e1b0370de1f1d55c06b3c78fd820b1c1fe65db68
[ "MIT" ]
57
2021-01-30T08:45:13.000Z
2022-02-21T16:15:00.000Z
raymon/__init__.py
raymon-ai/raymon
e1b0370de1f1d55c06b3c78fd820b1c1fe65db68
[ "MIT" ]
1
2021-06-18T09:53:58.000Z
2021-06-18T09:53:58.000Z
from raymon.api import RaymonAPI from raymon.loggers import RaymonAPILogger from raymon.trace import Trace from raymon.tags import Tag from raymon.globals import Serializable, DataException from raymon.profiling.profiles import ModelProfile from raymon.profiling.components import ( InputComponent, OutputCompone...
23.636364
78
0.766346
7ef3f4115600fd3c2c419dce08de3a1473bbf3cc
23,683
py
Python
test/functional/swift.py
CiscoSystems/swift
d5067017f0509129d8d3e41aeff5d7c2a634643e
[ "Apache-2.0" ]
null
null
null
test/functional/swift.py
CiscoSystems/swift
d5067017f0509129d8d3e41aeff5d7c2a634643e
[ "Apache-2.0" ]
null
null
null
test/functional/swift.py
CiscoSystems/swift
d5067017f0509129d8d3e41aeff5d7c2a634643e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2010-2012 OpenStack, 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 ...
31.874832
79
0.542752
4da0edad96cc895368b6dd394dd645b062ec7093
215
py
Python
Python/ImageProcessing/show_image.py
James-McNeill/Learning
3c4fe1a64240cdf5614db66082bd68a2f16d2afb
[ "MIT" ]
null
null
null
Python/ImageProcessing/show_image.py
James-McNeill/Learning
3c4fe1a64240cdf5614db66082bd68a2f16d2afb
[ "MIT" ]
null
null
null
Python/ImageProcessing/show_image.py
James-McNeill/Learning
3c4fe1a64240cdf5614db66082bd68a2f16d2afb
[ "MIT" ]
null
null
null
# Show an image using matplotlib.pyplot import matplotlib.pyplot as plt def show_image(image, title="Image", cmap_type="gray"): plt.imshow(image, cmap=cmap_type) plt.title(title) plt.axis('off') plt.show()
23.888889
55
0.730233
1987778010788c2b7e737855a314f90be5533f53
16,668
py
Python
fiotclient/iot.py
cperd/fiot-client-ngsi-python
450e5a00a106619e9b7d70c168b09a27aa87c216
[ "MIT" ]
2
2017-11-22T19:30:39.000Z
2018-05-15T16:33:11.000Z
fiotclient/iot.py
cperd/fiot-client-ngsi-python
450e5a00a106619e9b7d70c168b09a27aa87c216
[ "MIT" ]
6
2017-12-01T13:19:12.000Z
2017-12-22T13:38:48.000Z
fiotclient/iot.py
cperd/fiot-client-ngsi-python
450e5a00a106619e9b7d70c168b09a27aa87c216
[ "MIT" ]
1
2021-01-21T13:01:58.000Z
2021-01-21T13:01:58.000Z
import json import logging import paho.mqtt.publish as publish from . import BaseClient from .config import FiwareConfig class FiwareIotClient(BaseClient): def __init__(self, fiware_config: FiwareConfig): """Client for doing IoT management operations on FIWARE platform :param fiware_config: Th...
43.069767
120
0.62341
7087421cda2b238d770fa15b8f6965814c9e344f
1,428
py
Python
Classes.py
migcq/IncidentesVialesCDMX
a057c7a7794d4b3d93536019d77cc809758191ec
[ "MIT" ]
null
null
null
Classes.py
migcq/IncidentesVialesCDMX
a057c7a7794d4b3d93536019d77cc809758191ec
[ "MIT" ]
null
null
null
Classes.py
migcq/IncidentesVialesCDMX
a057c7a7794d4b3d93536019d77cc809758191ec
[ "MIT" ]
null
null
null
import pandas as pd from dataclasses import dataclass from decorators import open_close_connection @dataclass class Datos(): path:str def read_data(self,sep=","): data = pd.read_csv(self.path, sep=sep) return data def unique_values(self,data,column): v...
26.444444
119
0.609944
4df1e0322bc088d471b5f3ae55f426410a25b88a
320
py
Python
configs/_base_/schedules/schedule_2x.py
ruiningTang/mmdetection
100b0b5e0edddc45af0812b9f1474493c61671ef
[ "Apache-2.0" ]
null
null
null
configs/_base_/schedules/schedule_2x.py
ruiningTang/mmdetection
100b0b5e0edddc45af0812b9f1474493c61671ef
[ "Apache-2.0" ]
null
null
null
configs/_base_/schedules/schedule_2x.py
ruiningTang/mmdetection
100b0b5e0edddc45af0812b9f1474493c61671ef
[ "Apache-2.0" ]
null
null
null
# optimizer optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0001) optimizer_config = dict(grad_clip=None) # learning policy lr_config = dict( policy='step', warmup='linear', warmup_iters=500, warmup_ratio=0.001, step=[16, 22]) runner = dict(type='EpochBasedRunner', max_epochs=24)
26.666667
72
0.7
01e26735778b488036462ffc7557d0ec49d0a730
10,742
py
Python
qa/rpc-tests/maxuploadtarget.py
ParadigmCurrency/Paradigm
5ad60c3b96bc94b59f0bdade442330cda654f61b
[ "MIT" ]
null
null
null
qa/rpc-tests/maxuploadtarget.py
ParadigmCurrency/Paradigm
5ad60c3b96bc94b59f0bdade442330cda654f61b
[ "MIT" ]
null
null
null
qa/rpc-tests/maxuploadtarget.py
ParadigmCurrency/Paradigm
5ad60c3b96bc94b59f0bdade442330cda654f61b
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # from test_framework.mininode import * from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * import time '''...
40.383459
140
0.654999
757df1a2bb4eb1f1d81a3c44adf16c93f808ec36
1,684
py
Python
repos/.cache/init.vim/.dein/rplugin/python3/deoplete/source/around.py
adaschevici/neovm
93f9589bca95b239c63d0e56164232be1b9eadc5
[ "MIT" ]
null
null
null
repos/.cache/init.vim/.dein/rplugin/python3/deoplete/source/around.py
adaschevici/neovm
93f9589bca95b239c63d0e56164232be1b9eadc5
[ "MIT" ]
null
null
null
repos/.cache/init.vim/.dein/rplugin/python3/deoplete/source/around.py
adaschevici/neovm
93f9589bca95b239c63d0e56164232be1b9eadc5
[ "MIT" ]
null
null
null
# ============================================================================ # FILE: around.py # AUTHOR: Khalidov Oleg <brooth at gmail.com> # License: MIT license # ============================================================================ import re from .base import Base from deoplete.util import parse_buffer_p...
31.773585
78
0.499406
94256d010db4f43e226a02d8da4f592b0bd43b32
5,662
py
Python
donkeycar/parts/camera.py
walzimmer/donkey
b73596400040ce881c0a319b0a4cc3cbd05226da
[ "MIT" ]
null
null
null
donkeycar/parts/camera.py
walzimmer/donkey
b73596400040ce881c0a319b0a4cc3cbd05226da
[ "MIT" ]
null
null
null
donkeycar/parts/camera.py
walzimmer/donkey
b73596400040ce881c0a319b0a4cc3cbd05226da
[ "MIT" ]
null
null
null
import os import time import numpy as np from PIL import Image import glob from donkeycar.utils import rgb2gray class BaseCamera: def run_threaded(self): return self.frame class PiCamera(BaseCamera): # def __init__(self, image_w=160, image_h=120, image_d=3, framerate=20): def __init__(self, ima...
30.117021
95
0.5929
069c58a0cd3d5efb25acbb2f3e20342d4b1ce28a
5,524
py
Python
app.py
lhandalb/covid-bot
a08d52e1d490fccf40f7376160238d5d4e516a5d
[ "MIT" ]
null
null
null
app.py
lhandalb/covid-bot
a08d52e1d490fccf40f7376160238d5d4e516a5d
[ "MIT" ]
null
null
null
app.py
lhandalb/covid-bot
a08d52e1d490fccf40f7376160238d5d4e516a5d
[ "MIT" ]
null
null
null
from flask import Flask, request import requests import json from twilio.twiml.messaging_response import MessagingResponse app = Flask(__name__) @app.route('/', methods=['POST']) def bot(): incoming_msg = request.values.get('Body', '').lower() resp = MessagingResponse() msg = resp.message() text = ""...
55.79798
889
0.607712
04357d59311ab917eff508fe116edb8a3e7b7a8b
3,882
py
Python
mockito/verification.py
zhilts/pymockito
7b9aadd96e4ad4a1fc0521b9eb49d652100e0354
[ "MIT" ]
null
null
null
mockito/verification.py
zhilts/pymockito
7b9aadd96e4ad4a1fc0521b9eb49d652100e0354
[ "MIT" ]
null
null
null
mockito/verification.py
zhilts/pymockito
7b9aadd96e4ad4a1fc0521b9eb49d652100e0354
[ "MIT" ]
null
null
null
# Copyright (c) 2008-2013 Szczepan Faber, Serhiy Oplakanets, Herr Kaste # # 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 ...
41.297872
128
0.722566
09f3259a58cca2639977adc7fd9b5cc28973fa08
645
py
Python
jcatalog/match/getlists.py
ednilson/jcatalog
e36188e39fbf37c74e37445060e1bafa18a3e20b
[ "BSD-2-Clause" ]
null
null
null
jcatalog/match/getlists.py
ednilson/jcatalog
e36188e39fbf37c74e37445060e1bafa18a3e20b
[ "BSD-2-Clause" ]
null
null
null
jcatalog/match/getlists.py
ednilson/jcatalog
e36188e39fbf37c74e37445060e1bafa18a3e20b
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 ''' This script get lists from SciELO collection. ''' import os import sys import models PROJECT_PATH = os.path.abspath(os.path.dirname('')) sys.path.append(PROJECT_PATH) class Scielo(object): # return a list of ISSNs def issn_list(self): issn_list = [] for doc in models.Scie...
20.806452
51
0.63876
135ff615457c56f04424f15c952d1ab2a35f028e
6,219
py
Python
pvn3d/lib/utils/etw_pytorch_utils/viz.py
JiazeWang/PVN3D
07241f5e0de488c123cd78f516a707bff207c2e0
[ "MIT" ]
369
2019-11-12T08:27:08.000Z
2022-03-28T08:33:14.000Z
pvn3d/lib/utils/etw_pytorch_utils/viz.py
hansongfang/PVN3D
1f0216505faa543ac2367cf485e0703cabcaefa0
[ "MIT" ]
99
2019-11-27T12:48:49.000Z
2022-03-23T07:15:24.000Z
pvn3d/lib/utils/etw_pytorch_utils/viz.py
hansongfang/PVN3D
1f0216505faa543ac2367cf485e0703cabcaefa0
[ "MIT" ]
102
2019-11-20T13:14:16.000Z
2022-03-31T08:05:29.000Z
from __future__ import ( division, absolute_import, with_statement, print_function, unicode_literals, ) import numpy as np # import visdom import time from tqdm import tqdm import collections __all__ = ["VisdomViz", "CmdLineViz"] class _DefaultVizCallback(object): def __init__(self): ...
30.485294
89
0.533687