hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
08d576193b208a35ed8f88dddb91d09bce072dc8
446
py
Python
app/controllers/application_controller.py
mbroz/feel-the-streets
6e21a496f1530b0500ca66e11712f3f31cd857ae
[ "MIT" ]
null
null
null
app/controllers/application_controller.py
mbroz/feel-the-streets
6e21a496f1530b0500ca66e11712f3f31cd857ae
[ "MIT" ]
null
null
null
app/controllers/application_controller.py
mbroz/feel-the-streets
6e21a496f1530b0500ca66e11712f3f31cd857ae
[ "MIT" ]
null
null
null
from PySide2.QtWidgets import QApplication from ..services import menu_service, speech from ..menu_service import menu_command class ApplicationController: def __init__(self, window): self._main_window = window menu_service().register_menu_commands(self) @menu_command(_("Program")...
34.307692
53
0.688341
08d57ec0dcf70dc1a0fd612efb94d38cf49f2106
3,266
py
Python
classes/animation.py
sp4ce/pyDLA
c9bfbca11f5ccdcd3ceb84961d5abef081539e8f
[ "MIT" ]
null
null
null
classes/animation.py
sp4ce/pyDLA
c9bfbca11f5ccdcd3ceb84961d5abef081539e8f
[ "MIT" ]
null
null
null
classes/animation.py
sp4ce/pyDLA
c9bfbca11f5ccdcd3ceb84961d5abef081539e8f
[ "MIT" ]
null
null
null
import math import time from Tkinter import * class Animation: def __init__(self, width, height, delay = 0.2): """ Initializes a visualization with the specified parameters. """ # Number of seconds to pause after each frame self.delay = delay # Initialize a drawin...
32.989899
102
0.566442
08d59eba423351f179f48f508a8d7649d0e9c9a1
1,511
py
Python
core/models.py
monofox/wedding
d9c4ee1da418e4e047eb628e98a473b8c20c56d5
[ "MIT" ]
null
null
null
core/models.py
monofox/wedding
d9c4ee1da418e4e047eb628e98a473b8c20c56d5
[ "MIT" ]
null
null
null
core/models.py
monofox/wedding
d9c4ee1da418e4e047eb628e98a473b8c20c56d5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.db import models from datetime import datetime from django.core.mail import send_mail from django.conf import settings from django.utils.translation import ugettext_lazy as _ from core import mail import hashlib class ContactMail(models.Model): class Meta: ...
33.577778
101
0.721377
08d5c92ba10afbf605f3ebd2ae1cbb76b293221a
346
py
Python
Lib/site-packages/kivy/setupconfig.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/kivy/setupconfig.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/kivy/setupconfig.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
null
null
null
# Autogenerated file for Kivy configuration PY3 = 0 CYTHON_MIN = '0.23' CYTHON_MAX = '0.25.2' CYTHON_BAD = '' USE_RPI = 0 USE_MALI = 0 USE_EGL = 0 USE_OPENGL_ES2 = 0 USE_OPENGL_MOCK = 0 USE_SDL2 = 1 USE_IOS = 0 USE_MESAGL = 0 USE_X11 = 0 USE_GSTREAMER = 1 USE_AVFOUNDATION = 0 USE_OSX_FRAMEWORKS = 0 DEBUG_GL = 0 DEBUG =...
16.47619
43
0.728324
08d5e117b640db1495fe98ac3866ee498acdc4be
3,936
py
Python
tests/unit/test_driver_yaml.py
liushuigs/jina
b3550e901b2a340924330b5ba2801603e493c933
[ "Apache-2.0" ]
null
null
null
tests/unit/test_driver_yaml.py
liushuigs/jina
b3550e901b2a340924330b5ba2801603e493c933
[ "Apache-2.0" ]
2
2021-02-15T01:40:38.000Z
2021-02-15T02:00:21.000Z
tests/unit/test_driver_yaml.py
liushuigs/jina
b3550e901b2a340924330b5ba2801603e493c933
[ "Apache-2.0" ]
null
null
null
import os import pytest from pkg_resources import resource_filename from jina.drivers import BaseDriver from jina.drivers.control import ControlReqDriver from jina.drivers.search import KVSearchDriver from jina.executors import BaseExecutor from jina.jaml import JAML from jina.parsers import set_pod_parser from jina....
28.729927
84
0.668191
08d619013131a6401495cee1a89c84d660b0665e
403
py
Python
timetable_app/migrations/0008_remove_timeslot_lecturer.py
kmazi/Timetable
eb320a0ca3726bfdbb5d8c49b97a09da097207f5
[ "MIT" ]
null
null
null
timetable_app/migrations/0008_remove_timeslot_lecturer.py
kmazi/Timetable
eb320a0ca3726bfdbb5d8c49b97a09da097207f5
[ "MIT" ]
3
2020-02-11T23:07:35.000Z
2021-06-10T18:18:12.000Z
timetable_app/migrations/0008_remove_timeslot_lecturer.py
kmazi/Timetable
eb320a0ca3726bfdbb5d8c49b97a09da097207f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-12-01 09:21 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('timetable_app', '0007_auto_20171127_2037'), ] operations = [ migrations.RemoveField...
20.15
53
0.622829
08d621a2ea3e457aacd1ec5fbff98d8b9fc30cdf
3,879
py
Python
sdk/cognitivelanguage/azure-ai-language-conversations/azure/ai/language/conversations/aio/_operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/cognitivelanguage/azure-ai-language-conversations/azure/ai/language/conversations/aio/_operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/cognitivelanguage/azure-ai-language-conversations/azure/ai/language/conversations/aio/_operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # 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) AutoRe...
44.586207
133
0.685744
08d6382edd160429954935f067059cbdbf995efe
3,811
py
Python
setup.py
sanghviharshit/pysnoo
c896f22cc60ae5c917551d5a349ded190de861ae
[ "MIT" ]
null
null
null
setup.py
sanghviharshit/pysnoo
c896f22cc60ae5c917551d5a349ded190de861ae
[ "MIT" ]
13
2021-03-10T07:31:19.000Z
2021-07-16T19:08:23.000Z
setup.py
sanghviharshit/pysnooapi
c896f22cc60ae5c917551d5a349ded190de861ae
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Define publication options.""" # Note: To use the 'upload' functionality of this file, you must: # $ pip install twine import io import os import sys from shutil import rmtree from setuptools import find_packages, setup, Command # type: ignore # Package meta-data...
29.315385
88
0.638153
08d63e338ca64060dc56ec17aed1a79e477cee1f
2,966
py
Python
venus/api/v1/views/versions.py
openstack/venus
7c3ec56142620cb2b3ff1562947c65a266401d57
[ "Apache-2.0" ]
null
null
null
venus/api/v1/views/versions.py
openstack/venus
7c3ec56142620cb2b3ff1562947c65a266401d57
[ "Apache-2.0" ]
null
null
null
venus/api/v1/views/versions.py
openstack/venus
7c3ec56142620cb2b3ff1562947c65a266401d57
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Inspur # # 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 writi...
33.704545
80
0.569117
08d646450c6326d789b5d13ae43dadfeb7b2d81e
1,019
py
Python
metafarmerx/adapters/apis/cream_adapter.py
0xsamsar/MetaFarmerX
62b5171c5f63355c69b7a3089c0ca7a56e8f7d9f
[ "MIT" ]
4
2022-02-13T01:30:34.000Z
2022-03-01T21:41:53.000Z
metafarmerx/adapters/apis/cream_adapter.py
0xsamsar/deltra-neutral-yield-farming
62b5171c5f63355c69b7a3089c0ca7a56e8f7d9f
[ "MIT" ]
null
null
null
metafarmerx/adapters/apis/cream_adapter.py
0xsamsar/deltra-neutral-yield-farming
62b5171c5f63355c69b7a3089c0ca7a56e8f7d9f
[ "MIT" ]
null
null
null
import json from .http_client import HTTPClient class CreamAdapter(HTTPClient): """ API adapter to get the Borrow APY """ def __init__(self, _filter=True): self._query = {'comptroller': 'avalanche'} self._uri = 'https://api.cream.finance/api/v1/crtoken' self._filter_keys = ['i...
33.966667
82
0.526006
08d67b5f61dc2ef1579a45023d75f8f32fa59c37
3,449
py
Python
app/apps/forms.py
fossabot/Yacht
b3391147c9dc11929d87e495228765300b0f6a8a
[ "MIT" ]
6
2020-07-08T05:33:22.000Z
2021-08-22T20:19:54.000Z
app/apps/forms.py
fossabot/Yacht
b3391147c9dc11929d87e495228765300b0f6a8a
[ "MIT" ]
2
2021-06-02T02:22:42.000Z
2022-02-27T07:46:10.000Z
app/apps/forms.py
fossabot/Yacht
b3391147c9dc11929d87e495228765300b0f6a8a
[ "MIT" ]
4
2020-07-08T05:33:24.000Z
2021-09-23T15:31:25.000Z
from flask_wtf import FlaskForm from wtforms import Form as NoCsrfForm from wtforms.ext.sqlalchemy.fields import QuerySelectField from wtforms.fields import ( FormField, FieldList, HiddenField, IntegerField, PasswordField, SelectField, StringField, SubmitField, TextAreaField, ) from ...
25.738806
84
0.614671
08d6ed42ff7ead4a18b460e63040ee8b15dbea30
2,553
py
Python
services/selection/filters/listfilter.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
3
2017-10-28T11:28:38.000Z
2018-09-12T09:47:00.000Z
services/selection/filters/listfilter.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
services/selection/filters/listfilter.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
import functools import collections from bearlibterminal import terminal from clubsandwich.ui import ButtonView, WindowView, LayoutOptions from core.ui import CoreUIScene from core.ui.views import KeyAssignedListView, SelectableButtonView from services.selection.filters.base import SelectionFilter class ListFilterV...
31.134146
111
0.614179
08d6f3a5e3c84b115b48616e823106b51a707040
4,638
py
Python
src/utils/params.py
patrick-ubc/Huawei_HiFly_Drone
5dae1b56f49c2b86c3b852bbc5e3a63e84ccd490
[ "Apache-2.0" ]
1
2021-09-21T23:23:59.000Z
2021-09-21T23:23:59.000Z
src/utils/params.py
patrick-ubc/Huawei_HiFly_Drone
5dae1b56f49c2b86c3b852bbc5e3a63e84ccd490
[ "Apache-2.0" ]
8
2021-07-05T21:41:53.000Z
2022-02-15T19:46:13.000Z
src/utils/params.py
patrick-ubc/Huawei_HiFly_Drone
5dae1b56f49c2b86c3b852bbc5e3a63e84ccd490
[ "Apache-2.0" ]
4
2021-06-11T22:47:04.000Z
2021-07-29T19:57:13.000Z
import sys import os def validate_paths(): """define paths to project, samples and home directory. Check if they exists""" SRC_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) PROJECT_DIR = os.path.dirname(SRC_PATH) MODEL_PATH = os.path.join(PROJECT_DIR, "model") PRESENTER_SERVER_...
39.641026
161
0.537732
08d70208a36a8579c283a6bc880186e3b125f9f1
2,113
py
Python
embiggen/sequences/tensorflow_sequences/node_label_prediction_sequence.py
monarch-initiative/N2V
8ae02ca125f1d24ca158c2849f2d9bb1711920b9
[ "BSD-3-Clause" ]
2
2020-01-30T11:57:37.000Z
2020-05-02T00:05:49.000Z
embiggen/sequences/tensorflow_sequences/node_label_prediction_sequence.py
monarch-initiative/N2V
8ae02ca125f1d24ca158c2849f2d9bb1711920b9
[ "BSD-3-Clause" ]
93
2020-01-26T00:43:51.000Z
2020-05-10T03:29:54.000Z
embiggen/sequences/tensorflow_sequences/node_label_prediction_sequence.py
monarch-initiative/N2V
8ae02ca125f1d24ca158c2849f2d9bb1711920b9
[ "BSD-3-Clause" ]
5
2020-02-13T07:18:11.000Z
2020-03-19T08:03:34.000Z
"""Keras Sequence for running Neural Network on graph node-label embedding.""" from typing import Tuple, Union, Optional import numpy as np import tensorflow as tf from ensmallen import Graph from keras_mixed_sequence import Sequence class NodeLabelPredictionSequence(Sequence): """Keras Sequence for running Neur...
35.813559
105
0.65452
08d713a337c551adb0f09c8f037b6acc7e3ec214
1,002
py
Python
src/idpproxy/social/linkedin/__init__.py
rohe/IdPproxy
da0d52222f54d4c1dee8bcf98d1a5407a3349711
[ "BSD-2-Clause" ]
9
2015-06-25T05:17:03.000Z
2018-01-10T14:31:09.000Z
src/idpproxy/social/linkedin/__init__.py
NORDUnet/IdPproxy
1b2221d8704645ec4b76c27e4ea84b9ce4243e27
[ "BSD-2-Clause" ]
null
null
null
src/idpproxy/social/linkedin/__init__.py
NORDUnet/IdPproxy
1b2221d8704645ec4b76c27e4ea84b9ce4243e27
[ "BSD-2-Clause" ]
null
null
null
import json from idpproxy.social.oauth import OAuth import oauth2 as oauth #from xml.etree import ElementTree as ET import logging logger = logging.getLogger(__name__) __author__ = 'rohe0002' class LinkedIn(OAuth): def __init__(self, client_id, client_secret, **kwargs): OAuth.__init__(self, client_id, cli...
32.322581
78
0.631737
08d73a592373c5bd35021d642617eec6d33d6ef5
9,457
py
Python
tests/users/test_views.py
remisharoon/sadaqah
bf0ef387989b9034238b28d1d950303293abb114
[ "Unlicense" ]
null
null
null
tests/users/test_views.py
remisharoon/sadaqah
bf0ef387989b9034238b28d1d950303293abb114
[ "Unlicense" ]
null
null
null
tests/users/test_views.py
remisharoon/sadaqah
bf0ef387989b9034238b28d1d950303293abb114
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ tests.users.test_views ~~~~~~~~~~~~~~~~~~~~~~~ This module implements view tests which can be seen as "smoke tests" considering they go through the whole application stack for the users API end-points. """ import json from django.test import TestCase from django.core.urlresolvers import r...
32.498282
71
0.579571
08d7403cef545c036fcd7631a142b4c0d6da7721
1,294
py
Python
test/test_sort_enum.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
2
2020-01-30T23:28:59.000Z
2020-05-06T16:43:47.000Z
test/test_sort_enum.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
1
2020-10-02T18:00:25.000Z
2020-10-02T18:00:25.000Z
test/test_sort_enum.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
null
null
null
# coding: utf-8 """ pollination-server Pollination Server OpenAPI Definition # noqa: E501 The version of the OpenAPI document: 0.16.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import datetime import...
24.415094
75
0.66847
08d7538682e368edb2beda501244913a76011412
14,332
py
Python
main.py
Amshra267/BOSCH_A-G_INTERIIT
480af2894d91585ba8940b795fd8f20a6caa2998
[ "MIT" ]
5
2022-03-21T22:21:14.000Z
2022-03-23T12:08:35.000Z
main.py
Amshra267/BOSCH_A-G_INTERIIT
480af2894d91585ba8940b795fd8f20a6caa2998
[ "MIT" ]
null
null
null
main.py
Amshra267/BOSCH_A-G_INTERIIT
480af2894d91585ba8940b795fd8f20a6caa2998
[ "MIT" ]
null
null
null
from copyreg import dispatch_table import os # comment out below line to enable tensorflow logging outputs os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' import time import tensorflow as tf import statistics physical_devices = tf.config.experimental.list_physical_devices('GPU') if len(physical_devices) > 0: tf.config.ex...
39.59116
158
0.630128
08d774c927dd51c6415daf3314bd0b5f4a1437e9
53,688
py
Python
wasatch/EEPROM.py
adiravishankara/Wasatch.PY
058b3de2c9399e9aea6347fa360f9c7dbbf296aa
[ "MIT" ]
null
null
null
wasatch/EEPROM.py
adiravishankara/Wasatch.PY
058b3de2c9399e9aea6347fa360f9c7dbbf296aa
[ "MIT" ]
null
null
null
wasatch/EEPROM.py
adiravishankara/Wasatch.PY
058b3de2c9399e9aea6347fa360f9c7dbbf296aa
[ "MIT" ]
null
null
null
import hashlib import logging import struct import array import math import copy import json import re from . import utils from .ROI import ROI log = logging.getLogger(__name__) ## # This class encapsulates the post-read parsing, pre-write marshalling, and current # state of the 8-page EEPROM used to store non-vola...
47.469496
145
0.508512
08d7774fdd7f141b1288a6c634e25020e6820d69
126
py
Python
example/shop/carts/admin.py
sakkada/django-shopkit
35e6f8ac73bf6aa40887aa9b1b860d27db8b2975
[ "BSD-3-Clause" ]
null
null
null
example/shop/carts/admin.py
sakkada/django-shopkit
35e6f8ac73bf6aa40887aa9b1b860d27db8b2975
[ "BSD-3-Clause" ]
null
null
null
example/shop/carts/admin.py
sakkada/django-shopkit
35e6f8ac73bf6aa40887aa9b1b860d27db8b2975
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from . import models admin.site.register(models.Cart) admin.site.register(models.CartLine)
18
36
0.809524
08d77e0dab6a998ae9852210638dbe832196fdf7
316
py
Python
colossalai/nn/data/_utils.py
rahulgupta9202/ColossalAI
993088d45eaa032e39cf5959df2a506f0663bc2e
[ "Apache-2.0" ]
1
2021-11-02T14:00:27.000Z
2021-11-02T14:00:27.000Z
colossalai/nn/data/_utils.py
rahulgupta9202/ColossalAI
993088d45eaa032e39cf5959df2a506f0663bc2e
[ "Apache-2.0" ]
null
null
null
colossalai/nn/data/_utils.py
rahulgupta9202/ColossalAI
993088d45eaa032e39cf5959df2a506f0663bc2e
[ "Apache-2.0" ]
null
null
null
import numpy as np def pil_img_to_numpy(pil_img): """convert a PIL image to numpy nd-array :param pil_img: a PIL image :type pil_img: PIL.Image :return: a nd-array :rtype: numpy.ndarray """ np_img = np.array(pil_img) np_img = np.rollaxis(np_img, 2) # HWC to CHW return np_img
21.066667
49
0.648734
08d78671bdb7194a741aa86df133f7df25a9aff2
2,764
py
Python
Info/reportExtremes.py
protimient/Glyphs-Scripts
0481ea01153844667cff8cfa3fad97c33af09956
[ "Apache-2.0" ]
2
2021-02-12T20:36:29.000Z
2021-11-03T08:04:01.000Z
Info/reportExtremes.py
protimient/Glyphs-Scripts
0481ea01153844667cff8cfa3fad97c33af09956
[ "Apache-2.0" ]
null
null
null
Info/reportExtremes.py
protimient/Glyphs-Scripts
0481ea01153844667cff8cfa3fad97c33af09956
[ "Apache-2.0" ]
null
null
null
# MenuTitle: Report xMin xMax yMin yMax from collections import OrderedDict from AppKit import NSEvent Glyphs.clearLog() extremes = OrderedDict() # --- From mekkablue --- keysPressed = NSEvent.modifierFlags() shiftKey = 131072 shiftKeyPressed = keysPressed & shiftKey == shiftKey # --- for m in Glyphs.font.masters: ...
37.863014
146
0.634588
08d78feb51d4458d4d5b948bd05f07260192f1f7
868
py
Python
GenerativeModels/config.py
ariel415el/PerceptualLossGLO-Pytorch
7caa743b719cd95066103a69f3e78a70507de8b5
[ "MIT" ]
null
null
null
GenerativeModels/config.py
ariel415el/PerceptualLossGLO-Pytorch
7caa743b719cd95066103a69f3e78a70507de8b5
[ "MIT" ]
null
null
null
GenerativeModels/config.py
ariel415el/PerceptualLossGLO-Pytorch
7caa743b719cd95066103a69f3e78a70507de8b5
[ "MIT" ]
null
null
null
class config: def __init__(self): pass def save(self, path): f = open(path, 'w') f.write(f"img_dim={self.img_dim}\n") f.write(f"z_dim={self.z_dim}\n") f.write(f"lr={self.lr}\n") f.write(f"decay_epochs={self.decay_epochs}\n") f.write(f"decay_rate={self.de...
27.125
54
0.686636
08d794a196fefd4125e48ac6b3627e5ec5accbb9
8,887
py
Python
bonneville/modules/win_useradd.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/modules/win_useradd.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/modules/win_useradd.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
3
2020-05-10T02:08:44.000Z
2020-11-06T11:01:57.000Z
# -*- coding: utf-8 -*- ''' Manage Windows users with the net user command NOTE: This currently only works with local user accounts, not domain accounts ''' # Import bonneville libs import bonneville.utils from bonneville._compat import string_types try: import win32net import win32netcon HAS_WIN32NET_MO...
22.555838
78
0.556431
08d7da2180c1e0804d04634b02d77f380478a3bc
16,010
py
Python
pandaharvester/harvestermisc/arc_parser.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
11
2017-06-01T10:16:58.000Z
2019-11-22T08:41:36.000Z
pandaharvester/harvestermisc/arc_parser.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
34
2016-10-25T19:15:24.000Z
2021-03-05T12:59:04.000Z
pandaharvester/harvestermisc/arc_parser.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
17
2016-10-24T13:29:45.000Z
2021-03-23T17:35:27.000Z
import urllib import json import os import re class ARCParser: '''Converts panda job description to ARC job description using AGIS info''' def __init__(self, jobdesc, pandaqueue, siteinfo, logurl, schedulerid, osmap, tmpdir, eventranges, log): self.log = log # The URL-encoded job that is even...
38.578313
189
0.53679
08d7eaa378008e9dd07269e8c249116bcf4b20dc
5,961
py
Python
pandaharvester/harvesterpreparator/gridftp_preparator.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
7
2019-08-30T07:35:48.000Z
2022-02-13T14:46:53.000Z
pandaharvester/harvesterpreparator/gridftp_preparator.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
29
2019-09-20T14:04:37.000Z
2021-09-13T12:53:05.000Z
pandaharvester/harvesterpreparator/gridftp_preparator.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
15
2019-07-30T11:48:29.000Z
2022-03-29T21:49:05.000Z
import os import tempfile try: import subprocess32 as subprocess except Exception: import subprocess from pandaharvester.harvestercore.plugin_base import PluginBase from pandaharvester.harvestercore import core_utils from pandaharvester.harvestermover import mover_utils # logger baseLogger = core_utils.setup_...
41.978873
111
0.579433
08d7fa87a9540bee49f9027efb04346d10ad3474
15,174
py
Python
tests/e2e/performance/test_pvc_multi_clone_performance.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
tests/e2e/performance/test_pvc_multi_clone_performance.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
tests/e2e/performance/test_pvc_multi_clone_performance.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
import datetime import logging import os import subprocess import tempfile import time import yaml from ocs_ci.framework import config from ocs_ci.framework.testlib import ( skipif_ocs_version, skipif_ocp_version, E2ETest, performance, ) from ocs_ci.ocs import constants, exceptions from ocs_ci.ocs.clu...
36.74092
117
0.586727
08d815ef1fbb6ee1d549d80207c4331641c802aa
1,218
py
Python
master_analysis.py
joshmiller17/icr
9ae27ef5c67307cb18895d6870cfc263d6549883
[ "MIT" ]
null
null
null
master_analysis.py
joshmiller17/icr
9ae27ef5c67307cb18895d6870cfc263d6549883
[ "MIT" ]
null
null
null
master_analysis.py
joshmiller17/icr
9ae27ef5c67307cb18895d6870cfc263d6549883
[ "MIT" ]
null
null
null
## Imports import pandas as pd import numpy as np from functools import reduce ## Reading def validate_df(df): # Keep only valid rows age = df['What is your age?'].fillna(0) adults = (age >= 18) & (age <= 98) return df[adults] df = validate_df(pd.read_csv("data/master.tsv", sep='\t')) ## Num games ...
26.478261
95
0.688013
08d81f9e71d099c316a66df73901b0d94bc40d5e
5,337
py
Python
src/fractalshades/utils.py
GBillotey/Fractal-shades
99c690cb1114ab7edcbfd9836af585fed2b133e8
[ "MIT" ]
3
2021-03-06T18:32:51.000Z
2021-07-07T01:35:21.000Z
src/fractalshades/utils.py
GBillotey/Fractal-shades
99c690cb1114ab7edcbfd9836af585fed2b133e8
[ "MIT" ]
null
null
null
src/fractalshades/utils.py
GBillotey/Fractal-shades
99c690cb1114ab7edcbfd9836af585fed2b133e8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import errno import functools import copy import inspect def mkdir_p(path): """ Creates directory ; if exists does nothing """ try: os.makedirs(path) except OSError as exc: if exc.errno == errno.EEXIST and os.path.isdir(path): pass else...
32.542683
79
0.633689
08d81fabb720d698b1ca1a35094fe62a20d20204
1,153
py
Python
pysot/models/loss.py
wattanapong/DFA
c05851beca2f8739f80531eb4de2f61639715cab
[ "Apache-2.0" ]
null
null
null
pysot/models/loss.py
wattanapong/DFA
c05851beca2f8739f80531eb4de2f61639715cab
[ "Apache-2.0" ]
null
null
null
pysot/models/loss.py
wattanapong/DFA
c05851beca2f8739f80531eb4de2f61639715cab
[ "Apache-2.0" ]
null
null
null
# Copyright (c) SenseTime. All Rights Reserved. from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import torch import torch.nn.functional as F def get_cls_loss(pred, label, select): if len(select.size()) == 0 or \...
30.342105
58
0.674761
08d863e5524802e0e004e8dd004c2bf97974ea9f
2,727
py
Python
src/ggrc_basic_permissions/migrations/versions/20131024025842_169eef85896d_objectowner_permissi.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
1
2018-03-30T11:28:48.000Z
2018-03-30T11:28:48.000Z
src/ggrc_basic_permissions/migrations/versions/20131024025842_169eef85896d_objectowner_permissi.py
trevordonnelly/ggrc-core
499cf0d3cce70737b080991b12c203ec22015cea
[ "ECL-2.0", "Apache-2.0" ]
10
2018-07-06T00:04:23.000Z
2021-02-26T21:13:20.000Z
src/ggrc_basic_permissions/migrations/versions/20131024025842_169eef85896d_objectowner_permissi.py
zidarsk8/ggrc-core
2509c989eddf434249d3bef50c21e08dbf56c1a4
[ "ECL-2.0", "Apache-2.0" ]
1
2017-11-11T22:16:56.000Z
2017-11-11T22:16:56.000Z
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """ObjectOwner permissions changes. Revision ID: 169eef85896d Revises: 33a9ca4c32ac Create Date: 2013-10-24 02:58:42.263799 """ # revision identifiers, used by Alembic. revision = '169eef85896d' down_rev...
23.713043
78
0.624862
08d865baa83cacf1cdb9de6973f33e1537b41523
3,168
py
Python
test/kb_transyt_server_test.py
merlin-sysbio/kb_transyt
2ac22d38927d7c1b66b633db4cc3c892fe9263a3
[ "MIT" ]
1
2020-03-26T17:40:19.000Z
2020-03-26T17:40:19.000Z
test/kb_transyt_server_test.py
merlin-sysbio/kb_transyt
2ac22d38927d7c1b66b633db4cc3c892fe9263a3
[ "MIT" ]
null
null
null
test/kb_transyt_server_test.py
merlin-sysbio/kb_transyt
2ac22d38927d7c1b66b633db4cc3c892fe9263a3
[ "MIT" ]
1
2020-08-10T20:54:19.000Z
2020-08-10T20:54:19.000Z
# -*- coding: utf-8 -*- import os import time import unittest from configparser import ConfigParser from kb_transyt.kb_transytImpl import kb_transyt from kb_transyt.kb_transytServer import MethodContext from kb_transyt.authclient import KBaseAuth as _KBaseAuth from installed_clients.WorkspaceClient import Workspace ...
38.168675
104
0.599116
08d86c8136d94936cb52a048b04a0a1c8c5e429a
1,152
py
Python
sdk/python/tests/compiler/k8s_helper_tests.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
sdk/python/tests/compiler/k8s_helper_tests.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
sdk/python/tests/compiler/k8s_helper_tests.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
# Copyright 2018 The Kubeflow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
32
74
0.657118
08d89f7eeb811431c3a19bc6089d84b545ee41bf
13,397
py
Python
rlkit/torch/sets/vae_launcher.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
rlkit/torch/sets/vae_launcher.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
rlkit/torch/sets/vae_launcher.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
from collections import OrderedDict from typing import List, Tuple import numpy as np import torch import rlkit.torch.sets.rewards from rlkit.envs.encoder_wrappers import EncoderWrappedEnv from rlkit.launchers.contextual.util import get_gym_env from torch.utils import data from multiworld.envs.pygame import PickAndP...
32.050239
91
0.614764
08d8ad200065efcb5c9b5bda5cb42108b0d6bee2
1,772
py
Python
alipay/aop/api/domain/AlipayBossBaseProcessInstanceAddmemoModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayBossBaseProcessInstanceAddmemoModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayBossBaseProcessInstanceAddmemoModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayBossBaseProcessInstanceAddmemoModel(object): def __init__(self): self._memo = None self._operator_id = None self._puid = None @property def memo(self): ...
24.957746
73
0.560948
08d8b3b28efb5dfb44ded27f542b47122f0bed6b
2,333
py
Python
src/Solution1093.py
ArkiWang/LeetcodePy
6b4af8da843910823f7f53989bbda4ec8e6dad15
[ "MIT" ]
null
null
null
src/Solution1093.py
ArkiWang/LeetcodePy
6b4af8da843910823f7f53989bbda4ec8e6dad15
[ "MIT" ]
null
null
null
src/Solution1093.py
ArkiWang/LeetcodePy
6b4af8da843910823f7f53989bbda4ec8e6dad15
[ "MIT" ]
null
null
null
class Solution: # min max mean mid mostcommon def sampleStats(self, count: [int]) -> [float]: cnts = 0 smin = 255 smax = 0 sums = 0 maxc = 0 for i in range(len(count)): cnts += count[i] sums += count[i]*i if count[i] > 0: ...
47.612245
521
0.449207
08d93d9115e0536bd183b34532c584fad2d0a901
2,478
py
Python
src/robot/model/message.py
bradyarthur/RobotFramework
f45747dfec1095359379ba0088cecd955a83e576
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robot/model/message.py
bradyarthur/RobotFramework
f45747dfec1095359379ba0088cecd955a83e576
[ "ECL-2.0", "Apache-2.0" ]
1
2021-01-21T03:06:37.000Z
2021-01-21T03:06:37.000Z
src/robot/model/message.py
bradyarthur/RobotFramework
f45747dfec1095359379ba0088cecd955a83e576
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2008-2015 Nokia Networks # Copyright 2016- Robot Framework Foundation # # 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 ...
34.901408
90
0.66021
08d94323e9fb6b9f83d4d4cbbcaa8aa668ff1d0b
3,783
py
Python
src/ggrc/views/common.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc/views/common.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
10
2018-07-06T00:04:23.000Z
2021-02-26T21:13:20.000Z
src/ggrc/views/common.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
1
2017-11-11T22:16:56.000Z
2017-11-11T22:16:56.000Z
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> import ggrc.builder from flask import request, render_template, current_app from ggrc.rbac import permissions from ggrc.services.common import \ ModelView, as_json, inclusion_filter, filter_resource from...
34.081081
78
0.659529
08d9781d0cdaf4dc53326c3aabf72c146ef00020
4,207
py
Python
thinc/neural/_classes/embed.py
honnibal/thinc
7b8b1a1d084c07d72be0908326750c6127824d30
[ "MIT" ]
44
2015-01-02T22:04:48.000Z
2020-05-15T21:17:10.000Z
thinc/neural/_classes/embed.py
giannisdaras/thinc
92b328ff7ab99c368d31699817487e82cbe1cb9c
[ "MIT" ]
1
2015-12-11T22:31:18.000Z
2015-12-12T00:08:11.000Z
thinc/neural/_classes/embed.py
honnibal/thinc
7b8b1a1d084c07d72be0908326750c6127824d30
[ "MIT" ]
7
2015-06-18T00:50:57.000Z
2016-02-03T17:08:07.000Z
# coding: utf8 from __future__ import unicode_literals import contextlib from ..ops import CupyOps from .model import Model from ... import describe from ... import check from ...check import is_int from ...describe import Dimension, Weights, Synapses, Gradient from .._lsuv import do_lsuv from ..util import copy_arra...
31.395522
82
0.582125
08d9ab340e84ccfd9b390d73832fe86b377b7686
797,966
py
Python
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2018_02_01/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2018_02_01/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2018_02_01/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
41.519642
182
0.653089
08d9dd652f0f1a0087c88e56e4695df24bb630ff
7,502
py
Python
bin/scripts/bracken-build.py
leylabmpi/Struo
cd54cf609ed86f02d228447a7987e4ab0ebe1d1f
[ "MIT" ]
34
2019-09-24T01:48:12.000Z
2022-02-01T09:28:11.000Z
bin/scripts/bracken-build.py
leylabmpi/Struo2
661c6db276ff74792e37fd626f039bce54e46640
[ "MIT" ]
15
2021-02-17T15:19:28.000Z
2022-02-25T09:09:11.000Z
bin/scripts/bracken-build.py
leylabmpi/Struo
cd54cf609ed86f02d228447a7987e4ab0ebe1d1f
[ "MIT" ]
5
2019-09-19T09:52:29.000Z
2021-07-17T12:19:53.000Z
#!/bin/bash ##################################################################### #bracken_build.sh creates the kmer distribution file for a single Kraken database #Copyright (C) 2016-2017 Jennifer Lu, jlu26@jhmi.edu # #This file is part of Bracken. # #Bracken is free software; you can redistribute it and/or modify #i...
43.616279
228
0.628099
08d9e2acc37b387264661e527f7d5aaf81c0534f
1,899
py
Python
hallo/test/modules/convert/test_base.py
joshcoales/Hallo
17145d8f76552ecd4cbc5caef8924bd2cf0cbf24
[ "MIT" ]
1
2018-05-19T22:27:20.000Z
2018-05-19T22:27:20.000Z
hallo/test/modules/convert/test_base.py
joshcoales/Hallo
17145d8f76552ecd4cbc5caef8924bd2cf0cbf24
[ "MIT" ]
75
2015-09-26T18:07:18.000Z
2022-01-04T07:15:11.000Z
hallo/test/modules/convert/test_base.py
SpangleLabs/Hallo
17145d8f76552ecd4cbc5caef8924bd2cf0cbf24
[ "MIT" ]
1
2021-04-10T12:02:47.000Z
2021-04-10T12:02:47.000Z
from threading import Thread import gc from hallo.function_dispatcher import FunctionDispatcher from hallo.hallo import Hallo import unittest from hallo.test.server_mock import ServerMock import time class TestBase(unittest.TestCase): def setUp(self): # Create a Hallo self.hallo = Hallo() ...
33.315789
80
0.637177
08d9e7e037e21e02576b09ccb9cf7b293b0c98f3
2,334
py
Python
nglview/tests/utils.py
stefdoerr/nglview
671016d4277fb969c9c99cf626dd2db9e2d72514
[ "MIT" ]
null
null
null
nglview/tests/utils.py
stefdoerr/nglview
671016d4277fb969c9c99cf626dd2db9e2d72514
[ "MIT" ]
null
null
null
nglview/tests/utils.py
stefdoerr/nglview
671016d4277fb969c9c99cf626dd2db9e2d72514
[ "MIT" ]
1
2021-11-19T02:03:46.000Z
2021-11-19T02:03:46.000Z
import os def get_fn(fn): this_path = os.path.dirname(os.path.abspath(__file__)) return os.path.join(this_path, 'data', fn) repr_dict = {'c0': {'0': {'name': 'cartoon', 'parameters': {'aspectRatio': 5, 'assembly': 'default', 'capped': True, 'clipNear': 0, 'colorDomain': '', 'colorMode':...
24.061856
58
0.550985
08d9ecd37e80e04ba1637caeae7c28062d91361f
4,948
py
Python
sasmodels/models/vesicle.py
zattala/sasmodels
a547aa73d43145b3bd34770b0ea27ba8882170a3
[ "BSD-3-Clause" ]
null
null
null
sasmodels/models/vesicle.py
zattala/sasmodels
a547aa73d43145b3bd34770b0ea27ba8882170a3
[ "BSD-3-Clause" ]
null
null
null
sasmodels/models/vesicle.py
zattala/sasmodels
a547aa73d43145b3bd34770b0ea27ba8882170a3
[ "BSD-3-Clause" ]
null
null
null
r""" Definition ---------- This model provides the form factor, *P(q)*, for an unilamellar vesicle and is effectively identical to the hollow sphere reparameterized to be more intuitive for a vesicle and normalizing the form factor by the volume of the shell. The 1D scattering intensity is calculated in the following ...
37.484848
94
0.63844
08da1eefb34a6f5a6324fc0e8f1156f1f0312d37
10,227
py
Python
pystream/sequential_stream.py
RikiTikkiTavi/PyStream-API
8a7101fcf5aa0db5e00a0fac3285548497c81145
[ "MIT" ]
null
null
null
pystream/sequential_stream.py
RikiTikkiTavi/PyStream-API
8a7101fcf5aa0db5e00a0fac3285548497c81145
[ "MIT" ]
null
null
null
pystream/sequential_stream.py
RikiTikkiTavi/PyStream-API
8a7101fcf5aa0db5e00a0fac3285548497c81145
[ "MIT" ]
null
null
null
from functools import reduce from itertools import chain, islice, count from typing import Generic, TypeVar, Callable, Iterable, Any, Tuple, Iterator, List, Union, Generator from multiprocessing import cpu_count import pystream.infrastructure.nullable as nullable import pystream.parallel_stream as parallel_stream impo...
40.74502
137
0.667351
08da4721456e991194bd65107fb24db73cef0382
11,065
py
Python
transformer/scenario.py
jsabak/Transformer
c96ff1bed109f114f7c69143c85ee362e5f518d1
[ "MIT" ]
null
null
null
transformer/scenario.py
jsabak/Transformer
c96ff1bed109f114f7c69143c85ee362e5f518d1
[ "MIT" ]
null
null
null
transformer/scenario.py
jsabak/Transformer
c96ff1bed109f114f7c69143c85ee362e5f518d1
[ "MIT" ]
null
null
null
import json import logging from collections import defaultdict from pathlib import Path from typing import ( Sequence, Mapping, Union, Set, List, Optional, Dict, Tuple, NamedTuple, ) import transformer.plugins as plug from transformer.naming import to_identifier from transformer.pl...
35.015823
87
0.613014
08da6b4771c11626f2b1e4199314a129e0c7bb3d
3,089
py
Python
app/ml/train_data.py
curioswati/scrapy-tsa
50556880125412e0b8d925fb46c41c44dd31fb37
[ "MIT" ]
2
2020-01-15T05:17:23.000Z
2020-08-13T01:50:00.000Z
app/ml/train_data.py
curioswati/scrapy-tsa
50556880125412e0b8d925fb46c41c44dd31fb37
[ "MIT" ]
null
null
null
app/ml/train_data.py
curioswati/scrapy-tsa
50556880125412e0b8d925fb46c41c44dd31fb37
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy import csv import re, nltk from sklearn.feature_extraction.text import CountVectorizer from nltk.stem.porter import PorterStemmer from sklearn.linear_model import LogisticRegression # from sklearn.cross_validation import train_test_split from sklearn.externals import joblib...
26.86087
94
0.717708
08daa2f39a48d03451710cde724015d1507b34d6
7,377
py
Python
GUI/surface.py
jarekj71/salbec
4aa85bcc5b501d641d78d93794355be2f1a75047
[ "MIT" ]
null
null
null
GUI/surface.py
jarekj71/salbec
4aa85bcc5b501d641d78d93794355be2f1a75047
[ "MIT" ]
null
null
null
GUI/surface.py
jarekj71/salbec
4aa85bcc5b501d641d78d93794355be2f1a75047
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Jan 10 15:55:55 2020 @author: jarekj """ from PyQt5 import QtWidgets from PyQt5.QtCore import (pyqtSignal) import pickle, os, sys import pandas as pd from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas from matplotlib.figu...
33.38009
97
0.619764
08daa4c3cd95cff4c43601dcc9f1c525c5d51089
5,162
py
Python
cogs/snipe.py
prakarsh17/tessarect-bot
6f1f05733b33bdfbcb5adc7754a059b1c2945c12
[ "MIT" ]
10
2022-01-28T11:27:36.000Z
2022-02-25T14:24:17.000Z
cogs/snipe.py
prakarsh17/tessarect-bot
6f1f05733b33bdfbcb5adc7754a059b1c2945c12
[ "MIT" ]
1
2022-01-29T15:24:17.000Z
2022-01-29T15:24:17.000Z
cogs/snipe.py
prakarsh17/tessarect-bot
6f1f05733b33bdfbcb5adc7754a059b1c2945c12
[ "MIT" ]
1
2022-01-29T03:50:33.000Z
2022-01-29T03:50:33.000Z
import discord from discord.ext import commands import DiscordUtils from discord.ext.commands import has_permissions, MissingPermissions import datetime class Snipe(commands.Cog): def __init__(self, bot): self.bot = bot self.description = ( " <:sucess:935052640449077248> Commands to sn...
35.847222
160
0.575746
08dacb89daecbd159db97305f2554c540fa9c29d
29,372
py
Python
pex/variables.py
sthagen/pantsbuild-pex
bffe6c3641b809cd3b20adbc7fdb2cf7e5f54309
[ "Apache-2.0" ]
null
null
null
pex/variables.py
sthagen/pantsbuild-pex
bffe6c3641b809cd3b20adbc7fdb2cf7e5f54309
[ "Apache-2.0" ]
null
null
null
pex/variables.py
sthagen/pantsbuild-pex
bffe6c3641b809cd3b20adbc7fdb2cf7e5f54309
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). # Due to the PEX_ properties, disable checkstyle. # checkstyle: noqa from __future__ import absolute_import import hashlib import json import os import re import sys from contextlib impo...
36.127921
102
0.628354
08dacbf592f173ce881719d8f1ffe931956a69aa
1,261
py
Python
experiments/ashvin/icml2020/hand/dapg/sweep_npg1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/dapg/sweep_npg1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/dapg/sweep_npg1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
""" AWR + SAC from demo experiment """ from rlkit.demos.source.dict_to_mdp_path_loader import DictToMDPPathLoader from rlkit.demos.source.mdp_path_loader import MDPPathLoader from rlkit.launchers.experiments.ashvin.hand_dapg import experiment, process_args import rlkit.misc.hyperparameter as hyp from rlkit.launchers....
30.02381
81
0.679619
08dad366c596688fbd6332f28bda9eee80fcac73
3,470
py
Python
dxc/ai/clean_data/clean_data.py
Amarify/DXC-Industrialized-AI-Starter
87e050e6871bfcd86f37c90ec597f035cb270744
[ "Apache-2.0" ]
null
null
null
dxc/ai/clean_data/clean_data.py
Amarify/DXC-Industrialized-AI-Starter
87e050e6871bfcd86f37c90ec597f035cb270744
[ "Apache-2.0" ]
null
null
null
dxc/ai/clean_data/clean_data.py
Amarify/DXC-Industrialized-AI-Starter
87e050e6871bfcd86f37c90ec597f035cb270744
[ "Apache-2.0" ]
null
null
null
import pandas as pd import janitor #data cleaning from ftfy import fix_text #data cleaning import nltk #data cleaning nltk.download('punkt') #data cleaning import scrubadub #data cleaning import arrow #normalizing dates import numpy as np from sklearn.base import TransformerMixin from sklearn.impute import KNNImputer #...
36.145833
122
0.69683
08dad8bbdab6a4e8e737cf3de79402a540b2b492
5,272
py
Python
google-machine-learning-crash-course/py/2_tensorflow_example.py
vmarchesin/ml-playground
d9ee805f0fc32bcff244e65aadfd344e24fae8d7
[ "MIT" ]
null
null
null
google-machine-learning-crash-course/py/2_tensorflow_example.py
vmarchesin/ml-playground
d9ee805f0fc32bcff244e65aadfd344e24fae8d7
[ "MIT" ]
null
null
null
google-machine-learning-crash-course/py/2_tensorflow_example.py
vmarchesin/ml-playground
d9ee805f0fc32bcff244e65aadfd344e24fae8d7
[ "MIT" ]
null
null
null
from __future__ import print_function import math import os from IPython import display from matplotlib import cm from matplotlib import gridspec from matplotlib import pyplot as plt import numpy as np import pandas as pd from sklearn import metrics import tensorflow as tf from tensorflow.python.data import Dataset ...
36.109589
105
0.706942
08dae48b0f0463b2566fb035645f5368b260beea
77,370
py
Python
seismicToolBox.py
nvinard/seismicToolBox
f304a87ab61ed6c0c2ef730be01421a937ce5b22
[ "MIT" ]
9
2020-08-27T19:58:54.000Z
2022-03-22T06:51:18.000Z
seismicToolBox.py
nvinard/seismicToolBox
f304a87ab61ed6c0c2ef730be01421a937ce5b22
[ "MIT" ]
null
null
null
seismicToolBox.py
nvinard/seismicToolBox
f304a87ab61ed6c0c2ef730be01421a937ce5b22
[ "MIT" ]
4
2020-04-16T04:38:48.000Z
2022-03-22T09:59:20.000Z
""" A python module for plotting and manipulating seismic data and headers, kirchhoff migration and more. Contains the following functions load_header : load mat file header load_segy : load segy dataset sorthdr : sort seismic header sortdata : sort seism...
29.340159
166
0.56138
08daf18318aa50b40182464b34c7ba540d2f8856
3,178
py
Python
company/migrations/0031_auto_20170121_1552.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
1
2021-11-06T12:08:26.000Z
2021-11-06T12:08:26.000Z
company/migrations/0031_auto_20170121_1552.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
null
null
null
company/migrations/0031_auto_20170121_1552.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.10 on 2017-01-21 15:52 from __future__ import unicode_literals import directory_validators.enrolment from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('company', '0030_auto_20170117_1451'), ] opera...
99.3125
1,889
0.696665
08dafe33bd8e5e77a42bfea39a372392c6dd29ec
657
py
Python
demo/test2.py
tkerola/matrix_calculus
21c4f262b501337996453280d75d06a47a9fd135
[ "MIT" ]
1
2019-04-18T03:48:08.000Z
2019-04-18T03:48:08.000Z
demo/test2.py
tkerola/matrix_calculus
21c4f262b501337996453280d75d06a47a9fd135
[ "MIT" ]
null
null
null
demo/test2.py
tkerola/matrix_calculus
21c4f262b501337996453280d75d06a47a9fd135
[ "MIT" ]
null
null
null
from matrix_calculus import * from matrix_calculus.matrix_massage import massage2canonical from matrix_calculus.show_latex import show_latex def main(): W = Variable("W") z = Variable("z") u = W * z v = W.T * u expr = Tr(u.T * u * (v.T * v).I) wrt = W print("Jacobian") dX = show_de...
18.771429
60
0.613394
08db0117c4a90a2a26d754d23b8c10ad31b3fe96
30
py
Python
aim/sdk/legacy/session/configs.py
admariner/aim
4c143ea40acf3531abfa69f66503428d73d9fedc
[ "Apache-2.0" ]
2,195
2020-01-23T03:08:11.000Z
2022-03-31T14:32:19.000Z
aim/sdk/legacy/session/configs.py
admariner/aim
4c143ea40acf3531abfa69f66503428d73d9fedc
[ "Apache-2.0" ]
696
2020-02-08T21:55:45.000Z
2022-03-31T16:52:22.000Z
aim/sdk/legacy/session/configs.py
admariner/aim
4c143ea40acf3531abfa69f66503428d73d9fedc
[ "Apache-2.0" ]
150
2020-03-27T10:44:25.000Z
2022-03-21T21:29:41.000Z
DEFAULT_FLUSH_FREQUENCY = 128
15
29
0.866667
08db133d3287045facd1f2175d1d7ff41f830163
452
py
Python
alipay/aop/api/response/AlipayPayCodecAcodeCertExpireResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayPayCodecAcodeCertExpireResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayPayCodecAcodeCertExpireResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayPayCodecAcodeCertExpireResponse(AlipayResponse): def __init__(self): super(AlipayPayCodecAcodeCertExpireResponse, self).__init__() def parse_response_content(self...
28.25
110
0.785398
08db13741f976f2e2297823df85a34f4b9716dc9
797
py
Python
Task1F.py
jgm48/ia-flood-risk-project
b0e61bae8ff4c00bf767e95f7e271760c0bff543
[ "MIT" ]
null
null
null
Task1F.py
jgm48/ia-flood-risk-project
b0e61bae8ff4c00bf767e95f7e271760c0bff543
[ "MIT" ]
null
null
null
Task1F.py
jgm48/ia-flood-risk-project
b0e61bae8ff4c00bf767e95f7e271760c0bff543
[ "MIT" ]
null
null
null
'''TASK 1F''' from distutils.command.build import * from floodsystem.geo import * from floodsystem.datafetcher import * from floodsystem.stationdata import build_station_list from floodsystem.station import MonitoringStation, inconsistent_typical_range_stations def run(): # Build a list of stations stations =...
30.653846
96
0.754078
08db4356464abdd19db816e2cf7147b55dde54cf
3,725
py
Python
pytorch/gary_sampler.py
G-Wang/wavenet
a0e39e2c128dec1ad2d534e4b7a436d67a119f9a
[ "Apache-2.0", "BSD-3-Clause" ]
2
2018-12-20T09:33:28.000Z
2019-05-16T14:51:40.000Z
pytorch/gary_sampler.py
G-Wang/wavenet
a0e39e2c128dec1ad2d534e4b7a436d67a119f9a
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
pytorch/gary_sampler.py
G-Wang/wavenet
a0e39e2c128dec1ad2d534e4b7a436d67a119f9a
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
import argparse import json import os import random import torch import torch.utils.data import sys import audio as deepaudio from hparams import hparams import utils class DeepMels(torch.utils.data.Dataset): """ This is the main class that calculates the spectrogram and returns the spectrogram, audio pai...
37.626263
121
0.660403
08dbc02e8c000ee8dbb0590f62bb58170ea9c41f
20,551
py
Python
MuyGPyS/gp/kernels.py
igoumiri/MuyGPyS
f60e67108a94d556ab330645bc792acbb84a8a3a
[ "MIT-0", "MIT" ]
null
null
null
MuyGPyS/gp/kernels.py
igoumiri/MuyGPyS
f60e67108a94d556ab330645bc792acbb84a8a3a
[ "MIT-0", "MIT" ]
null
null
null
MuyGPyS/gp/kernels.py
igoumiri/MuyGPyS
f60e67108a94d556ab330645bc792acbb84a8a3a
[ "MIT-0", "MIT" ]
null
null
null
# Copyright 2021 Lawrence Livermore National Security, LLC and other MuyGPyS # Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: MIT """Hyperparameters and kernel functors Defines kernel functors (inheriting :class:`MuyGPyS.gp.kernels.KernelFn`) that transform crosswise di...
34.95068
125
0.559535
08dbc7f86c390e6986859f53b49474d2c5697c63
15,060
py
Python
train2.py
stan-holaysan/Thesis-MaskRCNN
ecc4de12473545bdfb744f01224a6df6266ef605
[ "MIT" ]
null
null
null
train2.py
stan-holaysan/Thesis-MaskRCNN
ecc4de12473545bdfb744f01224a6df6266ef605
[ "MIT" ]
null
null
null
train2.py
stan-holaysan/Thesis-MaskRCNN
ecc4de12473545bdfb744f01224a6df6266ef605
[ "MIT" ]
null
null
null
""" Mask R-CNN Train on the toy bottle dataset and implement color splash effect. Copyright (c) 2018 Matterport, Inc. Licensed under the MIT License (see LICENSE for details) Written by Waleed Abdulla ------------------------------------------------------------ Usage: import the module (see Jupyter notebooks for exampl...
39.116883
129
0.587716
08dbeb7a7ab544c1df762f7d919218782522c729
1,274
py
Python
sdk/communication/azure-communication-siprouting/samples/get_sip_configuration_sample.py
jiriburant/azure-sdk-for-python
a3b20fd3cf30145ee74fa3dfafbdce98ea9f6ef0
[ "MIT" ]
null
null
null
sdk/communication/azure-communication-siprouting/samples/get_sip_configuration_sample.py
jiriburant/azure-sdk-for-python
a3b20fd3cf30145ee74fa3dfafbdce98ea9f6ef0
[ "MIT" ]
1
2021-05-31T08:56:01.000Z
2021-05-31T08:56:01.000Z
sdk/communication/azure-communication-siprouting/samples/get_sip_configuration_sample.py
jiriburant/azure-sdk-for-python
a3b20fd3cf30145ee74fa3dfafbdce98ea9f6ef0
[ "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. # -------------------------------------------------------------------------- """ FILE:...
35.388889
96
0.673469
08dc0323d8098ffed9263586e6904bea4b1c4c3a
2,691
py
Python
applications/shop/models/paymentmethod/cb.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
null
null
null
applications/shop/models/paymentmethod/cb.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
1
2022-03-12T00:57:37.000Z
2022-03-12T00:57:37.000Z
applications/shop/models/paymentmethod/cb.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
null
null
null
from django.conf import settings from django.core.exceptions import ValidationError from mighty.applications.shop.apps import cards_test, ShopConfig import re class CBModel: @property def readable_cb(self): return ' '.join([self.cb[i:i+4] for i in range(0, len(self.cb), 4)]) @property def str_...
39.573529
114
0.626161
08dc043e88418006f8a1c26f822eecfdf2ada947
2,223
py
Python
django_learning/dim_sum/views.py
angelptli/django-learning
f0d25e4b85526c2c092c4e4d2f108e7602db7f0d
[ "MIT" ]
null
null
null
django_learning/dim_sum/views.py
angelptli/django-learning
f0d25e4b85526c2c092c4e4d2f108e7602db7f0d
[ "MIT" ]
null
null
null
django_learning/dim_sum/views.py
angelptli/django-learning
f0d25e4b85526c2c092c4e4d2f108e7602db7f0d
[ "MIT" ]
null
null
null
from django.http import Http404 from django.shortcuts import render, get_object_or_404, redirect from .models import DimSumItem from .forms import AddItemForm, RawItemForm def dimsum_detail_view(request): queryset = DimSumItem.objects.all() return render(request, "dim_sum/detail.html", {'items': queryset}) ...
24.7
82
0.635178
08dc0f8bd71bbfc7c69d54c657e2bf77e3d41498
14,753
py
Python
CADRE/sun.py
robfalck/CADRE
f1fb419aade62fe830d56d958f35f1e153f04363
[ "Apache-2.0" ]
6
2015-05-13T23:44:26.000Z
2021-05-30T07:23:30.000Z
CADRE/sun.py
robfalck/CADRE
f1fb419aade62fe830d56d958f35f1e153f04363
[ "Apache-2.0" ]
4
2018-07-24T20:10:52.000Z
2018-09-07T17:16:51.000Z
CADRE/sun.py
robfalck/CADRE
f1fb419aade62fe830d56d958f35f1e153f04363
[ "Apache-2.0" ]
14
2015-07-21T17:41:42.000Z
2020-07-31T09:49:09.000Z
""" Sun discipline for CADRE """ from six.moves import range import numpy as np import scipy.sparse from openmdao.core.explicitcomponent import ExplicitComponent from CADRE.kinematics import computepositionrotd, computepositionrotdjacobian from CADRE.kinematics import computepositionspherical, computepositionspheric...
36.248157
98
0.494205
08dc2805ccd9cd5b8a86fd682a2d93306284eb65
881
py
Python
tests/constraints/test_regime_constraint.py
pnnl/SOSAT
610f99e0bb80f2f5e7836e7e3b6b816e029838bb
[ "BSD-3-Clause" ]
null
null
null
tests/constraints/test_regime_constraint.py
pnnl/SOSAT
610f99e0bb80f2f5e7836e7e3b6b816e029838bb
[ "BSD-3-Clause" ]
1
2021-03-22T18:59:05.000Z
2021-03-22T18:59:05.000Z
tests/constraints/test_regime_constraint.py
pnnl/SOSAT
610f99e0bb80f2f5e7836e7e3b6b816e029838bb
[ "BSD-3-Clause" ]
null
null
null
import pytest from scipy.stats import lognorm import numpy as np import matplotlib.pyplot as plt from SOSAT import StressState from SOSAT.constraints import FaultingRegimeConstraint from SOSAT.constraints import SU # depth in meters depth = 1228.3 # density in kg/m^3 avg_overburden_density = 2580.0 # pore pressure gr...
27.53125
72
0.692395
08dc32025ebacba69b02d48b2461129ef9667409
2,234
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/tlc59711_simpletest.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/tlc59711_simpletest.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/tlc59711_simpletest.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT # Simple demo of the TLC59711 16-bit 12 channel LED PWM driver. # Shows setting channel values in a few ways. # Author: Tony DiCola import board import busio import adafruit_tlc59711 # Define SPI bus connected to chip. Yo...
41.37037
78
0.755595
08dc5840bc3703ba41eb0e6af551d8066faeb614
3,931
py
Python
video_generator_script.py
AndreaCoop/Video_creator
2518a3527bff013466e887f6d1bc06fe2a8e4912
[ "MIT" ]
null
null
null
video_generator_script.py
AndreaCoop/Video_creator
2518a3527bff013466e887f6d1bc06fe2a8e4912
[ "MIT" ]
null
null
null
video_generator_script.py
AndreaCoop/Video_creator
2518a3527bff013466e887f6d1bc06fe2a8e4912
[ "MIT" ]
null
null
null
# script to create an animated plot from a simulation # import data # import packages import numpy as np import matplotlib.pyplot as plt from matplotlib import animation # + # input # data from a .txt file file_data = "sin_expdecay.txt" #set title and legth of the movie title_movie = 'example3_20s_5dpi' length_mo...
33.033613
120
0.632409
08dc5dbae054e3fad24c9ec98a9699ea79121ea2
4,691
py
Python
core/migrations/0002_auto_20191215_0201.py
IS-AgroSmart/MVP
b347e7c846a9a29584a6baee0b825381d5bc62a3
[ "CNRI-Python" ]
null
null
null
core/migrations/0002_auto_20191215_0201.py
IS-AgroSmart/MVP
b347e7c846a9a29584a6baee0b825381d5bc62a3
[ "CNRI-Python" ]
140
2020-01-21T15:42:29.000Z
2021-08-21T18:04:19.000Z
core/migrations/0002_auto_20191215_0201.py
IS-AgroSmart/AgroSmart-Web
b347e7c846a9a29584a6baee0b825381d5bc62a3
[ "CNRI-Python" ]
1
2021-05-03T06:12:35.000Z
2021-05-03T06:12:35.000Z
# Generated by Django 3.0 on 2019-12-15 02:01 import core.models from django.conf import settings from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ] operations = [ migr...
46.91
333
0.586229
08dc6071270088b34f8e9ece131ce67382ba6ec5
2,354
py
Python
kafka_utils/kafka_consumer_manager/commands/list_topics.py
yemyatthein/kafka-utils
243cab3031f8af41ab4a8cfdce391f5377eba1c4
[ "Apache-2.0" ]
302
2016-05-18T02:05:04.000Z
2022-03-28T21:36:28.000Z
kafka_utils/kafka_consumer_manager/commands/list_topics.py
yemyatthein/kafka-utils
243cab3031f8af41ab4a8cfdce391f5377eba1c4
[ "Apache-2.0" ]
135
2016-05-17T23:15:16.000Z
2021-11-04T13:35:51.000Z
kafka_utils/kafka_consumer_manager/commands/list_topics.py
yemyatthein/kafka-utils
243cab3031f8af41ab4a8cfdce391f5377eba1c4
[ "Apache-2.0" ]
133
2016-05-18T10:23:05.000Z
2022-01-29T17:24:17.000Z
# -*- coding: utf-8 -*- # Copyright 2016 Yelp 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 ...
33.628571
79
0.658454
08dc68bb234cb585daf0bc09855294f6c0002821
5,878
py
Python
aea/helpers/serializers.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
28
2021-10-31T18:54:14.000Z
2022-03-17T13:10:43.000Z
aea/helpers/serializers.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
66
2021-10-31T11:55:48.000Z
2022-03-31T06:26:23.000Z
aea/helpers/serializers.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2022 Valory AG # Copyright 2018-2021 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
35.409639
145
0.5951
08dc6ba15bc7a5b294884cdd5fcb2d769db6407e
41,538
py
Python
webcom/migrations/0001_initial.py
xbound/isp-system
2990f69357387e00524f5e99f00f00b81d10b11f
[ "MIT" ]
null
null
null
webcom/migrations/0001_initial.py
xbound/isp-system
2990f69357387e00524f5e99f00f00b81d10b11f
[ "MIT" ]
null
null
null
webcom/migrations/0001_initial.py
xbound/isp-system
2990f69357387e00524f5e99f00f00b81d10b11f
[ "MIT" ]
null
null
null
# Generated by Django 2.0.5 on 2018-06-05 11:05 from decimal import Decimal import django.core.validators from django.db import migrations, models import django.db.models.deletion import djmoney.models.fields class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ ...
127.417178
5,144
0.576942
08dc71c49447eb4b93c830da7998a5a974c9e8dc
1,563
bzl
Python
workspace.bzl
yuhongjiu/compression
54d66a632ffb13b2ccdf676128352ec4dc0f361e
[ "Apache-2.0" ]
3
2019-12-19T04:00:41.000Z
2021-01-10T17:41:34.000Z
workspace.bzl
yuhongjiu/compression
54d66a632ffb13b2ccdf676128352ec4dc0f361e
[ "Apache-2.0" ]
null
null
null
workspace.bzl
yuhongjiu/compression
54d66a632ffb13b2ccdf676128352ec4dc0f361e
[ "Apache-2.0" ]
1
2019-11-01T03:07:00.000Z
2019-11-01T03:07:00.000Z
"""WORKSPACE setup functions.""" def _tensorflow_pip_impl(ctx): python_program = ctx.which(ctx.attr.python_program) library_path = ctx.execute([ python_program, "-c", "import tensorflow; print(tensorflow.sysconfig.get_lib())", ]) include_path = ctx.execute([ python_program, "-c",...
28.944444
74
0.662188
08dc73d39313aa9a7b372463514f0fff4a0d1728
7,130
py
Python
ddCRP/Priors.py
kristianeschenburg/ddCRP
3c503418050b45e2156964c1e0165e92eb980fab
[ "BSD-3-Clause" ]
22
2018-08-03T13:35:09.000Z
2021-10-07T17:00:18.000Z
ddCRP/Priors.py
kristianeschenburg/ddCRP
3c503418050b45e2156964c1e0165e92eb980fab
[ "BSD-3-Clause" ]
4
2019-07-12T15:03:00.000Z
2020-06-02T04:34:06.000Z
ddCRP/Priors.py
kristianeschenburg/ddCRP
3c503418050b45e2156964c1e0165e92eb980fab
[ "BSD-3-Clause" ]
5
2019-09-23T15:13:03.000Z
2020-09-27T08:58:11.000Z
import numpy as np from numpy.linalg import det from scipy.special import gammaln, multigammaln from ddCRP.PriorBase import Prior class NIW(Prior): """ Normal-Inverse-Chi-Squared prior model for connectivity features. Parameters: - - - - - - mu0, kappa0: float priors on distribution mean...
25.833333
86
0.543478
08dc77afc90d0de78e75a48b93c7ce6a36a3e05b
1,688
py
Python
core/utils/live.py
fergalmoran/dss.api
d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073
[ "BSD-2-Clause" ]
null
null
null
core/utils/live.py
fergalmoran/dss.api
d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073
[ "BSD-2-Clause" ]
null
null
null
core/utils/live.py
fergalmoran/dss.api
d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073
[ "BSD-2-Clause" ]
null
null
null
import logging import urllib.request, urllib.error, urllib.parse from bs4 import BeautifulSoup def _parseItem(soup, param): try: match = soup.find(text=param) if match is not None: return match.findNext('td').contents[0] except Exception as ex: logging.getLogger('core').exce...
37.511111
86
0.57346
08dc9a7e65fb06d0338375a6b78fabc8eceb5d79
4,303
py
Python
regreg/problems/dual_problem.py
sroet/regreg
299ff18b8680872d4d85447953793bf438f78bba
[ "BSD-3-Clause" ]
9
2015-07-14T12:39:10.000Z
2022-02-03T11:13:03.000Z
regreg/problems/dual_problem.py
sroet/regreg
299ff18b8680872d4d85447953793bf438f78bba
[ "BSD-3-Clause" ]
2
2015-02-24T18:05:58.000Z
2020-12-29T11:58:58.000Z
regreg/problems/dual_problem.py
sroet/regreg
299ff18b8680872d4d85447953793bf438f78bba
[ "BSD-3-Clause" ]
8
2015-07-13T07:59:16.000Z
2021-06-23T09:21:43.000Z
import numpy as np from scipy import sparse from warnings import warn from ..algorithms import FISTA from ..problems.composite import (composite, nonsmooth as nonsmooth_composite, smooth as smooth_composite) from ..affine import (vstack as afvstack, identity as afidentity, power_L, ...
32.847328
102
0.642343
08dcbf10a7a7cfeef6e76b8eb4e8526d06155765
12,036
py
Python
betka/git.py
sclorg/betka
d6155c8958c987f60be042bb23e98d0e701e2535
[ "MIT" ]
1
2020-11-05T21:16:28.000Z
2020-11-05T21:16:28.000Z
betka/git.py
sclorg/betka
d6155c8958c987f60be042bb23e98d0e701e2535
[ "MIT" ]
16
2020-03-20T11:23:27.000Z
2022-03-08T17:09:11.000Z
betka/git.py
sclorg/betka
d6155c8958c987f60be042bb23e98d0e701e2535
[ "MIT" ]
1
2020-03-11T09:29:48.000Z
2020-03-11T09:29:48.000Z
# MIT License # # Copyright (c) 2020 SCL team at Red Hat # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify,...
37.033846
100
0.614074
08dcbf6740271acd8d5588ede96816ee14234b42
1,344
py
Python
hops/featurestore_impl/dao/stats/feature_correlation.py
tabularaza27/hops-util-py
3e2733ebe4783f88ecf22cbeb4d8f1f8d56c65cd
[ "Apache-2.0" ]
1
2020-09-16T08:29:56.000Z
2020-09-16T08:29:56.000Z
hops/featurestore_impl/dao/stats/feature_correlation.py
tabularaza27/hops-util-py
3e2733ebe4783f88ecf22cbeb4d8f1f8d56c65cd
[ "Apache-2.0" ]
3
2019-10-01T16:17:23.000Z
2020-02-23T06:30:15.000Z
hops/featurestore_impl/dao/stats/feature_correlation.py
tabularaza27/hops-util-py
3e2733ebe4783f88ecf22cbeb4d8f1f8d56c65cd
[ "Apache-2.0" ]
11
2019-09-18T12:55:02.000Z
2020-03-31T08:11:24.000Z
from hops import constants from hops.featurestore_impl.dao.stats.correlation_value import CorrelationValue class FeatureCorrelation(object): """ Represents a Feature Correlation in a Correlation Matrix computed for a featuregroup or training dataset in the featurestore """ def __init__(self, feat...
37.333333
110
0.726935
08dcc3e44300f87818acfa4ce12a6253a34e52cb
1,048
py
Python
LeetCode/easy - Hash Table/447. Number of Boomerangs/solution.py
vincent507cpu/Comprehensive-Algorithm-Solution
04e01e49622457f09af2e1133954f043c0c92cb9
[ "MIT" ]
4
2020-06-26T00:45:53.000Z
2021-04-19T12:23:32.000Z
LeetCode/easy - Hash Table/447. Number of Boomerangs/solution.py
vincent507cpu/LeetCode-Comprehensive-Solution
04e01e49622457f09af2e1133954f043c0c92cb9
[ "MIT" ]
null
null
null
LeetCode/easy - Hash Table/447. Number of Boomerangs/solution.py
vincent507cpu/LeetCode-Comprehensive-Solution
04e01e49622457f09af2e1133954f043c0c92cb9
[ "MIT" ]
null
null
null
# My solution # https://leetcode.com/problems/number-of-boomerangs/discuss/611743/python3-solution-with-explanations class Solution: def numberOfBoomerangs(self, points: List[List[int]]) -> int: if len(points) < 3: # tuple must have at least 3 elements return 0 res = 0 ...
41.92
102
0.57729
08dce84819b4fad70fda351471974ca27cde4697
6,469
py
Python
test/test_connection.py
tmarback/speedtest-manager
4e1023605c206cbeffca3b5e815e94ff8023fb26
[ "MIT" ]
null
null
null
test/test_connection.py
tmarback/speedtest-manager
4e1023605c206cbeffca3b5e815e94ff8023fb26
[ "MIT" ]
null
null
null
test/test_connection.py
tmarback/speedtest-manager
4e1023605c206cbeffca3b5e815e94ff8023fb26
[ "MIT" ]
null
null
null
import json import logging import os import socket from concurrent import futures from typing import Mapping, Sequence, Tuple, Union import pytest from speedtest_manager.connection import Connection, Server, Client, Data, Request, Response class TestConnection: INPUTS: Mapping = [ { 'key1': ...
30.370892
106
0.547071
08dcee378caeac67f97247b0a02f152608f74720
369
py
Python
python_legacy/examples/properties01.py
garred/only_fighters
55c3cc06884f3226d75a800e1ee79afd2c23aa8b
[ "CC-BY-3.0", "CC0-1.0" ]
null
null
null
python_legacy/examples/properties01.py
garred/only_fighters
55c3cc06884f3226d75a800e1ee79afd2c23aa8b
[ "CC-BY-3.0", "CC0-1.0" ]
null
null
null
python_legacy/examples/properties01.py
garred/only_fighters
55c3cc06884f3226d75a800e1ee79afd2c23aa8b
[ "CC-BY-3.0", "CC0-1.0" ]
null
null
null
'''Stupid example of properties''' class MyClass(object): def __init__(self): self.__x = None @property def x(self): return self.__x @x.setter def x(self, value): if value > 0: self.__x = value else: self.__x = -(2*value) a = MyClass() a.x ...
14.76
34
0.520325
08dd031dfde82f2c216b0a7f585543910d88a978
1,533
py
Python
lily/utils.py
mjamesruggiero/lily
8348e41709d937bc0171604ab5a4f2c707b7dc17
[ "Apache-2.0" ]
null
null
null
lily/utils.py
mjamesruggiero/lily
8348e41709d937bc0171604ab5a4f2c707b7dc17
[ "Apache-2.0" ]
null
null
null
lily/utils.py
mjamesruggiero/lily
8348e41709d937bc0171604ab5a4f2c707b7dc17
[ "Apache-2.0" ]
null
null
null
import os def load_dataset(file_path): data_matrix = [] label_matrix = [] fr = open(file_path) for line in fr.readlines(): line_array = line.strip().split() data_matrix.append([1.0, float(line_array[0]), float(line_array[1])]) label_matrix.append(int(line_array[2])) return...
26.894737
77
0.635356
08dd2dc4e36d2e40231e69069e5f9abf7b8b5a47
19,389
py
Python
outsource/server.py
3cL1p5e7/ic
2b6011291d900454cedcf86ec41c8c1994fdf7d9
[ "Apache-2.0" ]
941
2021-05-10T08:14:14.000Z
2022-03-31T11:40:24.000Z
outsource/server.py
3cL1p5e7/ic
2b6011291d900454cedcf86ec41c8c1994fdf7d9
[ "Apache-2.0" ]
4
2021-12-22T22:34:51.000Z
2022-03-31T07:34:19.000Z
outsource/server.py
3cL1p5e7/ic
2b6011291d900454cedcf86ec41c8c1994fdf7d9
[ "Apache-2.0" ]
122
2021-05-10T08:21:23.000Z
2022-03-25T20:34:12.000Z
#!/usr/bin/env python3 """ Run a remote command inside a Docker container. This script is run on the remote builder when a developer sends a command. It creates a few docker volumes and spins up a docker container inside which the command is run. For more information, see ./DESIGN.md. """ import argparse import hashl...
31.172026
200
0.603177
08dd7bdc78c9e002e457a40a8e0f65b011a02540
8,080
py
Python
imagemee.py
matejd/imageme
54f8df7f31e30dc33c5a76055640cd0982a48ebf
[ "MIT" ]
1
2021-08-05T03:00:35.000Z
2021-08-05T03:00:35.000Z
imagemee.py
matejd/imageme
54f8df7f31e30dc33c5a76055640cd0982a48ebf
[ "MIT" ]
null
null
null
imagemee.py
matejd/imageme
54f8df7f31e30dc33c5a76055640cd0982a48ebf
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os, sys, io, urllib, re from PIL import Image from http.server import SimpleHTTPRequestHandler import socketserver from webbrowser import open_new_tab import threading PORT = 8000 IMAGE_FILE_REGEX = '^.+\.(png|jpg|jpeg|tif|tiff|gif|bmp)$' IMAGES_PER_ROW = 3 IMAGES...
38.660287
97
0.516337
08ddac4a58a6aeb7c05b2111f12fdae948f47df1
40,506
py
Python
qiskit_aqua/parser/_inputparser.py
takehuge/aqua
ec0fb71899d9e37f96f82eaf79c7d6581df6c9a7
[ "Apache-2.0" ]
1
2018-07-28T10:02:08.000Z
2018-07-28T10:02:08.000Z
qiskit_aqua/parser/_inputparser.py
takehuge/aqua
ec0fb71899d9e37f96f82eaf79c7d6581df6c9a7
[ "Apache-2.0" ]
null
null
null
qiskit_aqua/parser/_inputparser.py
takehuge/aqua
ec0fb71899d9e37f96f82eaf79c7d6581df6c9a7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018 IBM. # # 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 agre...
43.554839
139
0.614625
08de031879e1a4c5b5fddb50dfbf0944751ddc1d
3,421
py
Python
setup.py
csgitmeup/PyKodi
78d7c5d5f19f14a6dae87f274bdd58c189128790
[ "MIT" ]
null
null
null
setup.py
csgitmeup/PyKodi
78d7c5d5f19f14a6dae87f274bdd58c189128790
[ "MIT" ]
null
null
null
setup.py
csgitmeup/PyKodi
78d7c5d5f19f14a6dae87f274bdd58c189128790
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Note: To use the 'upload' functionality of this file, you must: # $ pipenv install twine --dev import io import os import sys from shutil import rmtree from setuptools import find_packages, setup, Command # Package meta-data. NAME = 'pykodi' DESCRIPTION = 'An async ...
28.040984
81
0.640748
08de9affbf303364106c49cec8a381ec17938853
546
py
Python
examples/run_esMp1.py
chinmay3/NiaPy
b4e5c0f98063e2a9eebd8d750f0922cfca88bc55
[ "MIT" ]
null
null
null
examples/run_esMp1.py
chinmay3/NiaPy
b4e5c0f98063e2a9eebd8d750f0922cfca88bc55
[ "MIT" ]
null
null
null
examples/run_esMp1.py
chinmay3/NiaPy
b4e5c0f98063e2a9eebd8d750f0922cfca88bc55
[ "MIT" ]
null
null
null
# encoding=utf8 # This is temporary fix to import module from parent folder # It will be removed when package is published on PyPI import sys sys.path.append('../') # End of fix from niapy.algorithms.basic import EvolutionStrategyMp1 from niapy.task import Task from niapy.problems import Sphere # we will run Differe...
26
62
0.728938
08debf974ec3a36174c353ecaf9e425a9afc3f36
1,686
py
Python
tensorflow/contrib/keras/api/keras/constraints/__init__.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tensorflow/contrib/keras/api/keras/constraints/__init__.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tensorflow/contrib/keras/api/keras/constraints/__init__.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
41.121951
80
0.784104
08def51d2d90096255fca58890601e693994e042
3,316
py
Python
src/start_testbuilds.py
laurenyu/deep-learning-containers
0714377fcb075a3bce06b444787beb34cc13c9fc
[ "Apache-2.0" ]
null
null
null
src/start_testbuilds.py
laurenyu/deep-learning-containers
0714377fcb075a3bce06b444787beb34cc13c9fc
[ "Apache-2.0" ]
null
null
null
src/start_testbuilds.py
laurenyu/deep-learning-containers
0714377fcb075a3bce06b444787beb34cc13c9fc
[ "Apache-2.0" ]
null
null
null
""" Copyright 2019-2020 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 accompany...
36.844444
104
0.708082
08df07b9a1025bea06e51d1459dbb9e6e9f677c0
594
py
Python
faster-rcnn-clearly/lib/nms/nms_wrapper.py
coderSkyChen/object-detection-zoo
dc63f5294ec73750dcc8cd6ad1698b974c6c2e70
[ "MIT" ]
2
2018-04-23T02:59:49.000Z
2019-03-12T13:47:21.000Z
faster-rcnn-clearly/lib/nms/nms_wrapper.py
coderSkyChen/object-detection-zoo
dc63f5294ec73750dcc8cd6ad1698b974c6c2e70
[ "MIT" ]
null
null
null
faster-rcnn-clearly/lib/nms/nms_wrapper.py
coderSkyChen/object-detection-zoo
dc63f5294ec73750dcc8cd6ad1698b974c6c2e70
[ "MIT" ]
null
null
null
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- import torch from nms.nms_gpu import nms_gpu def nms(dets, thresh, forc...
33
66
0.547138
08df1e04bd56bbf9a3d224b8b17b4b3cd6baad56
4,288
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/trellism4_wavefile_synth/trellism4_wavefile_synth.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/trellism4_wavefile_synth/trellism4_wavefile_synth.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/trellism4_wavefile_synth/trellism4_wavefile_synth.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # # SPDX-License-Identifier: MIT """ This synthesizer is loaded with wave files for 3 octaves of notes each in 4 different waveforms. It uses Mixer to play up to 7 notes at once. Play notes with the rainbow buttons. Change waveform types ith the white butt...
34.580645
100
0.601679
08df2b13c67ab68d6814b19acb83009d3605b455
1,784
py
Python
Old Code/video_read.py
hsspratt/Nott-Hawkeye1
178f4f0fef62e8699f6057d9d50adfd61a851047
[ "MIT" ]
null
null
null
Old Code/video_read.py
hsspratt/Nott-Hawkeye1
178f4f0fef62e8699f6057d9d50adfd61a851047
[ "MIT" ]
1
2021-11-11T22:15:36.000Z
2021-11-11T22:15:36.000Z
Old Code/video_read.py
hsspratt/Nott-Hawkeye1
178f4f0fef62e8699f6057d9d50adfd61a851047
[ "MIT" ]
null
null
null
#%% load modules ~1s from timeit import default_timer as timer tic1 = timer() import numpy as np import matplotlib.pyplot as plt import cv2 as cv import skimage.color as skm import pickle # import bz2 import lzma import os.path def export(f_name_full): with lzma.open(f_name_full, "wb") as f: pickle.dump(vi...
19.604396
58
0.61435
08df4e5a3d325e823acdf6c625a0c61eda73ee7a
56,934
py
Python
canflood/hlpr/plug.py
cefect/myCanFlood
84dfcee10d86d6fb3edbe5e3ce452f3f15ca6919
[ "MIT" ]
15
2021-05-01T02:24:55.000Z
2022-03-25T15:02:47.000Z
canflood/hlpr/plug.py
cefect/myCanFlood
84dfcee10d86d6fb3edbe5e3ce452f3f15ca6919
[ "MIT" ]
20
2021-06-02T16:31:22.000Z
2022-03-24T23:46:07.000Z
canflood/hlpr/plug.py
cefect/myCanFlood
84dfcee10d86d6fb3edbe5e3ce452f3f15ca6919
[ "MIT" ]
3
2021-05-10T22:50:01.000Z
2021-12-11T12:36:33.000Z
''' Created on Feb. 25, 2020 @author: cefect helper functions for use in plugins ''' #============================================================================== # imports------------ #============================================================================== #python import logging, configparser, datetime,...
35.428749
125
0.441599
08df6f23ef81dd4ab5b272e90f0ff41099d1185d
9,439
py
Python
workon/forms/html.py
devittek/django-workon
c39ddecac2649406a7a58922646478c5615d4cfd
[ "BSD-3-Clause" ]
1
2018-01-19T16:08:54.000Z
2018-01-19T16:08:54.000Z
workon/forms/html.py
devittek/django-workon
c39ddecac2649406a7a58922646478c5615d4cfd
[ "BSD-3-Clause" ]
1
2020-07-06T08:35:18.000Z
2020-07-06T08:35:18.000Z
workon/forms/html.py
devittek/django-workon
c39ddecac2649406a7a58922646478c5615d4cfd
[ "BSD-3-Clause" ]
4
2020-04-08T06:14:46.000Z
2020-12-11T14:28:06.000Z
import os import copy import uuid from urllib.parse import urlparse from collections import OrderedDict as SortedDict import json from django import forms from django.conf import settings from django.contrib.admin import widgets as admin_widgets from django.forms.utils import flatatt from django.template import Contex...
39.165975
207
0.576332
08df7a6103134a9eb9a599f569b429c952a007db
142,037
py
Python
lib/galaxy/web/base/controller.py
bioinfo-center-pasteur-fr/galaxy-pasteur
0be2c0194ce9615d9efa08affc0e6735b656855a
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/web/base/controller.py
bioinfo-center-pasteur-fr/galaxy-pasteur
0be2c0194ce9615d9efa08affc0e6735b656855a
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/web/base/controller.py
bioinfo-center-pasteur-fr/galaxy-pasteur
0be2c0194ce9615d9efa08affc0e6735b656855a
[ "CC-BY-3.0" ]
null
null
null
""" Contains functionality needed in every web interface """ import logging import operator import os import re from gettext import gettext import pkg_resources pkg_resources.require("SQLAlchemy >= 0.4") from sqlalchemy import func, and_, select from paste.httpexceptions import HTTPBadRequest, HTTPInternalServerError...
49.524756
167
0.583256
08dfb70279c0eabbd76d9e705456f415b9b9451a
8,529
py
Python
cogs/specialized/dice/statserver.py
cwstra/rpdiscordrewrite
b1b25a19026630a6db59cf6d7f9cda66c4c92c48
[ "MIT" ]
1
2020-12-06T19:22:31.000Z
2020-12-06T19:22:31.000Z
cogs/specialized/dice/statserver.py
cwstra/rpdiscordrewrite
b1b25a19026630a6db59cf6d7f9cda66c4c92c48
[ "MIT" ]
null
null
null
cogs/specialized/dice/statserver.py
cwstra/rpdiscordrewrite
b1b25a19026630a6db59cf6d7f9cda66c4c92c48
[ "MIT" ]
null
null
null
import asyncpg import ujson as json from .chartmaker import dualChart async def hstoreSetup(conn): await conn.set_builtin_type_codec('hstore', codec_name='pg_contrib.hstore') class StatServer: @classmethod async def create(cls, settings): self = StatServer() credentials = {"user": settings...
62.713235
167
0.526439
08dfc51cf2e4ab36f38320dda281fb41719833ad
5,273
py
Python
web-scraping/jpm_job_desc_parser.py
MarkMoretto/python-examples-main
37b8c41d2f175029f4536ca970f037ff19b4e951
[ "MIT" ]
1
2020-07-21T23:24:25.000Z
2020-07-21T23:24:25.000Z
web-scraping/jpm_job_desc_parser.py
MarkMoretto/python-examples-main
37b8c41d2f175029f4536ca970f037ff19b4e951
[ "MIT" ]
4
2021-06-29T00:38:57.000Z
2022-01-15T00:22:15.000Z
web-scraping/jpm_job_desc_parser.py
MarkMoretto/python-examples-main
37b8c41d2f175029f4536ca970f037ff19b4e951
[ "MIT" ]
null
null
null
""" Purpose: Parse JPMorgan job description. Date created: 2020-03-04 Contributor(s): Mark Moretto """ import re import textwrap as tw import urllib.request as ureq from platform import python_version_tuple as pvt ### JPMorgan job id job_id = "285143" # Enter job id here ### Select distinctive keyword to help...
32.751553
105
0.587521
08dfe07401c33134ca1006e8dcb156e0bf1c07ed
3,135
py
Python
alipay/aop/api/domain/OpenApiResponseHeader.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/OpenApiResponseHeader.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/OpenApiResponseHeader.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class OpenApiResponseHeader(object): def __init__(self): self._conversation_id = None self._response_id = None self._status_code = None self._status_message = None ...
31.039604
81
0.619139
08dfe29687727f638ecd865ba6d2042260ae82ba
23,521
py
Python
ckan/tests/legacy/lib/test_dictization.py
larrycameron80/ckan
fbab8f51b36a293206fdd998d71ece27d2565951
[ "Apache-2.0" ]
1
2022-02-14T20:25:34.000Z
2022-02-14T20:25:34.000Z
ckan/tests/legacy/lib/test_dictization.py
larrycameron80/ckan
fbab8f51b36a293206fdd998d71ece27d2565951
[ "Apache-2.0" ]
4
2020-03-24T17:53:23.000Z
2021-03-31T19:19:03.000Z
ckan/tests/legacy/lib/test_dictization.py
larrycameron80/ckan
fbab8f51b36a293206fdd998d71ece27d2565951
[ "Apache-2.0" ]
3
2020-01-02T10:32:37.000Z
2021-12-22T07:20:21.000Z
# encoding: utf-8 from __future__ import print_function from nose.tools import assert_equal, assert_not_in, assert_in from pprint import pprint, pformat from difflib import unified_diff import ckan.lib.search as search from ckan.lib.create_test_data import CreateTestData from ckan import model from ckan.lib.dictizat...
37.937097
269
0.516007