hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
603383bf8d8661b7192d7f1d4060c736d2048d3f
206
py
Python
bookmarks/serializers.py
flowfree/sample-django-app
be0c0cb8a886820f45b6012b90f0043eecdbe929
[ "MIT" ]
null
null
null
bookmarks/serializers.py
flowfree/sample-django-app
be0c0cb8a886820f45b6012b90f0043eecdbe929
[ "MIT" ]
null
null
null
bookmarks/serializers.py
flowfree/sample-django-app
be0c0cb8a886820f45b6012b90f0043eecdbe929
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Bookmark class BookmarkSerializer(serializers.ModelSerializer): class Meta: model = Bookmark fields = ['id', 'title', 'url']
22.888889
54
0.708738
b19151ff11326bfef7bd003538c3baab258f610a
1,789
py
Python
knit/utils.py
mtchib/knit
f82084947b1fa5d45c9721e25be90c9167924d96
[ "BSD-3-Clause" ]
null
null
null
knit/utils.py
mtchib/knit
f82084947b1fa5d45c9721e25be90c9167924d96
[ "BSD-3-Clause" ]
null
null
null
knit/utils.py
mtchib/knit
f82084947b1fa5d45c9721e25be90c9167924d96
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function, division, absolute_import import logging from urllib.parse import urlparse from .compatibility import check_output format = ('%(asctime)s - %(name)s - %(levelname)s - %(message)s') logging.basicConfig(format=format, level=logging.INFO) logging.getLogger("requests").setLevel(log...
25.927536
74
0.64673
9ba2c885310d4125f19a96671da9800fad0e3d4f
3,564
py
Python
primo/linking/fetch_data.py
ICC-analysis/primo
f71d6ffdfd8324bc5c4cc3cfa6f5e69371fc25b6
[ "Apache-2.0" ]
null
null
null
primo/linking/fetch_data.py
ICC-analysis/primo
f71d6ffdfd8324bc5c4cc3cfa6f5e69371fc25b6
[ "Apache-2.0" ]
null
null
null
primo/linking/fetch_data.py
ICC-analysis/primo
f71d6ffdfd8324bc5c4cc3cfa6f5e69371fc25b6
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2015 The Pennsylvania State University and the University of Wisconsin # Systems and Internet Infrastructure Security Laboratory # # Author: Damien Octeau # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obta...
32.108108
86
0.748036
501e9a3a622c27bed6d9ec9364dd68c0aef4bfad
557
py
Python
TEKDB/Relationships/migrations/0004_auto_20171031_1525.py
Ecotrust/TEKDB
c92500aa9c8271398721bf069b93d63d11510529
[ "MIT" ]
4
2017-12-26T05:43:52.000Z
2022-01-07T02:54:41.000Z
TEKDB/Relationships/migrations/0004_auto_20171031_1525.py
Ecotrust/TEKDB
c92500aa9c8271398721bf069b93d63d11510529
[ "MIT" ]
134
2017-02-13T23:26:26.000Z
2020-09-24T23:13:02.000Z
TEKDB/Relationships/migrations/0004_auto_20171031_1525.py
Ecotrust/TEKDB
c92500aa9c8271398721bf069b93d63d11510529
[ "MIT" ]
2
2018-03-02T04:01:16.000Z
2019-11-06T01:51:49.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-10-31 22:25 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Relationships', '0003_auto_20171031_1434'), ] operations = [ migrations.Alt...
26.52381
119
0.666068
fc2daa37790f4b797dc1a6226803c11f5f50051c
10,393
py
Python
metadrive/component/pgblock/fork.py
liuzuxin/metadrive
850c207536531bc85179084acd7c30ab14a66111
[ "Apache-2.0" ]
125
2021-08-30T06:33:57.000Z
2022-03-31T09:02:44.000Z
metadrive/component/pgblock/fork.py
liuzuxin/metadrive
850c207536531bc85179084acd7c30ab14a66111
[ "Apache-2.0" ]
72
2021-08-30T16:23:41.000Z
2022-03-31T19:17:16.000Z
metadrive/component/pgblock/fork.py
liuzuxin/metadrive
850c207536531bc85179084acd7c30ab14a66111
[ "Apache-2.0" ]
20
2021-09-09T08:20:25.000Z
2022-03-24T13:24:07.000Z
import math import numpy as np from metadrive.component.pgblock.create_pg_block_utils import CreateRoadFrom, CreateAdverseRoad, ExtendStraightLane, \ create_bend_straight from metadrive.component.pgblock.pg_block import PGBlock from metadrive.component.pgblock.ramp import Ramp from metadrive.component.lane.straig...
42.076923
118
0.664101
e66fc6747f77b70564738cbae1c0d72fd3a13d4b
207
py
Python
examples/bokeh/bokeh_plot_ess_local.py
sudojarvis/arviz
73531be4f23df7d764b2e3bec8c5ef5cb882590d
[ "Apache-2.0" ]
1,159
2018-04-03T08:50:54.000Z
2022-03-31T18:03:52.000Z
examples/bokeh/bokeh_plot_ess_local.py
sudojarvis/arviz
73531be4f23df7d764b2e3bec8c5ef5cb882590d
[ "Apache-2.0" ]
1,656
2018-03-23T14:15:05.000Z
2022-03-31T14:00:28.000Z
examples/bokeh/bokeh_plot_ess_local.py
sudojarvis/arviz
73531be4f23df7d764b2e3bec8c5ef5cb882590d
[ "Apache-2.0" ]
316
2018-04-03T14:25:52.000Z
2022-03-25T10:41:29.000Z
""" ESS Local Plot ============== _thumb: .6, .5 """ import arviz as az idata = az.load_arviz_data("non_centered_eight") ax = az.plot_ess(idata, var_names=["mu"], kind="local", rug=True, backend="bokeh")
17.25
82
0.63285
d46f2a40e77ba9a5744319c39fe5b908f21ac8bc
12,219
py
Python
python_modules/dagster/dagster/__init__.py
cvoegele/dagster
651b7e83fa71443b048fb4e7b66b029d45b96e75
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/__init__.py
cvoegele/dagster
651b7e83fa71443b048fb4e7b66b029d45b96e75
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/__init__.py
cvoegele/dagster
651b7e83fa71443b048fb4e7b66b029d45b96e75
[ "Apache-2.0" ]
null
null
null
from dagster.builtins import Any, Bool, Float, Int, Nothing, String from dagster.config import Enum, EnumValue, Field, Permissive, Selector, Shape from dagster.config.config_schema import ConfigSchema from dagster.config.config_type import Array, Noneable, ScalarUnion from dagster.core.definitions import ( AssetKey...
28.416279
96
0.749898
5df4462a7411162ac0c917839f9355b2052c6bf7
1,373
py
Python
CGATReport/Plugins/PandasPlotter.py
AndreasHeger/CGATReport
681e198cd13ef533f1c496645a1754b2e0829232
[ "MIT" ]
9
2015-02-14T16:53:58.000Z
2022-01-03T20:22:42.000Z
CGATReport/Plugins/PandasPlotter.py
AndreasHeger/CGATReport
681e198cd13ef533f1c496645a1754b2e0829232
[ "MIT" ]
26
2015-01-29T15:39:02.000Z
2018-02-14T09:04:21.000Z
CGATReport/Plugins/PandasPlotter.py
AndreasHeger/CGATReport
681e198cd13ef533f1c496645a1754b2e0829232
[ "MIT" ]
4
2015-11-25T17:11:11.000Z
2022-01-03T20:22:45.000Z
'''Plotting using the ggplot module.''' from CGATReport.Plugins.Renderer import Renderer from CGATReport.Plugins.Plotter import Plotter from docutils.parsers.rst import directives import matplotlib.pyplot as plt import pandas class PandasPlot(Renderer, Plotter): """Use the pandas libary for plotting. """ ...
28.020408
73
0.611071
598075cb5e3f20027e14d823738134a3f2cbf22c
2,397
py
Python
visualize_file/statistic_voc_target_distrubute_area.py
yuyijie1995/mmdetection
8455dd1a51bb397c25373e61a7457e0e1b9e1808
[ "Apache-2.0" ]
2
2019-12-26T14:56:30.000Z
2020-01-14T10:21:46.000Z
visualize_file/statistic_voc_target_distrubute_area.py
yuyijie1995/mmdetection
8455dd1a51bb397c25373e61a7457e0e1b9e1808
[ "Apache-2.0" ]
null
null
null
visualize_file/statistic_voc_target_distrubute_area.py
yuyijie1995/mmdetection
8455dd1a51bb397c25373e61a7457e0e1b9e1808
[ "Apache-2.0" ]
null
null
null
import os import matplotlib.pyplot as plt from PIL import Image # VEDAI 图像存储位置 src_img_dir = "/media/wrc/0EB90E450EB90E45/data/kitti/train_final/VOC2007/JPEGImages" # VEDAI 图像的 ground truth 的 txt 文件存放位置 src_txt_dir = "/media/wrc/0EB90E450EB90E45/data/kitti/label_2" # src_xml_dir = "/media/wrc/0EB90E450EB90E45/data/kit...
35.776119
100
0.591573
6a859d4f778bb2197b405a463e6cebd2499f9461
11,978
py
Python
udemy_download.py
mihirrana/web_crawlers
6996eed1c1cebc0e83c4b8a8615e8ebf3d49e64f
[ "MIT" ]
3
2018-02-20T09:43:52.000Z
2020-12-15T17:50:34.000Z
udemy_download.py
mihirrana/web_crawlers
6996eed1c1cebc0e83c4b8a8615e8ebf3d49e64f
[ "MIT" ]
null
null
null
udemy_download.py
mihirrana/web_crawlers
6996eed1c1cebc0e83c4b8a8615e8ebf3d49e64f
[ "MIT" ]
2
2017-04-12T18:14:30.000Z
2017-07-16T05:51:59.000Z
from selenium import webdriver from os.path import isfile, join from urllib import request, error import sys import os import time import shutil def reporthook(blocknum, blocksize, totalsize): readsofar = (blocknum * blocksize) if totalsize > 0: percent = min(readsofar * 1e2 / totalsize, 100.0) ...
59.29703
184
0.634664
8ca9d0943a157da5eebb232746b7790ccfd95eb2
573
py
Python
sksurgeryutils/ui/sksurgeryreslice_demo.py
SciKit-Surgery/scikit-surgeryutils
53343632dd8c2663036dcf9da1dcff299c678e8f
[ "BSD-3-Clause" ]
3
2021-02-01T10:20:41.000Z
2021-08-19T03:10:50.000Z
sksurgeryutils/ui/sksurgeryreslice_demo.py
UCL/scikit-surgeryutils
b25933693f435b01f937620bfb8ac5f69e7fe1c6
[ "BSD-3-Clause" ]
39
2020-07-03T09:20:02.000Z
2022-01-25T09:14:36.000Z
sksurgeryutils/ui/sksurgeryreslice_demo.py
SciKit-Surgery/scikit-surgeryutils
53343632dd8c2663036dcf9da1dcff299c678e8f
[ "BSD-3-Clause" ]
null
null
null
""" VTK Reslice widget demo. """ from PySide2 import QtWidgets from sksurgeryvtk.widgets.vtk_reslice_widget import TrackedSliceViewer, \ MouseWheelSliceViewer from sksurgeryarucotracker.arucotracker import ArUcoTracker def run_demo(tracked, dicom_dir): """ Demo """ app = QtWidgets.QApplication([]) ...
22.92
73
0.712042
09a7d38927ca04c2cb4e6dc53642e69d07aec4c4
990
py
Python
aliyun-python-sdk-yundun/aliyunsdkyundun/request/v20150416/GetDdosConfigOptionsRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-yundun/aliyunsdkyundun/request/v20150416/GetDdosConfigOptionsRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-yundun/aliyunsdkyundun/request/v20150416/GetDdosConfigOptionsRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
41.25
84
0.773737
0ff8568381eaeacc5991e23594549d6d729bcadf
1,122
py
Python
amazon_msk/tests/common.py
ypisetsky/integrations-core
f7153d3f896827c3325c7f0ec088bc17d088a894
[ "BSD-3-Clause" ]
1
2021-06-06T23:49:17.000Z
2021-06-06T23:49:17.000Z
amazon_msk/tests/common.py
ypisetsky/integrations-core
f7153d3f896827c3325c7f0ec088bc17d088a894
[ "BSD-3-Clause" ]
null
null
null
amazon_msk/tests/common.py
ypisetsky/integrations-core
f7153d3f896827c3325c7f0ec088bc17d088a894
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2019-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import os from datadog_checks.dev import get_docker_hostname, get_here from datadog_checks.dev.utils import read_file HERE = get_here() HOST = get_docker_hostname() JMX_PORT = 11001 NODE_PORT = 11002 INS...
31.166667
115
0.737968
eff4a391f348624e4313977aa2ffae8ead1948f5
24,156
py
Python
selfdrive/car/modules/ALCA_module.py
AlaricEgli/Openpilotcrazy
2a4f21baf3a1846f459fd3ad08c219dbb726eac2
[ "MIT" ]
null
null
null
selfdrive/car/modules/ALCA_module.py
AlaricEgli/Openpilotcrazy
2a4f21baf3a1846f459fd3ad08c219dbb726eac2
[ "MIT" ]
null
null
null
selfdrive/car/modules/ALCA_module.py
AlaricEgli/Openpilotcrazy
2a4f21baf3a1846f459fd3ad08c219dbb726eac2
[ "MIT" ]
null
null
null
""" Copyright 2018 BB Solutions, LLC. 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 copyright notice, this list of conditions and the followi...
49.909091
202
0.695811
f243e3190aab5535134b1eeece2af94172433282
2,146
py
Python
model/model.py
rusty-electron/neural-style-transfer-pytorch
3c721867c2b0fec1360b2dcce0138ca2ad4b26e2
[ "MIT" ]
2
2021-06-29T03:17:39.000Z
2022-02-08T20:51:58.000Z
model/model.py
rusty-electron/neural-style-transfer-pytorch
3c721867c2b0fec1360b2dcce0138ca2ad4b26e2
[ "MIT" ]
null
null
null
model/model.py
rusty-electron/neural-style-transfer-pytorch
3c721867c2b0fec1360b2dcce0138ca2ad4b26e2
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torchvision import models import torch.nn.functional as F class VGG19(nn.Module): def __init__(self): super(VGG19, self).__init__() source_model = models.vgg19(pretrained=True).features # replace in-place relus for name, layer in source_model...
33.53125
77
0.570363
7c9273f4373e4cea1218adb294e338b599ebf8c0
4,677
py
Python
slack_bolt/kwargs_injection/async_args.py
tattee/bolt-python
0927de45b265bc4d16570ceb6a23cb5dd0a21317
[ "MIT" ]
null
null
null
slack_bolt/kwargs_injection/async_args.py
tattee/bolt-python
0927de45b265bc4d16570ceb6a23cb5dd0a21317
[ "MIT" ]
null
null
null
slack_bolt/kwargs_injection/async_args.py
tattee/bolt-python
0927de45b265bc4d16570ceb6a23cb5dd0a21317
[ "MIT" ]
1
2021-06-14T15:56:58.000Z
2021-06-14T15:56:58.000Z
# pytype: skip-file from logging import Logger from typing import Callable, Awaitable, Dict, Any, Optional from slack_bolt.context.ack.async_ack import AsyncAck from slack_bolt.context.async_context import AsyncBoltContext from slack_bolt.context.respond.async_respond import AsyncRespond from slack_bolt.context.say.as...
39.635593
108
0.646782
bc1b191c6e12e2e196d959bd7603d4d351b4f1e2
2,090
py
Python
highlevel/robot/controller/symmetry_test.py
outech-robotic/code
b57acba3faae606f4d0c3cf210bc0716d7fef4e7
[ "MIT" ]
7
2020-04-15T16:42:56.000Z
2021-12-25T10:12:13.000Z
highlevel/robot/controller/symmetry_test.py
outech-robotic/code
b57acba3faae606f4d0c3cf210bc0716d7fef4e7
[ "MIT" ]
37
2020-04-15T15:49:31.000Z
2022-02-27T03:53:48.000Z
highlevel/robot/controller/symmetry_test.py
outech-robotic/code
b57acba3faae606f4d0c3cf210bc0716d7fef4e7
[ "MIT" ]
null
null
null
""" Test for symmetry controller """ import dataclasses from math import pi from highlevel.robot.controller.symmetry import SymmetryController from highlevel.robot.entity.color import Color from highlevel.robot.entity.configuration import Configuration from highlevel.util.geometry.vector import Vector2 def get_symme...
29.857143
79
0.664593
653b591948352e0f354da8cf404d0214b8fb240d
28,592
py
Python
sdk/python/pulumi_azure_native/web/latest/get_app_service_environment.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/web/latest/get_app_service_environment.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/web/latest/get_app_service_environment.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
45.240506
1,053
0.691837
300fb82fba2f4505e4234066bd0d01ddd126210e
536
py
Python
ask/manage.py
streamdp/web
2bdf4ac1ff36eb979513b0bd8c0f59d6ce318e9c
[ "MIT" ]
null
null
null
ask/manage.py
streamdp/web
2bdf4ac1ff36eb979513b0bd8c0f59d6ce318e9c
[ "MIT" ]
null
null
null
ask/manage.py
streamdp/web
2bdf4ac1ff36eb979513b0bd8c0f59d6ce318e9c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ask.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are you...
33.5
73
0.684701
07285177d5beca92e2fe868ca8cfd8e1c851089a
1,449
py
Python
backend/apps/delivery/serializers.py
abodacs/django-fullstack-biolerplate
87e8618638eb801fd061c34da9365ff50bebdf77
[ "MIT" ]
null
null
null
backend/apps/delivery/serializers.py
abodacs/django-fullstack-biolerplate
87e8618638eb801fd061c34da9365ff50bebdf77
[ "MIT" ]
null
null
null
backend/apps/delivery/serializers.py
abodacs/django-fullstack-biolerplate
87e8618638eb801fd061c34da9365ff50bebdf77
[ "MIT" ]
null
null
null
from apps.projects.models import Case from rest_framework import serializers from .models import Confirmation, Patch class EnvoyPatchesSerializer(serializers.ModelSerializer): project_title = serializers.SerializerMethodField(read_only=True) def get_project_title(self, obj): project_title = "" ...
24.559322
69
0.599034
25f457c508e71a14eb0149623f1a8bcf9739c73e
94
py
Python
test_project/application/urls.py
vasili4396/django-protector
06232124e218619946f724a5a71e2a0d945e0ab6
[ "MIT" ]
null
null
null
test_project/application/urls.py
vasili4396/django-protector
06232124e218619946f724a5a71e2a0d945e0ab6
[ "MIT" ]
null
null
null
test_project/application/urls.py
vasili4396/django-protector
06232124e218619946f724a5a71e2a0d945e0ab6
[ "MIT" ]
null
null
null
from django.conf.urls import include, url from django.contrib import admin urlpatterns = ( )
15.666667
41
0.776596
9bbc3de8caa717a802fa8d1f0ddb2996dafc361a
2,569
py
Python
src/apps/api/views.py
Flaiers/flatype
ebb951fb1dee2075779a19fd090166bb1347658f
[ "MIT" ]
2
2021-07-31T20:01:36.000Z
2021-09-07T13:37:42.000Z
src/apps/api/views.py
Flaiers/flatype
ebb951fb1dee2075779a19fd090166bb1347658f
[ "MIT" ]
null
null
null
src/apps/api/views.py
Flaiers/flatype
ebb951fb1dee2075779a19fd090166bb1347658f
[ "MIT" ]
2
2021-09-07T13:37:43.000Z
2021-10-31T20:19:29.000Z
from django.views.decorators.http import require_http_methods from apps.core.forms import ArticleForm, StorageForm from apps.core.models import Article, Storage from django.middleware.csrf import get_token from django.http import JsonResponse @require_http_methods(["POST"]) def try_save(request) -> JsonResponse: ...
27.329787
83
0.576878
f7f43e2635350e67a54d981786abf7cabfd64847
3,818
py
Python
pysat/instruments/de2_lang.py
scivision/pysat
2916ff7c77ad4201c537acca91b7c0b46b542e82
[ "BSD-3-Clause" ]
null
null
null
pysat/instruments/de2_lang.py
scivision/pysat
2916ff7c77ad4201c537acca91b7c0b46b542e82
[ "BSD-3-Clause" ]
null
null
null
pysat/instruments/de2_lang.py
scivision/pysat
2916ff7c77ad4201c537acca91b7c0b46b542e82
[ "BSD-3-Clause" ]
1
2018-10-26T02:42:50.000Z
2018-10-26T02:42:50.000Z
# -*- coding: utf-8 -*- """Supports the Langmuir Probe (LANG) instrument on Dynamics Explorer 2 (DE2). From CDAWeb: The Langmuir Probe Instrument (LANG) was a cylindrical electrostatic probe that obtained measurements of electron temperature, Te, and electron or ion concentration, Ne or Ni, respectively, and spacecra...
34.089286
79
0.736773
a22098c6bd8a24baf326522dcf31dfd332de19de
1,018
py
Python
TestServer/parser.py
Hubtwork/PandaSaza
a3edb5fc3bea74dec3ecef4d0a24c454d743aa80
[ "MIT" ]
null
null
null
TestServer/parser.py
Hubtwork/PandaSaza
a3edb5fc3bea74dec3ecef4d0a24c454d743aa80
[ "MIT" ]
3
2021-02-27T04:56:06.000Z
2021-05-13T03:52:51.000Z
TestServer/parser.py
Hubtwork/PandaSaza
a3edb5fc3bea74dec3ecef4d0a24c454d743aa80
[ "MIT" ]
null
null
null
from abc import * import json from collections import OrderedDict file = open("univ.txt", "r") lines = file.readlines() print([ i.split('=')[0].replace("\"", "").rstrip() for i in lines][:3]) parsed_school = [ i.split('=')[0].replace("”", "").replace("\"", "").rstrip() for i in lines ] data = OrderedDict() schools =...
24.829268
95
0.646365
091e01ba7057700ee7d2701e2b562e08cfb69b17
951
py
Python
src/bot/handlers/restart.py
GoddessEyes/info_tbot
c7c5c818dc0c0c72aa15e6e4a85e7e28b4a7660d
[ "MIT" ]
null
null
null
src/bot/handlers/restart.py
GoddessEyes/info_tbot
c7c5c818dc0c0c72aa15e6e4a85e7e28b4a7660d
[ "MIT" ]
4
2021-03-19T02:42:10.000Z
2021-09-22T19:08:09.000Z
src/bot/handlers/restart.py
GoddessEyes/info_tbot
c7c5c818dc0c0c72aa15e6e4a85e7e28b4a7660d
[ "MIT" ]
null
null
null
import os import sys from threading import Thread from telegram.ext import CommandHandler from apps.management.models import CustomUser class RestartBotHandlerGenerator: """Обработчик рестарта бота.""" @classmethod def self_load(cls, dp=None) -> None: def stop_and_restart(): dp.stop...
27.970588
92
0.607781
ec1325b5c606bd5507b8911a86e4795d8368c2b0
2,388
py
Python
examples/myapp2.py
nphilipp/tw2.dynforms
483561f78d565df811a5cafb28d984c64a6c0eb9
[ "MIT" ]
1
2016-05-24T22:13:18.000Z
2016-05-24T22:13:18.000Z
examples/myapp2.py
nphilipp/tw2.dynforms
483561f78d565df811a5cafb28d984c64a6c0eb9
[ "MIT" ]
5
2015-01-13T23:51:59.000Z
2019-07-03T08:50:09.000Z
examples/myapp2.py
nphilipp/tw2.dynforms
483561f78d565df811a5cafb28d984c64a6c0eb9
[ "MIT" ]
4
2015-11-05T13:05:24.000Z
2019-07-03T08:46:40.000Z
import wsgiref.simple_server as wrs import tw2.core as twc, tw2.forms as twf, tw2.dynforms as twd import elixir as el el.metadata.bind = 'sqlite:///myapp.db' el.options_defaults['shortnames'] = True class People(el.Entity): name = el.Field(el.String(100)) email = el.Field(el.String(100)) def __str__(self...
30.227848
93
0.633585
cbd552ca9b5f4d3b42ea05b2be3d7bdea88bff2b
1,063
py
Python
setup.py
ewjoachim/passbook
17c13ee77aa69d2753bd58bfed8cac63fc106773
[ "MIT" ]
149
2015-01-21T09:43:17.000Z
2022-03-12T07:32:14.000Z
setup.py
ewjoachim/passbook
17c13ee77aa69d2753bd58bfed8cac63fc106773
[ "MIT" ]
28
2015-05-06T14:34:54.000Z
2022-03-09T12:25:47.000Z
setup.py
ewjoachim/passbook
17c13ee77aa69d2753bd58bfed8cac63fc106773
[ "MIT" ]
62
2015-03-27T13:37:59.000Z
2022-03-09T12:11:42.000Z
from setuptools import setup version = __import__('passbook').__version__ setup( name='Passbook', version=version, author='Fernando Aramendi', author_email='fernando@devartis.com', packages=['passbook', 'passbook.test'], url='http://github.com/devartis/passbook/', license=open('LICENSE.txt...
31.264706
98
0.626529
ae7e929a67876303223c5e215e449d48526b23d5
3,797
py
Python
arba/space/point_cloud.py
matthigger/arba
c6c4a236e814acce02611dab57c1c8511e982729
[ "MIT" ]
null
null
null
arba/space/point_cloud.py
matthigger/arba
c6c4a236e814acce02611dab57c1c8511e982729
[ "MIT" ]
null
null
null
arba/space/point_cloud.py
matthigger/arba
c6c4a236e814acce02611dab57c1c8511e982729
[ "MIT" ]
null
null
null
import nibabel as nib import numpy as np from .mask import Mask from .ref_space import RefSpace, get_ref class PointCloud(set): """ a set of points in space (e.g. voxels), stored as set terminology note: 'mask_array' is a typical mask image, points are the ijk of non zero voxels 'array' is a (n feat...
28.765152
126
0.570977
4cd3a7a689c8cbd53a18d3e83354e9dc476fc537
6,528
py
Python
Lib/ctypes/test/test_pointers.py
adamwen829/cpython
0f1c7c760c6b2804f5d05cae9ca045d1fdf3d667
[ "PSF-2.0" ]
2
2017-05-05T02:07:59.000Z
2017-08-18T09:24:48.000Z
Lib/ctypes/test/test_pointers.py
adamwen829/cpython
0f1c7c760c6b2804f5d05cae9ca045d1fdf3d667
[ "PSF-2.0" ]
null
null
null
Lib/ctypes/test/test_pointers.py
adamwen829/cpython
0f1c7c760c6b2804f5d05cae9ca045d1fdf3d667
[ "PSF-2.0" ]
3
2016-04-21T07:58:27.000Z
2016-05-06T21:34:44.000Z
import unittest, sys from ctypes import * import _ctypes_test ctype_types = [c_byte, c_ubyte, c_short, c_ushort, c_int, c_uint, c_long, c_ulong, c_longlong, c_ulonglong, c_double, c_float] python_types = [int, int, int, int, int, int, int, int, int, int, float, float] LargeNamedType =...
32.477612
92
0.576287
dde896cecb3926d3bd63035d7d91a6c193704475
2,881
py
Python
setup.py
bitdotioinc/pglast
da4c0b1c237aad98894179af9cd29e044d526ba8
[ "PostgreSQL" ]
null
null
null
setup.py
bitdotioinc/pglast
da4c0b1c237aad98894179af9cd29e044d526ba8
[ "PostgreSQL" ]
null
null
null
setup.py
bitdotioinc/pglast
da4c0b1c237aad98894179af9cd29e044d526ba8
[ "PostgreSQL" ]
null
null
null
# -*- coding: utf-8; mode: python -*- # :Project: pglast -- PostgreSQL Languages AST # :Created: mer 02 ago 2017 15:20:43 CEST # :Author: Lele Gaifax <lele@metapensiero.it> # :License: GNU General Public License version 3 or later # :Copyright: © 2017, 2018, 2019, 2020 Lele Gaifax # from pathlib import Path i...
29.10101
85
0.617494
29b9091339ae8b856a6d6cbdf12cb25a850cc2df
646
py
Python
SOCKET_PROGRAMMING/verificationclient2.py
penugondaakash2/Computer-Networks
4161bf31fe0c40b73349c673f132fe0310ab52ab
[ "MIT" ]
null
null
null
SOCKET_PROGRAMMING/verificationclient2.py
penugondaakash2/Computer-Networks
4161bf31fe0c40b73349c673f132fe0310ab52ab
[ "MIT" ]
null
null
null
SOCKET_PROGRAMMING/verificationclient2.py
penugondaakash2/Computer-Networks
4161bf31fe0c40b73349c673f132fe0310ab52ab
[ "MIT" ]
null
null
null
import socket def client_program(): print("V - VIEW") print("M - MODIFY") print("U - UPDATE") print("exit") client_socket = socket.socket() host = socket.gethostname() port = 1574 print('WAITING FOR CONNECTION RESPONSE') try: client_socket.connect((host,port)) except socket.error as ...
18.457143
43
0.625387
cf017deee249ac461eb54ae9f87b1a7fae9629b6
1,422
py
Python
config/settings/test.py
proyecto-cema/cema-django
46835121bc93bf2e8a0b82c9fb375c1ec1c81933
[ "MIT" ]
null
null
null
config/settings/test.py
proyecto-cema/cema-django
46835121bc93bf2e8a0b82c9fb375c1ec1c81933
[ "MIT" ]
null
null
null
config/settings/test.py
proyecto-cema/cema-django
46835121bc93bf2e8a0b82c9fb375c1ec1c81933
[ "MIT" ]
null
null
null
""" With these settings, tests run faster. """ from .base import * # noqa from .base import env # GENERAL # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/settings/#secret-key SECRET_KEY = env( "DJANGO_SECRET_KEY", default="l9Kw4QqDV...
33.857143
80
0.510549
a949d091779ac58119f93dff53a30114ef718e58
496
py
Python
draw_img.py
sangho2/gpu-uninit-mem
3d55b519fbf86151581877b2239181d448d3daf9
[ "Apache-2.0" ]
null
null
null
draw_img.py
sangho2/gpu-uninit-mem
3d55b519fbf86151581877b2239181d448d3daf9
[ "Apache-2.0" ]
null
null
null
draw_img.py
sangho2/gpu-uninit-mem
3d55b519fbf86151581877b2239181d448d3daf9
[ "Apache-2.0" ]
null
null
null
# # Written by Sangho Lee (sangho@gatech.edu) # import Image import random import sys # 1000 x 1000 ? pyimg = Image.new('RGB',(int(sys.argv[2]), int(sys.argv[3]))) flag = False ll = [] aa = [] for line in open(sys.argv[1]): a = line.strip() if a == '00000000': continue ll.app...
19.076923
79
0.584677
b7d041d06af189928292d571e661295ba7bd205f
3,237
py
Python
ferris/tests/test_stacking_routes_and_vars.py
palladius/gae-ferris-ricc
e6d9d8d4aadeae10eb258b94b6fe5912c8630b36
[ "MIT" ]
84
2017-10-25T15:49:21.000Z
2021-11-28T21:25:54.000Z
data/train/python/b7d041d06af189928292d571e661295ba7bd205ftest_stacking_routes_and_vars.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
5
2018-03-29T11:50:46.000Z
2021-04-26T13:33:18.000Z
data/train/python/b7d041d06af189928292d571e661295ba7bd205ftest_stacking_routes_and_vars.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
24
2017-11-22T08:31:00.000Z
2022-03-27T01:22:31.000Z
from ferris.core.controller import Controller, route_with, route from ferrisnose import AppEngineWebTest class TestController(Controller): class Meta: prefixes = ['pre'] @route_with('/[controller]/[action]/<a>/<b>/<c>') @route_with('/[controller]/[action]/<a>/<b>') @route_with('/[controller]...
40.4625
109
0.651838
e80ad157fca28014d31f4a9b3e16fe3199487047
453
py
Python
data/scripts/templates/object/tangible/food/crafted/shared_dish_patot_panak.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/tangible/food/crafted/shared_dish_patot_panak.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/tangible/food/crafted/shared_dish_patot_panak.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/food/crafted/shared_dish_patot_panak.iff" result.attribute_template...
26.647059
77
0.730684
f792f8365da8a2e9e2de44a6967755bdf67c8f9d
6,131
py
Python
env/lib/python2.7/site-packages/ebcli/controllers/clone.py
ZohaibZ/mycapstone18
0c0301ecde50bb947f3959df8afa2bf75edda830
[ "MIT" ]
1
2018-05-08T10:58:57.000Z
2018-05-08T10:58:57.000Z
virtual_env/lib/python2.7/site-packages/ebcli/controllers/clone.py
TolyGins/Book_Recommender
7a939ec82d71aed273a1b6d2db3dadbed4f215ed
[ "MIT" ]
null
null
null
virtual_env/lib/python2.7/site-packages/ebcli/controllers/clone.py
TolyGins/Book_Recommender
7a939ec82d71aed273a1b6d2db3dadbed4f215ed
[ "MIT" ]
null
null
null
# Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
40.335526
84
0.576089
392b98cd5b59f1a91d52269182e324f6f8a5bcce
2,498
py
Python
windows/blackwidow.py
bananu7/rc
af71d591d524965ed21d2cf8a8f29452055e70c1
[ "MIT" ]
null
null
null
windows/blackwidow.py
bananu7/rc
af71d591d524965ed21d2cf8a8f29452055e70c1
[ "MIT" ]
null
null
null
windows/blackwidow.py
bananu7/rc
af71d591d524965ed21d2cf8a8f29452055e70c1
[ "MIT" ]
null
null
null
#!/usr/bin/python """This is a patched version of Sergey's code form https://superuser.com/a/474595/8647 It worked for my Razer BlackWidow 2013 Mechanical Gaming Keyboard (Model Number: RZ03-0039). """ import usb import sys VENDOR_ID = 0x1532 # Razer PRODUCT_ID = 0x010E # BlackWidow 2013 Mecanical Gaming...
27.755556
141
0.627302
ef2985876b16388d789ac5c694f6312dc0cb296e
143
py
Python
covidAIapp/url.py
Nikunjbansal99/CovidAI-App
42b6cef3a174026cb66ab0328d9cba3a869b2859
[ "MIT" ]
null
null
null
covidAIapp/url.py
Nikunjbansal99/CovidAI-App
42b6cef3a174026cb66ab0328d9cba3a869b2859
[ "MIT" ]
null
null
null
covidAIapp/url.py
Nikunjbansal99/CovidAI-App
42b6cef3a174026cb66ab0328d9cba3a869b2859
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path from .views import helloworldview urlpatterns = [ path('',helloworldview), ]
20.428571
33
0.769231
6c2f424a69ce4464a3e06b98cc8aff61e81061ee
13,788
py
Python
andi_unicorns/models.py
BorjaRequena/AnDi-unicorns
0e8eae2bb66f55629458ad0c90e463c2be920b16
[ "Apache-2.0" ]
null
null
null
andi_unicorns/models.py
BorjaRequena/AnDi-unicorns
0e8eae2bb66f55629458ad0c90e463c2be920b16
[ "Apache-2.0" ]
null
null
null
andi_unicorns/models.py
BorjaRequena/AnDi-unicorns
0e8eae2bb66f55629458ad0c90e463c2be920b16
[ "Apache-2.0" ]
2
2021-05-03T14:45:31.000Z
2021-11-05T14:08:23.000Z
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/01_models.ipynb (unless otherwise specified). __all__ = ['mask_normalisation', 'mask_concat_pool', 'get_act', 'custom_splitter', 'custom_f1', 'Permute', 'MyLearner', 'RNNLearner', 'MeanPredict', 'Classifier', 'PoolingClassifier', 'SimpleLSTM', 'ConcatPoolLSTM'...
42.555556
174
0.624384
601acac20c96d8767fe2efc0e9ba19ce66e65d54
169,867
py
Python
pandas/core/groupby.py
Web-Application-Project/Main-Project
9183396ec9ab660a49bc6bd41cfd2bbc98f54db7
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/core/groupby.py
Web-Application-Project/Main-Project
9183396ec9ab660a49bc6bd41cfd2bbc98f54db7
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/core/groupby.py
Web-Application-Project/Main-Project
9183396ec9ab660a49bc6bd41cfd2bbc98f54db7
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
import types from functools import wraps, partial import numpy as np import datetime import collections import warnings import copy from textwrap import dedent from pandas.compat import ( zip, range, lzip, callable, map ) from pandas import compat from pandas.compat.numpy import function as nv from pandas.com...
33.643692
87
0.549559
a47e09b95833eeeb43c14d7c3674a5c0ffd48f65
53,770
py
Python
python/ccxt/async_support/kraken.py
rebekos/ccxt
5872dd4f1a578de468ff4dbd6d79685e4fe7f536
[ "MIT" ]
1
2019-06-24T07:20:05.000Z
2019-06-24T07:20:05.000Z
python/ccxt/async_support/kraken.py
rebekos/ccxt
5872dd4f1a578de468ff4dbd6d79685e4fe7f536
[ "MIT" ]
3
2021-03-11T06:16:27.000Z
2021-05-11T23:09:26.000Z
python/ccxt/async_support/kraken.py
rebekos/ccxt
5872dd4f1a578de468ff4dbd6d79685e4fe7f536
[ "MIT" ]
1
2019-06-24T07:31:27.000Z
2019-06-24T07:31:27.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange # ----------------------------------------------------------------------------- try...
40.367868
284
0.479617
61186591f35a1fdb08b3fef4bcb5cbbb3f3d2dc6
26,418
py
Python
tests/providers/google/cloud/transfers/test_gcs_to_gcs.py
holly-evans/airflow
865406cbab4defd35c95afbf0a8d5987ff7788b1
[ "Apache-2.0" ]
3
2017-08-06T23:19:48.000Z
2018-05-11T05:50:25.000Z
tests/providers/google/cloud/transfers/test_gcs_to_gcs.py
holly-evans/airflow
865406cbab4defd35c95afbf0a8d5987ff7788b1
[ "Apache-2.0" ]
20
2016-11-21T22:54:28.000Z
2018-10-28T20:03:13.000Z
tests/providers/google/cloud/transfers/test_gcs_to_gcs.py
holly-evans/airflow
865406cbab4defd35c95afbf0a8d5987ff7788b1
[ "Apache-2.0" ]
3
2016-10-13T09:59:18.000Z
2017-02-22T11:29:09.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
43.666116
109
0.701416
f76978a99df727b83d9359d06fd0d1f4dbf40b9f
3,060
py
Python
Hospital_MARL/play.py
Staeffy/Hospital_MARL
94b011cdb6ebeae555837974192ce9fa6120e4b1
[ "MIT" ]
null
null
null
Hospital_MARL/play.py
Staeffy/Hospital_MARL
94b011cdb6ebeae555837974192ce9fa6120e4b1
[ "MIT" ]
null
null
null
Hospital_MARL/play.py
Staeffy/Hospital_MARL
94b011cdb6ebeae555837974192ce9fa6120e4b1
[ "MIT" ]
null
null
null
"""Script to play the allocation game based on the previously trained policies """ # external imports import os import random import copy import numpy as np import sys from numpy.random import permutation import rl_setup def play(patient_list, doc_stats, folder_name, rounds=10): patients = patient_list doc...
28.867925
104
0.610131
ba3f6ea13ebe4527c0fb409daccfd392d1b0defc
9,343
py
Python
mmdet/models/detectors/multi_necks.py
speedinghzl/mmdetection
339f37a21b6e4001e90734f6fce1559843e83487
[ "Apache-2.0" ]
4
2019-05-31T22:47:57.000Z
2019-11-13T00:24:29.000Z
mmdet/models/detectors/multi_necks.py
speedinghzl/mmdetection
339f37a21b6e4001e90734f6fce1559843e83487
[ "Apache-2.0" ]
null
null
null
mmdet/models/detectors/multi_necks.py
speedinghzl/mmdetection
339f37a21b6e4001e90734f6fce1559843e83487
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn from .base import BaseDetector from .test_mixins import RPNTestMixin, BBoxTestMixin, MaskTestMixin from .. import builder from ..registry import DETECTORS from mmdet.core import bbox2roi, bbox2result, build_assigner, build_sampler @DETECTORS.register_module class MultiNecksDetector...
38.767635
82
0.568554
3e7f77986dfff91e1890a34794d9bb7e0c440fd2
1,363
py
Python
tests/rule_based_profiler/test_user_workflow_fixtures.py
davidvanrooij/great_expectations
b45c92012d09a5684fe23c213be498f0bf154b9f
[ "Apache-2.0" ]
null
null
null
tests/rule_based_profiler/test_user_workflow_fixtures.py
davidvanrooij/great_expectations
b45c92012d09a5684fe23c213be498f0bf154b9f
[ "Apache-2.0" ]
null
null
null
tests/rule_based_profiler/test_user_workflow_fixtures.py
davidvanrooij/great_expectations
b45c92012d09a5684fe23c213be498f0bf154b9f
[ "Apache-2.0" ]
1
2021-11-29T07:37:28.000Z
2021-11-29T07:37:28.000Z
from great_expectations.core import ExpectationSuite def test_alice_fixture_generation( alice_columnar_table_single_batch, ): assert ( alice_columnar_table_single_batch["sample_data_relative_path"] == "alice_columnar_table_single_batch_data.csv" ) profiler_config: str = alice_columnar_...
29.630435
88
0.703595
6ecd9168a6f3713b491d6c3b108ca9986287e508
58,761
py
Python
venv/Lib/site-packages/matplotlib/rcsetup.py
AdarshSai/Final_project
f966834ca72dd232102ed500ef47ef2b3bdbed5b
[ "MIT" ]
353
2020-12-10T10:47:17.000Z
2022-03-31T23:08:29.000Z
venv/Lib/site-packages/matplotlib/rcsetup.py
AdarshSai/Final_project
f966834ca72dd232102ed500ef47ef2b3bdbed5b
[ "MIT" ]
80
2020-12-10T09:54:22.000Z
2022-03-30T22:08:45.000Z
venv/Lib/site-packages/matplotlib/rcsetup.py
AdarshSai/Final_project
f966834ca72dd232102ed500ef47ef2b3bdbed5b
[ "MIT" ]
63
2020-12-10T17:10:34.000Z
2022-03-28T16:27:07.000Z
""" The rcsetup module contains the validation code for customization using Matplotlib's rc settings. Each rc setting is assigned a function used to validate any attempted changes to that setting. The validation functions are defined in the rcsetup module, and are used to construct the rcParams global object wh...
39.017928
80
0.613945
4deaf7d94e468cd35494f37cf76775148e84669c
7,316
py
Python
importer/SeFornminSv.py
Vesihiisi/COH-tools
a874f076cb93b93722efb1be56a66a9380bcb7c4
[ "MIT" ]
4
2017-01-12T14:43:28.000Z
2017-09-08T20:29:30.000Z
importer/SeFornminSv.py
Vesihiisi/COH-tools
a874f076cb93b93722efb1be56a66a9380bcb7c4
[ "MIT" ]
103
2017-01-13T13:25:03.000Z
2018-09-05T12:29:41.000Z
importer/SeFornminSv.py
Vesihiisi/COH-tools
a874f076cb93b93722efb1be56a66a9380bcb7c4
[ "MIT" ]
2
2017-03-23T10:22:54.000Z
2018-01-08T09:25:03.000Z
from Monument import Monument, Dataset import importer_utils as utils import importer as importer class SeFornminSv(Monument): def __init__(self, db_row_dict, mapping, data_files, existing, repository): super(SeFornminSv, self).__init__( db_row_dict, mapping, data_files, existing, repository)...
36.39801
99
0.585019
19e39cbc3429d173d122c174960b2c9e72048423
8,953
py
Python
rl-toolkit/rlf/rl/evaluation.py
clvrai/goal_prox_il
7c809b2ee575a69a14997068db06f3c1f3c8bd08
[ "MIT" ]
4
2021-11-17T20:19:34.000Z
2022-03-31T04:21:26.000Z
rl-toolkit/rlf/rl/evaluation.py
clvrai/goal_prox_il
7c809b2ee575a69a14997068db06f3c1f3c8bd08
[ "MIT" ]
null
null
null
rl-toolkit/rlf/rl/evaluation.py
clvrai/goal_prox_il
7c809b2ee575a69a14997068db06f3c1f3c8bd08
[ "MIT" ]
null
null
null
import os import os.path as osp import time from collections import defaultdict import numpy as np import torch from rlf.exp_mgr.viz_utils import save_mp4 from rlf.il.traj_mgr import TrajSaver from rlf.policies.base_policy import get_empty_step_info from rlf.rl import utils from rlf.rl.envs import get_vec_normalize, m...
24.869444
85
0.5702
6295297bcca0d25339b1ed1bc411e123456752ed
3,796
py
Python
octavia_f5/db/repositories.py
notandy/octavia-f5-provider-driver
29b33e55c369561a50791fd4f923ff3b10081759
[ "Apache-2.0" ]
null
null
null
octavia_f5/db/repositories.py
notandy/octavia-f5-provider-driver
29b33e55c369561a50791fd4f923ff3b10081759
[ "Apache-2.0" ]
null
null
null
octavia_f5/db/repositories.py
notandy/octavia-f5-provider-driver
29b33e55c369561a50791fd4f923ff3b10081759
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 SAP SE # # 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 ...
37.215686
77
0.678082
426a753981b120ed54ae657a7b0e9f04896f9039
5,158
py
Python
cytoskeleton_analyser/config/_m1d.py
vsukhor/cytoskeleton-analyser
681a1f6ba1381a5fb293f2310fce5e97d400cfcb
[ "BSD-3-Clause" ]
null
null
null
cytoskeleton_analyser/config/_m1d.py
vsukhor/cytoskeleton-analyser
681a1f6ba1381a5fb293f2310fce5e97d400cfcb
[ "BSD-3-Clause" ]
null
null
null
cytoskeleton_analyser/config/_m1d.py
vsukhor/cytoskeleton-analyser
681a1f6ba1381a5fb293f2310fce5e97d400cfcb
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2021 Valerii Sukhorukov. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and ...
39.984496
79
0.636487
83863383e65119abe3406ed6be6d92472e424d05
6,588
py
Python
viadot/sources/supermetrics.py
Lauralicja/viadot
480df8ce8c7f9b9eab7d5f9646227316fc9eff49
[ "MIT" ]
null
null
null
viadot/sources/supermetrics.py
Lauralicja/viadot
480df8ce8c7f9b9eab7d5f9646227316fc9eff49
[ "MIT" ]
null
null
null
viadot/sources/supermetrics.py
Lauralicja/viadot
480df8ce8c7f9b9eab7d5f9646227316fc9eff49
[ "MIT" ]
null
null
null
import json import urllib from copy import deepcopy from typing import Any, Dict, List import numpy as np import pandas as pd import requests from prefect.utilities import logging from requests.adapters import HTTPAdapter from requests.exceptions import ConnectionError, HTTPError, ReadTimeout, Timeout from requests.pa...
37.220339
104
0.641773
8b32c694a361893607558d11538bbbefcc763d19
672
py
Python
gutenberg/app/db.py
joseprsm/gutenberg
e86db5f65ca8cebf54be7b5845edb71e0a6b45f5
[ "MIT" ]
null
null
null
gutenberg/app/db.py
joseprsm/gutenberg
e86db5f65ca8cebf54be7b5845edb71e0a6b45f5
[ "MIT" ]
null
null
null
gutenberg/app/db.py
joseprsm/gutenberg
e86db5f65ca8cebf54be7b5845edb71e0a6b45f5
[ "MIT" ]
null
null
null
import os from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker DB_USER = os.environ.get('DB_USER') DB_PASS = os.environ.get('DB_PASS') DB_HOST = os.environ.get('DB_HOST') DB_PORT = os.environ.get('DB_PORT') DB_NAME = os.environ.get('DB_NA...
24.888889
106
0.733631
081cbcfbf7eaefd3b077ac01f7d98f1018d71d58
6,544
py
Python
botMcBotFace.py
naushadzaman/CoinBaseBot
3cc97b98203770431ef0cb7b50f03c061184db5e
[ "Unlicense", "MIT" ]
null
null
null
botMcBotFace.py
naushadzaman/CoinBaseBot
3cc97b98203770431ef0cb7b50f03c061184db5e
[ "Unlicense", "MIT" ]
null
null
null
botMcBotFace.py
naushadzaman/CoinBaseBot
3cc97b98203770431ef0cb7b50f03c061184db5e
[ "Unlicense", "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # https://github.com/danpaquin/gdax-python __author__ = "Naushad UzZaman (@naushadzaman)" import os import sys import time import json from collections import Counter import gdax filepath = os.path.abspath(os.path.dirname(__file__)) + "/" # define files, change nam...
29.61086
317
0.698808
0605d275475add17a94f9b03cac5b0391cb2d30f
1,683
py
Python
2020/day4/day4.py
dasm/AdventOfCode
2898b46a829d60bbc0d896914c7c4cce656cc0f7
[ "MIT" ]
2
2020-12-03T17:13:23.000Z
2020-12-06T05:28:51.000Z
2020/day4/day4.py
dasm/AdventOfCode
2898b46a829d60bbc0d896914c7c4cce656cc0f7
[ "MIT" ]
null
null
null
2020/day4/day4.py
dasm/AdventOfCode
2898b46a829d60bbc0d896914c7c4cce656cc0f7
[ "MIT" ]
1
2020-12-09T13:03:49.000Z
2020-12-09T13:03:49.000Z
#!/usr/bin/env python3 import re def hgt(value): validate = { 'cm': lambda x: 150<=int(x)<=193, 'in': lambda x: 59<=int(x)<=76, } found = re.match('^(\d{2}in)|(\d{3}cm)', value) if not found: return False value, units = value[:-2], value[-2:] return validate[units](va...
24.75
76
0.553773
82a76c1e9eb49723e1e8a23cd8379977f0c4213d
706
py
Python
tests/utils/test_postgres.py
Purg/SMQTK
705a2b2979935ed129aac7db578571c4ae1343e7
[ "BSD-3-Clause" ]
82
2015-01-07T15:33:29.000Z
2021-08-11T18:34:05.000Z
tests/utils/test_postgres.py
Purg/SMQTK
705a2b2979935ed129aac7db578571c4ae1343e7
[ "BSD-3-Clause" ]
230
2015-04-08T14:36:51.000Z
2022-03-14T17:55:30.000Z
tests/utils/test_postgres.py
Purg/SMQTK
705a2b2979935ed129aac7db578571c4ae1343e7
[ "BSD-3-Clause" ]
65
2015-01-04T15:00:16.000Z
2021-11-19T18:09:11.000Z
import unittest import pytest from smqtk.utils.postgres import psycopg2, PsqlConnectionHelper @pytest.mark.skipif(psycopg2 is None, reason="Psycopg2 module is not importable, postgres " "utilities are not available.") class TestPsqlConnectionHelper (unittest.TestCase):...
30.695652
76
0.655807
4a13c487c9a1b60acdb5fca5515e74063d799cf2
2,890
py
Python
common_utils/value_data_types.py
CroP-BioDiv/zcitools
52332b4013486e983f962c085236189292228a02
[ "MIT" ]
null
null
null
common_utils/value_data_types.py
CroP-BioDiv/zcitools
52332b4013486e983f962c085236189292228a02
[ "MIT" ]
null
null
null
common_utils/value_data_types.py
CroP-BioDiv/zcitools
52332b4013486e983f962c085236189292228a02
[ "MIT" ]
null
null
null
from datetime import date from decimal import Decimal from common_utils.import_method import import_pandas KNOWN_DATA_TYPES = frozenset(['seq_ident', 'str', 'int', 'date', 'decimal']) def _ident_cast(x): return x def fromisoformat(d): return datetime.date.fromisoformat(data['Date']) # Note: input value ...
25.130435
112
0.690311
b56f8b92ad00e1d5b23632eb978fe800ff0f2c68
1,885
py
Python
src/python/plot_utils/files_dist_plots2.py
isaac-ped/demikernel
6f372569e3599d8bf9083df6c25490c42af74c0d
[ "MIT" ]
null
null
null
src/python/plot_utils/files_dist_plots2.py
isaac-ped/demikernel
6f372569e3599d8bf9083df6c25490c42af74c0d
[ "MIT" ]
null
null
null
src/python/plot_utils/files_dist_plots2.py
isaac-ped/demikernel
6f372569e3599d8bf9083df6c25490c42af74c0d
[ "MIT" ]
null
null
null
import seaborn as sns import pandas as pd import argparse import matplotlib.pyplot as plt import os.path import numpy as np webserver_root = '/media/memfs/wiki/' def plot_hist(files_list, trim_flags=False): files = [] with open(files_list, 'r') as f: files = np.array(f.read().splitlines()) if len(...
32.5
94
0.622812
93b1a4162650d27e12fbe5366e437abcd92364c6
2,861
py
Python
third_party/chromite/lib/const/waterfall.py
zipated/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
third_party/chromite/lib/const/waterfall.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
third_party/chromite/lib/const/waterfall.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
# -*- coding: utf-8 -*- # Copyright 2017 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Constants related to waterfall names and behaviors.""" WATERFALL_INTERNAL = 'chromeos' WATERFALL_EXTERNAL = 'chromiumos' WATER...
37.644737
89
0.77001
93e761fef85e1daaf591d4f68a77d33a3df9e67a
366
py
Python
linkedlist/delete_node.py
javyxu/algorithms-python
2076d0f22c2d6b2dd53a5e1d2a9a3000ef2c9d38
[ "MIT" ]
8
2017-07-02T15:17:25.000Z
2017-09-18T15:37:51.000Z
linkedlist/delete_node.py
javyxu/algorithms-python
2076d0f22c2d6b2dd53a5e1d2a9a3000ef2c9d38
[ "MIT" ]
null
null
null
linkedlist/delete_node.py
javyxu/algorithms-python
2076d0f22c2d6b2dd53a5e1d2a9a3000ef2c9d38
[ "MIT" ]
5
2017-11-24T06:55:23.000Z
2019-05-17T06:47:36.000Z
""" Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Supposed the linked list is 1 -> 2 -> 3 -> 4 and you are given the third node with value 3, the linked list should become 1 -> 2 -> 4 after calling your function. """ def delete_node(node): node.val =...
26.142857
70
0.696721
e652206251f5d3f00b7a94b3ec3f47d46b03b7f1
846
py
Python
venv/lib/python3.9/site-packages/AdServices/_metadata.py
ipriyam26/RedditTTS
8528bdc3adcea1197c7159e6eb4c302487e32406
[ "MIT" ]
null
null
null
venv/lib/python3.9/site-packages/AdServices/_metadata.py
ipriyam26/RedditTTS
8528bdc3adcea1197c7159e6eb4c302487e32406
[ "MIT" ]
null
null
null
venv/lib/python3.9/site-packages/AdServices/_metadata.py
ipriyam26/RedditTTS
8528bdc3adcea1197c7159e6eb4c302487e32406
[ "MIT" ]
null
null
null
# This file is generated by objective.metadata # # Last update: Sun Jul 11 21:21:02 2021 # # flake8: noqa import objc, sys if sys.maxsize > 2 ** 32: def sel32or64(a, b): return b else: def sel32or64(a, b): return a if objc.arch == "arm64": def selAorI(a, b): return a else: ...
17.625
135
0.652482
e40eb4a563a84d8e71412a087e05e6530c160004
9,320
py
Python
automl/h2o/h2o_re.py
marscod/BERT-Sort
7df07abe911fecd0e447018a890374f3fe619de2
[ "MIT" ]
null
null
null
automl/h2o/h2o_re.py
marscod/BERT-Sort
7df07abe911fecd0e447018a890374f3fe619de2
[ "MIT" ]
null
null
null
automl/h2o/h2o_re.py
marscod/BERT-Sort
7df07abe911fecd0e447018a890374f3fe619de2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from pathlib import Path import os import json import pandas as pd import subprocess as subp import time import sys from sklearn.preprocessing import OrdinalEncoder import sys import os import time import traceback import numpy as np import pandas as pd from sklearn.model...
40
110
0.510086
d99a1cf0759b84db869e5be17a703a6404edced4
34,331
py
Python
tensorflow/python/keras/engine/training_distributed.py
SushanthIkshwaku/tensorflow
d84bfa45172da3af2b487593fb0cac1756f4fc0d
[ "Apache-2.0" ]
2
2018-12-19T14:56:52.000Z
2019-01-16T13:21:53.000Z
tensorflow/python/keras/engine/training_distributed.py
SushanthIkshwaku/tensorflow
d84bfa45172da3af2b487593fb0cac1756f4fc0d
[ "Apache-2.0" ]
null
null
null
tensorflow/python/keras/engine/training_distributed.py
SushanthIkshwaku/tensorflow
d84bfa45172da3af2b487593fb0cac1756f4fc0d
[ "Apache-2.0" ]
4
2018-02-18T03:39:01.000Z
2018-10-18T11:49:17.000Z
# Copyright 2018 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...
37.97677
83
0.709912
1f540ff788615a05f00f0a1a9d96dfed758acb31
1,718
py
Python
python/electionfraud/responseformat/abc.py
tnalpgge/electionfraud
8876976c8b97dcdaeb02823da6b1ca3831bf6523
[ "Artistic-2.0" ]
null
null
null
python/electionfraud/responseformat/abc.py
tnalpgge/electionfraud
8876976c8b97dcdaeb02823da6b1ca3831bf6523
[ "Artistic-2.0" ]
null
null
null
python/electionfraud/responseformat/abc.py
tnalpgge/electionfraud
8876976c8b97dcdaeb02823da6b1ca3831bf6523
[ "Artistic-2.0" ]
1
2019-01-08T07:19:27.000Z
2019-01-08T07:19:27.000Z
# -*- python -*- import abc import electionfraud.responseformat.exception as rfx class Abstract(metaclass=abc.ABCMeta): """ The various response formats are derived from this abstract base class. """ @abc.abstractmethod def __init__(self): pass @abc.abstractmethod def validate(s...
33.686275
75
0.636205
ad91757b6d381f900832690779c53031897517fa
15,644
py
Python
froide/frontpage/migrations/0001_initial.py
rufuspollock/froide
8ef4dbdd54a74f8c986d59e90348dfdbd85c5da4
[ "MIT" ]
null
null
null
froide/frontpage/migrations/0001_initial.py
rufuspollock/froide
8ef4dbdd54a74f8c986d59e90348dfdbd85c5da4
[ "MIT" ]
null
null
null
froide/frontpage/migrations/0001_initial.py
rufuspollock/froide
8ef4dbdd54a74f8c986d59e90348dfdbd85c5da4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'FeaturedRequest' db.create_table('frontpage_featuredrequest', ( ('id', self.gf('...
85.956044
235
0.569611
cb2072578860ae9fa6114047332ac122622ebe25
5,286
py
Python
jupyterlab/browser_check.py
sanchezm/jupyterlab
9cfe2b5472e00b067be981a3938fc4a915a92e2a
[ "BSD-3-Clause" ]
null
null
null
jupyterlab/browser_check.py
sanchezm/jupyterlab
9cfe2b5472e00b067be981a3938fc4a915a92e2a
[ "BSD-3-Clause" ]
null
null
null
jupyterlab/browser_check.py
sanchezm/jupyterlab
9cfe2b5472e00b067be981a3938fc4a915a92e2a
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ This module is meant to run JupyterLab in a headless browser, making sure the application launches and starts up without errors. """ import asyncio from concurrent.futures import ThreadPoolExecutor import inspect import logging from os import path as osp import os import shutil import sys ...
29.530726
93
0.667234
d2504164976a745f0d06c036bd1115d526ab74c6
16,716
py
Python
orcid_api_v3/models/work_v30_rc1.py
tenet-ac-za/NZ-ORCID-Hub
f1183fbb94509b102fa58d7812ed33d8f35c5d4d
[ "MIT" ]
15
2017-02-06T01:41:57.000Z
2021-07-22T08:53:40.000Z
orcid_api_v3/models/work_v30_rc1.py
tenet-ac-za/NZ-ORCID-Hub
f1183fbb94509b102fa58d7812ed33d8f35c5d4d
[ "MIT" ]
82
2017-03-23T00:30:04.000Z
2022-02-01T00:10:34.000Z
orcid_api_v3/models/work_v30_rc1.py
tenet-ac-za/NZ-ORCID-Hub
f1183fbb94509b102fa58d7812ed33d8f35c5d4d
[ "MIT" ]
6
2017-03-23T07:26:05.000Z
2021-02-23T11:20:21.000Z
# coding: utf-8 """ ORCID Member No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: Latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import si...
30.337568
728
0.615159
55a5a335f8393290efee1fb85466c9160bec9810
177
py
Python
semisup/util/combine_dicts.py
xu-ji/associative_deep_clustering
fb324f3749c1dedcde685640dc6143606bc6527b
[ "Apache-2.0" ]
null
null
null
semisup/util/combine_dicts.py
xu-ji/associative_deep_clustering
fb324f3749c1dedcde685640dc6143606bc6527b
[ "Apache-2.0" ]
null
null
null
semisup/util/combine_dicts.py
xu-ji/associative_deep_clustering
fb324f3749c1dedcde685640dc6143606bc6527b
[ "Apache-2.0" ]
1
2020-02-27T13:41:13.000Z
2020-02-27T13:41:13.000Z
# get over fact we do not use python 3.5+ def combine_dicts(dicts): new_dict = {} for d in dicts: for k in d: new_dict[k] = d[k] return new_dict
22.125
41
0.570621
993c15c2fa134d2730146ffa2b30373e01b4aed9
1,792
py
Python
playground/fsdet/coco/retentive_rcnn/5shot/seed7/config.py
Megvii-BaseDetection/GFSD
78c0a938d794584f44d60afab66debd43773d4f7
[ "Apache-2.0" ]
23
2021-06-25T05:34:31.000Z
2022-02-08T03:32:00.000Z
playground/fsdet/coco/retentive_rcnn/5shot/seed7/config.py
Megvii-BaseDetection/GFSD
78c0a938d794584f44d60afab66debd43773d4f7
[ "Apache-2.0" ]
6
2021-06-30T13:10:21.000Z
2021-11-04T13:26:39.000Z
playground/fsdet/coco/retentive_rcnn/5shot/seed7/config.py
Megvii-BaseDetection/GFSD
78c0a938d794584f44d60afab66debd43773d4f7
[ "Apache-2.0" ]
1
2021-10-12T11:58:14.000Z
2021-10-12T11:58:14.000Z
import os.path as osp from cvpods.configs.rcnn_fpn_config import RCNNFPNConfig _config_dict = dict( MODEL=dict( WEIGHTS="/path/to/your/model.pth", MASK_ON=False, RESNETS=dict(DEPTH=101), ROI_HEADS=dict( NUM_CLASSES=80, COSINE_ON=True, COSINE_SCAL...
27.569231
84
0.55971
d1c71b64774bf3338af01d1f98cb47742c7c3245
1,338
py
Python
virtual/lib/python3.6/site-packages/werkzeug/wrappers/request.py
najma-amin/News-Highlights
caad6c5af7650c2cc8490f100d070573fe18f6a6
[ "MIT" ]
6,140
2016-05-23T16:09:35.000Z
2022-03-30T19:00:46.000Z
virtual/lib/python3.6/site-packages/werkzeug/wrappers/request.py
najma-amin/News-Highlights
caad6c5af7650c2cc8490f100d070573fe18f6a6
[ "MIT" ]
1,384
2016-07-08T22:26:41.000Z
2022-03-24T16:39:43.000Z
virtual/lib/python3.6/site-packages/werkzeug/wrappers/request.py
najma-amin/News-Highlights
caad6c5af7650c2cc8490f100d070573fe18f6a6
[ "MIT" ]
5,110
2016-05-27T13:45:18.000Z
2022-03-31T18:40:42.000Z
from .accept import AcceptMixin from .auth import AuthorizationMixin from .base_request import BaseRequest from .common_descriptors import CommonRequestDescriptorsMixin from .etag import ETagRequestMixin from .user_agent import UserAgentMixin class Request( BaseRequest, AcceptMixin, ETagRequestMixin, ...
29.733333
74
0.746637
14639150b585114d00c29e96a39708ce0660dcf0
666
py
Python
Chapter02/1194029 Nur Ikhsani Suwandy Futri 3a D4 TI studi_kasus/Thread_name_and_processes.py
nurikhsanisf/Python-Pararel_SISTER
b8d424cc12775c101222cdd332a497066a56dbbb
[ "MIT" ]
null
null
null
Chapter02/1194029 Nur Ikhsani Suwandy Futri 3a D4 TI studi_kasus/Thread_name_and_processes.py
nurikhsanisf/Python-Pararel_SISTER
b8d424cc12775c101222cdd332a497066a56dbbb
[ "MIT" ]
null
null
null
Chapter02/1194029 Nur Ikhsani Suwandy Futri 3a D4 TI studi_kasus/Thread_name_and_processes.py
nurikhsanisf/Python-Pararel_SISTER
b8d424cc12775c101222cdd332a497066a56dbbb
[ "MIT" ]
null
null
null
#studi kasus tentang perlombaan cerdas cermat from threading import Thread import time import os class Tes (Thread): def __init__(self, name): Thread.__init__(self) self.name = name def run(self): print("Soal dibagikan kepada peserta {}".format(self.name)) #, " is {} \n".format(os.getpid()))...
17.076923
102
0.62012
92576e20291dbf73e15c3cc4d133ae7d2479f4a1
5,656
py
Python
deepclean/text/normalize.py
pradeepsinngh/DeepClean
13fcdd9f252883c256a758584498c6cd132a89d7
[ "MIT" ]
1
2020-04-25T20:10:14.000Z
2020-04-25T20:10:14.000Z
deepclean/text/normalize.py
pradeepsinngh/DeepClean
13fcdd9f252883c256a758584498c6cd132a89d7
[ "MIT" ]
null
null
null
deepclean/text/normalize.py
pradeepsinngh/DeepClean
13fcdd9f252883c256a758584498c6cd132a89d7
[ "MIT" ]
null
null
null
from deepclean.main import Data import re, string, unicodedata import contractions import inflect from bs4 import BeautifulSoup import nltk from nltk import word_tokenize, sent_tokenize from nltk.corpus import stopwords from nltk.stem import LancasterStemmer, WordNetLemmatizer from nltk.stem.porter import PorterStemme...
23.764706
110
0.521216
1ded7a920ba23108bb52dff6942b81161a656c4f
3,533
py
Python
modules/feedparser/parsers/loose.py
whanderley/eden
08ced3be3d52352c54cbd412ed86128fbb68b1d2
[ "MIT" ]
2
2019-11-25T20:34:52.000Z
2021-06-04T20:05:46.000Z
modules/feedparser/parsers/loose.py
whanderley/eden
08ced3be3d52352c54cbd412ed86128fbb68b1d2
[ "MIT" ]
1
2020-01-29T15:33:17.000Z
2020-01-29T15:33:17.000Z
modules/feedparser/parsers/loose.py
whanderley/eden
08ced3be3d52352c54cbd412ed86128fbb68b1d2
[ "MIT" ]
3
2019-11-30T20:25:55.000Z
2022-02-03T17:12:16.000Z
# The loose feed parser that interfaces with an SGML parsing library # Copyright 2010-2019 Kurt McKee <contactme@kurtmckee.org> # Copyright 2002-2008 Mark Pilgrim # All rights reserved. # # This file is a part of feedparser. # # Redistribution and use in source and binary forms, with or without modification, # are perm...
43.085366
82
0.638551
4bafb34b1cb6a09fdaca314e7dcf2fff3acaba6c
1,705
py
Python
gas_behaviour.py
ccusrz/chem-eng
eb677ed42cf021b11908a0a55c4f29b547a64a7c
[ "Unlicense" ]
null
null
null
gas_behaviour.py
ccusrz/chem-eng
eb677ed42cf021b11908a0a55c4f29b547a64a7c
[ "Unlicense" ]
null
null
null
gas_behaviour.py
ccusrz/chem-eng
eb677ed42cf021b11908a0a55c4f29b547a64a7c
[ "Unlicense" ]
null
null
null
""" The following data set exposes a specific volume behaviour of some gas in regards to the change in pressure. P: 2 - 5 - 10 - 15 - 20 v: 25953 - 11213 - 3473 - 483 - 33 a) By the least squares method, find the polinomial equation that best fits the supplied data by calculating the R^2 coefficient. ...
26.640625
88
0.665689
e02dd6555635e5f8349f9e5fa1336bc1cca1065a
15,711
py
Python
train_EfusionS1.py
yusin2it/SARoptical_fusion
896da9f436b90b8eb6609e981ea0ba8f495be278
[ "MIT" ]
1
2022-02-25T13:29:49.000Z
2022-02-25T13:29:49.000Z
train_EfusionS1.py
yusin2it/SARoptical_fusion
896da9f436b90b8eb6609e981ea0ba8f495be278
[ "MIT" ]
null
null
null
train_EfusionS1.py
yusin2it/SARoptical_fusion
896da9f436b90b8eb6609e981ea0ba8f495be278
[ "MIT" ]
null
null
null
import os import argparse import torch import random import numpy as np from torch.utils.data import DataLoader from datasets.dataset_dfc import DFC2020 from networks.propnets import E_Fusion from utils.util import RandomApply, default, seed_torch from utils.losses import HardNegtive_loss from kornia import f...
43.400552
140
0.600407
25e94bcb03660c2127e60aea6abe7c541957c6d2
13,473
py
Python
Orio/orio/main/tuner/search/mlsearch/mlsearch.py
HPCL/nametbd
1b588cd6ce94ab39a8ba6f89d9eb64e1d3726af5
[ "MIT" ]
null
null
null
Orio/orio/main/tuner/search/mlsearch/mlsearch.py
HPCL/nametbd
1b588cd6ce94ab39a8ba6f89d9eb64e1d3726af5
[ "MIT" ]
null
null
null
Orio/orio/main/tuner/search/mlsearch/mlsearch.py
HPCL/nametbd
1b588cd6ce94ab39a8ba6f89d9eb64e1d3726af5
[ "MIT" ]
null
null
null
# # Implementation of the ml search algorithm # import sys, time import math import random import orio.main.tuner.search.search from orio.main.util.globals import * from sklearn import ensemble import numpy as np import pandas as pd import copy import random import json #---------------------------------------------...
30.690205
212
0.603726
0ee0fbba16731b467469a9ebfba53700464d7e05
2,535
py
Python
tests/test_find.py
atac-bham/c10-tools
1562de718a92f4c4e0e30b4e6673dd9108f7077c
[ "BSD-3-Clause" ]
null
null
null
tests/test_find.py
atac-bham/c10-tools
1562de718a92f4c4e0e30b4e6673dd9108f7077c
[ "BSD-3-Clause" ]
null
null
null
tests/test_find.py
atac-bham/c10-tools
1562de718a92f4c4e0e30b4e6673dd9108f7077c
[ "BSD-3-Clause" ]
null
null
null
from click.testing import CliRunner import pytest from c10_tools.find import find def test_find_simple(): result = CliRunner().invoke(find, ['0x00', '--offset', '2', pytest.SAMPLE]) assert '''00 at 606820 00 at 606836 00 at 606844 00 at 606852 00 at 606916 00 at 606940 00...
31.6875
114
0.642998
6559e8058ce5c2b3038ff2d135cd7940a3dbe8ee
3,435
py
Python
test/test_pair.py
swat5421/swagger_portainer
e18b287dc906e171077912677515469ee3f4e5c2
[ "RSA-MD" ]
null
null
null
test/test_pair.py
swat5421/swagger_portainer
e18b287dc906e171077912677515469ee3f4e5c2
[ "RSA-MD" ]
null
null
null
test/test_pair.py
swat5421/swagger_portainer
e18b287dc906e171077912677515469ee3f4e5c2
[ "RSA-MD" ]
null
null
null
# coding: utf-8 """ Portainer API Portainer API is an HTTP API served by Portainer. It is used by the Portainer UI and everything you can do with the UI can be done using the HTTP API. Examples are available at https://gist.github.com/deviantony/77026d402366b4b43fa5918d41bc42f8 You can find out more about Por...
83.780488
2,674
0.770597
72832347398b9fde0541881e3f37b68ed506fc95
10,189
py
Python
tests/authentication/test_login_kubeconfig.py
tavaresrodrigo/kopf
97e1c7a926705a79dabce2931e96a924252b61df
[ "MIT" ]
855
2020-08-19T09:40:38.000Z
2022-03-31T19:13:29.000Z
tests/authentication/test_login_kubeconfig.py
tavaresrodrigo/kopf
97e1c7a926705a79dabce2931e96a924252b61df
[ "MIT" ]
715
2019-12-23T14:17:35.000Z
2022-03-30T20:54:45.000Z
tests/authentication/test_login_kubeconfig.py
tavaresrodrigo/kopf
97e1c7a926705a79dabce2931e96a924252b61df
[ "MIT" ]
97
2019-04-25T09:32:54.000Z
2022-03-30T10:15:30.000Z
import os import pytest import yaml from kopf._cogs.structs.credentials import LoginError from kopf._core.intents.piggybacking import has_kubeconfig, login_with_kubeconfig MINICONFIG = ''' kind: Config current-context: ctx contexts: - name: ctx context: cluster: clstr us...
31.642857
99
0.636863
4f9547efd195fee12bb5317e9e7f0a203981b451
2,046
py
Python
PyPLS/BasicRegression.py
showhei/show-time
5da4c4fd5270d7ba61425649129d2538dd50cb38
[ "MIT" ]
15
2019-05-01T03:20:50.000Z
2021-10-17T09:09:37.000Z
PyPLS/BasicRegression.py
showhei/show-time
5da4c4fd5270d7ba61425649129d2538dd50cb38
[ "MIT" ]
1
2021-11-25T14:37:08.000Z
2021-11-25T14:37:08.000Z
PyPLS/BasicRegression.py
showhei/show-time
5da4c4fd5270d7ba61425649129d2538dd50cb38
[ "MIT" ]
5
2020-01-24T19:29:42.000Z
2021-04-27T08:58:22.000Z
import numpy as np class BasicRegression(object): def __init__(self): pass def fit(self, X, Y, max_iter = 1000, eps = 1e-6): """ Fitting the data N: the number of data Mx: the number of in X My: the number of in...
34.1
73
0.481916
359a9491975d4597ea49fa45ee8a05f9bc26279b
9,348
py
Python
virtual/lib/python3.8/site-packages/PIL/PyAccess.py
charlesmugambi/charles-repo
dfb164e909426601d9c9b746d4379453b4f4767b
[ "MIT" ]
1,738
2017-09-21T10:59:12.000Z
2022-03-31T21:05:46.000Z
virtual/lib/python3.8/site-packages/PIL/PyAccess.py
charlesmugambi/charles-repo
dfb164e909426601d9c9b746d4379453b4f4767b
[ "MIT" ]
427
2017-09-29T22:54:36.000Z
2022-02-15T19:26:50.000Z
virtual/lib/python3.6/site-packages/PIL/PyAccess.py
dennismwaniki67/awards
80ed10541f5f751aee5f8285ab1ad54cfecba95f
[ "MIT" ]
671
2017-09-21T08:04:01.000Z
2022-03-29T14:30:07.000Z
# # The Python Imaging Library # Pillow fork # # Python implementation of the PixelAccess Object # # Copyright (c) 1997-2009 by Secret Labs AB. All rights reserved. # Copyright (c) 1995-2009 by Fredrik Lundh. # Copyright (c) 2013 Eric Soroos # # See the README file for information on usage and redistribution # # Note...
26.939481
87
0.575845
78ed4ce26309d6ad022604df862d5b06f5ca29d7
216
py
Python
post/admin.py
lllapukk/Sritter
12eda47b56a0533dc6405dd5d37f903968ed624d
[ "MIT" ]
null
null
null
post/admin.py
lllapukk/Sritter
12eda47b56a0533dc6405dd5d37f903968ed624d
[ "MIT" ]
null
null
null
post/admin.py
lllapukk/Sritter
12eda47b56a0533dc6405dd5d37f903968ed624d
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Post class PostAdmin(admin.ModelAdmin): list_display = ('pk', 'header', 'text', 'author', 'published_date', 'image') admin.site.register(Post, PostAdmin)
19.636364
80
0.722222
954a86591f26ad19bac15dc5ad8fe8154b2afeb7
3,205
py
Python
analysis/exploratory_plots/activity_by_unit.py
BrancoLab/LocomotionControl
6dc16c29c13b31f6ad70af954a237e379ee10846
[ "MIT" ]
null
null
null
analysis/exploratory_plots/activity_by_unit.py
BrancoLab/LocomotionControl
6dc16c29c13b31f6ad70af954a237e379ee10846
[ "MIT" ]
2
2020-11-23T16:32:11.000Z
2020-11-23T16:32:11.000Z
analysis/exploratory_plots/activity_by_unit.py
BrancoLab/LocomotionControl
6dc16c29c13b31f6ad70af954a237e379ee10846
[ "MIT" ]
null
null
null
import sys import matplotlib.pyplot as plt import numpy as np import pandas as pd from pathlib import Path from loguru import logger sys.path.append("./") from fcutils.plot.figure import clean_axes from tpd import recorder from myterial import blue_grey from data.dbase.db_tables import Probe, Unit, Recording, Tracki...
27.161017
83
0.530109
af3ad96499e729e37abb4dbc17f4370a8dd61a00
11,165
py
Python
plugins/tarot.py
AlienExo/FListBot-Python-
444a8fd93d64e63a9a4ff5281135fa4a3358d15e
[ "MIT" ]
null
null
null
plugins/tarot.py
AlienExo/FListBot-Python-
444a8fd93d64e63a9a4ff5281135fa4a3358d15e
[ "MIT" ]
null
null
null
plugins/tarot.py
AlienExo/FListBot-Python-
444a8fd93d64e63a9a4ff5281135fa4a3358d15e
[ "MIT" ]
null
null
null
#1dbdc6da34094db4e661ed43aac83d91 import traceback import random deck= { "[The Fool]":( "The infinite lies within the simple, just as the simple lies within the infinite.", "The Fool is the spirit in search of experience. He represents the mystical cleverness bereft of reason within us, the childlike ability to tune...
129.825581
563
0.724048
3a90b40df2507762839d25a7b349ffc3fb7d981b
3,722
py
Python
Versions/Release.2.0.x/py/TranslateBibleNames.py
garygriswold/Bible.js
2d378e84cbd6b81641bcccd6ba66699d24208548
[ "MIT" ]
null
null
null
Versions/Release.2.0.x/py/TranslateBibleNames.py
garygriswold/Bible.js
2d378e84cbd6b81641bcccd6ba66699d24208548
[ "MIT" ]
null
null
null
Versions/Release.2.0.x/py/TranslateBibleNames.py
garygriswold/Bible.js
2d378e84cbd6b81641bcccd6ba66699d24208548
[ "MIT" ]
null
null
null
# # This program is for translating Bible names that are in English # into the language of that Bible. It is strange that so many # Bible names are only in English # import httplib import sys import io import json import sqlite3 # submits a request to Google for translation def getTranslation(body): conn = httplib.H...
33.531532
102
0.682966
2d3d45e56ec8c8e76842edd823ae4227fb79aa47
6,111
py
Python
PIPS/periodogram/__init__.py
SterlingYM/astroPIPS
cf9ceda0670ded1289c8616a4cff753af4383012
[ "MIT" ]
4
2021-05-09T03:07:17.000Z
2022-01-10T08:55:18.000Z
PIPS/periodogram/__init__.py
SterlingYM/astroPIPS
cf9ceda0670ded1289c8616a4cff753af4383012
[ "MIT" ]
12
2021-04-28T04:34:19.000Z
2022-02-22T21:59:02.000Z
PIPS/periodogram/__init__.py
SterlingYM/astroPIPS
cf9ceda0670ded1289c8616a4cff753af4383012
[ "MIT" ]
null
null
null
from . import * from .linalg import periodogram_fast from .custom import periodogram_custom import matplotlib.pyplot as plt import numpy as np class Periodogram: def __init__(self,photdata=None,periods=None,power=None,kwargs=None,mode='regular'): self.photdata = photdata self.periods = periods ...
34.331461
153
0.569301
8b22607b33d0c3effa1e478260bdb1d2fd2136ff
3,055
py
Python
ch_bin/core/clustering/algorithm.py
kdsuneraavinash/CH-Bin
27db1c460d72aa695814542a83660e47b50441a9
[ "MIT" ]
null
null
null
ch_bin/core/clustering/algorithm.py
kdsuneraavinash/CH-Bin
27db1c460d72aa695814542a83660e47b50441a9
[ "MIT" ]
1
2022-03-31T00:21:27.000Z
2022-03-31T00:21:27.000Z
ch_bin/core/clustering/algorithm.py
kdsuneraavinash/CH-Bin
27db1c460d72aa695814542a83660e47b50441a9
[ "MIT" ]
null
null
null
import logging import numpy as np from tqdm import tqdm from ch_bin.core.clustering.distance_matrix import find_nearest_from_cluster from ch_bin.core.clustering.hull_distance import calculate_distance logger = logging.getLogger(__name__) def fit_cluster( samples: np.ndarray, num_clusters: int, initial_...
39.675325
116
0.682488
fec675adda3b7a8ebfe9a871cf538057cddc5646
2,134
py
Python
src/ml/training/app/model_saver.py
raywu60kg/mini-demand-side-platform
a9613c4cf955d72174d8c5d8638ddcd0365bfb68
[ "MIT" ]
null
null
null
src/ml/training/app/model_saver.py
raywu60kg/mini-demand-side-platform
a9613c4cf955d72174d8c5d8638ddcd0365bfb68
[ "MIT" ]
null
null
null
src/ml/training/app/model_saver.py
raywu60kg/mini-demand-side-platform
a9613c4cf955d72174d8c5d8638ddcd0365bfb68
[ "MIT" ]
null
null
null
from app.logger import get_logger import io import json import pickle log = get_logger(logger_name="model_saver") class ModelSaver(): def save(self): raise NotImplementedError class MinioModelSaver(ModelSaver): def __init__(self, minio_client): self.minio_client = minio_client def save...
28.453333
81
0.578725
3d36f2ea76319a22305d13e790893a058ddeb022
417
py
Python
example.py
beep39/pymikuvr
03fc7d77babc0ab0f6444534ca7df522b3ac1de2
[ "MIT" ]
1
2021-11-16T16:18:31.000Z
2021-11-16T16:18:31.000Z
example.py
beep39/pymikuvr
03fc7d77babc0ab0f6444534ca7df522b3ac1de2
[ "MIT" ]
null
null
null
example.py
beep39/pymikuvr
03fc7d77babc0ab0f6444534ca7df522b3ac1de2
[ "MIT" ]
null
null
null
room = shape.box(-10, -4, -8, s=2, t=2, normalize_tc=False) room.texture = texture("prototype.png") room.pos.y = 2 sl = shape.sphere(0.05) sl.color.set(1, 0, 0, 0.5) player.left_hand.add_child(sl, True) sr = shape.sphere(0.05) sr.color.set(0, 1, 0, 0.5) sr.set_parent(player.right_hand) player.locomotion.walk(player....
27.8
71
0.719424
6a4fdb77c8cfbc81e4e33dcd3f3ae6b5ef398bc9
6,158
py
Python
satsuki/cli.py
plus3it/satsuk
bc873bd90c7d3fd0e5f52ccfbf3579202676b196
[ "Apache-2.0" ]
6
2019-11-02T18:05:49.000Z
2021-08-07T23:06:44.000Z
satsuki/cli.py
plus3it/satsuk
bc873bd90c7d3fd0e5f52ccfbf3579202676b196
[ "Apache-2.0" ]
101
2020-12-16T07:03:49.000Z
2022-03-31T19:14:35.000Z
satsuki/cli.py
plus3it/satsuk
bc873bd90c7d3fd0e5f52ccfbf3579202676b196
[ "Apache-2.0" ]
7
2019-01-29T20:38:40.000Z
2021-08-07T23:06:45.000Z
# -*- coding: utf-8 -*- """satsuki cli.""" import sys import click import satsuki click.disable_unicode_literals_warning = True @click.command(context_settings=dict( ignore_unknown_options=True, )) @click.version_option(version=satsuki.__version__) @click.option('--token', 'token', envvar='SATS_TOKEN', ...
52.632479
79
0.588665
fd46656760a4912ed17a74cf6d72309141bee1f4
1,241
py
Python
alipay/aop/api/response/AlipayPassSyncAddResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
32
2018-05-24T08:40:15.000Z
2019-04-04T20:54:55.000Z
alipay/aop/api/response/AlipayPassSyncAddResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
7
2018-05-24T08:42:59.000Z
2020-09-06T23:18:46.000Z
alipay/aop/api/response/AlipayPassSyncAddResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
13
2018-04-25T11:27:58.000Z
2021-03-15T12:22:21.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayPassSyncAddResponse(AlipayResponse): def __init__(self): super(AlipayPassSyncAddResponse, self).__init__() self._biz_result = None self._error_code = No...
26.978261
98
0.663175
792166033c93ccff4601d14aa4b4c9748cd67eed
20,552
py
Python
implementations/sgan/sgan_main.py
gun8474/face-recognition-by-OAGAN
54c67a29a22e25b14a24fb8aa3badba5444653ac
[ "MIT" ]
5
2021-05-08T11:27:29.000Z
2022-01-17T03:52:50.000Z
implementations/sgan/sgan_main.py
gun8474/face-recognition-by-OAGAN
54c67a29a22e25b14a24fb8aa3badba5444653ac
[ "MIT" ]
6
2021-05-12T05:52:27.000Z
2022-03-14T11:52:30.000Z
implementations/sgan/sgan_main.py
gun8474/face-recognition-by-OAGAN
54c67a29a22e25b14a24fb8aa3badba5444653ac
[ "MIT" ]
3
2021-05-10T03:52:06.000Z
2021-05-26T13:19:02.000Z
# 새로운 참고링크: https://github.com/eriklindernoren/PyTorch-GAN/tree/master/implementations/context_encoder # 우리랑 같은 3채널에 하고자하는 바도 비슷함. shape 참고하기 좋을듯하여 첨부함 # 나(소현)는 사진 11개 -> batch_size=11, num_classes=11이니 주의바람! import argparse import os import numpy as np from dataloader import OAGandataset import math import torchvisi...
40.616601
143
0.625146
4634166a9bd2417b49d681f347681e892e47b2da
1,112
py
Python
openerp/addons/procurement/__init__.py
ntiufalara/openerp7
903800da0644ec0dd9c1dcd34205541f84d45fe4
[ "MIT" ]
3
2016-01-29T14:39:49.000Z
2018-12-29T22:42:00.000Z
openerp/addons/procurement/__init__.py
ntiufalara/openerp7
903800da0644ec0dd9c1dcd34205541f84d45fe4
[ "MIT" ]
2
2016-03-23T14:29:41.000Z
2017-02-20T17:11:30.000Z
openerp/addons/procurement/__init__.py
ntiufalara/openerp7
903800da0644ec0dd9c1dcd34205541f84d45fe4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
39.714286
78
0.626799
0822dc4434177c46ec615eaeaf1b4cac50dce510
392
py
Python
env/Lib/site-packages/plotly/validators/funnel/_x0.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
venv/Lib/site-packages/plotly/validators/funnel/_x0.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
venv/Lib/site-packages/plotly/validators/funnel/_x0.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class X0Validator(_plotly_utils.basevalidators.AnyValidator): def __init__(self, plotly_name="x0", parent_name="funnel", **kwargs): super(X0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, edit_type=kwargs....
32.666667
73
0.668367
8bdeaf60a1d0154a5b27ef91faed367729a2f301
10,106
py
Python
django_extensions/management/shells.py
EvgeneOskin/django-extensions
f40be190de1102f663573e65cbb19b4d7da83864
[ "MIT" ]
null
null
null
django_extensions/management/shells.py
EvgeneOskin/django-extensions
f40be190de1102f663573e65cbb19b4d7da83864
[ "MIT" ]
null
null
null
django_extensions/management/shells.py
EvgeneOskin/django-extensions
f40be190de1102f663573e65cbb19b4d7da83864
[ "MIT" ]
1
2019-03-21T08:17:36.000Z
2019-03-21T08:17:36.000Z
# coding=utf-8 import traceback import django import six class ObjectImportError(Exception): pass def import_items(import_directives, style, quiet_load=False): """ Import the items in import_directives and return a list of the imported items Each item in import_directives should be one of the foll...
43.560345
146
0.580348
af44d7f79b9e227002618bf2dfe1f25fc17e94e2
7,529
py
Python
legacy-v6.0.2/dlp/fortios_dlp_fp_sensitivity.py
fortinet-solutions-cse/ansible_fgt_modules
c45fba49258d7c9705e7a8fd9c2a09ea4c8a4719
[ "Apache-2.0" ]
14
2018-09-25T20:35:25.000Z
2021-07-14T04:30:54.000Z
legacy-v6.0.2/dlp/fortios_dlp_fp_sensitivity.py
fortinet-solutions-cse/ansible_fgt_modules
c45fba49258d7c9705e7a8fd9c2a09ea4c8a4719
[ "Apache-2.0" ]
32
2018-10-09T04:13:42.000Z
2020-05-11T07:20:28.000Z
legacy-v6.0.2/dlp/fortios_dlp_fp_sensitivity.py
fortinet-solutions-cse/ansible_fgt_modules
c45fba49258d7c9705e7a8fd9c2a09ea4c8a4719
[ "Apache-2.0" ]
11
2018-10-09T00:14:53.000Z
2021-11-03T10:54:09.000Z
#!/usr/bin/python from __future__ import (absolute_import, division, print_function) # Copyright 2019 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the Lic...
28.518939
154
0.629698
d66c0cdb0a140ef39ae2196fa5a269c52e1cbd21
4,636
py
Python
instrumentor/llvm.py
pohmann/csi-cc
08d103f09a647874a99349339721e1a33135468e
[ "Apache-2.0" ]
2
2018-05-02T06:12:34.000Z
2019-07-02T03:25:57.000Z
instrumentor/llvm.py
pohmann/csi-cc
08d103f09a647874a99349339721e1a33135468e
[ "Apache-2.0" ]
null
null
null
instrumentor/llvm.py
pohmann/csi-cc
08d103f09a647874a99349339721e1a33135468e
[ "Apache-2.0" ]
1
2021-12-20T06:59:36.000Z
2021-12-20T06:59:36.000Z
#====----------------------------- llvm.py --------------------------------====# # # Utility functions to verify LLVM installation and version. #====----------------------------------------------------------------------====# # # Copyright (c) 2013 Peter J. Ohmann and Benjamin R. Liblit # # Licensed under the Apache Lic...
36.503937
92
0.642148
24fbf3230f8b90f5574ff5416caa12b55f65d54c
7,230
py
Python
TimeSeriesAnalysisWithPython/SpectralAnalysis.py
PandoraLS/python_toys
d3f78815ada5c20863656c643342d48bcc3aef53
[ "MIT" ]
null
null
null
TimeSeriesAnalysisWithPython/SpectralAnalysis.py
PandoraLS/python_toys
d3f78815ada5c20863656c643342d48bcc3aef53
[ "MIT" ]
null
null
null
TimeSeriesAnalysisWithPython/SpectralAnalysis.py
PandoraLS/python_toys
d3f78815ada5c20863656c643342d48bcc3aef53
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2020/7/28 14:35 # @Author : sen import matplotlib.pylab as plt import numpy as np from numpy import fft import pandas as pd def fourierExtrapolation(x, n_predict): # 傅里叶外推法 n = x.size # n_harm = 5 # number of harmonics in model n_harm = 3 # number of harmonics ...
45.759494
1,627
0.629876
d06431eed4da31ada71eeb3947f6b238e7b2fb74
1,331
py
Python
numpy/typing/tests/data/pass/literal.py
sukritingupta/numpy
2c44c93164c274a5865799eefd3e401effa948a9
[ "BSD-3-Clause" ]
2
2022-01-10T05:17:10.000Z
2022-01-31T00:48:15.000Z
numpy/typing/tests/data/pass/literal.py
sukritingupta/numpy
2c44c93164c274a5865799eefd3e401effa948a9
[ "BSD-3-Clause" ]
60
2021-06-14T08:54:35.000Z
2022-01-13T01:34:27.000Z
numpy/typing/tests/data/pass/literal.py
ilayn/numpy
6dfbe0340ac409094bb907de8464264916924ddd
[ "BSD-3-Clause" ]
1
2022-03-22T11:47:01.000Z
2022-03-22T11:47:01.000Z
from __future__ import annotations from functools import partial from collections.abc import Callable import pytest # type: ignore import numpy as np AR = np.array(0) AR.setflags(write=False) KACF = frozenset({None, "K", "A", "C", "F"}) ACF = frozenset({None, "A", "C", "F"}) CF = frozenset({None, "C", "F"}) order...
27.729167
60
0.614576
84a4a0a607facdb344566211a75f4ab13ea7b0a7
785
py
Python
services/topology-engine-rest/app/app/tests/del_link_props.py
119Vik/open-kilda
c710cb4d297d455677e2526f11e78254c65e35ce
[ "Apache-2.0" ]
null
null
null
services/topology-engine-rest/app/app/tests/del_link_props.py
119Vik/open-kilda
c710cb4d297d455677e2526f11e78254c65e35ce
[ "Apache-2.0" ]
2
2018-04-23T16:37:54.000Z
2018-04-23T18:35:54.000Z
services/topology-engine-rest/app/app/tests/del_link_props.py
abubyr/open-kilda
c087b7228f46be77cbb7a4b260c99eb48bfc0328
[ "Apache-2.0" ]
null
null
null
""" del_link_props.py facilitates testing the feature through the NB API. Whereas there doesn't need to be anything in the DB .. call put_link_props first. The path is NB -> TER -> NEO4J. """ import requests from base64 import b64encode url = "http://localhost:8088/api/v1/link/props" headers = { 'Content-Type': ...
24.53125
81
0.610191
10d5edcbcd32e9e3648eb2bad865449d9017ef89
75,568
py
Python
Lib/zipfile.py
hbbtstar/cpython
ce6ab1eb7483f66347188305bbbb7e3388794ad8
[ "PSF-2.0" ]
null
null
null
Lib/zipfile.py
hbbtstar/cpython
ce6ab1eb7483f66347188305bbbb7e3388794ad8
[ "PSF-2.0" ]
null
null
null
Lib/zipfile.py
hbbtstar/cpython
ce6ab1eb7483f66347188305bbbb7e3388794ad8
[ "PSF-2.0" ]
null
null
null
""" Read and write ZIP files. XXX references to utf-8 need further investigation. """ import io import os import re import importlib.util import sys import time import stat import shutil import struct import binascii try: import threading except ImportError: import dummy_threading as threading try: impor...
37.134152
103
0.565411