hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
17db4911d8c47f304ac618f341064a74e3ab0a77
639
py
Python
dtos/probe_init.py
thanhledev/crm-dtos
9040ee31ef81d70efeb463cf001777211fb3986c
[ "MIT" ]
null
null
null
dtos/probe_init.py
thanhledev/crm-dtos
9040ee31ef81d70efeb463cf001777211fb3986c
[ "MIT" ]
null
null
null
dtos/probe_init.py
thanhledev/crm-dtos
9040ee31ef81d70efeb463cf001777211fb3986c
[ "MIT" ]
1
2021-02-11T13:24:29.000Z
2021-02-11T13:24:29.000Z
from .host_info import HostInfo from .crm_pkt_type import CrmPktType class ProbeInit(object): """ Collector information broadcast to all worker hosts in SonarThread """ def __init__(self, packet_id: str, info: 'HostInfo', packet_type: 'CrmPktType'): self.id = packet_id self.info = inf...
29.045455
84
0.56651
912d6d08846349d8ca7beda3ae36160c8f4156c4
9,860
py
Python
demo/fixed_length_demo.py
wps712/MicroNetChallenge
5edc5aaaf918826eb1669897024ad4e6f5220d3e
[ "Apache-2.0" ]
11
2019-12-09T06:24:01.000Z
2021-01-18T12:07:24.000Z
demo/fixed_length_demo.py
PeisongWang/MicroNetChallenge
5edc5aaaf918826eb1669897024ad4e6f5220d3e
[ "Apache-2.0" ]
null
null
null
demo/fixed_length_demo.py
PeisongWang/MicroNetChallenge
5edc5aaaf918826eb1669897024ad4e6f5220d3e
[ "Apache-2.0" ]
8
2019-12-17T05:59:35.000Z
2021-01-05T03:45:12.000Z
import torch from torch.nn import functional as F import numpy as np import math import time def Add_Tree_GEMM(A, B, conv_param): M = A.shape[0] N = B.shape[1] K = A.shape[1] A = torch.from_numpy(A) B = torch.from_numpy(B) # weights act_signed = conv_param['act_signed'] act_bitwidth = con...
30.338462
129
0.574138
8ee20dbdf602a63dbf73156cf3e4e77aab962ba9
624
py
Python
asl-api/asl-api/urls.py
ooawagaeri/orbital-asl-application
4e65306652edd3217eaa097ebe63506a403b2475
[ "MIT" ]
2
2021-05-29T17:35:13.000Z
2021-05-29T17:35:14.000Z
asl-api/asl-api/urls.py
ooawagaeri/orbital-asl-application
4e65306652edd3217eaa097ebe63506a403b2475
[ "MIT" ]
1
2021-06-18T08:50:26.000Z
2021-06-18T08:50:26.000Z
asl-api/asl-api/urls.py
ooawagaeri/orbital-asl-application
4e65306652edd3217eaa097ebe63506a403b2475
[ "MIT" ]
null
null
null
""" urls.py URL Mapping between HTTP and Views """ from django.contrib import admin from django.urls import path, include from django.conf import settings from django.conf.urls import url from django.views.static import serve from django.conf.urls.static import static urlpatterns = [ # Serve Admin dashboard p...
26
81
0.725962
f8b9d4dcd1202ee7400fcb4e48756029f707084a
1,513
py
Python
src/day1.py
SebastianKirchner/aoc-2019
0644894e2f09f3734d37095eca6607e39f5b779a
[ "Apache-2.0" ]
null
null
null
src/day1.py
SebastianKirchner/aoc-2019
0644894e2f09f3734d37095eca6607e39f5b779a
[ "Apache-2.0" ]
null
null
null
src/day1.py
SebastianKirchner/aoc-2019
0644894e2f09f3734d37095eca6607e39f5b779a
[ "Apache-2.0" ]
null
null
null
from functools import reduce masses = [144365, 124674, 99039, 132924, 126960, 103950, 78451, 123596, 119950, 116772, 134137, 50247, 99543, 147151, 103063, 59247, 59281, 141531, 104417, 75105, 57868, 149148, 76973, 87424, 135220, 141885, 106241, 128482, 54020, 67575, 97719, 110237, 137361, 70772, 10...
42.027778
117
0.684732
143b3e9b085fcda379ec2c7cd8eac0b2d6a66c09
4,838
py
Python
duyai/cv/base_cnn/vgg.py
DuyNguyen-ai/duyai
8c9ef23942f6e2965e487d57b67331c8c66b935a
[ "MIT" ]
null
null
null
duyai/cv/base_cnn/vgg.py
DuyNguyen-ai/duyai
8c9ef23942f6e2965e487d57b67331c8c66b935a
[ "MIT" ]
null
null
null
duyai/cv/base_cnn/vgg.py
DuyNguyen-ai/duyai
8c9ef23942f6e2965e487d57b67331c8c66b935a
[ "MIT" ]
null
null
null
#! /usr/bin/env python # coding=utf-8 #================================================================ # Copyright (C) 2019 * Ltd. All rights reserved. # # Editor : VIM # File name : vgg16.py # Author : YunYang1994 # Created date: 2019-07-16 10:09:17 # Description : # #=========================...
47.90099
111
0.587433
74ba18394aa1c97d1b9aba950ef7a545e72ac094
1,965
py
Python
sandbox/splitpixel_vs_splitpixelfull.py
yugangzhang/pyFAI
e0453b279dac1f165f637e2a2ed1d4ddf57d31ba
[ "MIT" ]
45
2016-07-16T19:43:47.000Z
2022-03-12T16:53:47.000Z
sandbox/splitpixel_vs_splitpixelfull.py
yugangzhang/pyFAI
e0453b279dac1f165f637e2a2ed1d4ddf57d31ba
[ "MIT" ]
1,125
2016-06-09T07:47:57.000Z
2022-03-31T20:34:00.000Z
sandbox/splitpixel_vs_splitpixelfull.py
yugangzhang/pyFAI
e0453b279dac1f165f637e2a2ed1d4ddf57d31ba
[ "MIT" ]
52
2016-06-09T07:30:46.000Z
2022-02-14T08:25:11.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Project: Azimuthal integration # https://github.com/silx-kit/pyFAI # # Copyright (C) 2015-2018 European Synchrotron Radiation Facility, Grenoble, France # # Principal author: Jérôme Kieffer (Jerome.Kieffer@ESRF.eu) # # Permission is hereby gra...
41.808511
98
0.750636
282a61d4e484c245620dda320a8fed780d269469
12,192
py
Python
pytorch_widedeep/metrics.py
cmcmaster1/pytorch-widedeep
d0feb29e56aa5612acdd3c60ce2c82ec04093110
[ "MIT" ]
null
null
null
pytorch_widedeep/metrics.py
cmcmaster1/pytorch-widedeep
d0feb29e56aa5612acdd3c60ce2c82ec04093110
[ "MIT" ]
null
null
null
pytorch_widedeep/metrics.py
cmcmaster1/pytorch-widedeep
d0feb29e56aa5612acdd3c60ce2c82ec04093110
[ "MIT" ]
null
null
null
import torch from pytorch_widedeep.callbacks import Callback from .wdtypes import * # noqa: F403 class Metric(object): def __init__(self): self._name = "" def reset(self): raise NotImplementedError("Custom Metrics must implement this function") def __call__(self, y_pred: Tensor, y_tru...
30.865823
108
0.542241
2b804375f3f4e22e0870d5634de09de143f594a1
3,862
py
Python
NVIDIA/benchmarks/maskrcnn/implementations/pytorch/maskrcnn_benchmark/structures/boxlist_ops.py
mengkai94/training_results_v0.6
43dc3e250f8da47b5f8833197d74cb8cf1004fc9
[ "Apache-2.0" ]
180
2018-09-20T07:27:40.000Z
2022-03-19T07:55:42.000Z
NVIDIA/benchmarks/maskrcnn/implementations/pytorch/maskrcnn_benchmark/structures/boxlist_ops.py
mengkai94/training_results_v0.6
43dc3e250f8da47b5f8833197d74cb8cf1004fc9
[ "Apache-2.0" ]
80
2018-09-26T18:55:56.000Z
2022-02-10T02:03:26.000Z
NVIDIA/benchmarks/maskrcnn/implementations/pytorch/maskrcnn_benchmark/structures/boxlist_ops.py
mengkai94/training_results_v0.6
43dc3e250f8da47b5f8833197d74cb8cf1004fc9
[ "Apache-2.0" ]
72
2018-08-30T00:49:15.000Z
2022-02-15T23:22:40.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # Copyright (c) 2018-2019 NVIDIA CORPORATION. All rights reserved. import torch from .bounding_box import BoxList from maskrcnn_benchmark.layers import nms as _box_nms from maskrcnn_benchmark import _C def boxlist_nms(boxlist, nms_thresh, max_p...
29.257576
97
0.633351
7b99811a6debac7441229a571d6d35510a761064
2,943
py
Python
tests/test_cli/test_get_wealth.py
bryanchriswhite/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
126
2019-09-07T09:32:44.000Z
2022-03-29T14:28:41.000Z
tests/test_cli/test_get_wealth.py
salman6049/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
1,814
2019-08-24T10:08:07.000Z
2022-03-31T14:28:36.000Z
tests/test_cli/test_get_wealth.py
salman6049/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
46
2019-09-03T22:13:58.000Z
2022-03-22T01:25:16.000Z
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2020 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. # You may obtain a copy of the ...
35.035714
89
0.662249
c744d3014aaeb700857976c286d0de0d77d58bfc
27,875
py
Python
hw3_test.py
Zagan202/toy-dynamo
eefcd6e436f28783fee49b1e35891c94b3af3729
[ "MIT" ]
1
2019-02-25T23:04:45.000Z
2019-02-25T23:04:45.000Z
hw3_test.py
Zagan202/toy-dynamo
eefcd6e436f28783fee49b1e35891c94b3af3729
[ "MIT" ]
null
null
null
hw3_test.py
Zagan202/toy-dynamo
eefcd6e436f28783fee49b1e35891c94b3af3729
[ "MIT" ]
null
null
null
# last update: 11/19 - cleaned up the last several tests to not try to delete the # addresses the host would use for comunication, but rather # an address they would use to communicate between each other. # past updates: # 11/17/18 - changed to use subnets, since Mac and Li...
41.419019
140
0.484628
8e033fcb2894e7f3e45441da35284c8943ce8174
728
py
Python
kagong/notifications/migrations/0002_auto_20180217_2035.py
bongbongco/Kagong
4efd0c98bb6b3f5465b46176591ab9882580decf
[ "MIT" ]
null
null
null
kagong/notifications/migrations/0002_auto_20180217_2035.py
bongbongco/Kagong
4efd0c98bb6b3f5465b46176591ab9882580decf
[ "MIT" ]
15
2020-06-05T17:01:28.000Z
2022-03-11T23:26:07.000Z
kagong/notifications/migrations/0002_auto_20180217_2035.py
bongbongco/Kagong
4efd0c98bb6b3f5465b46176591ab9882580decf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.10 on 2018-02-17 11:35 from __future__ import unicode_literals from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('notifications', '0001_initial'), ] operations = [ ...
26
93
0.625
ebb38fdf5d71be792f02729fe1e1e5b0f857e6cc
1,751
py
Python
ownnetwork/baobap/models/chat/add_chat_content.py
ownnetwork/api
65989dd3455769502e332366bafdb6545a893733
[ "MIT" ]
null
null
null
ownnetwork/baobap/models/chat/add_chat_content.py
ownnetwork/api
65989dd3455769502e332366bafdb6545a893733
[ "MIT" ]
null
null
null
ownnetwork/baobap/models/chat/add_chat_content.py
ownnetwork/api
65989dd3455769502e332366bafdb6545a893733
[ "MIT" ]
null
null
null
# MIT License -> LISCENCE.mit from datetime import datetime import json """ Adding chat content for a contact """ class AddChatContent(object): def __init__(self, chat_id: str, from_id: str, type: str, data: str, datatime: dict = []): try: with open(f'db/chat/{chat_id}.json', 'r+'...
36.479167
172
0.443175
9a0e4f2c60d57a293573d4a0bcd5583665c0464f
2,300
py
Python
qianggou.py
Mengjianhua-c/mi_shangou
b29872b2b2777a080cc9322bfbe84404cb223caa
[ "Apache-2.0" ]
25
2018-10-30T05:53:06.000Z
2021-11-09T02:32:19.000Z
qianggou.py
Mengjianhua-c/mi_shangou
b29872b2b2777a080cc9322bfbe84404cb223caa
[ "Apache-2.0" ]
4
2019-01-22T09:10:32.000Z
2021-06-01T22:48:10.000Z
qianggou.py
Mengjianhua-c/mi_shangou
b29872b2b2777a080cc9322bfbe84404cb223caa
[ "Apache-2.0" ]
5
2018-11-05T03:20:11.000Z
2021-03-10T11:42:45.000Z
""" Author: Meng Date: 2018/10/6 """ from mi_lib.login_mi import login_get_cookie from mi_lib.callback_json import ram_jsoncallback, to_json from mi_lib.get_server_time import local_time import time import sys from mi_lib.client import Client add_url = 'https://cart.mi.com/cart/add/{}' def qianggou_req(): goods ...
26.436782
85
0.51
a3528a17831925da8f5a689bd9002d3c2c5061ce
4,660
py
Python
test/test_box_list.py
rochacbruno/Box
6830d788e41824eb87dc4128ea9581419324fcef
[ "MIT" ]
null
null
null
test/test_box_list.py
rochacbruno/Box
6830d788e41824eb87dc4128ea9581419324fcef
[ "MIT" ]
null
null
null
test/test_box_list.py
rochacbruno/Box
6830d788e41824eb87dc4128ea9581419324fcef
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- # Test files gathered from json.org and yaml.org import pytest from pathlib import Path try: from test.common import * except ImportError: from .common import * class TestBoxList: @pytest.fixture(autouse=True) def temp_dir_cleanup(self): shutil...
32.137931
92
0.557082
d11953bc24fcea246fa7907dca7c30153b9c8102
4,537
py
Python
examples/run_fitness_tracker.py
xiaobingchan/CV-Action
479eef3d2fc0fc8e2ae5e035207125b678915d59
[ "MIT" ]
8
2021-06-09T09:23:16.000Z
2022-03-18T06:37:07.000Z
examples/run_fitness_tracker.py
OutBreak-hui/CV-Action
479eef3d2fc0fc8e2ae5e035207125b678915d59
[ "MIT" ]
null
null
null
examples/run_fitness_tracker.py
OutBreak-hui/CV-Action
479eef3d2fc0fc8e2ae5e035207125b678915d59
[ "MIT" ]
3
2021-09-23T04:18:42.000Z
2022-02-14T07:16:43.000Z
#!/usr/bin/env python """ Tracks which fitness exercises is performed and estimates total number of calories. Usage: run_fitness_tracker.py [--weight=WEIGHT --age=AGE --height=HEIGHT --gender=GENDER] [--camera_id=CAMERA_ID] [--path_in=FILENAME] ...
42.801887
120
0.63434
45469b9fe1d814110b4fc2758c8f87114a42f4cc
731
py
Python
suse-based/updater.py
k1lgor/linux-update
0227fdf58ec56b27f056de7fbc6eb3a00739cc6f
[ "MIT" ]
null
null
null
suse-based/updater.py
k1lgor/linux-update
0227fdf58ec56b27f056de7fbc6eb3a00739cc6f
[ "MIT" ]
null
null
null
suse-based/updater.py
k1lgor/linux-update
0227fdf58ec56b27f056de7fbc6eb3a00739cc6f
[ "MIT" ]
null
null
null
#!/bin/python3 from time import sleep import os def update(): """Update method""" print(''' ===================== Updating has begun... ===================== ''') os.system("zypper refresh") sleep(2) os.system("zypper update -y && zypper cc -a") sleep(2) ...
20.305556
50
0.367989
a31bcc7127b0f255b83fed60fc45dbfccd0e1f7f
1,272
py
Python
log_puller.py
aclifford3/eq-deeps-parser
f81042235a4d03622557d1d35c081ad7db399428
[ "MIT" ]
1
2020-10-08T02:41:08.000Z
2020-10-08T02:41:08.000Z
log_puller.py
aclifford3/eq-deeps-parser
f81042235a4d03622557d1d35c081ad7db399428
[ "MIT" ]
null
null
null
log_puller.py
aclifford3/eq-deeps-parser
f81042235a4d03622557d1d35c081ad7db399428
[ "MIT" ]
null
null
null
import csv import logging """ This class pulls logs from a log file. It is given a file path and starts reading from the end of the log file. """ def get_starting_line(path): with open(path) as log_file: csv_reader = csv.reader(log_file) log_lines = 0 for row in csv_reader: l...
31.02439
117
0.619497
c6e04d869b342a0227176e9a770a78551deb0be0
6,486
py
Python
grr/server/grr_response_server/gui/selenium_tests/vfsview_test.py
JiYonG-Lee/grr
57fef67080ac6b8fd3de3ba0adfca064d34b7689
[ "Apache-2.0" ]
1
2020-06-25T14:25:51.000Z
2020-06-25T14:25:51.000Z
grr/server/grr_response_server/gui/selenium_tests/vfsview_test.py
JiYonG-Lee/grr
57fef67080ac6b8fd3de3ba0adfca064d34b7689
[ "Apache-2.0" ]
3
2021-05-11T20:18:38.000Z
2022-03-02T09:33:56.000Z
grr/server/grr_response_server/gui/selenium_tests/vfsview_test.py
JiYonG-Lee/grr
57fef67080ac6b8fd3de3ba0adfca064d34b7689
[ "Apache-2.0" ]
1
2020-06-25T14:25:54.000Z
2020-06-25T14:25:54.000Z
#!/usr/bin/env python # Lint as: python3 # -*- encoding: utf-8 -*- """Test the vfs gui interface.""" from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals from absl import app import mock from grr_response_server.gui import api_call_router_with_approval_checks ...
37.062857
80
0.708603
bf85dd49b07ca88811b3b90472b06905caac72e7
1,453
py
Python
alipay/aop/api/domain/ExtraParams.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
1
2022-03-07T06:11:10.000Z
2022-03-07T06:11:10.000Z
alipay/aop/api/domain/ExtraParams.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/ExtraParams.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
1
2021-10-05T03:01:09.000Z
2021-10-05T03:01:09.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class ExtraParams(object): def __init__(self): self._period = None self._period_summary_info = None @property def period(self): return self._period @period.setter ...
25.946429
89
0.607708
487d50ec417e0ae9f4d079ae574fb5edbfd5e6da
1,030
py
Python
pyvisdk/do/virtual_machine_file_layout_ex_file_info.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/do/virtual_machine_file_layout_ex_file_info.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/do/virtual_machine_file_layout_ex_file_info.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
import logging from pyvisdk.exceptions import InvalidArgumentError ######################################## # Automatically generated, do not edit. ######################################## log = logging.getLogger(__name__) def VirtualMachineFileLayoutExFileInfo(vim, *args, **kwargs): '''Basic information about ...
31.212121
124
0.605825
f957d1972e2b21ae7fb8d47743d982b9b6e56662
313,499
py
Python
scipy/stats/_stats_py.py
NamamiShanker/scipy
046107194d34ea0e5706d79cce32ea4253b180c1
[ "BSD-3-Clause" ]
1
2020-02-11T20:01:36.000Z
2020-02-11T20:01:36.000Z
scipy/stats/_stats_py.py
NamamiShanker/scipy
046107194d34ea0e5706d79cce32ea4253b180c1
[ "BSD-3-Clause" ]
null
null
null
scipy/stats/_stats_py.py
NamamiShanker/scipy
046107194d34ea0e5706d79cce32ea4253b180c1
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2002 Gary Strangman. All rights reserved # Copyright 2002-2016 The SciPy Developers # # The original code from Gary Strangman was heavily adapted for # use in SciPy by Travis Oliphant. The original code came with the # following disclaimer: # # This software is provided "as-is". There are no expressed or...
36.046798
106
0.617996
106e11ab33fecfbf85cf46ebcaadf20d8d77e43c
4,622
py
Python
icevision/parsers/via_parser.py
ai-fast-track/mantisshrimp
cc6d6a4a048f6ddda2782b6593dcd6b083a673e4
[ "Apache-2.0" ]
17
2020-07-31T22:09:07.000Z
2020-08-30T11:18:36.000Z
icevision/parsers/via_parser.py
ai-fast-track/mantisshrimp
cc6d6a4a048f6ddda2782b6593dcd6b083a673e4
[ "Apache-2.0" ]
115
2020-08-01T09:19:54.000Z
2020-09-04T18:51:28.000Z
icevision/parsers/via_parser.py
lgvaz/mantisshrimp2
743cb7df0dae7eb1331fc2bb66fc9ca09db496cd
[ "Apache-2.0" ]
2
2021-06-23T07:41:19.000Z
2021-10-15T10:13:08.000Z
__all__ = ["via", "VIAParseError", "VIABaseParser", "VIABBoxParser"] from icevision.imports import * from icevision.core import * from icevision.utils import * from icevision.parsers.parser import * def via( annotations_file: Union[str, Path], img_dir: Union[str, Path], class_map: ClassMap, label_fie...
33.985294
113
0.601255
e5c1d612a1bd89005e811232d3823ec99ba5721d
143,799
py
Python
autotest/ogr/ogr_geojson.py
Esri/gdal
8d9af5086ddb96f707ed281786a1cd278066a7f2
[ "MIT" ]
9
2019-05-30T17:01:56.000Z
2021-01-30T01:06:41.000Z
autotest/ogr/ogr_geojson.py
Esri/gdal
8d9af5086ddb96f707ed281786a1cd278066a7f2
[ "MIT" ]
4
2018-10-23T18:43:35.000Z
2019-07-01T19:29:49.000Z
autotest/ogr/ogr_geojson.py
Esri/gdal
8d9af5086ddb96f707ed281786a1cd278066a7f2
[ "MIT" ]
6
2019-02-03T14:19:32.000Z
2021-12-19T06:36:49.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: GeoJSON driver test suite. # Author: Mateusz Loskot <mateusz@loskot.net> # ################################################################...
33.676581
450
0.57935
71ec9346b4c38696d2943d41b237d3466022df28
9,503
py
Python
p65-py3/Ophis/Frontend.py
JixunMoe/ContraNES1TranslationPatch
0cc514e8badd4ac872bff82d3f566fb97fe86685
[ "BSD-3-Clause" ]
1
2020-07-30T08:57:33.000Z
2020-07-30T08:57:33.000Z
p65-py3/Ophis/Frontend.py
jixunmoe/ContraNES1TranslationPatch
0cc514e8badd4ac872bff82d3f566fb97fe86685
[ "BSD-3-Clause" ]
null
null
null
p65-py3/Ophis/Frontend.py
jixunmoe/ContraNES1TranslationPatch
0cc514e8badd4ac872bff82d3f566fb97fe86685
[ "BSD-3-Clause" ]
null
null
null
"""Lexer and Parser Constructs a list of IR nodes from a list of input strings.""" from __future__ import nested_scopes import Ophis.Errors as Err import Ophis.Opcodes as Ops import Ophis.IR as IR import Ophis.CmdLine as Cmd import os # Copyright 2002 Michael C. Martin. # You may use, modify, and distribute this fi...
28.452096
81
0.644323
536aa072f85f7e4018d300d87185b41499dd626e
83
py
Python
Lib/test/test_compiler/testcorpus/02_expr_binary.py
diogommartins/cinder
79103e9119cbecef3b085ccf2878f00c26e1d175
[ "CNRI-Python-GPL-Compatible" ]
1,886
2021-05-03T23:58:43.000Z
2022-03-31T19:15:58.000Z
Lib/test/test_compiler/testcorpus/02_expr_binary.py
diogommartins/cinder
79103e9119cbecef3b085ccf2878f00c26e1d175
[ "CNRI-Python-GPL-Compatible" ]
70
2021-05-04T23:25:35.000Z
2022-03-31T18:42:08.000Z
Lib/test/test_compiler/testcorpus/02_expr_binary.py
diogommartins/cinder
79103e9119cbecef3b085ccf2878f00c26e1d175
[ "CNRI-Python-GPL-Compatible" ]
52
2021-05-04T21:26:03.000Z
2022-03-08T18:02:56.000Z
a + b a - b a * b a @ b a / b a // b a % b a ** b a << b a >> b a | b a ^ b a & b
5.533333
6
0.313253
5bd15f7a72f5aeb49d91391e11ddffaa1a52f44f
3,750
py
Python
youtube_dl/extractor/nfb.py
zoogaezee/youtubeDL
01de1a9d506ff51bff4100e11275557226fa8b9a
[ "Unlicense" ]
5
2016-04-25T16:26:07.000Z
2021-04-28T16:10:29.000Z
youtube_dl/extractor/nfb.py
zoogaezee/youtubeDL
01de1a9d506ff51bff4100e11275557226fa8b9a
[ "Unlicense" ]
5
2016-04-22T01:33:31.000Z
2016-08-04T15:33:19.000Z
youtube_dl/extractor/nfb.py
zoogaezee/youtubeDL
01de1a9d506ff51bff4100e11275557226fa8b9a
[ "Unlicense" ]
4
2016-04-26T15:27:38.000Z
2018-11-12T21:04:54.000Z
from __future__ import unicode_literals from .common import InfoExtractor from ..compat import compat_urllib_parse from ..utils import sanitized_Request class NFBIE(InfoExtractor): IE_NAME = 'nfb' IE_DESC = 'National Film Board of Canada' _VALID_URL = r'https?://(?:www\.)?(?:nfb|onf)\.ca/film/(?P<id>[\da...
39.893617
113
0.527733
f5a1973059a75324a27d8f41b8f1c0b260403b1c
188,541
py
Python
hs_core/models.py
tommac7/hydroshare
87c4543a55f98103d2614bf4c47f7904c3f9c029
[ "BSD-3-Clause" ]
null
null
null
hs_core/models.py
tommac7/hydroshare
87c4543a55f98103d2614bf4c47f7904c3f9c029
[ "BSD-3-Clause" ]
null
null
null
hs_core/models.py
tommac7/hydroshare
87c4543a55f98103d2614bf4c47f7904c3f9c029
[ "BSD-3-Clause" ]
null
null
null
"""Declare critical models for Hydroshare hs_core app.""" import os.path import json import arrow import logging from uuid import uuid4 from languages_iso import languages as iso_languages from dateutil import parser from lxml import etree from markdown import markdown from django_irods.icommands import SessionExcept...
43.144394
100
0.605799
6633b5b31275f9c21f018f065ff7cd9060589d12
1,607
py
Python
001_face2face/lib/dataset.py
zjutcsai/deeplearning
9320dc21cf645c2d47b493679bc97230bd594ee5
[ "Apache-2.0" ]
1
2018-05-06T08:50:49.000Z
2018-05-06T08:50:49.000Z
001_face2face/lib/dataset.py
zjutcsai/deeplearning
9320dc21cf645c2d47b493679bc97230bd594ee5
[ "Apache-2.0" ]
null
null
null
001_face2face/lib/dataset.py
zjutcsai/deeplearning
9320dc21cf645c2d47b493679bc97230bd594ee5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import cv2 import random import numpy as np from glob import glob def load_data(data_dir): return glob(os.path.join(data_dir,'*')) def next_batch(im_list, global_step, batch_size=16, re_size=256): max_batch = len(im_list) // batch_size nxt_batch = global_step ...
30.320755
70
0.603609
d34da2da7795f18467a063c828088c65c39ea327
1,208
py
Python
day6.py
luciansmith/adventOfCode
f46ee22aa29b7c0bc1890717463f49664abe3399
[ "MIT" ]
null
null
null
day6.py
luciansmith/adventOfCode
f46ee22aa29b7c0bc1890717463f49664abe3399
[ "MIT" ]
null
null
null
day6.py
luciansmith/adventOfCode
f46ee22aa29b7c0bc1890717463f49664abe3399
[ "MIT" ]
null
null
null
import copy counts = {} for n in range(9): counts[n] = 0 d6_input = [5,1,4,1,5,1,1,5,4,4,4,4,5,1,2,2,1,3,4,1,1,5,1,5,2,2,2,2,1,4,2,4,3,3,3,3,1,1,1,4,3,4,3,1,2,1,5,1,1,4,3,3,1,5,3,4,1,1,3,5,2,4,1,5,3,3,5,4,2,2,3,2,1,1,4,1,2,4,4,2,1,4,3,3,4,4,5,3,4,5,1,1,3,2,5,1,5,1,1,5,2,1,1,4,3,2,5,2,1,1,4,1,5,5,3,4,1,5,4,5,3,1,1...
30.974359
612
0.525662
a059b2f748b25ce1ef2b490adcf256d7718d1b94
479
py
Python
worker/segment/hanlp_util.py
payentan/NlpPipeline
49fea9f7742d3cb5b3ca152a387f72d245affc04
[ "MIT" ]
1
2019-12-08T08:26:12.000Z
2019-12-08T08:26:12.000Z
worker/segment/hanlp_util.py
payentan/NlpPipeline
49fea9f7742d3cb5b3ca152a387f72d245affc04
[ "MIT" ]
null
null
null
worker/segment/hanlp_util.py
payentan/NlpPipeline
49fea9f7742d3cb5b3ca152a387f72d245affc04
[ "MIT" ]
null
null
null
import pytest from pyhanlp import * from domain.dao import * @pytest.fixture def hanlp_crf(request, nlp_ctx): tid = request.config.getoption('tid') nlp_ctx.text.load(tid) seg = HanLP.newSegment('crf') seg.enableOffset(True) terms = seg.seg(nlp_ctx.text.content) request.addfinalizer( lam...
26.611111
60
0.628392
17ee4ba656faf6f09331071026b9941030bf0c13
9,510
py
Python
src/templates/v0.1.9/modules/topic_bubbles/scripts/create_topic_bubbles.py
whatevery1says/we1s-templates
ce16ae4a39e3286ed7d9bf4a95bff001ac2d123e
[ "MIT" ]
null
null
null
src/templates/v0.1.9/modules/topic_bubbles/scripts/create_topic_bubbles.py
whatevery1says/we1s-templates
ce16ae4a39e3286ed7d9bf4a95bff001ac2d123e
[ "MIT" ]
null
null
null
src/templates/v0.1.9/modules/topic_bubbles/scripts/create_topic_bubbles.py
whatevery1says/we1s-templates
ce16ae4a39e3286ed7d9bf4a95bff001ac2d123e
[ "MIT" ]
null
null
null
"""create_topic_bubbles.py. Creates files necessary to produce a topic bubbles visualization for exploring topic models. Topic bubbles code, stored in this module in `tb_scripts`, was written by WE1S researcher Sihwa Park. See https://github.com/sihwapark/topic-bubbles for Park's original code and documentation. Topic...
48.769231
114
0.647319
98b62b35ec791a30cfd48a19ff2fd71a6fe37f80
1,381
py
Python
molecule/default/tests/test_default.py
Jakski/ansible-role-nginx
16ba6b0283faaf0ffd5f694ce5568ae5a0bf6a6a
[ "MIT" ]
null
null
null
molecule/default/tests/test_default.py
Jakski/ansible-role-nginx
16ba6b0283faaf0ffd5f694ce5568ae5a0bf6a6a
[ "MIT" ]
null
null
null
molecule/default/tests/test_default.py
Jakski/ansible-role-nginx
16ba6b0283faaf0ffd5f694ce5568ae5a0bf6a6a
[ "MIT" ]
null
null
null
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') def test_service(host): nginx = host.service('nginx') assert nginx.is_running assert nginx.is_enabled assert host.socket('tcp:/...
39.457143
80
0.721217
0da93b8f560bed6116c2535ad67d7150a3007ee4
273
py
Python
cnf_xplor/api/admin.py
BFSSI-Bioinformatics-Lab/nutrition_database
ef63be35ceb4d37f3fa94bd6e4e8c8f3c84f8b7b
[ "MIT" ]
null
null
null
cnf_xplor/api/admin.py
BFSSI-Bioinformatics-Lab/nutrition_database
ef63be35ceb4d37f3fa94bd6e4e8c8f3c84f8b7b
[ "MIT" ]
46
2020-02-17T18:50:49.000Z
2020-06-03T17:20:56.000Z
cnf_xplor/api/admin.py
BFSSI-Bioinformatics-Lab/nutrition_database
ef63be35ceb4d37f3fa94bd6e4e8c8f3c84f8b7b
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from django.contrib import admin from cnf_xplor.api import models # Register your models here. admin.site.register(models.Food) admin.site.register(models.Nutrient) admin.site.register(models.ConversionFactor)
27.3
44
0.824176
4cdea3c172b53d10272882baf2f4adfab3460d95
5,263
py
Python
src/tools/bin/archive_report.py
aherbert/omero-archiving
ce52a63215ea9b75a50d35ee9690fe37ee74794a
[ "0BSD" ]
1
2021-07-08T11:03:34.000Z
2021-07-08T11:03:34.000Z
src/tools/bin/archive_report.py
aherbert/omero-archiving
ce52a63215ea9b75a50d35ee9690fe37ee74794a
[ "0BSD" ]
1
2022-01-20T12:24:43.000Z
2022-01-20T17:48:01.000Z
src/tools/bin/archive_report.py
aherbert/omero-archiving
ce52a63215ea9b75a50d35ee9690fe37ee74794a
[ "0BSD" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted. # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANT...
30.958824
80
0.571157
13d94c8727a9ebd47e69b732b34741038ce449a4
376
py
Python
Hyeongdo/sam/13458.py
sonnysorry/codingtest
478e0168e3209eb97b6b16910027bf12ccc3ccd0
[ "MIT" ]
2
2021-09-27T19:10:36.000Z
2021-11-09T05:40:39.000Z
Hyeongdo/sam/13458.py
sonnysorry/codingtest
478e0168e3209eb97b6b16910027bf12ccc3ccd0
[ "MIT" ]
1
2021-11-15T14:56:54.000Z
2021-11-15T14:56:54.000Z
Hyeongdo/sam/13458.py
sonnysorry/codingtest
478e0168e3209eb97b6b16910027bf12ccc3ccd0
[ "MIT" ]
null
null
null
""" 시험장 n개 i 시험장 응시자 Ai명 총감독 감시 : B명 / 1명 부감독 감시 : C명 / 여러명 가능 """ n = int(input()) num_list = list(map(int,input().split())) b, c = map(int,input().split()) answer = 0 for i in range(len(num_list)): stu_num = num_list[i] stu_num -= b answer += 1 if stu_num > 0: answer += stu_num // c i...
18.8
41
0.542553
4ba3c2cc3c3fe1538e46895b8f13e3e35e2add0d
1,621
py
Python
Superhero-Statistics/code.py
PrasadKolase/ga-learner-dsb-repo
bba56432b476cfb165c03c0a80fe132092e76618
[ "MIT" ]
null
null
null
Superhero-Statistics/code.py
PrasadKolase/ga-learner-dsb-repo
bba56432b476cfb165c03c0a80fe132092e76618
[ "MIT" ]
null
null
null
Superhero-Statistics/code.py
PrasadKolase/ga-learner-dsb-repo
bba56432b476cfb165c03c0a80fe132092e76618
[ "MIT" ]
null
null
null
# -------------- #Header files import pandas as pd import numpy as np import matplotlib.pyplot as plt #path of the data file- path data = pd.read_csv(path) data['Gender'].replace('-','Agender', inplace=True) gender_count = data['Gender'].value_counts() gender_count.plot(kind='bar') #Code starts her...
21.328947
64
0.665022
945851fa82f0aa236bc3c9bb1049ef7a53850af8
3,777
py
Python
src/apscheduler/datastores/async_adapter.py
Nextdoor/apscheduler
82f6f8e230252efc19d0e5a38e218ac1c34563b8
[ "MIT" ]
1
2022-02-04T14:27:35.000Z
2022-02-04T14:27:35.000Z
src/apscheduler/datastores/async_adapter.py
someonelikework/apscheduler
82f6f8e230252efc19d0e5a38e218ac1c34563b8
[ "MIT" ]
null
null
null
src/apscheduler/datastores/async_adapter.py
someonelikework/apscheduler
82f6f8e230252efc19d0e5a38e218ac1c34563b8
[ "MIT" ]
null
null
null
from __future__ import annotations from contextlib import AsyncExitStack from datetime import datetime from functools import partial from typing import Iterable from uuid import UUID import attrs from anyio import to_thread from anyio.from_thread import BlockingPortal from ..abc import AsyncDataStore, AsyncEventBrok...
40.612903
94
0.743447
3d77a06b6b25aec6730fcc48dba40d76c250ee39
1,149
py
Python
FOUNDPRO/segment 1/functions.py
hiddenworlds225/School-code
527cdbddfe7f4e3f9958b9c243dcdc873e851f1e
[ "MIT" ]
null
null
null
FOUNDPRO/segment 1/functions.py
hiddenworlds225/School-code
527cdbddfe7f4e3f9958b9c243dcdc873e851f1e
[ "MIT" ]
null
null
null
FOUNDPRO/segment 1/functions.py
hiddenworlds225/School-code
527cdbddfe7f4e3f9958b9c243dcdc873e851f1e
[ "MIT" ]
null
null
null
# 3.04 Creating Functions # Purpose: Learining how to use functions # # Author@ Shawn Velsor # Date: 11/19/2020 import turtle pen = turtle.Turtle() wn = turtle.Screen() pen.speed(100) def main(): print("Cheap House") pen.up() house() roof() def roof(): pen.goto(-50, 80) pen.left...
15.32
41
0.555265
8ef34be6d9eb201b23da1386d919c0caeb0b350d
703
py
Python
publisher.py
dexterlu/mosquitto-python-examples
f38eae59ad54877094fbf9c9466e75aa5d73dcde
[ "MIT" ]
null
null
null
publisher.py
dexterlu/mosquitto-python-examples
f38eae59ad54877094fbf9c9466e75aa5d73dcde
[ "MIT" ]
null
null
null
publisher.py
dexterlu/mosquitto-python-examples
f38eae59ad54877094fbf9c9466e75aa5d73dcde
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Publish some messages to queue """ import paho.mqtt.publish as publish msgs = [{'topic': "kids/yolo", 'payload': "jump"}, {'topic': "adult/pics", 'payload': "some photo"}, {'topic': "adult/news", 'payload': "extra extra"}, {'topic': "adult/new...
26.037037
87
0.628734
716d97506dff0406c6944d1cb59b009bda270f6b
2,476
py
Python
mmocr/models/textrecog/necks/fpn_ocr.py
xyzhu8/mmocr
f62b4513f5411bde9f24e1902b1cb1945340022a
[ "Apache-2.0" ]
null
null
null
mmocr/models/textrecog/necks/fpn_ocr.py
xyzhu8/mmocr
f62b4513f5411bde9f24e1902b1cb1945340022a
[ "Apache-2.0" ]
null
null
null
mmocr/models/textrecog/necks/fpn_ocr.py
xyzhu8/mmocr
f62b4513f5411bde9f24e1902b1cb1945340022a
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn.functional as F from mmcv.cnn import ConvModule from mmcv.runner import BaseModule, ModuleList from mmdet.models.builder import NECKS @NECKS.register_module() class FPNOCR(BaseModule): """FPN-like Network for segmentation based text recognition. Args: in_channels (list[in...
34.873239
76
0.601373
90c2d1eee9e1456ec85b934df3c3f067ba555b3c
4,425
py
Python
nuitka/codegen/LoaderCodes.py
Mortal/Nuitka
5150eeff7ff845ed4993c773449cd81b7f127c6b
[ "Apache-2.0" ]
null
null
null
nuitka/codegen/LoaderCodes.py
Mortal/Nuitka
5150eeff7ff845ed4993c773449cd81b7f127c6b
[ "Apache-2.0" ]
null
null
null
nuitka/codegen/LoaderCodes.py
Mortal/Nuitka
5150eeff7ff845ed4993c773449cd81b7f127c6b
[ "Apache-2.0" ]
1
2018-12-16T23:51:18.000Z
2018-12-16T23:51:18.000Z
# Copyright 2018, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
37.184874
79
0.648588
2a706ab86870db265bc36193ff980bbba40f1acc
6,389
py
Python
Python_OCR_JE/venv/Lib/site-packages/pip/_internal/utils/filesystem.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
227
2021-01-20T05:34:32.000Z
2022-03-29T12:43:05.000Z
Python_OCR_JE/venv/Lib/site-packages/pip/_internal/utils/filesystem.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
55
2020-09-07T02:12:51.000Z
2022-03-23T02:37:42.000Z
Python_OCR_JE/venv/Lib/site-packages/pip/_internal/utils/filesystem.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
239
2021-01-28T02:59:53.000Z
2022-03-29T08:02:17.000Z
import fnmatch import os import os.path import random import shutil import stat import sys from contextlib import contextmanager from tempfile import NamedTemporaryFile # NOTE: retrying is not annotated in typeshed as on 2017-07-17, which is # why we ignore the type on this import. from pip._vendor.r...
31.78607
78
0.604946
259101892d46465e16df3c854280f8cf3bda3b44
4,953
py
Python
environment.py
MGH-LMIC/First-Aid-CXR-AI
c031ecc5b9b0d272ff31ce1758cfaee93c6f565c
[ "Apache-2.0" ]
null
null
null
environment.py
MGH-LMIC/First-Aid-CXR-AI
c031ecc5b9b0d272ff31ce1758cfaee93c6f565c
[ "Apache-2.0" ]
null
null
null
environment.py
MGH-LMIC/First-Aid-CXR-AI
c031ecc5b9b0d272ff31ce1758cfaee93c6f565c
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import pandas as pd import numpy as np from pathlib import Path from utils import logger, print_versions, get_devices from model import BaseModel, TwoInputBaseModel, VaeModel, ExtdModel from data import CxrDataset, MGH_DATA_BASE from torch.utils.data import DataLoader import warning...
37.522727
179
0.66707
b5e0a7ea93e4b04d31e72d859df76dcffcafd0a7
1,261
py
Python
files_for_submission/transformImage.py
redherring2141/CarND-Advanced-Lane-Lines
cb604cacaca260b03afc216864166d04209c9829
[ "MIT" ]
null
null
null
files_for_submission/transformImage.py
redherring2141/CarND-Advanced-Lane-Lines
cb604cacaca260b03afc216864166d04209c9829
[ "MIT" ]
null
null
null
files_for_submission/transformImage.py
redherring2141/CarND-Advanced-Lane-Lines
cb604cacaca260b03afc216864166d04209c9829
[ "MIT" ]
null
null
null
import numpy as np import cv2 import matplotlib.pyplot as plt import matplotlib.image as mpimg def undistort(img, mtx, dist): undist = cv2.undistort(img, mtx, dist, None, mtx) return undist # Define a function that takes an image, number of x and y points, # camera matrix and distortion coefficients def co...
37.088235
81
0.705789
504d73f94f1f4ce5b9369ba0722a39e17b31c859
2,991
py
Python
tests/example_envs/test_tag_continuous.py
salesforce/warp-drive
178873a65cb016722f082ac72314cef6cd32dcfa
[ "BSD-3-Clause" ]
255
2021-09-01T21:28:26.000Z
2022-03-28T14:18:45.000Z
tests/example_envs/test_tag_continuous.py
salesforce/warp-drive
178873a65cb016722f082ac72314cef6cd32dcfa
[ "BSD-3-Clause" ]
16
2021-09-02T04:58:10.000Z
2022-02-23T00:34:55.000Z
tests/example_envs/test_tag_continuous.py
salesforce/warp-drive
178873a65cb016722f082ac72314cef6cd32dcfa
[ "BSD-3-Clause" ]
38
2021-09-02T03:19:50.000Z
2022-03-15T18:40:37.000Z
# Copyright (c) 2021, salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root # or https://opensource.org/licenses/BSD-3-Clause import unittest import numpy as np from example_envs.tag_continuous.tag_continuous import TagConti...
29.038835
75
0.597793
d6eab9275ca719d08b8b75995aacef919051b123
209
py
Python
mmcls/models/utils/augment/__init__.py
ZwwWayne/mmclassification
2ccc55ce4f783ca34892fe7d91f247d18906a994
[ "Apache-2.0" ]
2
2021-05-21T04:56:52.000Z
2021-06-21T04:26:13.000Z
mmcls/models/utils/augment/__init__.py
ZwwWayne/mmclassification
2ccc55ce4f783ca34892fe7d91f247d18906a994
[ "Apache-2.0" ]
null
null
null
mmcls/models/utils/augment/__init__.py
ZwwWayne/mmclassification
2ccc55ce4f783ca34892fe7d91f247d18906a994
[ "Apache-2.0" ]
2
2021-05-08T11:13:26.000Z
2021-05-25T02:46:28.000Z
from .augments import Augments from .cutmix import BatchCutMixLayer from .identity import Identity from .mixup import BatchMixupLayer __all__ = ['Augments', 'BatchCutMixLayer', 'Identity', 'BatchMixupLayer']
29.857143
73
0.803828
dd40c6faed9da9e2a69dd33a2d7f7fcf24a6ec01
99
py
Python
Logging/log1.py
Anilkumar95/python-75-hackathon
0cc9304e46ceace826090614b46d8048a068d106
[ "MIT" ]
null
null
null
Logging/log1.py
Anilkumar95/python-75-hackathon
0cc9304e46ceace826090614b46d8048a068d106
[ "MIT" ]
null
null
null
Logging/log1.py
Anilkumar95/python-75-hackathon
0cc9304e46ceace826090614b46d8048a068d106
[ "MIT" ]
2
2019-01-27T16:59:48.000Z
2019-01-29T13:07:40.000Z
import logging logging.basicConfig(level=logging.DEBUG) logging.debug('Ram will be logged below')
19.8
41
0.808081
8781200eb72bc22509c154f9711c96e13e42dd1b
1,395
py
Python
test/espnet2/bin/test_diar_inference.py
texpomru13/espnet
7ef005e832e2fb033f356c16f54e0f08762fb4b0
[ "Apache-2.0" ]
2
2022-02-25T13:27:36.000Z
2022-03-18T21:11:35.000Z
test/espnet2/bin/test_diar_inference.py
texpomru13/espnet
7ef005e832e2fb033f356c16f54e0f08762fb4b0
[ "Apache-2.0" ]
2
2019-04-23T04:43:33.000Z
2019-05-13T13:06:52.000Z
test/espnet2/bin/test_diar_inference.py
texpomru13/espnet
7ef005e832e2fb033f356c16f54e0f08762fb4b0
[ "Apache-2.0" ]
1
2022-03-18T21:02:16.000Z
2022-03-18T21:02:16.000Z
from argparse import ArgumentParser from pathlib import Path import pytest import torch from espnet2.bin.diar_inference import DiarizeSpeech from espnet2.bin.diar_inference import get_parser from espnet2.bin.diar_inference import main from espnet2.tasks.diar import DiarizationTask def test_get_parser(): assert ...
25.363636
87
0.685305
ea4482df62661a19d988a30e722cdec30fbe0741
3,909
py
Python
pysmt/cmd/installers/cvc4.py
kammoh/pysmt
31b0cdf2653a3a8a8bbf322e2e82e8df42457986
[ "Apache-2.0" ]
null
null
null
pysmt/cmd/installers/cvc4.py
kammoh/pysmt
31b0cdf2653a3a8a8bbf322e2e82e8df42457986
[ "Apache-2.0" ]
null
null
null
pysmt/cmd/installers/cvc4.py
kammoh/pysmt
31b0cdf2653a3a8a8bbf322e2e82e8df42457986
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Andrea Micheli and Marco Gario # # 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 agr...
42.032258
95
0.630084
666a774d51bdbc2a56e2ad8848fa9ccae4ab9ed7
17,399
py
Python
trimesh/points.py
andreiburov/trimesh
c471bce6d6369ce479491e0f4261dc92f069421a
[ "MIT" ]
1
2021-04-23T07:51:52.000Z
2021-04-23T07:51:52.000Z
trimesh/points.py
andreiburov/trimesh
c471bce6d6369ce479491e0f4261dc92f069421a
[ "MIT" ]
null
null
null
trimesh/points.py
andreiburov/trimesh
c471bce6d6369ce479491e0f4261dc92f069421a
[ "MIT" ]
null
null
null
""" points.py ------------- Functions dealing with (n, d) points. """ import copy import numpy as np from .parent import Geometry3D from .geometry import plane_transform from .constants import tol from .visual.color import VertexColor from . import util from . import caching from . import grouping from . import tra...
26.933437
78
0.586011
e7b0f8a241252404ff2facd422cea0c871161328
740
py
Python
src/controller/python/chip/clusters/__init__.py
summercms/connectedhomeip
5a9c063c83d039fe284fdb5afb1b7c5b5e1791b0
[ "Apache-2.0" ]
19
2021-02-17T12:31:28.000Z
2022-03-24T09:15:43.000Z
src/controller/python/chip/clusters/__init__.py
summercms/connectedhomeip
5a9c063c83d039fe284fdb5afb1b7c5b5e1791b0
[ "Apache-2.0" ]
40
2021-05-04T20:37:25.000Z
2022-01-25T22:25:40.000Z
src/controller/python/chip/clusters/__init__.py
summercms/connectedhomeip
5a9c063c83d039fe284fdb5afb1b7c5b5e1791b0
[ "Apache-2.0" ]
14
2020-12-14T11:05:45.000Z
2022-03-29T08:42:30.000Z
# # Copyright (c) 2021 Project CHIP 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 # # ...
30.833333
77
0.701351
377b56947f3ed897e40858ecf1e01e71ffddf62d
86,383
py
Python
scipy/spatial/distance.py
jeremiedbb/scipy
2bea64c334b18fd445a7945b350d7ace2dc22913
[ "BSD-3-Clause" ]
null
null
null
scipy/spatial/distance.py
jeremiedbb/scipy
2bea64c334b18fd445a7945b350d7ace2dc22913
[ "BSD-3-Clause" ]
null
null
null
scipy/spatial/distance.py
jeremiedbb/scipy
2bea64c334b18fd445a7945b350d7ace2dc22913
[ "BSD-3-Clause" ]
null
null
null
""" Distance computations (:mod:`scipy.spatial.distance`) ===================================================== .. sectionauthor:: Damian Eads Function reference ------------------ Distance matrix computation from a collection of raw observation vectors stored in a rectangular array. .. autosummary:: :toctree: g...
30.917323
100
0.567808
530048f8141104dc4bc7c7f1852a0d086c0827bf
45,904
py
Python
lib/third_party/dulwich/object_store.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
null
null
null
lib/third_party/dulwich/object_store.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
11
2020-02-29T02:51:12.000Z
2022-03-30T23:20:08.000Z
lib/third_party/dulwich/object_store.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
1
2020-07-24T18:47:35.000Z
2020-07-24T18:47:35.000Z
# object_store.py -- Object store for git objects # Copyright (C) 2008-2013 Jelmer Vernooij <jelmer@jelmer.uk> # and others # # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your...
34.028169
79
0.595177
55c43f5e98a081fb829a6dc86c5fe1a50a5b0824
16,569
py
Python
spikeinterface/extractors/nwbextractors.py
matiasandina/spikeinterface
a6873f720fed75ab990541543f1970118bbf9256
[ "MIT" ]
null
null
null
spikeinterface/extractors/nwbextractors.py
matiasandina/spikeinterface
a6873f720fed75ab990541543f1970118bbf9256
[ "MIT" ]
null
null
null
spikeinterface/extractors/nwbextractors.py
matiasandina/spikeinterface
a6873f720fed75ab990541543f1970118bbf9256
[ "MIT" ]
null
null
null
from pathlib import Path import numpy as np from typing import Union, List from spikeinterface.core import BaseRecording, BaseRecordingSegment, BaseSorting, BaseSortingSegment try: import pandas as pd import pynwb from pynwb import NWBHDF5IO from pynwb import NWBFile from pynwb.ecephys import Elec...
42.484615
113
0.636309
28dbacea7ea118b56466aea9c52f7ec5693bdf66
15,563
py
Python
test/test_pytest/test_flaky_pytest_plugin.py
OlehKyba/flaky
32fd411fc20f4f21e954f06e377d515ae5a233b5
[ "Apache-2.0" ]
null
null
null
test/test_pytest/test_flaky_pytest_plugin.py
OlehKyba/flaky
32fd411fc20f4f21e954f06e377d515ae5a233b5
[ "Apache-2.0" ]
null
null
null
test/test_pytest/test_flaky_pytest_plugin.py
OlehKyba/flaky
32fd411fc20f4f21e954f06e377d515ae5a233b5
[ "Apache-2.0" ]
null
null
null
from io import StringIO from unittest.mock import Mock, patch # pylint:disable=import-error import pytest from _pytest.runner import CallInfo # pylint:enable=import-error from flaky import flaky from flaky import _flaky_plugin from flaky.flaky_pytest_plugin import ( call_runtest_hook, FlakyPlugin, FlakyXdis...
26.97227
80
0.605732
db4dbdc8d0b5b86504b3d9cedfbdd0b9cdefa5bf
488
py
Python
synlib/descriptions/TBUFX4.py
vhnatyk/vlsistuff
0981097bd19a0c482728dcc5048a3615ac9a9a90
[ "MIT" ]
26
2018-03-17T18:14:22.000Z
2022-03-14T07:23:13.000Z
synlib/descriptions/TBUFX4.py
psumesh/vlsistuff
1fe64b093d0581d99c7d826b74c31b8655fa0b31
[ "MIT" ]
1
2019-10-16T10:31:11.000Z
2019-10-17T04:14:53.000Z
synlib/descriptions/TBUFX4.py
psumesh/vlsistuff
1fe64b093d0581d99c7d826b74c31b8655fa0b31
[ "MIT" ]
7
2018-07-16T07:51:25.000Z
2022-02-15T14:22:54.000Z
Desc = cellDescClass("TBUFX4") Desc.properties["cell_leakage_power"] = "1649.253960" Desc.properties["cell_footprint"] = "tbuf" Desc.properties["area"] = "29.937600" Desc.pinOrder = ['A', 'OE', 'Y'] Desc.add_arc("A","Y","combi") Desc.add_arc("OE","Y","three_state_disable") Desc.add_arc("OE","Y","three_state_enable") De...
32.533333
53
0.69877
c96250398abcb720fb4ab6259759f3a6bf5f04ec
3,291
py
Python
profiles_project/settings.py
sayaksaha-98/profiles-rest-api
057d145baa4803110843033cce99608ba1380e98
[ "MIT" ]
null
null
null
profiles_project/settings.py
sayaksaha-98/profiles-rest-api
057d145baa4803110843033cce99608ba1380e98
[ "MIT" ]
4
2020-03-21T15:02:00.000Z
2021-06-10T19:53:34.000Z
profiles_project/settings.py
sayaksaha-98/profiles-rest-api
057d145baa4803110843033cce99608ba1380e98
[ "MIT" ]
null
null
null
""" Django settings for profiles_project project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impor...
25.511628
91
0.70313
e8968c0d0d41f8254893a5c9cf1746c9a6dd6ed1
8,967
py
Python
climart/models/CNN.py
Venka97/climART
b2246231f3ba8372d33e564700b872c410e33036
[ "CC-BY-4.0" ]
2
2021-09-28T00:44:00.000Z
2021-09-28T02:43:20.000Z
climart/models/CNN.py
Venka97/climART
b2246231f3ba8372d33e564700b872c410e33036
[ "CC-BY-4.0" ]
null
null
null
climart/models/CNN.py
Venka97/climART
b2246231f3ba8372d33e564700b872c410e33036
[ "CC-BY-4.0" ]
null
null
null
from typing import Sequence, Optional, Dict, Union import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch import Tensor from einops import rearrange, repeat from climart.data_wrangling.constants import LEVELS, LAYERS, GLOBALS from climart.models.base_model import BaseModel, ...
44.835
129
0.59942
c72ee39a6c520337bde1bb32a6906a68e26c60ce
636
py
Python
ademy/courses/migrations/0001_initial.py
aldominium/Ademy
97637c2eddfa6431d9dec2f0757124b15ff7d119
[ "MIT" ]
1
2017-04-25T10:11:59.000Z
2017-04-25T10:11:59.000Z
ademy/courses/migrations/0001_initial.py
aldominium/Ademy
97637c2eddfa6431d9dec2f0757124b15ff7d119
[ "MIT" ]
null
null
null
ademy/courses/migrations/0001_initial.py
aldominium/Ademy
97637c2eddfa6431d9dec2f0757124b15ff7d119
[ "MIT" ]
null
null
null
# Generated by Django 2.0.4 on 2018-04-15 21:36 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Course', fields=[ ('id', mo...
26.5
115
0.551887
269257471411bf8d03df7ab7c58fb8cf7d234927
913
py
Python
isi_sdk_9_0_0/test/test_ndmp_settings_dmas.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_9_0_0/test/test_ndmp_settings_dmas.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_9_0_0/test/test_ndmp_settings_dmas.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 10 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import isi_sdk_9_0_0 from ...
22.268293
90
0.708653
6217ce57bcb99b0383cce26e27954df43979c5dc
13,334
py
Python
karapace/protobuf/syntax_reader.py
dswiecki/karapace
b3cc47ee5cd14ed7113748e7fb36744c808f7131
[ "Apache-2.0" ]
null
null
null
karapace/protobuf/syntax_reader.py
dswiecki/karapace
b3cc47ee5cd14ed7113748e7fb36744c808f7131
[ "Apache-2.0" ]
null
null
null
karapace/protobuf/syntax_reader.py
dswiecki/karapace
b3cc47ee5cd14ed7113748e7fb36744c808f7131
[ "Apache-2.0" ]
null
null
null
# Ported from square/wire: # wire-library/wire-schema/src/commonMain/kotlin/com/squareup/wire/schema/internal/parser/SyntaxReader.kt from karapace.protobuf.exception import IllegalStateException from karapace.protobuf.location import Location from typing import NoReturn, Union class SyntaxReader: def __init__(sel...
36.332425
115
0.4922
ed1cf1c4bb3c1ecd77ca88f1d9449856e28ca8d9
313
py
Python
test/lagou_test.py
shi-cong/review
c8da7128ea18ecaa5849f2066d321e70d6f97f70
[ "Apache-2.0" ]
8
2017-10-22T00:24:42.000Z
2017-11-24T01:23:52.000Z
test/lagou_test.py
shi-cong/review
c8da7128ea18ecaa5849f2066d321e70d6f97f70
[ "Apache-2.0" ]
2
2017-10-12T22:04:25.000Z
2017-10-12T23:43:48.000Z
test/lagou_test.py
shi-cong/review
c8da7128ea18ecaa5849f2066d321e70d6f97f70
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase, main import import_module from PYSTUDY.api.lagou import get_job_by_keyword class LagouTestCase(TestCase): def test_tjl(self): """假设出现异常就表示是ip范文太频繁了。要等几天""" for jobs in get_job_by_keyword('python'): print(jobs) if __name__ == '__main__': main()
24.076923
49
0.699681
a8aec8ba042abceec67d5c18c42006818309583a
6,263
py
Python
obf/utils/signal_visualization.py
BeibinLi/OBF
deb30d742edef5dcb82e8ff3377948b53f956da9
[ "MIT" ]
2
2021-11-13T00:19:45.000Z
2022-01-08T17:56:08.000Z
obf/utils/signal_visualization.py
BeibinLi/OBF
deb30d742edef5dcb82e8ff3377948b53f956da9
[ "MIT" ]
null
null
null
obf/utils/signal_visualization.py
BeibinLi/OBF
deb30d742edef5dcb82e8ff3377948b53f956da9
[ "MIT" ]
2
2022-01-15T18:24:41.000Z
2022-03-09T02:15:07.000Z
import matplotlib.pyplot as plt import numpy as np from scipy.stats import pearsonr import pdb def show_signal(signal, screen_width=1920 / 15, screen_height=1080 / 15, resolution_magnifier=10, title=""): """ Args: signal: 2D signal scr...
24.36965
78
0.539039
5b9cf408a31012f6069185b1308c59a89b917bd7
3,207
py
Python
rest-service/manager_rest/syncthing_status_manager.py
ilan-WS/cloudify-manager
510d8a277c848db351f38fc5b264806b2cb36d0b
[ "Apache-2.0" ]
124
2015-01-22T22:28:37.000Z
2022-02-26T23:12:06.000Z
rest-service/manager_rest/syncthing_status_manager.py
cloudify-cosmo/cloudify-manager
4a3f44ceb49d449bc5ebc8766b1c7b9c174ff972
[ "Apache-2.0" ]
345
2015-01-08T15:49:40.000Z
2022-03-29T08:33:00.000Z
rest-service/manager_rest/syncthing_status_manager.py
ilan-WS/cloudify-manager
510d8a277c848db351f38fc5b264806b2cb36d0b
[ "Apache-2.0" ]
77
2015-01-07T14:04:35.000Z
2022-03-07T22:46:00.000Z
from datetime import datetime, timedelta from flask import current_app from cloudify.cluster_status import (ServiceStatus, NodeServiceStatus) from manager_rest.storage import models, get_storage_manager from manager_rest.rest.rest_utils import parse_datetime_string try: from...
35.633333
75
0.671344
dd1d62a650e0d35a390869a50b4deae15477230d
11,846
py
Python
src/main/python/twitter/thermos/core/process.py
isomer/incubator-aurora
5f54d4de25413bb18acec16120eb18f3e08c6bf0
[ "Apache-2.0" ]
null
null
null
src/main/python/twitter/thermos/core/process.py
isomer/incubator-aurora
5f54d4de25413bb18acec16120eb18f3e08c6bf0
[ "Apache-2.0" ]
null
null
null
src/main/python/twitter/thermos/core/process.py
isomer/incubator-aurora
5f54d4de25413bb18acec16120eb18f3e08c6bf0
[ "Apache-2.0" ]
null
null
null
"""Run processes of a Thermos task. This module contains the Process class, used to manage the execution of the constituent processes of a Thermos task. Each process is represented by a "coordinator" process, which fires off the actual commandline in a subprocess of its own. """ from abc import abstractmethod import...
31.844086
100
0.658197
8208173a1754a4dc717366132b71574901dc67e9
4,761
py
Python
lib/repo/product_image_path_repository.py
daotranminh/SCM
6681a49999cbd089032e25a441572e9a1f166897
[ "MIT" ]
null
null
null
lib/repo/product_image_path_repository.py
daotranminh/SCM
6681a49999cbd089032e25a441572e9a1f166897
[ "MIT" ]
null
null
null
lib/repo/product_image_path_repository.py
daotranminh/SCM
6681a49999cbd089032e25a441572e9a1f166897
[ "MIT" ]
null
null
null
import logging import os from flask import url_for from flask_sqlalchemy import sqlalchemy from werkzeug.utils import secure_filename from sqlalchemy import desc from init import ProductImagePath, config from utilities.scm_enums import ErrorCodes from utilities.scm_exceptions import ScmException from utilities.scm_l...
43.678899
130
0.635161
c5512f4ba2a441953768859a49b7743614106e72
634
py
Python
temp3.py
zena3/fairfusion
f957a5c1d626173cf1fe4f8c82fbbaf3dc89869f
[ "Apache-2.0" ]
null
null
null
temp3.py
zena3/fairfusion
f957a5c1d626173cf1fe4f8c82fbbaf3dc89869f
[ "Apache-2.0" ]
null
null
null
temp3.py
zena3/fairfusion
f957a5c1d626173cf1fe4f8c82fbbaf3dc89869f
[ "Apache-2.0" ]
null
null
null
import os import time import Adafruit_DHT DHT_SENSOR = Adafruit_DHT.DHT22 DHT_PIN = 4 try: f = open('/home/pi/humidity.csv', 'a+') if os.stat('/home/pi/humidity.csv').st_size == 0: f.write('Date,Time,Temperature,Humidity\r\n') except: pass while True: humidity, temperature = Adafruit_DHT....
27.565217
132
0.654574
84c30c7b093de8224ffc45cdd843b882842c446a
11,128
py
Python
lib/model/config.py
superlich7/FasterRcnnTF_ICPR2018
7ab0bad4df1e772bb8cece55a1c83b0bb1804a3b
[ "MIT" ]
15
2018-06-02T15:32:39.000Z
2021-04-01T08:53:46.000Z
lib/model/config.py
superlich7/FasterRcnnTF_ICPR2018
7ab0bad4df1e772bb8cece55a1c83b0bb1804a3b
[ "MIT" ]
null
null
null
lib/model/config.py
superlich7/FasterRcnnTF_ICPR2018
7ab0bad4df1e772bb8cece55a1c83b0bb1804a3b
[ "MIT" ]
8
2018-06-02T15:32:42.000Z
2019-10-22T08:24:40.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import os.path as osp import numpy as np # `pip install easydict` if you don't have it from easydict import EasyDict as edict __C = edict() # Consumers can get config by: # from fast_rcnn_config im...
28.460358
91
0.727175
f4cdae65367e79069418b042f09d6b78fe622f89
2,106
py
Python
google-cloud-sdk/lib/surface/kms/keys/add_iam_policy_binding.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/lib/surface/kms/keys/add_iam_policy_binding.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/lib/surface/kms/keys/add_iam_policy_binding.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
3
2017-07-27T18:44:13.000Z
2020-07-25T17:48:53.000Z
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
36.310345
74
0.737417
942759660f294953565dfd66e79b591caf8cf17b
188
py
Python
hello.py
TravisJRCain/DS-Unit-3-Sprint-3-Productization-and-Cloud
27aabc7653c302a54910c7de85e566c0d252edba
[ "MIT" ]
null
null
null
hello.py
TravisJRCain/DS-Unit-3-Sprint-3-Productization-and-Cloud
27aabc7653c302a54910c7de85e566c0d252edba
[ "MIT" ]
null
null
null
hello.py
TravisJRCain/DS-Unit-3-Sprint-3-Productization-and-Cloud
27aabc7653c302a54910c7de85e566c0d252edba
[ "MIT" ]
null
null
null
from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello, World!' # navigate to /about @app.route("/about") def about(): return "about me"
14.461538
26
0.654255
fbb2bb8445558cc7ef47daf1e22bb71cd494d00f
5,525
py
Python
polyaxon_schemas/ml/layers/advanced_activations.py
granularai/polyaxon-schemas
017ae74701f21f12f0b25e75379681ea5d8baa9e
[ "MIT" ]
null
null
null
polyaxon_schemas/ml/layers/advanced_activations.py
granularai/polyaxon-schemas
017ae74701f21f12f0b25e75379681ea5d8baa9e
[ "MIT" ]
null
null
null
polyaxon_schemas/ml/layers/advanced_activations.py
granularai/polyaxon-schemas
017ae74701f21f12f0b25e75379681ea5d8baa9e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function from marshmallow import fields from polyaxon_schemas.fields import ObjectOrListObject from polyaxon_schemas.ml.constraints import ConstraintSchema from polyaxon_schemas.ml.initializations import InitializerSchema, ZerosInitialize...
27.351485
89
0.655204
89ee914d9f7d399a428d8aa99adbb48f926581f5
2,628
py
Python
easybimehlanding/models/car_uses.py
kmelodi/EasyBimehLanding_Python
b574a76a8805b306a423229b572c36dae0159def
[ "MIT" ]
null
null
null
easybimehlanding/models/car_uses.py
kmelodi/EasyBimehLanding_Python
b574a76a8805b306a423229b572c36dae0159def
[ "MIT" ]
null
null
null
easybimehlanding/models/car_uses.py
kmelodi/EasyBimehLanding_Python
b574a76a8805b306a423229b572c36dae0159def
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ easybimehlanding This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). """ import easybimehlanding.models.combo_data_model class CarUses(object): """Implementation of the 'CarUses' model. TODO: type model description here. ...
30.206897
115
0.574201
d82c42412505ccc989b5d15114bfc16a5232e32a
1,453
py
Python
meggie/actions/evoked_plot_topomap/dialogs/evokedTopomapDialogMain.py
Teekuningas/meggie
0790559febb990a5487d4f0c92987066632e1d99
[ "BSD-2-Clause-FreeBSD" ]
4
2020-04-29T08:57:11.000Z
2021-01-15T21:21:51.000Z
meggie/actions/evoked_plot_topomap/dialogs/evokedTopomapDialogMain.py
Teekuningas/meggie
0790559febb990a5487d4f0c92987066632e1d99
[ "BSD-2-Clause-FreeBSD" ]
16
2019-05-03T10:31:16.000Z
2021-05-06T14:59:55.000Z
meggie/actions/evoked_plot_topomap/dialogs/evokedTopomapDialogMain.py
cibr-jyu/meggie
0790559febb990a5487d4f0c92987066632e1d99
[ "BSD-2-Clause-FreeBSD" ]
3
2020-12-12T09:57:00.000Z
2020-12-20T17:12:05.000Z
""" Contains a class for logic of the evoked topomap dialog. """ from PyQt5 import QtWidgets from meggie.actions.evoked_plot_topomap.dialogs.evokedTopomapDialogUi import Ui_evokedTopomapDialog from meggie.utilities.messaging import exc_messagebox class EvokedTopomapDialog(QtWidgets.QDialog): """ Contains logic ...
31.586957
99
0.675155
266dda6e501ce2d6735c1616caa8a1409760b0f0
18,054
py
Python
external/pyvista/python/pyvista/reduce.py
dnidever/apogee
83ad7496a0b4193df9e2c01b06dc36cb879ea6c1
[ "BSD-3-Clause" ]
5
2019-04-11T13:35:24.000Z
2019-11-14T06:12:51.000Z
external/pyvista/python/pyvista/reduce.py
dnidever/apogee
83ad7496a0b4193df9e2c01b06dc36cb879ea6c1
[ "BSD-3-Clause" ]
null
null
null
external/pyvista/python/pyvista/reduce.py
dnidever/apogee
83ad7496a0b4193df9e2c01b06dc36cb879ea6c1
[ "BSD-3-Clause" ]
5
2018-09-20T22:07:43.000Z
2021-01-15T07:13:38.000Z
import copy import numpy as np import os import pickle import pdb import yaml import matplotlib.pyplot as plt from pyvista import imred from pyvista import image from pyvista import spectra from pyvista import tv from tools import plots from astropy import units from astropy.nddata import CCDData, StdDevUncertainty imp...
50.01108
138
0.473192
3e7b22a444c52ea918f6d3e1477bb39a72a5c1cd
4,293
py
Python
RSS2Reddit.py
midasvo/RSS2Reddit
88709c4c06ba10a78bc4812a4e7753180584f2bd
[ "MIT" ]
null
null
null
RSS2Reddit.py
midasvo/RSS2Reddit
88709c4c06ba10a78bc4812a4e7753180584f2bd
[ "MIT" ]
null
null
null
RSS2Reddit.py
midasvo/RSS2Reddit
88709c4c06ba10a78bc4812a4e7753180584f2bd
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup import time import praw from urllib.parse import urlparse import urllib.request import os from praw.handlers import MultiprocessHandler # Database file, saves submitted links DB_FILE = "db.txt" # Initialize the submissions list for global use submissions = [] links = [] #...
24.392045
97
0.592593
d5c46e9aeb233bd81ecc72d3c2086df3f9519d40
696
py
Python
webcrawlers/http_headers.py
jeremiedecock/web-crawlers-core
fa0f5020eea49930b2a7b11a6e2c37912e9b7255
[ "MIT" ]
1
2016-07-07T17:59:13.000Z
2016-07-07T17:59:13.000Z
webcrawlers/http_headers.py
jeremiedecock/web-crawlers-core
fa0f5020eea49930b2a7b11a6e2c37912e9b7255
[ "MIT" ]
null
null
null
webcrawlers/http_headers.py
jeremiedecock/web-crawlers-core
fa0f5020eea49930b2a7b11a6e2c37912e9b7255
[ "MIT" ]
null
null
null
# Ce fichier doit être complété manuellement pour chaque site web cible. # Pour obtenir la liste des valeurs à inscrire à l'aide de Firefox: # - Consulter la page racine d'où lancer le téléchargement (s'identifier si besoin) # - Faire un clic droit sur la page et sélectionner "Examiner l'élément" # - Aller dans l'ongle...
31.636364
83
0.676724
e1e33ec0cc80e7897591c1cbcf2c107e166411d0
27,171
py
Python
code/datasets/segmentation/cocostuff.py
haasj22/Recycling_Segmentation
0420baf4c2ac2bd18b03791e123fb4b0ad7869b1
[ "MIT" ]
1
2021-03-26T00:10:17.000Z
2021-03-26T00:10:17.000Z
code/datasets/segmentation/cocostuff.py
haasj22/Recycling_Segmentation
0420baf4c2ac2bd18b03791e123fb4b0ad7869b1
[ "MIT" ]
null
null
null
code/datasets/segmentation/cocostuff.py
haasj22/Recycling_Segmentation
0420baf4c2ac2bd18b03791e123fb4b0ad7869b1
[ "MIT" ]
null
null
null
# based on # https://github.com/kazuto1011/deeplab-pytorch/blob/master/libs/datasets # /cocostuff.py from __future__ import print_function import os.path as osp import pickle from glob import glob import cv2 import numpy as np import scipy.io as sio import torch import torchvision.transforms as tvt from PIL import I...
33.627475
96
0.649663
962da115a0bd37bd70e59299466641f130011b73
1,939
py
Python
test/ses/test_get_verifiedEmail.py
yunfan/bce-sdk-python
00df2be78cd44373c3d99cd1bb69d17968f30d2b
[ "Apache-2.0" ]
22
2015-10-26T03:00:11.000Z
2021-09-08T09:30:51.000Z
test/ses/test_get_verifiedEmail.py
yunfan/bce-sdk-python
00df2be78cd44373c3d99cd1bb69d17968f30d2b
[ "Apache-2.0" ]
8
2018-07-18T02:47:09.000Z
2020-12-10T02:30:37.000Z
test/ses/test_get_verifiedEmail.py
yunfan/bce-sdk-python
00df2be78cd44373c3d99cd1bb69d17968f30d2b
[ "Apache-2.0" ]
14
2016-01-12T11:57:38.000Z
2021-03-10T03:35:12.000Z
#!/usr/bin/env python """ @author wanglinqing01@baidu.com @date 2014/10/08 @brief get verifiedEmail """ import os import sys import json import time _NOW_PATH = os.path.dirname(os.path.abspath(__file__)) + '/' _BCE_PATH = _NOW_PATH + '../' sys.path.insert(0, _BCE_PATH) import bes_base_case from baidubce.services.se...
29.830769
74
0.649819
531fa38e0c1a3cb5cbf34ff2ce3b1036a53d78b3
2,749
py
Python
scripts/who/gho/import_data_test.py
padma-g/data
b65e4e04a759ecc5b0b4df67e8cc290b0ddcadff
[ "Apache-2.0" ]
null
null
null
scripts/who/gho/import_data_test.py
padma-g/data
b65e4e04a759ecc5b0b4df67e8cc290b0ddcadff
[ "Apache-2.0" ]
null
null
null
scripts/who/gho/import_data_test.py
padma-g/data
b65e4e04a759ecc5b0b4df67e8cc290b0ddcadff
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
37.657534
80
0.67952
b664461f7ea723559a055832e00081bc4a0c3a66
11,783
py
Python
bdgenomics/workflows/tools/spark_tools.py
bigdatagenomics/toil-bdg
dc10d2b1ff9bc2110aa4dccaef23f4c539447da8
[ "Apache-2.0" ]
3
2019-08-21T01:10:46.000Z
2019-11-04T17:38:52.000Z
bdgenomics/workflows/tools/spark_tools.py
bigdatagenomics/toil-bdg
dc10d2b1ff9bc2110aa4dccaef23f4c539447da8
[ "Apache-2.0" ]
12
2017-09-07T19:55:22.000Z
2021-03-25T21:27:50.000Z
bdgenomics/workflows/tools/spark_tools.py
bigdatagenomics/toil-bdg
dc10d2b1ff9bc2110aa4dccaef23f4c539447da8
[ "Apache-2.0" ]
4
2017-09-07T19:10:57.000Z
2018-02-16T19:01:31.000Z
""" Functions for calling raw tools in the UCSC Computational Genomics Lab ADAM/Spark pipeline @author Audrey Musselman-Brown, almussel@ucsc.edu @author Frank Austin Nothaft, fnothaft@berkeley. """ import os.path from subprocess import check_call, check_output from toil.lib.docker import dockerCall from toil_lib im...
42.692029
116
0.624883
a85744cffb620a3cb1987ff4e44d5676cf42c427
504
py
Python
tests/__init__.py
revilooliver/rp
9618b640039f911e98e0fa0f5766951bac7e16af
[ "Apache-2.0" ]
5
2020-12-16T07:58:35.000Z
2022-03-01T16:41:49.000Z
tests/__init__.py
revilooliver/rp
9618b640039f911e98e0fa0f5766951bac7e16af
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
revilooliver/rp
9618b640039f911e98e0fa0f5766951bac7e16af
[ "Apache-2.0" ]
1
2020-11-19T17:31:49.000Z
2020-11-19T17:31:49.000Z
# -*- coding: utf-8 -*- # (C) Copyright Ji Liu and Luciano Bello 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or ...
36
77
0.738095
9d23bbe0762b914d2e992f8e6c713d9687d00421
1,823
py
Python
tests/AffineCipherTests/AffineParameterizedPackageDecipher.py
LudwikaMalinowska/TestowanieAutomatyczneProjekt1
8c0619ac24c89791a0957ff45a07eedeeaf9a0e5
[ "MIT" ]
null
null
null
tests/AffineCipherTests/AffineParameterizedPackageDecipher.py
LudwikaMalinowska/TestowanieAutomatyczneProjekt1
8c0619ac24c89791a0957ff45a07eedeeaf9a0e5
[ "MIT" ]
null
null
null
tests/AffineCipherTests/AffineParameterizedPackageDecipher.py
LudwikaMalinowska/TestowanieAutomatyczneProjekt1
8c0619ac24c89791a0957ff45a07eedeeaf9a0e5
[ "MIT" ]
null
null
null
import unittest from AffineCipher.AffineCipher import AffineCipher from parameterized import parameterized, parameterized_class from nose.tools import assert_equal, assert_raises class AffineParameterizedPackage(unittest.TestCase): def setUp(self): self.tmp = AffineCipher() @parameterized.expand([ ...
29.403226
110
0.607241
6c7c12b55d8846cf92e3865673903af03f4e706d
38,578
py
Python
purity_fb/purity_fb_1dot12/apis/syslog_api.py
tlewis-ps/purity_fb_python_client
652835cbd485c95a86da27f8b661679727ec6ea0
[ "Apache-2.0" ]
5
2017-09-08T20:47:22.000Z
2021-06-29T02:11:05.000Z
purity_fb/purity_fb_1dot12/apis/syslog_api.py
tlewis-ps/purity_fb_python_client
652835cbd485c95a86da27f8b661679727ec6ea0
[ "Apache-2.0" ]
16
2017-11-27T20:57:48.000Z
2021-11-23T18:46:43.000Z
purity_fb/purity_fb_1dot12/apis/syslog_api.py
tlewis-ps/purity_fb_python_client
652835cbd485c95a86da27f8b661679727ec6ea0
[ "Apache-2.0" ]
22
2017-10-13T15:33:05.000Z
2021-11-08T19:56:21.000Z
# coding: utf-8 """ Pure Storage FlashBlade REST 1.12 Python SDK Pure Storage FlashBlade REST 1.12 Python SDK. Compatible with REST API versions 1.0 - 1.12. Developed by [Pure Storage, Inc](http://www.purestorage.com/). Documentations can be found at [purity-fb.readthedocs.io](http://purity-fb.readthedocs.io/...
46.0358
251
0.589766
249e98b53bd7f7aabc940605cf3a8ad0f779a775
3,628
py
Python
applications/plugins/Compliant/examples/bielle_manivelle/joint_target_pose.py
sofa-framework/issofa
94855f488465bc3ed41223cbde987581dfca5389
[ "OML" ]
null
null
null
applications/plugins/Compliant/examples/bielle_manivelle/joint_target_pose.py
sofa-framework/issofa
94855f488465bc3ed41223cbde987581dfca5389
[ "OML" ]
null
null
null
applications/plugins/Compliant/examples/bielle_manivelle/joint_target_pose.py
sofa-framework/issofa
94855f488465bc3ed41223cbde987581dfca5389
[ "OML" ]
null
null
null
import Sofa from Compliant import Rigid, Tools mesh_path = Tools.path( __file__ ) scale = 1 # parts of the mechanism parts = [ ["Corps","Corps.msh","1.36 0 0.0268 0 0 0 1","0 0 0 0 0 0 1","22.8 751 737", "2.1e+11","0.28","7.8e+3",1291.453/scale,"TetrahedronFEMForceField","Rigid","Vec3d","TLineModel","TPointMod...
32.684685
240
0.558159
296b3b91d66588df4ad5adc46949be373796217d
1,694
py
Python
Breeze18/Breeze/migrations/0008_accomregistration_accpackage.py
Breeze18/Breeze
4215776e2f02fab3ce357e67b3b6ca378742049c
[ "Apache-2.0" ]
null
null
null
Breeze18/Breeze/migrations/0008_accomregistration_accpackage.py
Breeze18/Breeze
4215776e2f02fab3ce357e67b3b6ca378742049c
[ "Apache-2.0" ]
1
2017-11-09T13:07:24.000Z
2018-01-29T04:31:26.000Z
Breeze18/Breeze/migrations/0008_accomregistration_accpackage.py
Breeze18/Breeze
4215776e2f02fab3ce357e67b3b6ca378742049c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2018-01-11 21:08 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_depende...
43.435897
126
0.621606
3d452cc14f79b52e77327f9b68fdbe0e10ab68a1
3,071
py
Python
paths.py
gersondekleuver/Fact-AI
91d4f25320db98cab333f22651e73e149cec7710
[ "MIT" ]
1
2021-09-15T13:29:11.000Z
2021-09-15T13:29:11.000Z
paths.py
gersondekleuver/Fact-AI
91d4f25320db98cab333f22651e73e149cec7710
[ "MIT" ]
1
2022-01-22T16:04:42.000Z
2022-01-26T12:07:59.000Z
paths.py
gersondekleuver/Fact-AI
91d4f25320db98cab333f22651e73e149cec7710
[ "MIT" ]
1
2022-01-18T12:52:16.000Z
2022-01-18T12:52:16.000Z
import os # data paths data_dir = 'data/' # training corpora train_corpora_dir = os.path.join(data_dir, 'train_corpora/') wikitext_corpus_path = os.path.join(train_corpora_dir, 'wikitext-103/wikitext-103-train.txt') reddit_corpora_dir = os.path.join(train_corpora_dir, 'reddit/') reddit_ask_science_path = os.path.join...
41.5
93
0.786389
ac6d8708ab022341d6b5ea3de8256b4d4be7394f
1,122
py
Python
solution/lc1028.py
sth4nothing/pyleetcode
70ac2dc55b0cbcd243b38103a96dd796538a3c05
[ "MIT" ]
null
null
null
solution/lc1028.py
sth4nothing/pyleetcode
70ac2dc55b0cbcd243b38103a96dd796538a3c05
[ "MIT" ]
null
null
null
solution/lc1028.py
sth4nothing/pyleetcode
70ac2dc55b0cbcd243b38103a96dd796538a3c05
[ "MIT" ]
null
null
null
from collections import Counter from math import log2 import heapq class Solution: def idx(self, num: int): return int(log2(num if num >= 0 else -num) + 0.5) def recurse(self, num: int): k = self.idx(num) return num - (-2) ** k, k def baseNeg2(self, N: int) -> str: if N =...
26.093023
85
0.438503
0e36a91683d5fea670c3753c868b1c97a10bdc75
1,797
py
Python
tests/acceptance/test_files_protected.py
ep-linden/gitlabform
3b1b052df5b093928fe003a17e872427e68af687
[ "MIT" ]
21
2021-12-01T18:32:45.000Z
2022-02-20T07:29:10.000Z
tests/acceptance/test_files_protected.py
ep-linden/gitlabform
3b1b052df5b093928fe003a17e872427e68af687
[ "MIT" ]
48
2021-12-01T14:27:41.000Z
2022-03-28T11:13:43.000Z
tests/acceptance/test_files_protected.py
ep-linden/gitlabform
3b1b052df5b093928fe003a17e872427e68af687
[ "MIT" ]
1
2022-02-12T00:28:42.000Z
2022-02-12T00:28:42.000Z
from tests.acceptance import run_gitlabform, DEFAULT_README class TestFilesProtected: # this test should be in a separate class than other test files as it changes too # much for a reasonable setup and cleanup using fixtures def test__set_file_protected_branches( self, gitlab, group_and_project, ...
36.673469
87
0.611575
ff48ef4f9646d97311193ad83c67472646fa8cde
7,111
py
Python
src/rp2/configuration_schema.py
Algo-Trading-Tools/rp2
37436d980028b17e03fae999e3fed4e7a097b17c
[ "Apache-2.0" ]
null
null
null
src/rp2/configuration_schema.py
Algo-Trading-Tools/rp2
37436d980028b17e03fae999e3fed4e7a097b17c
[ "Apache-2.0" ]
null
null
null
src/rp2/configuration_schema.py
Algo-Trading-Tools/rp2
37436d980028b17e03fae999e3fed4e7a097b17c
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 eprbell # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, soft...
29.629167
74
0.30263
e3c39d5391cd17723e544065ff9cdd9b9ebb8ec8
7,402
py
Python
model_BiGAN.py
masataka46/BiGAN
514a8b2abff2bfee8f536b8e394dc84fa0ab6ab6
[ "MIT" ]
14
2018-11-14T10:33:50.000Z
2021-06-11T08:49:29.000Z
model_BiGAN.py
masataka46/BiGAN
514a8b2abff2bfee8f536b8e394dc84fa0ab6ab6
[ "MIT" ]
1
2018-09-26T02:40:36.000Z
2018-09-26T02:40:36.000Z
model_BiGAN.py
masataka46/BiGAN
514a8b2abff2bfee8f536b8e394dc84fa0ab6ab6
[ "MIT" ]
1
2021-02-04T08:09:13.000Z
2021-02-04T08:09:13.000Z
import numpy as np # import os import tensorflow as tf # from PIL import Image # import utility as Utility # import argparse class BiGAN(): def __init__(self, noise_unit_num, img_channel, seed, base_channel, keep_prob): self.NOISE_UNIT_NUM = noise_unit_num # 200 self.IMG_CHANNEL = img_channel # 1 ...
51.762238
119
0.596596
508e48bce4e91441f0890bb2598d6d3660a34f70
26,652
py
Python
allennlp/models/semantic_parsing/nlvr/nlvr_decoder_step.py
MaxMotovilov/allennlp
d4ee5db1c630d6c631a828ee12fcbf6154de288c
[ "Apache-2.0" ]
1
2021-03-01T09:43:22.000Z
2021-03-01T09:43:22.000Z
allennlp/models/semantic_parsing/nlvr/nlvr_decoder_step.py
MaxMotovilov/allennlp
d4ee5db1c630d6c631a828ee12fcbf6154de288c
[ "Apache-2.0" ]
1
2018-07-02T18:19:41.000Z
2018-07-02T19:37:31.000Z
allennlp/models/semantic_parsing/nlvr/nlvr_decoder_step.py
MaxMotovilov/allennlp
d4ee5db1c630d6c631a828ee12fcbf6154de288c
[ "Apache-2.0" ]
1
2018-08-09T20:28:48.000Z
2018-08-09T20:28:48.000Z
from typing import List, Dict, Tuple, Set from collections import defaultdict from overrides import overrides import torch from torch.nn import Parameter from torch.nn.modules.rnn import LSTMCell from torch.nn.modules.linear import Linear from allennlp.common import util as common_util from allennlp.models.semantic_...
62.271028
115
0.626632
0291f121ee89eb6ffcf534fe480729cc511d90e9
2,841
py
Python
ushare/files/middleware.py
uploadcare/ushare
6acd504baf61eec0263448c5fbee54cbaaaf8c77
[ "MIT" ]
2
2018-05-13T21:12:11.000Z
2019-11-26T12:00:32.000Z
ushare/files/middleware.py
uploadcare/ushare
6acd504baf61eec0263448c5fbee54cbaaaf8c77
[ "MIT" ]
5
2015-10-01T12:14:30.000Z
2021-06-10T17:38:06.000Z
ushare/files/middleware.py
uploadcare/ushare
6acd504baf61eec0263448c5fbee54cbaaaf8c77
[ "MIT" ]
2
2015-10-01T07:56:49.000Z
2016-11-30T13:01:50.000Z
""" Based on: https://github.com/gregmuellegger/django-mobile """ import re class MobileDetectionMiddleware(object): user_agents_test_match = ( "w3c ", "acs-", "alav", "alca", "amoi", "audi", "avan", "benq", "bird", "blac", "blaz", "brew", "cell", "cldc", "cmd-", "dang", "doco", "eric", ...
41.779412
110
0.563182
aa1cbf700a7bd1126825906f37e457c7033d7d78
585
py
Python
samples/Calculator.py
magevv/python_lessons
f577673419d60beae2b35ce43833676a7c222306
[ "Apache-2.0" ]
null
null
null
samples/Calculator.py
magevv/python_lessons
f577673419d60beae2b35ce43833676a7c222306
[ "Apache-2.0" ]
null
null
null
samples/Calculator.py
magevv/python_lessons
f577673419d60beae2b35ce43833676a7c222306
[ "Apache-2.0" ]
null
null
null
def calc(x, y, op): res = 0 if op == '+': res = x + y elif op == '-': res = x - y elif op == '*': res = x * y elif op == '/': res = x / y return res while True: data = input('Type formula like \'x + y\' or \'quite\' to exit: ') if data == 'quit': ...
21.666667
70
0.432479
6edfd8ab55f7425b55b44338f316460430ae2383
674
py
Python
Hotels/migrations/0001_initial.py
Seshathri-saravanan/quest
397c92e36167b9554fd72f55bdac0a2cbcdfea6f
[ "MIT" ]
null
null
null
Hotels/migrations/0001_initial.py
Seshathri-saravanan/quest
397c92e36167b9554fd72f55bdac0a2cbcdfea6f
[ "MIT" ]
null
null
null
Hotels/migrations/0001_initial.py
Seshathri-saravanan/quest
397c92e36167b9554fd72f55bdac0a2cbcdfea6f
[ "MIT" ]
1
2021-11-09T15:58:33.000Z
2021-11-09T15:58:33.000Z
# Generated by Django 3.1.3 on 2020-11-24 16:53 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Hotel', fields=[ ('id', models.AutoField(au...
26.96
114
0.568249
d8b74dad0a62f3000dc186bf2085be6559d3dd7b
7,170
py
Python
src/rayoptics/optical/obench.py
JakeWags/ray-optics
c64baf0a77df249477ec5b54265a1cd16b3cbb7a
[ "BSD-3-Clause" ]
106
2019-03-22T06:06:34.000Z
2022-03-20T01:19:39.000Z
src/rayoptics/optical/obench.py
robinliulovescola/ray-optics
f5140e4d4e4fb94d7fd56935dce8357912aae5d0
[ "BSD-3-Clause" ]
34
2019-09-15T19:49:50.000Z
2021-12-17T23:35:38.000Z
src/rayoptics/optical/obench.py
robinliulovescola/ray-optics
f5140e4d4e4fb94d7fd56935dce8357912aae5d0
[ "BSD-3-Clause" ]
27
2018-03-17T01:04:39.000Z
2022-03-17T17:36:13.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Import files from `OpticalBenchHub` web page This module implements lens import from the `OpticalBenchHub <https://www.photonstophotos.net/GeneralTopics/Lenses/OpticalBench/OpticalBenchHub.htm>`_ portion of Bill Claff's `PhotonsToPhotos <https://www.photonstoph...
36.769231
154
0.582148
b1097d4e53491db46e9f1dd8a26508d83cfe1fc8
11,832
py
Python
belt_balance.py
Saevon/Recipes
ab8ca9b5244805d545da2dd1d80d249f1ec6057d
[ "MIT" ]
null
null
null
belt_balance.py
Saevon/Recipes
ab8ca9b5244805d545da2dd1d80d249f1ec6057d
[ "MIT" ]
null
null
null
belt_balance.py
Saevon/Recipes
ab8ca9b5244805d545da2dd1d80d249f1ec6057d
[ "MIT" ]
null
null
null
from __future__ import division # Switch to sympy rationals later import matplotlib.pyplot as plt plt.rcParams['figure.figsize'] = (15, 5) plt.rcParams['font.size'] = 25 import numpy as np from sympy import Rational, sympify, nsimplify import seaborn as sb def set_balancer_flow(junctions,upstream_densities,downst...
43.660517
132
0.567867
d2cec9d8b5df695b9532fd13faf26e2fef3e66de
113
py
Python
escape/__init__.py
skabbass1/escape
030029728978496cba06cfbc40ed8c7f3cc3d660
[ "MIT" ]
9
2017-07-03T04:06:51.000Z
2019-09-03T04:31:30.000Z
escape/__init__.py
skabbass1/escape
030029728978496cba06cfbc40ed8c7f3cc3d660
[ "MIT" ]
null
null
null
escape/__init__.py
skabbass1/escape
030029728978496cba06cfbc40ed8c7f3cc3d660
[ "MIT" ]
1
2018-03-05T10:37:52.000Z
2018-03-05T10:37:52.000Z
# -*- coding: utf-8 -*- from .core import ( Escape, palette, ) __version__ = '1.1' __all__ = [Escape]
10.272727
23
0.557522
06bad1fff64302e4fb775306b7b553f330e5214e
2,556
py
Python
hskl/utils.py
qiancao/hskl
7a530d3e1cc10f0f85e5a1f3edbdcd91f2c2cc8a
[ "BSD-3-Clause" ]
7
2021-03-01T18:07:49.000Z
2021-09-12T10:22:21.000Z
hskl/utils.py
qiancao/hskl
7a530d3e1cc10f0f85e5a1f3edbdcd91f2c2cc8a
[ "BSD-3-Clause" ]
null
null
null
hskl/utils.py
qiancao/hskl
7a530d3e1cc10f0f85e5a1f3edbdcd91f2c2cc8a
[ "BSD-3-Clause" ]
4
2021-03-25T13:36:54.000Z
2021-05-30T10:25:06.000Z
""" hskl Utilities Module """ # Author: Qian Cao # License: BSD 3-Clause import numpy as np import matplotlib.pyplot as plt import matplotlib as mpl from spectral import principal_components import h5py from scipy.io import loadmat # for older .mat files def overlay(X,Y,fig_params={},ax_params={}): # ...
28.087912
88
0.594288
cacaadde27074c3d6be1237e2a9ca7c32557bcd5
1,141
py
Python
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/vpc/models/VpcPeeringVpcInfo.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
14
2018-04-19T09:53:56.000Z
2022-01-27T06:05:48.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/vpc/models/VpcPeeringVpcInfo.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
15
2018-09-11T05:39:54.000Z
2021-07-02T12:38:02.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/vpc/models/VpcPeeringVpcInfo.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
33
2018-04-20T05:29:16.000Z
2022-02-17T09:10:05.000Z
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
35.65625
122
0.719544
dec02b0e7430baa21ab28d94861f671877693cf5
5,748
py
Python
tests/test_nytimes.py
gloriousDan/recipe-scrapers
4e11b04db92abe11b75d373a147cc566629f265b
[ "MIT" ]
null
null
null
tests/test_nytimes.py
gloriousDan/recipe-scrapers
4e11b04db92abe11b75d373a147cc566629f265b
[ "MIT" ]
null
null
null
tests/test_nytimes.py
gloriousDan/recipe-scrapers
4e11b04db92abe11b75d373a147cc566629f265b
[ "MIT" ]
null
null
null
from recipe_scrapers.nytimes import NYTimes from tests import ScraperTest class TestNYTimesScraper(ScraperTest): scraper_class = NYTimes def test_host(self): self.assertEqual("cooking.nytimes.com", self.harvester_class.host()) def test_image(self): self.assertEqual( "https:/...
94.229508
3,532
0.726688