hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
7980e8d731a48db97506c66def43c867f58849d4
31,148
py
Python
stable_baselines/ppo2/ppo2.py
Ow-woo/stable-baselines
ece376f62b0eaa3b58e90593b7db5fb9de3d82c5
[ "MIT" ]
1
2021-03-03T14:59:11.000Z
2021-03-03T14:59:11.000Z
stable_baselines/ppo2/ppo2.py
Ow-woo/stable-baselines
ece376f62b0eaa3b58e90593b7db5fb9de3d82c5
[ "MIT" ]
null
null
null
stable_baselines/ppo2/ppo2.py
Ow-woo/stable-baselines
ece376f62b0eaa3b58e90593b7db5fb9de3d82c5
[ "MIT" ]
4
2019-10-07T23:11:26.000Z
2021-08-24T13:00:40.000Z
import time import gym import numpy as np import tensorflow as tf from stable_baselines import logger from stable_baselines.common import explained_variance, ActorCriticRLModel, tf_util, SetVerbosity, TensorboardWriter from stable_baselines.common.runners import AbstractEnvRunner from stable_baselines.common.policies...
54.741652
149
0.589251
7980e8d9cd8783ea55cedf1d9fef7438b382ce64
36,607
py
Python
sitcpy/rbcp_server.py
BeeBeansTechnologies/sitcpy
9c13cd97f4f46c4d7634354478754cb24025bea4
[ "MIT" ]
8
2018-07-12T01:08:29.000Z
2021-04-12T20:37:46.000Z
sitcpy/rbcp_server.py
BeeBeansTechnologies/sitcpy
9c13cd97f4f46c4d7634354478754cb24025bea4
[ "MIT" ]
1
2019-04-26T05:49:56.000Z
2019-04-26T08:44:49.000Z
sitcpy/rbcp_server.py
BeeBeansTechnologies/sitcpy
9c13cd97f4f46c4d7634354478754cb24025bea4
[ "MIT" ]
2
2020-08-05T08:25:24.000Z
2020-08-29T11:26:31.000Z
# -*- coding:utf-8 -*- """ SiTCP RBCP pseudo server Copyright (c) 2018, Bee Beans Technologies Co.,Ltd. """ from __future__ import print_function import argparse from contextlib import closing import copy from logging import getLogger, StreamHandler, INFO import os import select import socket import struct import t...
36.57043
118
0.566995
7980e944c923fb54018fcd4a2adea69c5b84d975
683
py
Python
apps/challenges/migrations/0067_add_submission_meta_attribute_field_to_challenge_phase.py
Anustup900/EvalAI
c7263300d1e80734551d6cd842b354ad664a8320
[ "BSD-3-Clause" ]
1
2020-10-17T20:35:10.000Z
2020-10-17T20:35:10.000Z
apps/challenges/migrations/0067_add_submission_meta_attribute_field_to_challenge_phase.py
Anustup900/EvalAI
c7263300d1e80734551d6cd842b354ad664a8320
[ "BSD-3-Clause" ]
65
2020-12-14T08:27:18.000Z
2022-03-26T21:12:42.000Z
apps/challenges/migrations/0067_add_submission_meta_attribute_field_to_challenge_phase.py
Anustup900/EvalAI
c7263300d1e80734551d6cd842b354ad664a8320
[ "BSD-3-Clause" ]
1
2021-02-13T17:47:16.000Z
2021-02-13T17:47:16.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.23 on 2020-06-30 05:49 from __future__ import unicode_literals import django.contrib.postgres.fields.jsonb from django.db import migrations class Migration(migrations.Migration): dependencies = [ ( "challenges", "0066_added_is_pa...
25.296296
87
0.63104
7980ead257f61c0ee87e9fb8b04db0813eb6997e
13,427
py
Python
databear/databearDB.py
chrisrycx/pyDataLogger
21094da9de54ab467519a26680247ddc3efa6696
[ "MIT" ]
1
2020-09-25T16:25:09.000Z
2020-09-25T16:25:09.000Z
databear/databearDB.py
chrisrycx/pyDataLogger
21094da9de54ab467519a26680247ddc3efa6696
[ "MIT" ]
4
2020-10-06T17:16:58.000Z
2020-12-18T17:06:16.000Z
databear/databearDB.py
chrisrycx/pyDataLogger
21094da9de54ab467519a26680247ddc3efa6696
[ "MIT" ]
2
2020-03-24T14:32:29.000Z
2020-08-05T17:38:24.000Z
''' DataBear database manager class - init: Connect to database (databear.db) or create if none - load_sensor: Loads measurements to database from sensor_class - Various get/set methods ''' import os import sys import sqlite3 import importlib #-------- Database Initialization and Setup ------ class DataBearDB: ...
33.821159
104
0.595814
7980eadb1fa012802e01e5b767d342b9a107e821
9,183
py
Python
src/sage/categories/finite_dimensional_graded_lie_algebras_with_basis.py
bopopescu/sage
2d495be78e0bdc7a0a635454290b27bb4f5f70f0
[ "BSL-1.0" ]
3
2018-09-11T11:16:26.000Z
2019-09-10T15:26:37.000Z
src/sage/categories/finite_dimensional_graded_lie_algebras_with_basis.py
bopopescu/sage
2d495be78e0bdc7a0a635454290b27bb4f5f70f0
[ "BSL-1.0" ]
2
2018-10-30T13:40:20.000Z
2020-07-23T12:13:30.000Z
src/sage/categories/finite_dimensional_graded_lie_algebras_with_basis.py
bopopescu/sage
2d495be78e0bdc7a0a635454290b27bb4f5f70f0
[ "BSL-1.0" ]
3
2020-03-29T17:13:36.000Z
2021-05-03T18:11:28.000Z
r""" Finite Dimensional Graded Lie Algebras With Basis AUTHORS: - Eero Hakavuori (2018-08-16): initial version """ # **************************************************************************** # Copyright (C) 2018 Eero Hakavuori <eero.hakavuori@gmail.com> # # This program is free software: you can redistribut...
40.453744
97
0.503321
7980eb01cdc57a51bb17e5e5dd2b118e1b1bfc19
4,085
py
Python
apps/jobbrowser/src/jobbrowser/apis/bundle_api.py
sandeepreddy3647/hue-1
03981c392ef35ae52052fb94549ec3a7b7074b8d
[ "Apache-2.0" ]
1
2020-05-17T06:40:33.000Z
2020-05-17T06:40:33.000Z
apps/jobbrowser/src/jobbrowser/apis/bundle_api.py
sandeepreddy3647/hue-1
03981c392ef35ae52052fb94549ec3a7b7074b8d
[ "Apache-2.0" ]
3
2020-04-06T07:09:33.000Z
2021-05-10T17:02:07.000Z
apps/jobbrowser/src/jobbrowser/apis/bundle_api.py
sandeepreddy3647/hue-1
03981c392ef35ae52052fb94549ec3a7b7074b8d
[ "Apache-2.0" ]
1
2020-07-25T19:38:10.000Z
2020-07-25T19:38:10.000Z
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
31.183206
115
0.670991
7980eb554101d6e3913062acbf6f47d3af21b4dc
408
py
Python
request.py
CristopherNim/student_performance
f1ec90329e91c44a8155d83c0ac1569eb038954e
[ "MIT" ]
null
null
null
request.py
CristopherNim/student_performance
f1ec90329e91c44a8155d83c0ac1569eb038954e
[ "MIT" ]
null
null
null
request.py
CristopherNim/student_performance
f1ec90329e91c44a8155d83c0ac1569eb038954e
[ "MIT" ]
null
null
null
# import requests # # url = 'http://localhost:5000/results' # # r = requests.post(url, json={'gender': 'female', 'race': 'group E', # 'parental_level_of_education': 'some high school', 'lunch': 'standard', # 'test_preparation_course': 'none', 'reading_scor...
34
103
0.5
7980ebfffedcb74b509fd6974b59e2ce7dbb7533
267
py
Python
p26.py
AI-Rabbit/Python-problems
3782abaa78b7835c197d008531001b50c5e632c6
[ "MIT" ]
null
null
null
p26.py
AI-Rabbit/Python-problems
3782abaa78b7835c197d008531001b50c5e632c6
[ "MIT" ]
null
null
null
p26.py
AI-Rabbit/Python-problems
3782abaa78b7835c197d008531001b50c5e632c6
[ "MIT" ]
null
null
null
# p26.py Grade = input() if Grade == 'A': print('90 100') elif Grade == 'B': print('80 89') elif Grade == 'C': print('70 79') elif Grade == 'D': print('60 69') elif Grade == 'E': print('50 59') elif Grade == 'F': print('0 49')
16.6875
20
0.475655
7980ec2bfa3892edd362c1f8e499a20673a370ce
3,166
py
Python
generate.py
adgorithmics-inc/cinnamon-python-sdk
804e7d00bb728c4d91280d7236a4dc06fefaeea0
[ "MIT" ]
null
null
null
generate.py
adgorithmics-inc/cinnamon-python-sdk
804e7d00bb728c4d91280d7236a4dc06fefaeea0
[ "MIT" ]
null
null
null
generate.py
adgorithmics-inc/cinnamon-python-sdk
804e7d00bb728c4d91280d7236a4dc06fefaeea0
[ "MIT" ]
null
null
null
# flake8: noqa import os import black BLACK_MODE = black.FileMode() from cinnamon_sdk.internals.generate import PythonCodeGenerator, get_schema print("Collecting schema...") generator = PythonCodeGenerator( get_schema( url=os.environ.get("CINNAMON_PYTHON_SDK_URL"), email=os.environ.get("CINNAMON...
41.116883
122
0.726785
7980ec89834cab20961714ed2f2159d3976f66e3
3,679
py
Python
analytics/utils.py
losolio/website
5b983e9dfaf604212aab87c51d8904ffc29527a3
[ "MIT" ]
10
2015-12-18T16:41:33.000Z
2018-11-11T08:36:46.000Z
analytics/utils.py
losolio/website
5b983e9dfaf604212aab87c51d8904ffc29527a3
[ "MIT" ]
96
2015-07-14T22:45:56.000Z
2017-07-25T19:59:48.000Z
analytics/utils.py
losolio/website
5b983e9dfaf604212aab87c51d8904ffc29527a3
[ "MIT" ]
9
2015-07-28T14:38:43.000Z
2019-01-04T17:38:42.000Z
from __future__ import absolute_import, division, unicode_literals import httplib2 import os import six from analytics.models import Analytics from apiclient.discovery import build from django.conf import settings from django.core.exceptions import ImproperlyConfigured from oauth2client.service_account import Service...
27.871212
89
0.702908
7980ed422ae2e3b4714796f8bf805c47504b6a75
11,093
py
Python
scripts/CRN_region_plotandstats.py
TheJacksonLaboratory/human-chromatin-folding-dynamics
db854a22c828b159bbdbc585be67c2928c4a4988
[ "MIT" ]
null
null
null
scripts/CRN_region_plotandstats.py
TheJacksonLaboratory/human-chromatin-folding-dynamics
db854a22c828b159bbdbc585be67c2928c4a4988
[ "MIT" ]
null
null
null
scripts/CRN_region_plotandstats.py
TheJacksonLaboratory/human-chromatin-folding-dynamics
db854a22c828b159bbdbc585be67c2928c4a4988
[ "MIT" ]
1
2021-07-10T12:01:21.000Z
2021-07-10T12:01:21.000Z
# The main contribution of this code is from Jianhao Peng # This code modify the code from Jianhao import numpy as np import pandas as pd import matplotlib.pyplot as plt import argparse from multiprocessing import Pool from tqdm import tqdm import functools import warnings import glob warnings.filterwarnin...
42.178707
180
0.57063
7980ed862038cbdc7604578bf61426455540e829
2,069
py
Python
speech/unit_tests/_fixtures.py
Fkawala/gcloud-python
b28d8fd132e1e5b0cd1b8842dff7aac372600824
[ "Apache-2.0" ]
1
2018-12-09T01:32:50.000Z
2018-12-09T01:32:50.000Z
speech/unit_tests/_fixtures.py
Fkawala/gcloud-python
b28d8fd132e1e5b0cd1b8842dff7aac372600824
[ "Apache-2.0" ]
null
null
null
speech/unit_tests/_fixtures.py
Fkawala/gcloud-python
b28d8fd132e1e5b0cd1b8842dff7aac372600824
[ "Apache-2.0" ]
1
2020-09-04T00:05:30.000Z
2020-09-04T00:05:30.000Z
# Copyright 2016 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
28.342466
74
0.556307
7980ed945df637f3dcc01d4c488f84824a5f3838
127,374
py
Python
DNN_Experiments/MaskRCNN/model.py
wmjpillow/FlameDetectionAPP
c3761c9e15adccbd084b17cd6b6f63c561c7f856
[ "MIT" ]
2
2019-12-28T21:46:18.000Z
2020-01-10T03:41:03.000Z
DNN_Experiments/MaskRCNN/model.py
wmjpillow/FlameDetectionAPP
c3761c9e15adccbd084b17cd6b6f63c561c7f856
[ "MIT" ]
10
2019-12-28T21:31:19.000Z
2020-04-12T20:01:58.000Z
DNN_Experiments/MaskRCNN/model.py
wmjpillow/FlameDetectionAPP
c3761c9e15adccbd084b17cd6b6f63c561c7f856
[ "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.242445
115
0.612064
7980ee1b455fb42594f500955d364aae73cc7ff0
11,959
py
Python
vsts/vsts/wiki/v4_0/wiki_client.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
vsts/vsts/wiki/v4_0/wiki_client.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
vsts/vsts/wiki/v4_0/wiki_client.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
61.015306
329
0.635672
7980ef32c601f809e17c1f4475707c38660a0774
5,634
py
Python
allennlp/modules/span_extractors/self_attentive_span_extractor.py
tkim135/allennlp
397f46bd83e24ad8c40a9febd2b5be49583012a6
[ "Apache-2.0" ]
null
null
null
allennlp/modules/span_extractors/self_attentive_span_extractor.py
tkim135/allennlp
397f46bd83e24ad8c40a9febd2b5be49583012a6
[ "Apache-2.0" ]
null
null
null
allennlp/modules/span_extractors/self_attentive_span_extractor.py
tkim135/allennlp
397f46bd83e24ad8c40a9febd2b5be49583012a6
[ "Apache-2.0" ]
null
null
null
import torch from overrides import overrides from allennlp.modules.span_extractors.span_extractor import SpanExtractor from allennlp.modules.time_distributed import TimeDistributed from allennlp.nn import util @SpanExtractor.register("self_attentive") class SelfAttentiveSpanExtractor(SpanExtractor): """ Compu...
48.568966
106
0.670572
7980efa72531e244c331211105e485d32d58850c
4,968
py
Python
utils.py
mesnico/RelationNetworks-CLEVR
b8e0e7af12408877c8a18d8f2802d88138605983
[ "MIT" ]
81
2018-04-06T14:43:17.000Z
2022-03-26T07:50:36.000Z
utils.py
mesnico/RelationalNetworksCLEVR
b8e0e7af12408877c8a18d8f2802d88138605983
[ "MIT" ]
9
2018-04-10T16:30:12.000Z
2021-01-18T01:32:27.000Z
utils.py
mesnico/RelationalNetworksCLEVR
b8e0e7af12408877c8a18d8f2802d88138605983
[ "MIT" ]
26
2018-04-19T10:14:36.000Z
2021-10-30T17:17:14.000Z
import json import os import pickle import re import torch from tqdm import tqdm classes = { 'number':['0','1','2','3','4','5','6','7','8','9','10'], 'material':['rubber','metal'], 'color':['cyan','blue','yellow','purple','red','green','gray','brown'], 'shape':['sphere'...
32.900662
108
0.611312
7980f07d0283c0bf89459ed647c454024e7cc996
5,378
py
Python
src/explorer-pygame-display.py
frastlin/CamIO-Python
bf6f7d7fa29f4e80b732d5275f00e907799dca5f
[ "Apache-2.0" ]
1
2019-01-03T00:04:29.000Z
2019-01-03T00:04:29.000Z
src/explorer-pygame-display.py
frastlin/CamIO-Python
bf6f7d7fa29f4e80b732d5275f00e907799dca5f
[ "Apache-2.0" ]
1
2019-01-03T00:59:16.000Z
2019-01-03T00:59:16.000Z
src/explorer-pygame-display.py
jamesmcoughlan/CamIO-Python
6544d060cc3a86505ef79781f9631e8b4083aed3
[ "Apache-2.0" ]
null
null
null
#explorer-pygame-display.py #(c) James Coughlan, Smith-Kettlewell Eye Research Institute #This modifies explorer.py by displaying graphics using pygame rather than OpenCV, and using pygame to capture key presses. #Motivation: pygame.mixer.Channel doesn't work properly without using the pygame.display #First calculate ...
44.446281
157
0.771104
7980f100b1dd396a907bff16979b1c276048d705
45,004
py
Python
main.py
gordielachance/plugin.audio.subsonic
b9a556eded7efaeaeb749fbec19652243165f780
[ "MIT" ]
31
2016-10-22T12:59:47.000Z
2021-05-17T13:24:00.000Z
main.py
gordielachance/plugin.audio.subsonic
b9a556eded7efaeaeb749fbec19652243165f780
[ "MIT" ]
23
2016-10-04T01:17:46.000Z
2021-07-01T08:09:19.000Z
main.py
gordielachance/plugin.audio.subsonic
b9a556eded7efaeaeb749fbec19652243165f780
[ "MIT" ]
16
2016-10-07T13:44:07.000Z
2021-06-21T05:55:26.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import xbmcvfs import os import xbmcaddon import xbmcplugin import xbmcgui import json import shutil import time import hashlib import random from datetime import datetime from collections.abc import MutableMapping from collections import namedtuple # Add the /lib folder to s...
29.549573
158
0.57226
7980f239c217993603054349625537d157bf8d26
11,513
py
Python
cbm/datas/api.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
17
2021-01-18T07:27:01.000Z
2022-03-10T12:26:21.000Z
cbm/datas/api.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
4
2021-04-29T11:20:44.000Z
2021-12-06T10:19:17.000Z
cbm/datas/api.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
47
2021-01-21T08:25:22.000Z
2022-03-21T14:28:42.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # This file is part of CbM (https://github.com/ec-jrc/cbm). # Author : Guido Lemoine, Konstantinos Anastasakis # Credits : GTCAP Team # Copyright : 2021 European Commission, Joint Research Centre # License : 3-Clause BSD import os import os.path import requests fr...
38.122517
101
0.586902
7980f2b4314b03d6c75a405896fc6be3c5ad385a
2,864
py
Python
editor.py
mojies/repo
426db860d3f2a1c2cc094b9b7ccdc8f147d79f34
[ "Apache-2.0" ]
23
2018-11-26T07:45:03.000Z
2022-01-12T10:31:09.000Z
editor.py
mojies/repo
426db860d3f2a1c2cc094b9b7ccdc8f147d79f34
[ "Apache-2.0" ]
1
2020-07-27T10:58:48.000Z
2020-07-27T10:58:48.000Z
editor.py
mojies/repo
426db860d3f2a1c2cc094b9b7ccdc8f147d79f34
[ "Apache-2.0" ]
17
2019-12-11T13:47:06.000Z
2022-01-27T09:00:20.000Z
# # Copyright (C) 2008 The Android Open Source Project # # 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 la...
24.478632
74
0.622905
7980f36d37b1c559a818407077f794ee69cf0e09
1,081
tac
Python
buildbot/master/files/config/buildbot.tac
ecoal95/saltfs
4d2596794a70919c2887688d6d116f2f5bb5cf1e
[ "Apache-2.0", "MIT" ]
1
2021-01-07T18:49:38.000Z
2021-01-07T18:49:38.000Z
buildbot/master/files/config/buildbot.tac
ecoal95/saltfs
4d2596794a70919c2887688d6d116f2f5bb5cf1e
[ "Apache-2.0", "MIT" ]
null
null
null
buildbot/master/files/config/buildbot.tac
ecoal95/saltfs
4d2596794a70919c2887688d6d116f2f5bb5cf1e
[ "Apache-2.0", "MIT" ]
null
null
null
import os from twisted.application import service from buildbot.master import BuildMaster basedir = '{{ common.servo_home }}/buildbot/master' rotateLength = 10000000 maxRotatedFiles = 10 configfile = 'master.cfg' # Default umask for server umask = None # if this is a relocatable tac file, get the directory containi...
33.78125
94
0.774283
7980f39e25e50cd4b19e7c7ec9eacefd5fb27146
1,229
py
Python
tests/utils/test_libversioning.py
rbavishi/databutler
222263672dae8b519d0592a6bbe68a01dc4ce95d
[ "BSD-2-Clause" ]
null
null
null
tests/utils/test_libversioning.py
rbavishi/databutler
222263672dae8b519d0592a6bbe68a01dc4ce95d
[ "BSD-2-Clause" ]
1
2022-02-11T06:19:45.000Z
2022-02-11T06:19:45.000Z
tests/utils/test_libversioning.py
rbavishi/databutler
222263672dae8b519d0592a6bbe68a01dc4ce95d
[ "BSD-2-Clause" ]
null
null
null
import unittest from databutler.utils import multiprocess from databutler.utils.libversioning import modified_lib_env def _run_code(code: str, lib_name: str, version: str): with modified_lib_env(lib_name, version): exec(code) class LibVersioningTests(unittest.TestCase): def test_pandas_1(self): ...
35.114286
111
0.63629
7980f4bc5174436d1fea59b37d846d8fe6c07fbf
1,739
py
Python
venv/bin/rst2odt_prepstyles.py
AkioSky/FishMart
1d01d7e79812dc7cccb1b26ffc6457af6104d9f2
[ "BSD-3-Clause" ]
null
null
null
venv/bin/rst2odt_prepstyles.py
AkioSky/FishMart
1d01d7e79812dc7cccb1b26ffc6457af6104d9f2
[ "BSD-3-Clause" ]
null
null
null
venv/bin/rst2odt_prepstyles.py
AkioSky/FishMart
1d01d7e79812dc7cccb1b26ffc6457af6104d9f2
[ "BSD-3-Clause" ]
null
null
null
#!/home/osboxes/Desktop/Works/Django/saleor/venv/bin/python # $Id: rst2odt_prepstyles.py 5839 2009-01-07 19:09:28Z dkuhlman $ # Author: Dave Kuhlman <dkuhlman@rexx.com> # Copyright: This module has been placed in the public domain. """ Fix a word-processor-generated styles.odt for odtwriter use: Drop page size specif...
25.573529
75
0.641748
7980f51d007315608a017774d89ff5e2f70e64ee
13,121
py
Python
nox/src/nox/lib/packet/lldp.py
ayjazz/OESS
deadc504d287febc7cbd7251ddb102bb5c8b1f04
[ "Apache-2.0" ]
28
2015-02-04T13:59:25.000Z
2021-12-29T03:44:47.000Z
nox/src/nox/lib/packet/lldp.py
ayjazz/OESS
deadc504d287febc7cbd7251ddb102bb5c8b1f04
[ "Apache-2.0" ]
552
2015-01-05T18:25:54.000Z
2022-03-16T18:51:13.000Z
nox/src/nox/lib/packet/lldp.py
ayjazz/OESS
deadc504d287febc7cbd7251ddb102bb5c8b1f04
[ "Apache-2.0" ]
25
2015-02-04T18:48:20.000Z
2020-06-18T15:51:05.000Z
# Copyright 2008 (C) Nicira, Inc. # # This file is part of NOX. # # NOX is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # NOX is d...
29.956621
108
0.517567
7980f577ee9c9b0a53c2c32d5b4475942e26e562
98
py
Python
Sample Applications/Hex File Parser/hex-file-parser.py
sckulkarni246/python-snippets-for-embedded-programmers
9dfd0b193f86a6de54598917f3d7088a60ec4abc
[ "MIT" ]
null
null
null
Sample Applications/Hex File Parser/hex-file-parser.py
sckulkarni246/python-snippets-for-embedded-programmers
9dfd0b193f86a6de54598917f3d7088a60ec4abc
[ "MIT" ]
null
null
null
Sample Applications/Hex File Parser/hex-file-parser.py
sckulkarni246/python-snippets-for-embedded-programmers
9dfd0b193f86a6de54598917f3d7088a60ec4abc
[ "MIT" ]
null
null
null
import os import sys from helper import * hexRecordType = hex_record_type() print(hexRecordType)
14
33
0.806122
7980f5dbb421059941a4f1944f52b7f144ecdf8e
475
py
Python
taehyoungram/users/migrations/0002_auto_20180307_1713.py
TaeHyoungKwon/taehyoungram
055c9effdaa718d60e7627196754ea6b48dded20
[ "MIT" ]
null
null
null
taehyoungram/users/migrations/0002_auto_20180307_1713.py
TaeHyoungKwon/taehyoungram
055c9effdaa718d60e7627196754ea6b48dded20
[ "MIT" ]
7
2020-02-12T01:23:48.000Z
2022-03-11T23:26:02.000Z
taehyoungram/users/migrations/0002_auto_20180307_1713.py
TaeHyoungKwon/taehyoungram
055c9effdaa718d60e7627196754ea6b48dded20
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-03-07 08:13 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AlterField( ...
22.619048
88
0.618947
7980f64d4fd1b07851d1529b36c3f9161a566942
882
py
Python
plugins/sqlfluff-templater-dbt/test/generate_packages_yml.py
quannh-uet/sqlfluff
982aef19ab537e256ddc7e6fb2ac095e30959e4b
[ "MIT" ]
1
2021-12-29T18:34:20.000Z
2021-12-29T18:34:20.000Z
plugins/sqlfluff-templater-dbt/test/generate_packages_yml.py
quannh-uet/sqlfluff
982aef19ab537e256ddc7e6fb2ac095e30959e4b
[ "MIT" ]
8
2022-01-26T21:43:03.000Z
2022-01-31T10:22:02.000Z
plugins/sqlfluff-templater-dbt/test/generate_packages_yml.py
tunetheweb/sqlfluff
9504fc28af3142f3e4915b0adf5e31746df06e43
[ "MIT" ]
1
2022-01-24T10:10:43.000Z
2022-01-24T10:10:43.000Z
"""Script used for dbt templater tests.""" import os import sys from typing import Optional, Tuple from jinja2.sandbox import SandboxedEnvironment DBT_VERSION_TUPLE: Optional[Tuple[int, int]] = None try: from sqlfluff_templater_dbt.templater import DBT_VERSION_TUPLE except ImportError: pass def main(project...
28.451613
89
0.713152
7980f660b86c9f4e2d4dad6b79a7318585d464e3
1,950
py
Python
py3/examples/job_scheduler.py
bsync/dispy
511ac126806062711793a4a4ceb9ac9d8ece0417
[ "Apache-2.0" ]
null
null
null
py3/examples/job_scheduler.py
bsync/dispy
511ac126806062711793a4a4ceb9ac9d8ece0417
[ "Apache-2.0" ]
null
null
null
py3/examples/job_scheduler.py
bsync/dispy
511ac126806062711793a4a4ceb9ac9d8ece0417
[ "Apache-2.0" ]
null
null
null
# This program registers 'cluster_status' which schedules # computations when a processor is available. # job computation runs at dispynode servers def compute(path): import hashlib, time, os csum = hashlib.sha1() with open(os.path.basename(path), 'rb') as fd: while True: data = fd.read...
34.210526
81
0.639487
7980f7a3d9934f817b92212f20746df712c3a4e9
3,364
py
Python
github-sync-fork.py
saltb0rn/github-sync-fork
78180f869b87e44fc558aa65a4e6de805bee0312
[ "MIT" ]
null
null
null
github-sync-fork.py
saltb0rn/github-sync-fork
78180f869b87e44fc558aa65a4e6de805bee0312
[ "MIT" ]
null
null
null
github-sync-fork.py
saltb0rn/github-sync-fork
78180f869b87e44fc558aa65a4e6de805bee0312
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # github-fork-sync.py import argparse import subprocess import sys import os from urllib.parse import urlparse import requests git_status_cmd = None current_repo_cmd = None add_remote_cmd = None check_remote_cmd = None checkout_master_cmd = None fetch_remote_cmd = Non...
30.581818
78
0.648335
7980f7bf533ed031ff162739a6a1d03bbb19f87d
8,762
py
Python
goose3/extractors/publishdate.py
Pradhvan/goose3
bcddd802d0196f9b57ec80172740fa4a76379a9b
[ "Apache-2.0" ]
575
2017-03-13T18:34:07.000Z
2022-03-28T07:06:42.000Z
goose3/extractors/publishdate.py
Pradhvan/goose3
bcddd802d0196f9b57ec80172740fa4a76379a9b
[ "Apache-2.0" ]
101
2017-03-22T11:35:58.000Z
2022-03-29T17:23:28.000Z
goose3/extractors/publishdate.py
Pradhvan/goose3
bcddd802d0196f9b57ec80172740fa4a76379a9b
[ "Apache-2.0" ]
86
2017-03-28T17:02:24.000Z
2022-03-28T07:06:53.000Z
# -*- coding: utf-8 -*- """\ This is a python port of "Goose" orignialy licensed to Gravity.com under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Python port was written by Xavier Grangier for Recrutae Gravity.co...
29.802721
92
0.427756
7980f7e929c1582dacbf9f8c1881b98e0b4e20b4
13,159
py
Python
kubernetes/client/models/v1_api_resource.py
L3T/python
b6e4ae81a2afb49f668a142eb7d1c6e2571ef478
[ "Apache-2.0" ]
2
2020-06-21T08:03:18.000Z
2020-06-21T09:53:29.000Z
kubernetes/client/models/v1_api_resource.py
L3T/python
b6e4ae81a2afb49f668a142eb7d1c6e2571ef478
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1_api_resource.py
L3T/python
b6e4ae81a2afb49f668a142eb7d1c6e2571ef478
[ "Apache-2.0" ]
1
2020-12-10T07:28:08.000Z
2020-12-10T07:28:08.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: release-1.16 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class V1API...
35.373656
445
0.626035
7980f84cce93632befe642a7fc2e7f18f2dfb7a4
39,573
py
Python
astropy/table/operations.py
parejkoj/astropy
0a178ed9bb90ddad9cb27cc17191c7c09a213a76
[ "BSD-3-Clause" ]
null
null
null
astropy/table/operations.py
parejkoj/astropy
0a178ed9bb90ddad9cb27cc17191c7c09a213a76
[ "BSD-3-Clause" ]
2
2016-11-30T20:31:42.000Z
2016-12-02T23:50:10.000Z
astropy/table/operations.py
parejkoj/astropy
0a178ed9bb90ddad9cb27cc17191c7c09a213a76
[ "BSD-3-Clause" ]
null
null
null
""" High-level table operations: - join() - setdiff() - hstack() - vstack() - cstack() """ # Licensed under a 3-clause BSD style license - see LICENSE.rst from copy import deepcopy import collections import itertools from collections import OrderedDict, Counter from collections.abc import Mapping, Sequence import nu...
36.709647
101
0.595229
7980f8a4558b66fad01d0067830b08b34b185521
22,784
py
Python
goldsrc/bsp/import_bsp.py
half5life/SourceIO
f3dc6db92daa537acbb487ce09f371866f6e3e7f
[ "MIT" ]
null
null
null
goldsrc/bsp/import_bsp.py
half5life/SourceIO
f3dc6db92daa537acbb487ce09f371866f6e3e7f
[ "MIT" ]
null
null
null
goldsrc/bsp/import_bsp.py
half5life/SourceIO
f3dc6db92daa537acbb487ce09f371866f6e3e7f
[ "MIT" ]
null
null
null
import math from pathlib import Path from typing import Dict, Any, cast import bpy import numpy as np from .bsp_file import BspFile from .entity_handlers import entity_handlers from .lump import LumpType from .lumps.edge_lump import EdgeLump from .lumps.entity_lump import EntityLump from .lumps.face_lump import FaceL...
46.21501
112
0.621928
7980fa44fad1b8877b7e5987c6142cec116503db
2,003
py
Python
AWS/lambda_package/runbooks/AWS-SSS-008.py
nathanawmk/Prisma-Enhanced-Remediation
360b889cc5838ed548e2985c5249476062239485
[ "MIT" ]
34
2020-08-18T19:46:37.000Z
2022-03-31T05:21:29.000Z
AWS/lambda_package/runbooks/AWS-SSS-008.py
nathanawmk/Prisma-Enhanced-Remediation
360b889cc5838ed548e2985c5249476062239485
[ "MIT" ]
3
2020-08-19T23:01:29.000Z
2022-01-25T10:18:16.000Z
AWS/lambda_package/runbooks/AWS-SSS-008.py
nathanawmk/Prisma-Enhanced-Remediation
360b889cc5838ed548e2985c5249476062239485
[ "MIT" ]
23
2020-09-11T03:52:04.000Z
2022-03-22T09:32:02.000Z
""" Remediate Prisma Policy: AWS:SSS-008 S3 Bucket has Global ACL Permissions enabled Description: Remove the existence of Global ACL permissions on S3 Bucket for the All Users and Authenticated Users groups. Required Permissions: - s3:GetBucketAcl - s3:PutBucketAcl Sample IAM Policy: { "Version": "2012-10-17"...
20.232323
109
0.656016
7980faf412ad25040317395896a1a155c4533e96
1,224
py
Python
setup-gpu.py
Jeansding/Malaya
fdf1af178ecc5ec4575298612101362ccc4a94fb
[ "MIT" ]
2
2019-06-23T20:19:22.000Z
2020-04-16T13:02:32.000Z
setup-gpu.py
Jeansding/Malaya
fdf1af178ecc5ec4575298612101362ccc4a94fb
[ "MIT" ]
null
null
null
setup-gpu.py
Jeansding/Malaya
fdf1af178ecc5ec4575298612101362ccc4a94fb
[ "MIT" ]
null
null
null
import setuptools __packagename__ = 'malaya-gpu' setuptools.setup( name = __packagename__, packages = setuptools.find_packages(), version = '2.3.0', python_requires = '>=3.6.*', description = 'Natural-Language-Toolkit for bahasa Malaysia, powered by Deep Learning. GPU Version', author = 'huse...
27.818182
104
0.577614
7980fc2453c4a25582390d6b6b33b06d4ade1573
7,801
py
Python
heat/tests/openstack/designate/test_recordset.py
noironetworks/heat
7cdadf1155f4d94cf8f967635b98e4012a7acfb7
[ "Apache-2.0" ]
1
2018-07-04T07:59:26.000Z
2018-07-04T07:59:26.000Z
heat/tests/openstack/designate/test_recordset.py
noironetworks/heat
7cdadf1155f4d94cf8f967635b98e4012a7acfb7
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
heat/tests/openstack/designate/test_recordset.py
noironetworks/heat
7cdadf1155f4d94cf8f967635b98e4012a7acfb7
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # ...
36.115741
79
0.629406
7980fd10697c1a0f0efa510f954a7a22273048e7
27,237
py
Python
mkt/webapps/tests/test_tasks.py
Witia1/zamboni
b1e2d5d475abff2fa5d4990415a06adee33bd647
[ "BSD-3-Clause" ]
null
null
null
mkt/webapps/tests/test_tasks.py
Witia1/zamboni
b1e2d5d475abff2fa5d4990415a06adee33bd647
[ "BSD-3-Clause" ]
null
null
null
mkt/webapps/tests/test_tasks.py
Witia1/zamboni
b1e2d5d475abff2fa5d4990415a06adee33bd647
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import datetime import hashlib import json import os import tarfile from copy import deepcopy from tempfile import mkdtemp from django.conf import settings from django.core import mail from django.core.management import call_command from django.core.urlresolvers import reverse import mock from...
38.416079
79
0.639645
7980fd9799e63b0bf1bc05bdf0bc489e03e8dc28
1,749
py
Python
network/feast.py
anonymouskddsubmission1557/anonymouskddsubmission1557
a4645dd84070c32fc8e120a03a7a1c4ad6987a5f
[ "Apache-2.0" ]
null
null
null
network/feast.py
anonymouskddsubmission1557/anonymouskddsubmission1557
a4645dd84070c32fc8e120a03a7a1c4ad6987a5f
[ "Apache-2.0" ]
null
null
null
network/feast.py
anonymouskddsubmission1557/anonymouskddsubmission1557
a4645dd84070c32fc8e120a03a7a1c4ad6987a5f
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch_geometric.nn import FeaStConv class FeaST1(nn.Module): def __init__(self, nfeat, nhid, nclass, dropout,nlayer=1): super(FeaST1, self).__init__() self.conv1 = FeaStConv(nfeat, nclass) self.dropout_p = ...
30.684211
85
0.595769
7980fe72a80d5bb28177a6ee9d8dce155de85bb0
658
py
Python
src/analyzation/analysis.py
sa616473/lendingCompany
6bb26a8c482e45b113b12c17186495eb2d1020c0
[ "MIT" ]
1
2020-09-12T18:07:25.000Z
2020-09-12T18:07:25.000Z
src/analyzation/analysis.py
sa616473/lendingCompany
6bb26a8c482e45b113b12c17186495eb2d1020c0
[ "MIT" ]
null
null
null
src/analyzation/analysis.py
sa616473/lendingCompany
6bb26a8c482e45b113b12c17186495eb2d1020c0
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np lending_data_info = pd.read_csv('../data/raw/lending_club_info.csv', index_col='LoanStatNew') def feat_info(col_name): ''' Takes the column name or list of names and prints their features ''' print(lending_data_info.loc[col_name]['Description']) def fill...
23.5
93
0.662614
7980fe7ba5d618455ad2da5b9cefc7b229037d9e
3,923
py
Python
train_and_test_urls_autoencoder.py
sonali-priyadarshini/anomaly-system
36e651fe94b2ac408ab8a92b57d2c67312cf8415
[ "MIT" ]
28
2018-07-01T09:35:48.000Z
2022-03-31T02:11:37.000Z
train_and_test_urls_autoencoder.py
sonali-priyadarshini/anomaly-system
36e651fe94b2ac408ab8a92b57d2c67312cf8415
[ "MIT" ]
1
2022-03-31T03:01:19.000Z
2022-03-31T16:39:38.000Z
train_and_test_urls_autoencoder.py
sonali-priyadarshini/anomaly-system
36e651fe94b2ac408ab8a92b57d2c67312cf8415
[ "MIT" ]
10
2018-07-08T15:00:32.000Z
2022-03-31T16:21:51.000Z
# Version: 1.0 - 2018/06/29 # Contact: walid.daboubi@gmail.com import pandas as pd import matplotlib.pyplot as plt from sklearn.model_selection import train_test_split from keras.layers import Input, Dense from keras import regularizers from keras.models import Model, load_model from keras.callbacks import ModelCheckp...
34.412281
189
0.69972
7980fec7d0a2af03fec99c5150f7fa067392d2a3
1,416
py
Python
src/datasets/investigate_dataset/jview.py
qin-yu/Plantseg-Cellpose-Augmentation
1a3891a870bf674a316ba985353294736bcd2a18
[ "MIT" ]
1
2022-02-28T19:37:36.000Z
2022-02-28T19:37:36.000Z
src/datasets/investigate_dataset/jview.py
qin-yu/Plantseg-Cellpose-Augmentation
1a3891a870bf674a316ba985353294736bcd2a18
[ "MIT" ]
null
null
null
src/datasets/investigate_dataset/jview.py
qin-yu/Plantseg-Cellpose-Augmentation
1a3891a870bf674a316ba985353294736bcd2a18
[ "MIT" ]
1
2022-02-28T19:37:39.000Z
2022-02-28T19:37:39.000Z
import skimage.io import h5py import numpy as np import matplotlib.pyplot as plt def describe(im, name = None): if name is not None: print(name) print(f"\tdtype: {im.dtype}") print(f"\tshape: {im.shape}") print(f"\tmin: {im.min()}") print(f"\tmean: {im.mean()}") print(f"\tmax: {im.max()}") de...
25.745455
68
0.616525
798101d8cbdb1213fa2c85533363503ca9b69f98
6,136
py
Python
datastructuretools/cache.py
hayj/DataStructureTools
b4b89a9e8db5d23ab746180da0dc0349c53ca73b
[ "MIT" ]
1
2019-05-13T08:38:16.000Z
2019-05-13T08:38:16.000Z
datastructuretools/cache.py
hayj/DataStructureTools
b4b89a9e8db5d23ab746180da0dc0349c53ca73b
[ "MIT" ]
null
null
null
datastructuretools/cache.py
hayj/DataStructureTools
b4b89a9e8db5d23ab746180da0dc0349c53ca73b
[ "MIT" ]
null
null
null
from systemtools.basics import * from systemtools.duration import * from systemtools.printer import * from threading import Lock class Cache: """ A dict-like class that periodicaly clean values that receive less actions (read / write). It remove values randomly among those having less actions until reaching a cer...
30.989899
318
0.688559
798102964e673feea4c8fb7018f6fe7eeb2faba7
9,722
py
Python
glue.py
theblackcat102/ALBERT-Pytorch
eebf3465cbc82c643dbe561b480bed0116f34d21
[ "Apache-2.0" ]
25
2020-01-10T09:06:51.000Z
2021-12-16T08:14:40.000Z
glue.py
theblackcat102/ALBERT-Pytorch
eebf3465cbc82c643dbe561b480bed0116f34d21
[ "Apache-2.0" ]
null
null
null
glue.py
theblackcat102/ALBERT-Pytorch
eebf3465cbc82c643dbe561b480bed0116f34d21
[ "Apache-2.0" ]
8
2020-01-10T09:40:02.000Z
2021-04-01T19:57:28.000Z
# Copyright 2018 Dong-Hyun Lee, Kakao Brain. # (Strongly inspired by original Google BERT code and Hugging Face's code) """ Fine-tuning on A Classification Task with pretrained Transformer """ import itertools import csv import os import torch import torch.nn as nn from torch.utils.data import Dataset, DataLoader fro...
35.224638
90
0.623226
798102c6bacd67e76bdd4a6121eccd545916582f
7,830
py
Python
src/algorithms/classic/sample_based/ompl_lazyrrt.py
ed741/PathBench
50fe138eb1f824f49fe1a862705e435a1c3ec3ae
[ "BSD-3-Clause" ]
46
2020-12-25T04:09:15.000Z
2022-03-25T12:32:42.000Z
src/algorithms/classic/sample_based/ompl_lazyrrt.py
ed741/PathBench
50fe138eb1f824f49fe1a862705e435a1c3ec3ae
[ "BSD-3-Clause" ]
36
2020-12-21T16:10:02.000Z
2022-01-03T01:42:01.000Z
src/algorithms/classic/sample_based/ompl_lazyrrt.py
judicaelclair/PathBenchURO
101e67674efdfa8e27e1cf7787dac9fdf99552fe
[ "BSD-3-Clause" ]
11
2021-01-06T23:34:12.000Z
2022-03-21T17:21:47.000Z
#!/usr/bin/env python import numpy as np from algorithms.algorithm import Algorithm from algorithms.basic_testing import BasicTesting from algorithms.configuration.entities.agent import Agent from algorithms.configuration.entities.goal import Goal from algorithms.configuration.maps.map import Map from algorithms.c...
30.466926
124
0.642912
798102d8754db5b906464dd01c163c37762f24f1
1,677
py
Python
setup.py
leebrian/version_information
bd764a34faef8fdbe2b44ba188ad419e878284e9
[ "CC-BY-3.0" ]
1
2021-08-10T15:01:06.000Z
2021-08-10T15:01:06.000Z
setup.py
leebrian/version_information
bd764a34faef8fdbe2b44ba188ad419e878284e9
[ "CC-BY-3.0" ]
null
null
null
setup.py
leebrian/version_information
bd764a34faef8fdbe2b44ba188ad419e878284e9
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python """Version information: IPython extension command for displaying version information about selected Python modules. """ DOCLINES = __doc__.split('\n') CLASSIFIERS = """\ License :: OSI Approved :: BSD License Programming Language :: Python Programming Language :: Python :: 3 Operating System ::...
25.409091
87
0.715564
798103f28fbc0151a1c05fd531d507c4fbcca4fc
4,195
py
Python
lib/JumpScale/baselib/code/cmdutils/__init__.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
1
2015-10-26T10:38:13.000Z
2015-10-26T10:38:13.000Z
lib/JumpScale/baselib/code/cmdutils/__init__.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
null
null
null
lib/JumpScale/baselib/code/cmdutils/__init__.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
null
null
null
from JumpScale import j import JumpScale.baselib.jpackages #load jpackages import argparse import sys class ArgumentParser(argparse.ArgumentParser): def exit(self, status=0, message=None): if message: self._print_message(message, sys.stderr) if j.application.state == "RUNNING": ...
39.205607
195
0.643147
7981046ee0be9f71f539ae76d8fedc3565014a7b
21,009
py
Python
lib/core/utils.py
DefenceLogic/Osmedeus
2aab82ea629016445d19afcfdd0e5917def19c6e
[ "MIT" ]
3,602
2018-11-10T18:09:14.000Z
2021-12-31T13:58:44.000Z
lib/core/utils.py
DefenceLogic/Osmedeus
2aab82ea629016445d19afcfdd0e5917def19c6e
[ "MIT" ]
187
2019-01-10T17:05:15.000Z
2021-12-23T11:59:22.000Z
lib/core/utils.py
nirsarkar/Osmedeus
1690d35ddeda86f71bdf6a538faaf19b739d9347
[ "MIT" ]
737
2018-11-15T14:15:22.000Z
2021-12-27T06:34:41.000Z
import os import sys import glob import json import requests import time import ipaddress import socket import shutil import random import hashlib import base64 import re import copy from ast import literal_eval from pathlib import Path from itertools import chain import inspect import uuid from bs4 import BeautifulSou...
24.745583
110
0.619211
798104f465458fe16b386798fb71c9bf767717a9
683
py
Python
homepage/users/models.py
Snaptraks/snaptraks.dev
0859f9d8523b7ca9b2218693c0c6b1a99f8c2246
[ "MIT" ]
null
null
null
homepage/users/models.py
Snaptraks/snaptraks.dev
0859f9d8523b7ca9b2218693c0c6b1a99f8c2246
[ "MIT" ]
null
null
null
homepage/users/models.py
Snaptraks/snaptraks.dev
0859f9d8523b7ca9b2218693c0c6b1a99f8c2246
[ "MIT" ]
null
null
null
from django.contrib.auth.models import AbstractUser from django.db.models import CharField from django.urls import reverse from django.utils.translation import gettext_lazy as _ class User(AbstractUser): """Default user for snaptraks.dev.""" #: First and last name do not cover name patterns around the globe ...
29.695652
74
0.683748
79810515c45869c68743db4921ef3e7f5dc90841
5,629
py
Python
plugins/ShrinkUrl/test.py
jlu5/Limnoria
0e1e37a5a2bd5b717e11320b20773644b44502dd
[ "BSD-3-Clause" ]
1
2021-11-11T04:48:33.000Z
2021-11-11T04:48:33.000Z
plugins/ShrinkUrl/test.py
jlu5/Limnoria
0e1e37a5a2bd5b717e11320b20773644b44502dd
[ "BSD-3-Clause" ]
null
null
null
plugins/ShrinkUrl/test.py
jlu5/Limnoria
0e1e37a5a2bd5b717e11320b20773644b44502dd
[ "BSD-3-Clause" ]
1
2021-11-11T04:48:23.000Z
2021-11-11T04:48:23.000Z
### # Copyright (c) 2002-2004, Jeremiah Fincher # Copyright (c) 2009-2010, James McCoy # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above ...
45.395161
79
0.609344
798108591917f8e9f46eefa9fcbb002eb738e92f
9,721
py
Python
Schema/__init__.py
ndevenish/xia2
51eb0911457119f80803d5d061d44dc5f19b5a6e
[ "BSD-3-Clause" ]
null
null
null
Schema/__init__.py
ndevenish/xia2
51eb0911457119f80803d5d061d44dc5f19b5a6e
[ "BSD-3-Clause" ]
null
null
null
Schema/__init__.py
ndevenish/xia2
51eb0911457119f80803d5d061d44dc5f19b5a6e
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, division import collections import os from xia2.Handlers.Phil import PhilIndex class _ImagesetCache(dict): pass imageset_cache = _ImagesetCache() def longest_common_substring(s1, s2): m = [[0] * (1 + len(s2)) for i in xrange(1 + len(s1))] longest, x_longest = 0, 0 f...
39.040161
129
0.702705
79810921fab3b6fdb0248659ad4cac372574a9c5
2,935
py
Python
Examples/Fermions/fermi_hubbard.py
pascal-vecsei/netket
3985355234183e3f5a5a97d542a6240d490dcda2
[ "Apache-2.0" ]
1
2022-03-06T03:41:57.000Z
2022-03-06T03:41:57.000Z
Examples/Fermions/fermi_hubbard.py
balakrish181/netket
fc96a828e1ac71a7ecd16b4b178ca689e1871958
[ "Apache-2.0" ]
null
null
null
Examples/Fermions/fermi_hubbard.py
balakrish181/netket
fc96a828e1ac71a7ecd16b4b178ca689e1871958
[ "Apache-2.0" ]
null
null
null
import netket as nk import numpy as np import matplotlib.pyplot as plt import json import jax from netket import experimental as nkx L = 2 # take a 2x2 lattice D = 2 t = 1 # tunneling/hopping U = 0.01 # coulomb # create the graph our fermions can hop on g = nk.graph.Hypercube(length=L, n_dim=D, pbc=True) n_sites ...
31.55914
138
0.704259
79810934fccb5f285d1c3d326d1e15c511f036da
447
py
Python
security/versioncheck.py
Ismail774403783/-
5b5728cb128dc46e78ea61575a78516414415a7b
[ "BSD-2-Clause" ]
1
2019-08-24T14:29:07.000Z
2019-08-24T14:29:07.000Z
security/versioncheck.py
Ismail774403783/-
5b5728cb128dc46e78ea61575a78516414415a7b
[ "BSD-2-Clause" ]
null
null
null
security/versioncheck.py
Ismail774403783/-
5b5728cb128dc46e78ea61575a78516414415a7b
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python2 """ Copyright (c) 2014-2019 Maltrail developers (https://github.com/stamparm/maltrail/) See the file 'LICENSE' for copying permission """ import sys PYVERSION = sys.version.split()[0] if PYVERSION >= "3" or PYVERSION < "2.6": exit("[CRITICAL] incompatible Python version detected ('%s'). F...
31.928571
193
0.713647
798109ce2875f099f90ef5a935a52f71e2320cf1
3,719
py
Python
lib/cogs/fun.py
pille1842/gerfroniabot
291dc8f3cf9fb00f3f5e89e36b066660a410026f
[ "MIT" ]
null
null
null
lib/cogs/fun.py
pille1842/gerfroniabot
291dc8f3cf9fb00f3f5e89e36b066660a410026f
[ "MIT" ]
null
null
null
lib/cogs/fun.py
pille1842/gerfroniabot
291dc8f3cf9fb00f3f5e89e36b066660a410026f
[ "MIT" ]
null
null
null
from aiohttp import request from discord import Embed from discord.ext.commands import Cog, BucketType from discord.ext.commands import command, has_permissions, cooldown from discord.ext.commands.errors import MissingPermissions from random import choice, randint import logging class Fun(Cog): def __init__(self, ...
42.747126
115
0.641033
79810a8a7f35743091144df928f97e035bf1af35
19,782
py
Python
subfinder/subsearcher/subsearcher.py
spfeifer222/subfinder
4edd4571a9d6f9cc731570fa9d1334e00643bd2b
[ "MIT" ]
null
null
null
subfinder/subsearcher/subsearcher.py
spfeifer222/subfinder
4edd4571a9d6f9cc731570fa9d1334e00643bd2b
[ "MIT" ]
null
null
null
subfinder/subsearcher/subsearcher.py
spfeifer222/subfinder
4edd4571a9d6f9cc731570fa9d1334e00643bd2b
[ "MIT" ]
null
null
null
# -*- coding: utf8 -*- from __future__ import unicode_literals from abc import abstractmethod, ABCMeta import os from os.path import join import re import cgi try: import urlparse except ImportError as e: from urllib import parse as urlparse import requests from subfinder.tools.compressed_file import Compressed...
35.074468
168
0.565666
79810b179ca5d69cdd96250709777b5c9f4fad33
10,373
py
Python
bullet_safety_gym/envs/sensors.py
liuzuxin/Bullet-Safety-Gym
6420fb2a5fabd3369ba613066559dd13b39de37f
[ "MIT" ]
21
2021-05-10T05:05:18.000Z
2022-03-29T10:50:41.000Z
bullet_safety_gym/envs/sensors.py
liuzuxin/Bullet-Safety-Gym
6420fb2a5fabd3369ba613066559dd13b39de37f
[ "MIT" ]
2
2021-05-10T05:02:59.000Z
2021-09-15T12:21:11.000Z
bullet_safety_gym/envs/sensors.py
liuzuxin/Bullet-Safety-Gym
6420fb2a5fabd3369ba613066559dd13b39de37f
[ "MIT" ]
2
2021-05-14T09:21:24.000Z
2021-09-05T14:25:26.000Z
import pybullet as pb import math import abc import numpy as np class Sensor(abc.ABC): """ Baseclass for sensor units.""" def __init__( self, bc, offset: list, agent, obstacles: list, coordinate_system: int, rotate_with_agent:...
35.646048
83
0.576207
79810ba7cb476d9109d13c8adf5b783567d868e1
1,795
py
Python
src/server.py
roycoding/thumbs-up-api
27326034fcd912464046c8d301b75ce252873115
[ "MIT" ]
3
2019-04-04T20:50:58.000Z
2019-04-05T13:23:43.000Z
src/server.py
roycoding/thumbs-up-api
27326034fcd912464046c8d301b75ce252873115
[ "MIT" ]
10
2019-03-27T16:12:34.000Z
2019-04-16T21:03:16.000Z
src/server.py
roycoding/thumbs-up-api
27326034fcd912464046c8d301b75ce252873115
[ "MIT" ]
2
2019-03-29T04:20:11.000Z
2019-12-14T22:05:39.000Z
#!/usr/bin/env python3 """ Contains the logic to create an instance of the server See also https://github.com/best-bet/thumbs-up-api """ import os from flask import Flask, g, jsonify, request from flask_cors import CORS from .api import projects, items, options from .database import connect_db def create_app(): ...
26.791045
86
0.648468
79810cb3f0d482b1ad1f8e87ecf920efd528257c
4,832
py
Python
find_lr.py
aioz-ai/BMVC20_CBSwR
fd24336c3cba0b85c0fa2482bf82409457534266
[ "MIT" ]
5
2020-10-03T05:31:35.000Z
2021-05-13T13:49:28.000Z
find_lr.py
aioz-ai/BMVC20_CBSwR
fd24336c3cba0b85c0fa2482bf82409457534266
[ "MIT" ]
2
2020-12-18T08:05:21.000Z
2021-04-14T08:58:12.000Z
find_lr.py
aioz-ai/BMVC20_CBSwR
fd24336c3cba0b85c0fa2482bf82409457534266
[ "MIT" ]
1
2020-10-03T05:31:42.000Z
2020-10-03T05:31:42.000Z
import torch.optim as optim from models import build_dual_model from dataset import MetricLearningDataset from torch.utils.data import DataLoader from augmentation import transform_train, transform_test from torch.autograd import Variable import math import torch import numpy as np from trainer.trainer import compute_k...
37.169231
102
0.68005
79810d2dbdd293c203f03bdd0f7a6cff6aa87083
9,535
py
Python
application.py
1ud0v1c/apod-api
49e6a2127a983a7c51be9ace6f9944f71895e314
[ "Apache-2.0" ]
null
null
null
application.py
1ud0v1c/apod-api
49e6a2127a983a7c51be9ace6f9944f71895e314
[ "Apache-2.0" ]
null
null
null
application.py
1ud0v1c/apod-api
49e6a2127a983a7c51be9ace6f9944f71895e314
[ "Apache-2.0" ]
null
null
null
""" A micro-service passing back enhanced information from Astronomy Picture of the Day (APOD). Adapted from code in https://github.com/nasa/planetary-api Dec 1, 2015 (written by Dan Hammer) @author=danhammer @author=bathomas @email=brian.a.thomas@nasa.gov @author=jnbetancourt @email=jennifer.n.betancourt@nasa.gov a...
30.269841
119
0.661458
79810e5a8dff84d042060847fcd15a65242519e8
7,572
py
Python
scripts/build-win.py
zhouhuirun2015/owt-client-native
41098fd289f280f969363edebb680b2ccdafd7f4
[ "Apache-2.0" ]
null
null
null
scripts/build-win.py
zhouhuirun2015/owt-client-native
41098fd289f280f969363edebb680b2ccdafd7f4
[ "Apache-2.0" ]
null
null
null
scripts/build-win.py
zhouhuirun2015/owt-client-native
41098fd289f280f969363edebb680b2ccdafd7f4
[ "Apache-2.0" ]
null
null
null
# Copyright (C) <2018> Intel Corporation # # SPDX-License-Identifier: Apache-2.0 '''Script to build WebRTC libs on Windows. It builds OWT Windows SDK library which includes WebRTC lib, OWT base, p2p and conference lib. Output lib is located in out/owt-debug(release).lib. ''' import os import sys import subprocess i...
36.403846
103
0.637084
79810f96b07a641d9201db5f445a53677d7e2c17
16,170
py
Python
pyro/contrib/oed/eig.py
gavincangan/pyro
d9115a6da7edd7e3fecd6b89a850cc137d7e7e9a
[ "MIT" ]
null
null
null
pyro/contrib/oed/eig.py
gavincangan/pyro
d9115a6da7edd7e3fecd6b89a850cc137d7e7e9a
[ "MIT" ]
4
2019-01-31T17:54:03.000Z
2019-02-07T07:09:51.000Z
pyro/contrib/oed/eig.py
gavincangan/pyro
d9115a6da7edd7e3fecd6b89a850cc137d7e7e9a
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function import math import torch import pyro from pyro import poutine from pyro.contrib.autoguide import mean_field_guide_entropy from pyro.contrib.oed.search import Search from pyro.contrib.util import lexpand from pyro.infer import EmpiricalMarginal, Importan...
41.675258
117
0.679901
79810fc88590744c7e0e4b9c29e2fde5de4abe3b
7,040
py
Python
tensorflow_model_analysis/extractors/auto_slice_key_extractor_test.py
Bobgy/model-analysis
a964d2e8430b447c898d271fb6e6d8f5b99adf4b
[ "Apache-2.0" ]
null
null
null
tensorflow_model_analysis/extractors/auto_slice_key_extractor_test.py
Bobgy/model-analysis
a964d2e8430b447c898d271fb6e6d8f5b99adf4b
[ "Apache-2.0" ]
1
2020-03-03T03:34:37.000Z
2020-03-03T03:34:37.000Z
tensorflow_model_analysis/extractors/auto_slice_key_extractor_test.py
Bobgy/model-analysis
a964d2e8430b447c898d271fb6e6d8f5b99adf4b
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
32.592593
80
0.544602
7981100a48d8c6cab1787c24cbc1d3bca389bf14
69,021
py
Python
lib/sqlalchemy/sql/type_api.py
long2ice/sqlalchemy
a869dc8fe3cd579ed9bab665d215a6c3e3d8a4ca
[ "MIT" ]
null
null
null
lib/sqlalchemy/sql/type_api.py
long2ice/sqlalchemy
a869dc8fe3cd579ed9bab665d215a6c3e3d8a4ca
[ "MIT" ]
null
null
null
lib/sqlalchemy/sql/type_api.py
long2ice/sqlalchemy
a869dc8fe3cd579ed9bab665d215a6c3e3d8a4ca
[ "MIT" ]
null
null
null
# sql/types_api.py # Copyright (C) 2005-2022 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: https://www.opensource.org/licenses/mit-license.php """Base types API. """ import typing from . import operators from .base import ...
36.042298
85
0.639356
7981103eb66cc35b68754fc5348eadcc444f8c95
168
py
Python
yfinancerestapi/common/news.py
ap-t/yfinance-rest-api
df0f2d59a05637c9404740dc953bd546e5ee79bf
[ "MIT" ]
null
null
null
yfinancerestapi/common/news.py
ap-t/yfinance-rest-api
df0f2d59a05637c9404740dc953bd546e5ee79bf
[ "MIT" ]
null
null
null
yfinancerestapi/common/news.py
ap-t/yfinance-rest-api
df0f2d59a05637c9404740dc953bd546e5ee79bf
[ "MIT" ]
null
null
null
from newsapi import NewsApiClient import os API_KEY = os.environ.get('NEWS_API_KEY') client = NewsApiClient(api_key = API_KEY) def get_client(): return client
14
41
0.755952
7981122948e4411ebc2baa4e9d7a3136c04500a9
5,114
py
Python
amqpstorm/tests/functional/management/queue_tests.py
mikemrm/amqpstorm
2a4ec4d72a81498e0774deda338f6aaf16570881
[ "MIT" ]
null
null
null
amqpstorm/tests/functional/management/queue_tests.py
mikemrm/amqpstorm
2a4ec4d72a81498e0774deda338f6aaf16570881
[ "MIT" ]
null
null
null
amqpstorm/tests/functional/management/queue_tests.py
mikemrm/amqpstorm
2a4ec4d72a81498e0774deda338f6aaf16570881
[ "MIT" ]
null
null
null
from amqpstorm.management import ApiError from amqpstorm.management import ManagementApi from amqpstorm.tests import HTTP_URL from amqpstorm.tests import PASSWORD from amqpstorm.tests import USERNAME from amqpstorm.tests.utility import TestFunctionalFramework from amqpstorm.tests.utility import setup class ApiQueueFu...
34.554054
76
0.6316
7981125bc721db3bcafdfa781eeacdcd23153f98
3,958
py
Python
gym_brt/quanser/quanser_simulator.py
zuzuba/quanser-openai-driver
c4bec08a8c7ac1c05dec26c863f899f44f15fd06
[ "MIT" ]
null
null
null
gym_brt/quanser/quanser_simulator.py
zuzuba/quanser-openai-driver
c4bec08a8c7ac1c05dec26c863f899f44f15fd06
[ "MIT" ]
null
null
null
gym_brt/quanser/quanser_simulator.py
zuzuba/quanser-openai-driver
c4bec08a8c7ac1c05dec26c863f899f44f15fd06
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function from __future__ import division import numpy as np import math # Motor Rm = 8.4 # Resistance kt = 0.042 # Current-torque (N-m/A) km = 0.042 # Back-emf constant (V-s/rad) # Rotary Arm mr = 0.095 # Mass (kg) Lr = 0.085 # Total length (m...
33.542373
99
0.54472
7981127f3a7bd7975ddc2a7b8725c8c141bfd370
2,672
py
Python
src/twitter/stream.py
Sinclert/Twitter-Dashboard-Server
f76503770ab25137aab12b3f174f7246c045d85b
[ "MIT" ]
2
2019-07-22T22:39:55.000Z
2021-09-05T23:24:36.000Z
src/twitter/stream.py
Sinclert/Twitter-Dashboard-Server
f76503770ab25137aab12b3f174f7246c045d85b
[ "MIT" ]
null
null
null
src/twitter/stream.py
Sinclert/Twitter-Dashboard-Server
f76503770ab25137aab12b3f174f7246c045d85b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import re from tweepy import API from tweepy import StreamListener from tweepy import Stream from twitter.auth import get_oauth_handler from twitter.tweet import SimpleTweet class TwitterStream(StreamListener): """ Represents a Twitter Streaming object """ def __init__(self, token: str...
18.427586
78
0.704716
79811286fd43ecf086e39b6123cd6a3bb0a3722e
1,167
py
Python
sniff.py
junron/ml-paint
a69dadafb798f7de62c395993fbf55bb45c9fb65
[ "MIT" ]
1
2019-10-17T04:16:34.000Z
2019-10-17T04:16:34.000Z
sniff.py
junron/ml-paint
a69dadafb798f7de62c395993fbf55bb45c9fb65
[ "MIT" ]
null
null
null
sniff.py
junron/ml-paint
a69dadafb798f7de62c395993fbf55bb45c9fb65
[ "MIT" ]
null
null
null
import sys from io import StringIO import re import json from tensorflow import keras from tensorflow.keras.models import load_model import numpy as np import socket import json model = load_model("model-final.hd5") print("ok") while True: # hex encoded packet payload - no split, no colons data = input() #...
31.540541
80
0.590403
798112d4dde86c5d78d1c2a6515e001d6a281091
6,701
py
Python
tests/unit/conftest.py
ITProKyle/runway-hook-awslambda
a346465277049b004c7f3c0feb759f152369eb21
[ "Apache-2.0" ]
1
2021-09-09T14:59:53.000Z
2021-09-09T14:59:53.000Z
tests/unit/conftest.py
ITProKyle/runway-hook-awslambda
a346465277049b004c7f3c0feb759f152369eb21
[ "Apache-2.0" ]
68
2021-07-26T15:58:22.000Z
2022-01-10T13:09:25.000Z
tests/unit/conftest.py
ITProKyle/runway-hook-awslambda
a346465277049b004c7f3c0feb759f152369eb21
[ "Apache-2.0" ]
null
null
null
"""Pytest fixtures and plugins.""" # pylint: disable=redefined-outer-name from __future__ import annotations import logging import os from pathlib import Path from typing import TYPE_CHECKING, Any, Dict, Iterator, List, Optional, cast import pytest import yaml from mock import MagicMock from runway.config import Runw...
32.062201
92
0.696911
798113006bef4cd00cbd94585b28f4c1cb2222f8
89,052
py
Python
public/Python27/Lib/site-packages/bs4/tests/test_tree.py
NingrumFadillah/cekmutasi
1fccb6cafb874c2a80ece9b71d7c682fd44dbd48
[ "MIT" ]
2
2020-07-13T00:04:23.000Z
2021-02-05T17:07:39.000Z
public/Python27/Lib/site-packages/bs4/tests/test_tree.py
NingrumFadillah/cekmutasi
1fccb6cafb874c2a80ece9b71d7c682fd44dbd48
[ "MIT" ]
null
null
null
public/Python27/Lib/site-packages/bs4/tests/test_tree.py
NingrumFadillah/cekmutasi
1fccb6cafb874c2a80ece9b71d7c682fd44dbd48
[ "MIT" ]
1
2021-01-04T11:03:50.000Z
2021-01-04T11:03:50.000Z
# -*- coding: utf-8 -*- """Tests for Beautiful Soup's tree traversal methods. The tree traversal methods are the main advantage of using Beautiful Soup over just using a parser. Different parsers will build different Beautiful Soup trees given the same markup, but all Beautiful Soup trees can be traversed with the me...
38.301935
127
0.589959
798115957e9e80a55811e4f78c4e7f6e859b6b50
18,610
py
Python
nova/image/glance.py
bopopescu/Nova-31
cabc3f7a905ea982cf9d2832a3990ae8e061d963
[ "Apache-2.0" ]
1
2021-04-08T10:13:03.000Z
2021-04-08T10:13:03.000Z
nova/image/glance.py
bopopescu/Nova-31
cabc3f7a905ea982cf9d2832a3990ae8e061d963
[ "Apache-2.0" ]
null
null
null
nova/image/glance.py
bopopescu/Nova-31
cabc3f7a905ea982cf9d2832a3990ae8e061d963
[ "Apache-2.0" ]
1
2020-07-24T08:19:18.000Z
2020-07-24T08:19:18.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 OpenStack Foundation # 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.apach...
36.065891
78
0.632993
798115f4a51e501faf6445fd580d36befc8b3e96
229
py
Python
ncortex/agents/__init__.py
pvarin/ncortex
e0c1cd1815148649920db100e6c8d006312ea408
[ "MIT" ]
null
null
null
ncortex/agents/__init__.py
pvarin/ncortex
e0c1cd1815148649920db100e6c8d006312ea408
[ "MIT" ]
null
null
null
ncortex/agents/__init__.py
pvarin/ncortex
e0c1cd1815148649920db100e6c8d006312ea408
[ "MIT" ]
null
null
null
''' Agents module. This module is a collection of agents that act on (and learn from) environments. All of the learning algorithms live in this module. ''' from .base_agent import BaseAgent from .random_agent import RandomAgent
28.625
75
0.786026
798116f13040afd3817a8a070f2d155e0ac2d5e6
3,296
py
Python
ursina/sequence.py
clayboone/ursina
9aebd9403b924af260fbefbfd7cef5ad82feeff7
[ "MIT" ]
1
2020-09-04T14:32:33.000Z
2020-09-04T14:32:33.000Z
ursina/sequence.py
clayboone/ursina
9aebd9403b924af260fbefbfd7cef5ad82feeff7
[ "MIT" ]
null
null
null
ursina/sequence.py
clayboone/ursina
9aebd9403b924af260fbefbfd7cef5ad82feeff7
[ "MIT" ]
1
2020-09-04T14:32:41.000Z
2020-09-04T14:32:41.000Z
from ursina import * import math from ursina import application import time class Wait(): def __init__(self, duration): self.duration = duration class Func(): def __init__(self, func, *args, **kwargs): self.func = func self.args = args self.kwargs = kwargs self.delay ...
22.27027
80
0.523362
798118ba936ab01fb1de48f514a852a575f54189
575
py
Python
Class_Material.py
WarnerWon/Centro-Deportivo
88f2422f7ab1f4f28b0289fd2399755db2b083cc
[ "MIT" ]
null
null
null
Class_Material.py
WarnerWon/Centro-Deportivo
88f2422f7ab1f4f28b0289fd2399755db2b083cc
[ "MIT" ]
null
null
null
Class_Material.py
WarnerWon/Centro-Deportivo
88f2422f7ab1f4f28b0289fd2399755db2b083cc
[ "MIT" ]
null
null
null
import datetime class Material(object): def __init__(self, myid, nombre): self.id = int(myid) self.nombre = str(nombre) self.fechaPedido = None self.fechaEntregado = None def pedir(self): self.fechaPedido = datetime.datetime.now() pass def entregar(self)...
16.911765
53
0.582609
798118cfe9faef213ff94e7e375ba8cad6b82c8b
960
py
Python
commands/lsp_metals_focus.py
ninth-dev/metals-sublime
b6636cf9fa0aae29904a315ede609cc1ef2a0e93
[ "Apache-2.0" ]
null
null
null
commands/lsp_metals_focus.py
ninth-dev/metals-sublime
b6636cf9fa0aae29904a315ede609cc1ef2a0e93
[ "Apache-2.0" ]
null
null
null
commands/lsp_metals_focus.py
ninth-dev/metals-sublime
b6636cf9fa0aae29904a315ede609cc1ef2a0e93
[ "Apache-2.0" ]
null
null
null
from . lsp_metals_text_command import LspMetalsTextCommand from LSP.plugin.core.protocol import Notification from LSP.plugin.core.types import Optional, Dict, Any import sublime import sublime_plugin import functools class LspMetalsFocusViewCommand(LspMetalsTextCommand): def run(self, edit: sublime.Edit) -> None...
33.103448
83
0.722917
79811aed9f31b75b5a4cdbffc14b468bad7ff9b2
4,213
py
Python
src/evaluation/eval_imagenet.py
amelieEmily/RobustDARTS
b26e127c6e9c330258786f5eb77b17d367f546ff
[ "Apache-2.0" ]
null
null
null
src/evaluation/eval_imagenet.py
amelieEmily/RobustDARTS
b26e127c6e9c330258786f5eb77b17d367f546ff
[ "Apache-2.0" ]
null
null
null
src/evaluation/eval_imagenet.py
amelieEmily/RobustDARTS
b26e127c6e9c330258786f5eb77b17d367f546ff
[ "Apache-2.0" ]
null
null
null
import os import sys import numpy as np import torch sys.path.insert(0, '../RobustDARTS') from src import utils import glob import random import logging import argparse import torch.nn as nn import torch.utils import torchvision.datasets as dset import torchvision.transforms as transforms import torch.backends.cudnn a...
36.318966
429
0.711607
79811bdbe5be2ce7ebbe318ab40fece782417f57
973
py
Python
game_list/urls.py
IceArrow256/game-list
5f06e0ff80023acdc0290a9a8f814f7c93b45e0e
[ "Unlicense" ]
3
2020-10-19T12:33:37.000Z
2020-10-21T05:28:35.000Z
game_list/urls.py
IceArrow256/gamelist
5f06e0ff80023acdc0290a9a8f814f7c93b45e0e
[ "Unlicense" ]
null
null
null
game_list/urls.py
IceArrow256/gamelist
5f06e0ff80023acdc0290a9a8f814f7c93b45e0e
[ "Unlicense" ]
null
null
null
"""game_list URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/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-bas...
37.423077
77
0.678314
79811c94935928c35d78f086245d4d9f8fef33fc
24,448
py
Python
src/sage/logic/logic.py
drvinceknight/sage
00199fb220aa173d8585b9e90654dafd3247d82d
[ "BSL-1.0" ]
2
2015-08-11T05:05:47.000Z
2019-05-15T17:27:25.000Z
src/sage/logic/logic.py
kaushik94/sage
00199fb220aa173d8585b9e90654dafd3247d82d
[ "BSL-1.0" ]
null
null
null
src/sage/logic/logic.py
kaushik94/sage
00199fb220aa173d8585b9e90654dafd3247d82d
[ "BSL-1.0" ]
1
2020-07-24T11:56:55.000Z
2020-07-24T11:56:55.000Z
r""" Symbolic Logic Expressions An expression is created from a string that consists of the operators ``!``, ``&``, ``|``, ``->``, ``<->``, which correspond to the logical functions not, and, or, if then, if and only if, respectively. Variable names must start with a letter and contain only alpha-numerics and the unde...
28.133487
101
0.515339
79811d1fec3741b267fefdeb854dec9184a8326a
456
py
Python
backstage/migrations/0007_flowerimgurl_flower_text.py
JiajiaHuang/smonus
95ec209ae3562ea73ee9ce4c22a0d3a3f0975210
[ "Unlicense" ]
null
null
null
backstage/migrations/0007_flowerimgurl_flower_text.py
JiajiaHuang/smonus
95ec209ae3562ea73ee9ce4c22a0d3a3f0975210
[ "Unlicense" ]
null
null
null
backstage/migrations/0007_flowerimgurl_flower_text.py
JiajiaHuang/smonus
95ec209ae3562ea73ee9ce4c22a0d3a3f0975210
[ "Unlicense" ]
null
null
null
# Generated by Django 2.2.1 on 2020-02-16 13:51 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('backstage', '0006_carouseldisplay_carousel_img'), ] operations = [ migrations.AddField( model_name='flowerimgurl', n...
24
99
0.635965
79811dec03e07066fa0a76f69c0043469a53e81c
2,970
py
Python
setup.py
tlubenov/ml-osmnx
ed171f469a25547b7dfec9c2ec3f550b3aa5be72
[ "MIT" ]
null
null
null
setup.py
tlubenov/ml-osmnx
ed171f469a25547b7dfec9c2ec3f550b3aa5be72
[ "MIT" ]
null
null
null
setup.py
tlubenov/ml-osmnx
ed171f469a25547b7dfec9c2ec3f550b3aa5be72
[ "MIT" ]
null
null
null
""" OSMnx setup script. See license in LICENSE.txt. """ import os from setuptools import setup # provide a long description using reStructuredText LONG_DESCRIPTION = r""" **OSMnx** is a Python package that lets you download spatial data and model, project, visualize, and analyze real-world street networks from Open...
34.941176
171
0.706734
79811ed6cee77c342aa8e47e95dc80df5238a65d
1,194
py
Python
BE/be_dropship/be_dropship/urls.py
llduyll10/film_project
22d1a5bb2bfe1c368ab0c8b2653c9bd4fa6b797e
[ "MIT" ]
null
null
null
BE/be_dropship/be_dropship/urls.py
llduyll10/film_project
22d1a5bb2bfe1c368ab0c8b2653c9bd4fa6b797e
[ "MIT" ]
null
null
null
BE/be_dropship/be_dropship/urls.py
llduyll10/film_project
22d1a5bb2bfe1c368ab0c8b2653c9bd4fa6b797e
[ "MIT" ]
null
null
null
"""be_dropship URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class...
41.172414
79
0.71943
79811ef596e9d5ad484374c27c78a7aaeb7810c1
3,369
py
Python
vmware_nsx/extensions/edge_service_gateway_bgp_peer.py
yebinama/vmware-nsx
5f59ce8d4668c24e0f4f934898fb4b4e63f1c2f4
[ "Apache-2.0" ]
null
null
null
vmware_nsx/extensions/edge_service_gateway_bgp_peer.py
yebinama/vmware-nsx
5f59ce8d4668c24e0f4f934898fb4b4e63f1c2f4
[ "Apache-2.0" ]
null
null
null
vmware_nsx/extensions/edge_service_gateway_bgp_peer.py
yebinama/vmware-nsx
5f59ce8d4668c24e0f4f934898fb4b4e63f1c2f4
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 VMware, 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 a...
30.627273
79
0.657465
79811f52342b6e6053557c762e609e923ffcceb3
937
py
Python
elsat/elsat_statistics.py
renekliment/scripts
eaa1193ae8b9317f1a03a879f9d22b8a014ea05d
[ "WTFPL" ]
null
null
null
elsat/elsat_statistics.py
renekliment/scripts
eaa1193ae8b9317f1a03a879f9d22b8a014ea05d
[ "WTFPL" ]
null
null
null
elsat/elsat_statistics.py
renekliment/scripts
eaa1193ae8b9317f1a03a879f9d22b8a014ea05d
[ "WTFPL" ]
1
2020-11-18T07:29:29.000Z
2020-11-18T07:29:29.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import re import requests import requests.auth import yaml def elsat_statistics(host, username, password): url = host + '/' + username + '/' response = requests.get(url, auth=requests.auth.HTTPBasicAuth(username, password)) regex = re.compile(r'<b>Data c...
22.853659
91
0.679829
79811f87a02535c1ed4e1de6b10d74b55a64bb2e
3,180
py
Python
Software/Python/grove_accelerometer_16g/adxl345.py
joemarshall/GrovePi
d128ab734f216f5b2d82c1b629cfca3f31af4993
[ "MIT" ]
7
2015-03-23T20:30:58.000Z
2018-04-25T07:48:46.000Z
Software/Python/grove_accelerometer_16g/adxl345.py
joemarshall/GrovePi
d128ab734f216f5b2d82c1b629cfca3f31af4993
[ "MIT" ]
4
2015-02-07T17:37:58.000Z
2017-07-30T10:14:29.000Z
Software/Python/grove_accelerometer_16g/adxl345.py
joemarshall/GrovePi
d128ab734f216f5b2d82c1b629cfca3f31af4993
[ "MIT" ]
38
2020-08-24T23:05:49.000Z
2021-01-28T05:47:28.000Z
# ADXL345 Python library for Raspberry Pi # # author: Jonathan Williamson # license: BSD, see LICENSE.txt included in this package # # This is a Raspberry Pi Python implementation to help you get started with # the Adafruit Triple Axis ADXL345 breakout board: # http://shop.pimoroni.com/products/adafruit-triple-axis-...
28.648649
103
0.577673
7981207f56879b523589240566f42f900c92edc8
446
py
Python
tests/potential/CutoffFunction/dev_CutoffFunction.py
eragasa/pypospack
21cdecaf3b05c87acc532d992be2c04d85bfbc22
[ "MIT" ]
4
2018-01-18T19:59:56.000Z
2020-08-25T11:56:52.000Z
tests/potential/CutoffFunction/dev_CutoffFunction.py
eragasa/pypospack
21cdecaf3b05c87acc532d992be2c04d85bfbc22
[ "MIT" ]
1
2018-04-22T23:02:13.000Z
2018-04-22T23:02:13.000Z
tests/potential/CutoffFunction/dev_CutoffFunction.py
eragasa/pypospack
21cdecaf3b05c87acc532d992be2c04d85bfbc22
[ "MIT" ]
1
2019-09-14T07:04:42.000Z
2019-09-14T07:04:42.000Z
import numpy as np rmax=15 npoints=1000 r = rmax * np.linspace(1,npoints,npoints)/npoints dr_step = r[1] - r[0] dr_theo = rmax/(npoints) print(r) print('r.shape={}'.format(r.shape)) print('dr_step={}'.format(dr_step)) print('dr_theo={}'.format(dr_theo)) self.V = self.V - (self.V[rcut_idx] - self.V[cut_idx-1])/self.dr)...
24.777778
66
0.656951
798120d1c6616b25104a00c1784a6bb4a4bf7161
30,585
py
Python
aib/ht/templates.py
FrankMillman/AccInABox
fc4cd26bf525c1bbe8e541d9339c69b0adbad546
[ "MIT" ]
3
2015-02-25T19:44:43.000Z
2020-12-18T05:49:09.000Z
aib/ht/templates.py
FrankMillman/AccInABox
fc4cd26bf525c1bbe8e541d9339c69b0adbad546
[ "MIT" ]
1
2019-11-20T12:31:34.000Z
2019-11-20T12:31:35.000Z
aib/ht/templates.py
FrankMillman/AccInABox
fc4cd26bf525c1bbe8e541d9339c69b0adbad546
[ "MIT" ]
1
2020-06-07T06:25:19.000Z
2020-06-07T06:25:19.000Z
#-- toolbar building blocks ------------------------------------------------- tool_nav = ( '<tool type="nav"/>' ) tool_insert = ( '<tool type="img" name="insert" tip="Insert row (Ctrl+Insert)" ' 'shortcut="ctrl,Insert" action="' '&lt;req_insert_row/&gt;' '"/>' ) tool_delete = ( ...
36.716687
108
0.492202
798121174c108a8d890ef8641f31efb44f12b8b7
4,664
py
Python
acme/agents/jax/impala/agent.py
SENC/acme
6016899a7b6dbaab90d6eb0b1fe8588aac17deee
[ "Apache-2.0" ]
null
null
null
acme/agents/jax/impala/agent.py
SENC/acme
6016899a7b6dbaab90d6eb0b1fe8588aac17deee
[ "Apache-2.0" ]
null
null
null
acme/agents/jax/impala/agent.py
SENC/acme
6016899a7b6dbaab90d6eb0b1fe8588aac17deee
[ "Apache-2.0" ]
null
null
null
# python3 # Copyright 2018 DeepMind Technologies 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 # # Unless re...
31.727891
80
0.692967
7981228d139f285ae35ae9fbad55d9ef67695b3c
339
py
Python
st_appLib.py
fermi-lat/st_app
108876196c7c17b4107a233813f005464b599d06
[ "BSD-3-Clause" ]
null
null
null
st_appLib.py
fermi-lat/st_app
108876196c7c17b4107a233813f005464b599d06
[ "BSD-3-Clause" ]
null
null
null
st_appLib.py
fermi-lat/st_app
108876196c7c17b4107a233813f005464b599d06
[ "BSD-3-Clause" ]
null
null
null
#$Id: st_appLib.py,v 1.3 2008/02/26 05:45:34 glastrm Exp $ def generate(env, **kw): if not kw.get('depsOnly',0): env.Tool('addLibrary', library = ['st_app']) env.Tool('hoopsLib') env.Tool('st_graphLib') env.Tool('st_streamLib') env.Tool('facilitiesLib') env.Tool('addLibrary', library = env['f2cLibs']) def exis...
26.076923
58
0.678466
7981248a0bd5bc8ad5f4a1ea489b5fbbaa176939
1,029
py
Python
.vscode-insiders/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/testlauncher.py
Guitaraholic/dotfiles
9c43707434a724a2e5c7799f917f84573e93e0ec
[ "MIT" ]
1
2020-08-07T16:09:57.000Z
2020-08-07T16:09:57.000Z
.vscode/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/testlauncher.py
cclint/dotfiles
8dbd1b768add3fdb68e749f965ef3025ee9de4ed
[ "MIT" ]
null
null
null
.vscode/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/testlauncher.py
cclint/dotfiles
8dbd1b768add3fdb68e749f965ef3025ee9de4ed
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import os import sys def parse_argv(): """Parses arguments for use with the test launcher. Arguments are: 1. Working directory. 2. Test runner, `pytest` or `nose` 3. Rest of the arguments are...
22.369565
62
0.578231
7981249973043b5d86fde9678ca66502fc285e05
12,034
py
Python
python/scripts/m3qa/calibrate_hand_h2r4.py
ahoarau/m3meka
237739f0266ce60aaa3013b0d2b22fc07b6374c4
[ "MIT" ]
null
null
null
python/scripts/m3qa/calibrate_hand_h2r4.py
ahoarau/m3meka
237739f0266ce60aaa3013b0d2b22fc07b6374c4
[ "MIT" ]
null
null
null
python/scripts/m3qa/calibrate_hand_h2r4.py
ahoarau/m3meka
237739f0266ce60aaa3013b0d2b22fc07b6374c4
[ "MIT" ]
2
2015-11-27T09:25:54.000Z
2021-08-16T16:29:22.000Z
# -*- coding: utf-8 -*- #Copyright 2008, Meka Robotics #All rights reserved. #http://mekabot.com #Redistribution and use in source and binary forms, with or without #modification, are permitted. #THIS SOFTWARE IS PROVIDED BY THE Copyright HOLDERS AND CONTRIBUTORS #"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INC...
34.090652
116
0.721123
798124baaab27dc289d4f70f998ed8b152a01688
3,369
py
Python
WORC/facade/helpers/processing.py
MStarmans91/WORC
b6b8fc2ccb7d443a69b5ca20b1d6efb65b3f0fc7
[ "ECL-2.0", "Apache-2.0" ]
47
2018-01-28T14:08:15.000Z
2022-03-24T16:10:07.000Z
WORC/facade/helpers/processing.py
JZK00/WORC
14e8099835eccb35d49b52b97c0be64ecca3809c
[ "ECL-2.0", "Apache-2.0" ]
13
2018-08-28T13:32:57.000Z
2020-10-26T16:35:59.000Z
WORC/facade/helpers/processing.py
JZK00/WORC
14e8099835eccb35d49b52b97c0be64ecca3809c
[ "ECL-2.0", "Apache-2.0" ]
16
2017-11-13T10:53:36.000Z
2022-03-18T17:02:04.000Z
import pandas as pd import os from WORC.addexceptions import WORCKeyError # All standard texture features accepted texture_features = ['GLCM', 'GLDZM', 'GLRLM', 'GLSZM', 'NGLDM', 'NGTDM'] def convert_radiomix_features(input_file, output_folder): ''' Convert .xlsx from RadiomiX to WORC compatible .hdf5 format...
35.463158
84
0.582962
79812538fc94fb5c277c18cffcff4d2d4b1bb5d6
6,114
py
Python
dbbackup/tests/commands/test_base.py
madhavi2491/django-dbbackup
e0d3eafbc0a6ebbad658cdd5e81acf6f57747d4a
[ "BSD-3-Clause" ]
1
2020-04-28T17:08:26.000Z
2020-04-28T17:08:26.000Z
dbbackup/tests/commands/test_base.py
madhavi2491/django-dbbackup
e0d3eafbc0a6ebbad658cdd5e81acf6f57747d4a
[ "BSD-3-Clause" ]
null
null
null
dbbackup/tests/commands/test_base.py
madhavi2491/django-dbbackup
e0d3eafbc0a6ebbad658cdd5e81acf6f57747d4a
[ "BSD-3-Clause" ]
null
null
null
""" Tests for base command class. """ import os import logging from mock import patch from django.test import TestCase import six from django.core.files import File from dbbackup.management.commands._base import BaseDbBackupCommand from dbbackup.storage import get_storage from dbbackup.tests.utils import DEV_NULL, HAND...
39.701299
83
0.659797
79812558745b954bf6f1e48b2b137b7010168391
4,520
py
Python
src/awkward1/_connect/_numexpr.py
nikoladze/awkward-1.0
7e1001b6ee59f1cba96cf57d144e7f2719f07e69
[ "BSD-3-Clause" ]
null
null
null
src/awkward1/_connect/_numexpr.py
nikoladze/awkward-1.0
7e1001b6ee59f1cba96cf57d144e7f2719f07e69
[ "BSD-3-Clause" ]
null
null
null
src/awkward1/_connect/_numexpr.py
nikoladze/awkward-1.0
7e1001b6ee59f1cba96cf57d144e7f2719f07e69
[ "BSD-3-Clause" ]
null
null
null
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/master/LICENSE from __future__ import absolute_import import warnings import sys import distutils.version import awkward1.layout import awkward1.operations.convert import awkward1._util checked_version = False def import_numexpr(): gl...
28.789809
89
0.611947
798125db931e8ddb94f6e1ffe783762cfa7b16bf
1,440
py
Python
app.py
cankush625/MongoFlask
a5342ac6b35277c39c3cd5c81c0851fc9924aeee
[ "MIT" ]
null
null
null
app.py
cankush625/MongoFlask
a5342ac6b35277c39c3cd5c81c0851fc9924aeee
[ "MIT" ]
null
null
null
app.py
cankush625/MongoFlask
a5342ac6b35277c39c3cd5c81c0851fc9924aeee
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request import subprocess as sp from pymongo import MongoClient from mongopass import mongopass app = Flask("myapp") client = MongoClient(mongopass) db = client.curd myCollection = db.myColl @app.route("/") def my_home(): date = sp.getoutput("date /t") return render_...
27.169811
55
0.666667
798125ef59185ee300cd2041628b62850855e0e5
353
py
Python
FreeCodeCamp.org/ReusableFunction.py
MizaN13/PythonAbc
db8aa05497a6a1bf3eafcfdd6c31880b57e509fb
[ "MIT" ]
null
null
null
FreeCodeCamp.org/ReusableFunction.py
MizaN13/PythonAbc
db8aa05497a6a1bf3eafcfdd6c31880b57e509fb
[ "MIT" ]
null
null
null
FreeCodeCamp.org/ReusableFunction.py
MizaN13/PythonAbc
db8aa05497a6a1bf3eafcfdd6c31880b57e509fb
[ "MIT" ]
null
null
null
import emoji def emoji_converter(message): words = message.split(" ") emojis = { ":)": "😀", ":(": "😉" } output = "" for word in words: output += emojis.get(word, word) + " " return output message = input(">") result = emoji_converter(message) print(result) print("\N{g...
19.611111
46
0.558074
798126dbbf4d52f3af42770fffbd60a8f588eae3
18,132
py
Python
compat/__init__.py
developerfromjokela/django-compat
286d623f335d188f6a29d0fcd5df81c966b802d8
[ "MIT" ]
null
null
null
compat/__init__.py
developerfromjokela/django-compat
286d623f335d188f6a29d0fcd5df81c966b802d8
[ "MIT" ]
null
null
null
compat/__init__.py
developerfromjokela/django-compat
286d623f335d188f6a29d0fcd5df81c966b802d8
[ "MIT" ]
null
null
null
# flake8: noqa from __future__ import unicode_literals import sys import django from django.conf import settings # removed get_queryset <> get_query_set see, #29 #from django.db.models import Manager ## Monkey patch: # #try: # Manager.get_query_set = Manager.get_queryset #except AttributeError: # Manager.get_q...
32.907441
142
0.7061
798127bdb662707175de208c6898cc0fdb573967
37,340
py
Python
tests/test_tools.py
chronitis/xonsh
c29819c5a8ecaf4123c2b91c882ad8e9ce793df1
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/test_tools.py
chronitis/xonsh
c29819c5a8ecaf4123c2b91c882ad8e9ce793df1
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/test_tools.py
chronitis/xonsh
c29819c5a8ecaf4123c2b91c882ad8e9ce793df1
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- """Tests xonsh tools.""" import datetime as dt import os import pathlib import stat from tempfile import TemporaryDirectory import warnings import pytest from xonsh import __version__ from xonsh.platform import ON_WINDOWS from xonsh.lexer import Lexer from xonsh.tools import ( EnvPath, ...
27.415565
98
0.579593
7981283f27d807ce6fa2fca7172f63a9d8a91c25
9,025
py
Python
homeassistant/components/plugwise/climate.py
fanta759/core
fcdb54d8780900fb85e6c20d5382cfd13b69a0b3
[ "Apache-2.0" ]
1
2021-04-08T11:37:15.000Z
2021-04-08T11:37:15.000Z
homeassistant/components/plugwise/climate.py
fanta759/core
fcdb54d8780900fb85e6c20d5382cfd13b69a0b3
[ "Apache-2.0" ]
56
2020-08-03T07:30:54.000Z
2022-03-31T06:02:04.000Z
homeassistant/components/plugwise/climate.py
fanta759/core
fcdb54d8780900fb85e6c20d5382cfd13b69a0b3
[ "Apache-2.0" ]
1
2021-04-30T01:57:13.000Z
2021-04-30T01:57:13.000Z
"""Plugwise Climate component for Home Assistant.""" import logging from Plugwise_Smile.Smile import Smile from homeassistant.components.climate import ClimateEntity from homeassistant.components.climate.const import ( CURRENT_HVAC_COOL, CURRENT_HVAC_HEAT, CURRENT_HVAC_IDLE, HVAC_MODE_AUTO, HVAC_...
33.180147
82
0.647867
798129a9ec78ef0b2ab95727155a3730dbb7d59a
314
py
Python
blog/views.py
parth-singh71/blog_project
fd5c9ecb0a29323429e5fe1bb738fd29e1135a75
[ "MIT" ]
null
null
null
blog/views.py
parth-singh71/blog_project
fd5c9ecb0a29323429e5fe1bb738fd29e1135a75
[ "MIT" ]
8
2021-03-30T13:10:48.000Z
2022-03-12T00:25:48.000Z
blog/views.py
parth-singh71/blog_project
fd5c9ecb0a29323429e5fe1bb738fd29e1135a75
[ "MIT" ]
null
null
null
from django.shortcuts import render from .models import Post # Create your views here. def home(request): context = { 'posts': Post.objects.all(), 'title': 'Home' } return render(request, 'blog/home.html', context) def about(request): return render(request, 'blog/about.html')
18.470588
53
0.649682
79812a009069d21bcb19398f56d2e7403cd481a2
34
py
Python
astrofix/__init__.py
HengyueZ/astrofix
694ce6a16223f2eaa5a72fd09b8babfc7622b974
[ "BSD-3-Clause" ]
3
2021-03-24T03:15:40.000Z
2021-03-31T10:53:11.000Z
astrofix/__init__.py
HengyueZ/astrofix
694ce6a16223f2eaa5a72fd09b8babfc7622b974
[ "BSD-3-Clause" ]
1
2021-08-28T00:43:55.000Z
2021-08-28T04:32:37.000Z
astrofix/__init__.py
HengyueZ/astrofix
694ce6a16223f2eaa5a72fd09b8babfc7622b974
[ "BSD-3-Clause" ]
1
2021-07-12T15:07:15.000Z
2021-07-12T15:07:15.000Z
from astrofix.Fix_Images import *
17
33
0.823529
79812c5f714821d1af02697eda2087eab7739c17
353
py
Python
test/tests/26.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:28:45.000Z
2020-02-06T14:28:45.000Z
test/tests/26.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
test/tests/26.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:29:00.000Z
2020-02-06T14:29:00.000Z
# run_args: -n # statcheck: noninit_count("slowpath_runtimecall") <= 10 # statcheck: stats.get("slowpath_callclfunc", 0) <= 5 # Simple patchpoint test: def f(): def p(a, b, c, d): print a, b, c, d y = 100 while y: p(1, y, 2, 3) y = y - 1 y = 100 while y: p(1, y, "h...
16.809524
56
0.490085