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
fbd342c6beac3ee2504504134e1128563e6f6347
1,099
py
Python
src/options/split/backward/probability.py
DenDen047/SpatialNetworks
62a076d12af474b19b406e605d970662d9699cdf
[ "MIT" ]
3
2019-12-15T23:29:11.000Z
2020-05-08T03:26:20.000Z
src/options/split/backward/probability.py
DenDen047/SpatialNetworks
62a076d12af474b19b406e605d970662d9699cdf
[ "MIT" ]
null
null
null
src/options/split/backward/probability.py
DenDen047/SpatialNetworks
62a076d12af474b19b406e605d970662d9699cdf
[ "MIT" ]
3
2019-12-30T15:49:57.000Z
2020-04-30T08:06:18.000Z
import torch from . import _base class Masker(_base.Base): """For each task, each neuron has probability to be kept. The more connected neuron to task, the higher the probability to keep it. Other neurons will be zeroed-out Parameters ---------- labels: int How many labels were ...
25.55814
77
0.576888
f64e39a1d74bad38e2d21a305a9c5ab01ea305eb
13,975
py
Python
tests/test_all.py
sebastian-zieba/PACMAN
2eb1e4b450c97dc28d5a05b3ebddd80706cfca79
[ "MIT" ]
1
2022-03-23T10:26:33.000Z
2022-03-23T10:26:33.000Z
tests/test_all.py
sebastian-zieba/PACMAN
2eb1e4b450c97dc28d5a05b3ebddd80706cfca79
[ "MIT" ]
null
null
null
tests/test_all.py
sebastian-zieba/PACMAN
2eb1e4b450c97dc28d5a05b3ebddd80706cfca79
[ "MIT" ]
1
2022-03-29T13:37:31.000Z
2022-03-29T13:37:31.000Z
import numpy as np import sys, os, time, glob import pytest from astropy.io import ascii from astroquery.mast import Observations from astropy.io import fits #sys.path.insert(0, '../src') sys.path.insert(0, './src') #sys.path.insert(0, '/home/zieba/Desktop/Projects/Open_source/PACMAN/src/') #print(sys.path) from pacma...
28.232323
163
0.674419
518acc300a4a019b9d4ed01215543bf47f4ae1bf
71,021
py
Python
scripts/api_dump_generator.py
g-keen/VulkanTools
231ea2844079c92ea74e2750e8cb3fd1c0434152
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
scripts/api_dump_generator.py
g-keen/VulkanTools
231ea2844079c92ea74e2750e8cb3fd1c0434152
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
scripts/api_dump_generator.py
g-keen/VulkanTools
231ea2844079c92ea74e2750e8cb3fd1c0434152
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 -i # # Copyright (c) 2015-2016 Valve Corporation # Copyright (c) 2015-2016 LunarG, Inc. # Copyright (c) 2015-2016 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License a...
39.065457
265
0.609932
76eefd0373ae912c8ca1b87c30540d93958574ae
78
py
Python
pcc_schedule/main.py
jaxlin12/PCC_Schedule_Spider
284690517c5687ccac0516043370862492e2cffe
[ "MIT" ]
2
2021-01-06T21:57:29.000Z
2021-01-15T00:30:46.000Z
pcc_schedule/main.py
JaxLam/PCC_Schedule_Spider
284690517c5687ccac0516043370862492e2cffe
[ "MIT" ]
null
null
null
pcc_schedule/main.py
JaxLam/PCC_Schedule_Spider
284690517c5687ccac0516043370862492e2cffe
[ "MIT" ]
null
null
null
from scrapy import cmdline cmdline.execute("scrapy crawl schedule".split())
26
49
0.782051
7b5a2fc90db47b60d608f0856814d0b735132d1a
292
py
Python
setup.py
nylas/stackcollector
2e9f72ee74587e0dea5ba4826cd60a093c8869f0
[ "MIT" ]
592
2015-09-29T18:08:07.000Z
2022-03-14T04:18:15.000Z
setup.py
nylas/stackcollector
2e9f72ee74587e0dea5ba4826cd60a093c8869f0
[ "MIT" ]
16
2015-10-29T15:55:17.000Z
2021-06-15T18:26:24.000Z
setup.py
nylas/stackcollector
2e9f72ee74587e0dea5ba4826cd60a093c8869f0
[ "MIT" ]
62
2015-09-29T18:07:35.000Z
2021-08-06T09:11:00.000Z
from setuptools import setup, find_packages setup( name='stackcollector', version='0.1', packages=find_packages(), install_requires=[ 'requests>=2.4.3', 'flask>=0.10.1', 'nylas-production-python>=0.2.3', 'click', 'dateparser' ], )
19.466667
43
0.568493
7f701961654ef4e5d1a62f6f85fb5a4339d084a8
2,094
py
Python
tests/gold_tests/body_factory/http204_response_plugin.test.py
AD5GB/trafficserver
b18b54ba5033da8de0983a07626dd24501474c93
[ "Apache-2.0" ]
null
null
null
tests/gold_tests/body_factory/http204_response_plugin.test.py
AD5GB/trafficserver
b18b54ba5033da8de0983a07626dd24501474c93
[ "Apache-2.0" ]
null
null
null
tests/gold_tests/body_factory/http204_response_plugin.test.py
AD5GB/trafficserver
b18b54ba5033da8de0983a07626dd24501474c93
[ "Apache-2.0" ]
1
2021-08-28T09:50:10.000Z
2021-08-28T09:50:10.000Z
''' Tests that plugins may break HTTP by sending 204 response bodies ''' # 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 # ...
40.269231
175
0.767431
b77ad3b48d96f6a6643eb7ee93fb4afafd3e690f
1,931
py
Python
test/test_workflow_decision_case.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
21
2018-03-29T14:20:35.000Z
2021-10-13T05:11:41.000Z
test/test_workflow_decision_case.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
14
2018-01-30T15:45:46.000Z
2022-02-23T14:23:21.000Z
test/test_workflow_decision_case.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
18
2018-01-03T15:09:56.000Z
2021-07-16T02:21:54.000Z
# coding: utf-8 """ Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environmen...
50.815789
1,052
0.781978
21f0a1815ebe17095a89df9f4a772d36c49fc41b
5,539
py
Python
III-mono_neural_inference/as_nn_coronamask_depth.py
Ikomia-dev/ikomia-oakd
7a048dd82fefc56a9f28b889f7d988d931173c9a
[ "MIT" ]
null
null
null
III-mono_neural_inference/as_nn_coronamask_depth.py
Ikomia-dev/ikomia-oakd
7a048dd82fefc56a9f28b889f7d988d931173c9a
[ "MIT" ]
null
null
null
III-mono_neural_inference/as_nn_coronamask_depth.py
Ikomia-dev/ikomia-oakd
7a048dd82fefc56a9f28b889f7d988d931173c9a
[ "MIT" ]
null
null
null
import depthai as dai import time import cv2 from pathlib import Path # Draw ROI and class label of each detected thing if confidence>50% def frame_process(frame, tensor): color = (255,0,0) keeped_roi = [] for i in range(100): # There is 100 detections, not all of them are relevant if (tensor[i*7...
41.02963
176
0.737137
380a6936a8d7733f3a4e5ddb570c5eb6a7a09d0c
123
py
Python
src/clilib/decorator/__init__.py
markediez/clilib
46753645b96b6482e38c14fc707a300e10faf330
[ "MIT" ]
null
null
null
src/clilib/decorator/__init__.py
markediez/clilib
46753645b96b6482e38c14fc707a300e10faf330
[ "MIT" ]
5
2020-08-27T17:40:29.000Z
2020-09-20T19:09:20.000Z
src/clilib/decorator/__init__.py
markediez/clilib
46753645b96b6482e38c14fc707a300e10faf330
[ "MIT" ]
null
null
null
from clilib.decorator.arg import arg from clilib.decorator.verb import verb from clilib.decorator.resource import resource
30.75
46
0.853659
9bfe1e7c2f1f981767df5f5a275f0c644cbc47d6
1,900
py
Python
utils/helpers/dc_helper.py
AllenZYJ/torchcv
79f1a0a3b77820edbc42b79e0aa90dbf10d936c0
[ "Apache-2.0" ]
1
2019-06-19T23:36:11.000Z
2019-06-19T23:36:11.000Z
utils/helpers/dc_helper.py
AllenZYJ/torchcv
79f1a0a3b77820edbc42b79e0aa90dbf10d936c0
[ "Apache-2.0" ]
null
null
null
utils/helpers/dc_helper.py
AllenZYJ/torchcv
79f1a0a3b77820edbc42b79e0aa90dbf10d936c0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author: Donny You(youansheng@gmail.com) import torch import itertools from extensions.tools.parallel import DataContainer class DCHelper(object): @staticmethod def tolist(dc): if isinstance(dc, (list, tuple)): return dc assert isi...
35.185185
129
0.643158
7b25631965f16574de3dcc3ec3d769a184d0697c
6,767
py
Python
releasefiles/reports2/create-firewall-data.py
sonatype-nexus-community/iq-success-metrics2
5c61671305b618e838fbb1af22157062bfdc5a2e
[ "Apache-2.0" ]
8
2020-10-10T03:55:16.000Z
2022-01-28T14:40:36.000Z
releasefiles/reports2/create-firewall-data.py
sonatype-nexus-community/iq-success-metrics2
5c61671305b618e838fbb1af22157062bfdc5a2e
[ "Apache-2.0" ]
14
2020-05-28T19:32:33.000Z
2021-11-10T18:21:58.000Z
releasefiles/reports2/create-firewall-data.py
sonatype-nexus-community/iq-success-metrics2
5c61671305b618e838fbb1af22157062bfdc5a2e
[ "Apache-2.0" ]
10
2020-08-20T14:17:45.000Z
2022-01-23T15:32:00.000Z
import json import requests import os import os.path import sys import shutil import csv debug = False iqurl = sys.argv[1] iquser = sys.argv[2] iqpwd = sys.argv[3] if len(sys.argv) == 5: if sys.argv[4] == "debug": debug = True jsonfile = 'firewalldata.json' csvfile = 'firewalldata.csv' firewall...
27.28629
102
0.578247
305aa4a0018ab37d9f318fd1ec495fa907c2f1e7
491
py
Python
Python/io_image.py
abondar24/OpenCVBase
9b23e3b31304e77ad1135d90efb41e3dc069194a
[ "Apache-2.0" ]
null
null
null
Python/io_image.py
abondar24/OpenCVBase
9b23e3b31304e77ad1135d90efb41e3dc069194a
[ "Apache-2.0" ]
null
null
null
Python/io_image.py
abondar24/OpenCVBase
9b23e3b31304e77ad1135d90efb41e3dc069194a
[ "Apache-2.0" ]
null
null
null
import cv2 import numpy as np import os image = cv2.imread('hard.jpg') cv2.imwrite('president.jpg', image) gray_image = cv2.imread('hard.jpg', cv2.CV_LOAD_IMAGE_GRAYSCALE) cv2.imwrite('pr1.png', gray_image) random_byte_array = bytearray(os.urandom(120000)) flat_numpy_array = np.array(random_byte_array) gray_image =...
27.277778
64
0.782077
a28dca29df01ff9c168c9a7b0863460aad30ea57
425
py
Python
utils/math_utils.py
gbanegas/KissECC
2630998178955a6e68adec34e30802447057c58f
[ "Apache-2.0" ]
1
2017-02-08T16:01:48.000Z
2017-02-08T16:01:48.000Z
utils/math_utils.py
gbanegas/ecc
2630998178955a6e68adec34e30802447057c58f
[ "Apache-2.0" ]
null
null
null
utils/math_utils.py
gbanegas/ecc
2630998178955a6e68adec34e30802447057c58f
[ "Apache-2.0" ]
null
null
null
class MathUtil(object): @staticmethod def sqrt(n, q): """sqrt on PN modulo: returns two numbers or exception if not exist >>> assert (sqrt(n, q)[0] ** 2) % q == n >>> assert (sqrt(n, q)[1] ** 2) % q == n """ assert n < q for i in range(1, q): if i * ...
26.5625
75
0.447059
366d153892c9f3f8f7898d390b54a8ac201beefa
2,176
py
Python
pendulum/server.py
DouglasOrr/Snippets
026e15a422b518ee7d9ce4849f971c4403ad9fe8
[ "MIT" ]
null
null
null
pendulum/server.py
DouglasOrr/Snippets
026e15a422b518ee7d9ce4849f971c4403ad9fe8
[ "MIT" ]
1
2020-04-11T18:07:19.000Z
2020-04-11T18:07:19.000Z
pendulum/server.py
DouglasOrr/Snippets
026e15a422b518ee7d9ce4849f971c4403ad9fe8
[ "MIT" ]
null
null
null
import math, controllers from flask import Flask, jsonify, request, redirect, url_for from pendulum import * class Sim: THRESHOLD = math.pi / 3 def __init__(self): self.set_controller('none') self.restart() def set_controller(self, name): self.controller_name = name self.c...
29.808219
85
0.598346
eee52cfba7608d2264c3466e34b465201e86072d
15,970
py
Python
napari/_qt/qt_viewer.py
PBLab/napari
a10a88b2115160211863b47ee7d3012fc8c7beff
[ "BSD-3-Clause" ]
null
null
null
napari/_qt/qt_viewer.py
PBLab/napari
a10a88b2115160211863b47ee7d3012fc8c7beff
[ "BSD-3-Clause" ]
4
2019-12-08T20:20:44.000Z
2020-01-16T21:57:33.000Z
napari/_qt/qt_viewer.py
PBLab/napari
a10a88b2115160211863b47ee7d3012fc8c7beff
[ "BSD-3-Clause" ]
null
null
null
import os.path import inspect from pathlib import Path from qtpy import QtGui from qtpy.QtCore import QCoreApplication, Qt, QSize from qtpy.QtWidgets import QWidget, QVBoxLayout, QFileDialog, QSplitter from qtpy.QtGui import QCursor, QPixmap from qtpy.QtCore import QThreadPool from vispy.scene import SceneCanvas, PanZ...
34.945295
79
0.625172
1b32a3b84b78c2b4a0fb39c334952a8bb248ad95
37,472
py
Python
tensorflow_serving/model_servers/tensorflow_model_server_test.py
ccl0326/serving
a9780780ab00ee3903576d6f062a2908f0ad192a
[ "Apache-2.0" ]
1
2020-05-24T02:50:50.000Z
2020-05-24T02:50:50.000Z
tensorflow_serving/model_servers/tensorflow_model_server_test.py
ccl0326/serving
a9780780ab00ee3903576d6f062a2908f0ad192a
[ "Apache-2.0" ]
null
null
null
tensorflow_serving/model_servers/tensorflow_model_server_test.py
ccl0326/serving
a9780780ab00ee3903576d6f062a2908f0ad192a
[ "Apache-2.0" ]
1
2020-12-04T14:52:46.000Z
2020-12-04T14:52:46.000Z
# Copyright 2016 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 a...
38.630928
100
0.68774
d690fa555cba1fa477b4997c7181c30f43acdb97
232,091
py
Python
Packs/Base/Scripts/CommonServerPython/CommonServerPython_test.py
Nathan6e/content
c4c29c03a71308d73d3be0bccad8da10d44f6b5d
[ "MIT" ]
null
null
null
Packs/Base/Scripts/CommonServerPython/CommonServerPython_test.py
Nathan6e/content
c4c29c03a71308d73d3be0bccad8da10d44f6b5d
[ "MIT" ]
null
null
null
Packs/Base/Scripts/CommonServerPython/CommonServerPython_test.py
Nathan6e/content
c4c29c03a71308d73d3be0bccad8da10d44f6b5d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import demistomock as demisto import copy import json import re import os import sys import requests from pytest import raises, mark import pytest import warnings from CommonServerPython import set_to_integration_context_with_retries, xml2json, json2xml, entryTypes, formats, tableToMarkdown, un...
37.732239
1,067
0.581539
3451b8d047429de7c3c8edf4053ac9dfed1df361
3,079
py
Python
demos/streaming_asr_server/websocket_client.py
jerryuhoo/PaddleSpeech
1eec7b5e042da294c7524af92f0fae4c32a71aa3
[ "Apache-2.0" ]
1,379
2021-11-10T02:42:21.000Z
2022-03-31T13:34:25.000Z
demos/streaming_asr_server/websocket_client.py
jerryuhoo/PaddleSpeech
1eec7b5e042da294c7524af92f0fae4c32a71aa3
[ "Apache-2.0" ]
268
2021-11-10T14:07:34.000Z
2022-03-31T02:25:20.000Z
demos/streaming_asr_server/websocket_client.py
jerryuhoo/PaddleSpeech
1eec7b5e042da294c7524af92f0fae4c32a71aa3
[ "Apache-2.0" ]
296
2021-11-15T02:37:11.000Z
2022-03-31T12:14:46.000Z
# Copyright (c) 2022 PaddlePaddle 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 appli...
34.988636
78
0.656057
836d2f40f56d5bee0c4aeefa3ace84c42e3e09cf
333
py
Python
DAQmxConfigTest.py
franciszekjuras/PyDAQmx
8fd3b8f4cfdb1b8082e40b9128edd9963f0f6fc2
[ "BSD-3-Clause" ]
103
2015-01-16T09:26:41.000Z
2022-01-20T16:57:17.000Z
DAQmxConfigTest.py
franciszekjuras/PyDAQmx
8fd3b8f4cfdb1b8082e40b9128edd9963f0f6fc2
[ "BSD-3-Clause" ]
50
2015-01-15T12:52:54.000Z
2021-12-09T13:03:32.000Z
DAQmxConfigTest.py
franciszekjuras/PyDAQmx
8fd3b8f4cfdb1b8082e40b9128edd9963f0f6fc2
[ "BSD-3-Clause" ]
50
2015-02-13T18:06:28.000Z
2022-03-19T15:02:44.000Z
import os # To use non default config parameters or use the PyDAQmx without NIDAQmx isntalled # Example # import DAQmxConfigTest # DAQmxConfigTest.dot_h_file = "..." # optional modification # import PyDAQmx lib_name = None directory = os.path.split(os.path.realpath(__file__))[0] dot_h_file = os.path.join(directory, ...
25.615385
83
0.765766
26b88785a1121602b1707cd5735228b728ca6ca7
642
py
Python
churchill/api/v1/user/urls.py
manti-by/traugott
6ae05a53c14b29a08daa02a8de1624671f8f063a
[ "BSD-3-Clause" ]
null
null
null
churchill/api/v1/user/urls.py
manti-by/traugott
6ae05a53c14b29a08daa02a8de1624671f8f063a
[ "BSD-3-Clause" ]
11
2021-01-11T20:52:04.000Z
2021-05-12T09:12:38.000Z
churchill/api/v1/user/urls.py
manti-by/churchill
6ae05a53c14b29a08daa02a8de1624671f8f063a
[ "BSD-3-Clause" ]
null
null
null
from django.urls import path from churchill.api.v1.user.views import ( RegisterView, LoginView, RegisterVerifyView, ResetPasswordView, ResetPasswordConfirmView, ) app_name = "user" urlpatterns = [ path("register/", RegisterView.as_view(), name="register"), path("register-verify/", Regist...
25.68
83
0.683801
2c89bf72325529fbc6a00f8be4cf12c9a1fd5c9d
645
py
Python
senior_project/personal/urls.py
eigenholser/jobsifit
ae5329864717acf27d657c10029791294abcd9b3
[ "MIT" ]
null
null
null
senior_project/personal/urls.py
eigenholser/jobsifit
ae5329864717acf27d657c10029791294abcd9b3
[ "MIT" ]
null
null
null
senior_project/personal/urls.py
eigenholser/jobsifit
ae5329864717acf27d657c10029791294abcd9b3
[ "MIT" ]
null
null
null
from django.conf.urls import url, include from . import views from django.contrib import admin urlpatterns = [ #url(r'^bfapp/', include('bfapp.urls')), # url(r'^admin/', include(admin.site.urls)), #like its own app url(r'^$', views.index, name='index'), url(r'^contact/', views.contact, name='contact'), ...
37.941176
116
0.657364
1d5090ed242062b81533352a041f512a9646124e
100
py
Python
enthought/mayavi/modules/vector_cut_plane.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/mayavi/modules/vector_cut_plane.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/mayavi/modules/vector_cut_plane.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from __future__ import absolute_import from mayavi.modules.vector_cut_plane import *
25
45
0.85
ccee01ea0abe31c37c6e4f9cb2b8f055645f89df
8,496
py
Python
datasets/casino/casino.py
zidingz/datasets
02edd9ebc79f715adb1c718d1439fda83dc356f1
[ "Apache-2.0" ]
10,608
2020-09-10T15:47:50.000Z
2022-03-31T22:51:47.000Z
datasets/casino/casino.py
zidingz/datasets
02edd9ebc79f715adb1c718d1439fda83dc356f1
[ "Apache-2.0" ]
2,396
2020-09-10T14:55:31.000Z
2022-03-31T19:41:04.000Z
datasets/casino/casino.py
zidingz/datasets
02edd9ebc79f715adb1c718d1439fda83dc356f1
[ "Apache-2.0" ]
1,530
2020-09-10T21:43:10.000Z
2022-03-31T01:59:12.000Z
# coding=utf-8 # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor. # # 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/lice...
44.020725
661
0.471869
e6197efed047ea332a3d052fecc146b10bda2d11
12,265
py
Python
test/opsgenie_swagger/models/v_center_integration.py
Logicworks/opsgenie-python-sdk
244c4c40ddcc25e70df5ba4425ab8d7c8da59c18
[ "Apache-2.0" ]
null
null
null
test/opsgenie_swagger/models/v_center_integration.py
Logicworks/opsgenie-python-sdk
244c4c40ddcc25e70df5ba4425ab8d7c8da59c18
[ "Apache-2.0" ]
null
null
null
test/opsgenie_swagger/models/v_center_integration.py
Logicworks/opsgenie-python-sdk
244c4c40ddcc25e70df5ba4425ab8d7c8da59c18
[ "Apache-2.0" ]
1
2020-11-07T11:27:13.000Z
2020-11-07T11:27:13.000Z
# coding: utf-8 """ OpsGenie REST API OpsGenie OpenAPI Specification # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from opsgenie_swagger.models.integration import Integration # ...
38.569182
265
0.679413
e7194b7aa8564b8244dc18043c28374e5ee06b7e
14,983
py
Python
AppendData.py
BansheeLW/Python
e90798750c92bf7656896f426b49bfd90c1407ea
[ "MIT" ]
null
null
null
AppendData.py
BansheeLW/Python
e90798750c92bf7656896f426b49bfd90c1407ea
[ "MIT" ]
null
null
null
AppendData.py
BansheeLW/Python
e90798750c92bf7656896f426b49bfd90c1407ea
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup import xlwt from xlrd import open_workbook from xlutils.copy import copy # 设置Excel样式 def set_style(name, height, bold=False): style = xlwt.XFStyle() # 初始化样式 font = xlwt.Font() # 为样式创建字体 font.name = name # 'Times New Roman' font.bold = bold fon...
146.892157
10,994
0.890276
70fa22ba2c0da02145058f3796086ae60b56c582
706
py
Python
detect.py
jskrzypek/flask-video-streaming
3c1fdff06f794f80e5d259f15bb6bbf4992e12c2
[ "MIT" ]
null
null
null
detect.py
jskrzypek/flask-video-streaming
3c1fdff06f794f80e5d259f15bb6bbf4992e12c2
[ "MIT" ]
null
null
null
detect.py
jskrzypek/flask-video-streaming
3c1fdff06f794f80e5d259f15bb6bbf4992e12c2
[ "MIT" ]
null
null
null
#import numpy as np import cv2 import os print("Path at terminal when executing this file") print(os.getcwd()) # Load our cascade classifier from cars3.xml car_cascade = cv2.CascadeClassifier(r'classifier/banana_classifier.xml') image = cv2.imread('images/image1.jpg') # Crop so that only the roads remain, eliminati...
27.153846
72
0.725212
eeed068009dbadfe4245fda179368d09693259cf
992
py
Python
testsuite/driver/src/api/mplfe.py
MapleSystem/OpenArkCompiler
fc250857642ca38ac8b83ae7486513fadf3ab742
[ "MulanPSL-1.0" ]
null
null
null
testsuite/driver/src/api/mplfe.py
MapleSystem/OpenArkCompiler
fc250857642ca38ac8b83ae7486513fadf3ab742
[ "MulanPSL-1.0" ]
null
null
null
testsuite/driver/src/api/mplfe.py
MapleSystem/OpenArkCompiler
fc250857642ca38ac8b83ae7486513fadf3ab742
[ "MulanPSL-1.0" ]
null
null
null
# # Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. # # OpenArkCompiler is licensed under Mulan PSL v2. # You can use this software according to the terms and conditions of the Mulan PSL v2. # # http://license.coscl.org.cn/MulanPSL2 # # THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WA...
34.206897
89
0.717742
99b0deef656d5a003ae7337d63824568e0762665
5,970
py
Python
openstates/scrape/schemas/bill.py
csnardi/openstates-core
f08d6365cfefcdc3088a722e36a46b6b0b2e1d9c
[ "MIT" ]
null
null
null
openstates/scrape/schemas/bill.py
csnardi/openstates-core
f08d6365cfefcdc3088a722e36a46b6b0b2e1d9c
[ "MIT" ]
null
null
null
openstates/scrape/schemas/bill.py
csnardi/openstates-core
f08d6365cfefcdc3088a722e36a46b6b0b2e1d9c
[ "MIT" ]
null
null
null
""" Schema for bill objects. """ import copy from .common import sources, extras, fuzzy_date_blank, fuzzy_datetime from ...data import common versions_or_documents = { "items": { "properties": { "note": {"type": "string", "minLength": 1}, "date": fuzzy_date_blank, "c...
35.325444
82
0.358124
bd91044ae9007d44bf0785854fa2575f1ab41592
8,862
py
Python
tests/train/test_classif_mnist.py
crim-ca/thelper
1415144cf70e4492c2ef00f834e2b9a988064a76
[ "Apache-2.0" ]
null
null
null
tests/train/test_classif_mnist.py
crim-ca/thelper
1415144cf70e4492c2ef00f834e2b9a988064a76
[ "Apache-2.0" ]
null
null
null
tests/train/test_classif_mnist.py
crim-ca/thelper
1415144cf70e4492c2ef00f834e2b9a988064a76
[ "Apache-2.0" ]
1
2020-02-17T14:14:46.000Z
2020-02-17T14:14:46.000Z
import copy import os import shutil from typing import Any, Optional # noqa: F401 import numpy as np import pytest import torch import thelper test_save_path = ".pytest_cache" test_classif_mnist_name = "test-classif-mnist" test_classif_mnist_path = os.path.join(test_save_path, test_classif_mnist_name) test_classif...
40.099548
113
0.558903
272d2f742f3047d8e70637c087cafa8274ad7431
350
py
Python
thonny/__main__.py
binbinyouli1314/thonny
895674b800f4fd94189bed6ce0ac23067c0eecfb
[ "MIT" ]
1
2019-02-12T06:10:53.000Z
2019-02-12T06:10:53.000Z
thonny/__main__.py
binbinyouli1314/thonny
895674b800f4fd94189bed6ce0ac23067c0eecfb
[ "MIT" ]
null
null
null
thonny/__main__.py
binbinyouli1314/thonny
895674b800f4fd94189bed6ce0ac23067c0eecfb
[ "MIT" ]
null
null
null
import sys import runpy if sys.executable.endswith("thonny.exe"): # otherwise some library may try to run its subprocess with thonny.exe sys.executable = sys.executable[:-len("thonny.exe")] + "pythonw.exe" from thonny import launch try: runpy.run_module("thonny.customize", run_name="__main__") except Imp...
20.588235
74
0.728571
064f03fee3ed7850909dc928fea06a9bdba71dfe
2,376
py
Python
process_excel.py
Cynthia7979/random-word-list-generator
c976bf8775d38af42cc8ee35060ecd2035ed7083
[ "MIT" ]
null
null
null
process_excel.py
Cynthia7979/random-word-list-generator
c976bf8775d38af42cc8ee35060ecd2035ed7083
[ "MIT" ]
null
null
null
process_excel.py
Cynthia7979/random-word-list-generator
c976bf8775d38af42cc8ee35060ecd2035ed7083
[ "MIT" ]
null
null
null
# Processes formatted excel file into csv. See sources/托福红宝词汇45天突破版.xls import xlrd import csv import argparse import sys, os def main(): words_column = 2 meanings_column = 3 word_list_end_identifier = lambda row, sheet: sheet.cell_value(row, words_column) == '' workbook_path = './托福红宝词汇45天...
43.2
119
0.641414
4f09c0f904fe6cc31a39cf823dd18f18892a7070
192,345
py
Python
mesonbuild/interpreter.py
Hi-Angel/meson
b4347ca4a98b148ba7f7908c3d96f393294df122
[ "Apache-2.0" ]
null
null
null
mesonbuild/interpreter.py
Hi-Angel/meson
b4347ca4a98b148ba7f7908c3d96f393294df122
[ "Apache-2.0" ]
null
null
null
mesonbuild/interpreter.py
Hi-Angel/meson
b4347ca4a98b148ba7f7908c3d96f393294df122
[ "Apache-2.0" ]
null
null
null
# Copyright 2012-2018 The Meson development team # 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...
45.851013
228
0.613273
a2669652042f37d08074ba7c4dae208df0a1a2a3
5,428
py
Python
src/image.py
WenbinFei/revamp
6c6bbba624caf55baf85def4cbfc989344aa3aec
[ "MIT" ]
null
null
null
src/image.py
WenbinFei/revamp
6c6bbba624caf55baf85def4cbfc989344aa3aec
[ "MIT" ]
null
null
null
src/image.py
WenbinFei/revamp
6c6bbba624caf55baf85def4cbfc989344aa3aec
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright (c) 2020, Wenbin Fei, Email: wenbinfei@gmail.com # All rights reserved. """ Have fun with images ==================== """ import logging.config import time import traceback import os import numpy as np import cv2 # Create logger import logger_ini logger = l...
36.186667
109
0.614038
81c11b915bb67f5c73388ce35882d0e1dbdf2392
3,311
py
Python
.history/galleria/settings_20201114121308.py
Nyash-Mauro/galleria
350519827cf86a7af3c334dfedb69c1452e4122a
[ "MIT" ]
null
null
null
.history/galleria/settings_20201114121308.py
Nyash-Mauro/galleria
350519827cf86a7af3c334dfedb69c1452e4122a
[ "MIT" ]
null
null
null
.history/galleria/settings_20201114121308.py
Nyash-Mauro/galleria
350519827cf86a7af3c334dfedb69c1452e4122a
[ "MIT" ]
null
null
null
""" Django settings for galleria project. Generated by 'django-admin startproject' using Django 3.1.3. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathli...
25.274809
91
0.699185
203145c7c1c52cc202731491f2c6b358e8f009e6
1,432
py
Python
ketiga/cileunyi/shp/main.py
alitkurniawan48/BelajarGIS
c52556bc6fa74b849b9c3461410805807b742967
[ "MIT" ]
2
2020-02-09T14:47:07.000Z
2020-02-09T14:47:12.000Z
ketiga/cileunyi/shp/main.py
alitkurniawan48/BelajarGIS
c52556bc6fa74b849b9c3461410805807b742967
[ "MIT" ]
12
2019-12-11T06:45:59.000Z
2020-01-06T09:35:35.000Z
ketiga/cileunyi/shp/main.py
alitkurniawan48/BelajarGIS
c52556bc6fa74b849b9c3461410805807b742967
[ "MIT" ]
71
2019-12-09T13:52:54.000Z
2021-05-28T16:19:09.000Z
import cileunyi cileunyi = cileunyi.Cileunyi() #Harun Ar - Rasyid - 1174027 cileunyi.desaCibiruHilir('Desa Cibiru Hilir') #Harun Ar - Rasyid - 1174027 cileunyi.desaCileunyi('Desa Cileunyi') #Kadek Diva Krishna Murti - 1174006 cileunyi.desaCileunyiWetan('Desa Cileunyi Wetan') #Nico Ekklesia Sembiring - 1174096 cileuny...
37.684211
66
0.817039
8bf716be8df4ec8f523708dfe3a3e897fa7f9dd0
641
py
Python
test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/__init__.py
qwordy/autorest.python
6b12df51c2a39a1285546b5a771b69f5896e794f
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/__init__.py
qwordy/autorest.python
6b12df51c2a39a1285546b5a771b69f5896e794f
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/__init__.py
qwordy/autorest.python
6b12df51c2a39a1285546b5a771b69f5896e794f
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
40.0625
94
0.600624
4ae934af1f521469010b855662591cb7da5a9784
160
py
Python
tests/model_control/detailed/transf_Logit/model_control_one_enabled_Logit_LinearTrend_Seasonal_DayOfMonth_SVR.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/model_control/detailed/transf_Logit/model_control_one_enabled_Logit_LinearTrend_Seasonal_DayOfMonth_SVR.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/model_control/detailed/transf_Logit/model_control_one_enabled_Logit_LinearTrend_Seasonal_DayOfMonth_SVR.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['Logit'] , ['LinearTrend'] , ['Seasonal_DayOfMonth'] , ['SVR'] );
40
87
0.75625
9da14cace2c0a66351ccb4699ee8e62bc4f3a711
325
py
Python
deeppavlov/_meta.py
deepmipt/pilot
67384e1b026ebb8ba6794a05613dd036e86635ec
[ "Apache-2.0" ]
null
null
null
deeppavlov/_meta.py
deepmipt/pilot
67384e1b026ebb8ba6794a05613dd036e86635ec
[ "Apache-2.0" ]
null
null
null
deeppavlov/_meta.py
deepmipt/pilot
67384e1b026ebb8ba6794a05613dd036e86635ec
[ "Apache-2.0" ]
null
null
null
__version__ = '0.17.3' __author__ = 'Neural Networks and Deep Learning lab, MIPT' __description__ = 'An open source library for building end-to-end dialog systems and training chatbots.' __keywords__ = ['NLP', 'NER', 'SQUAD', 'Intents', 'Chatbot'] __license__ = 'Apache License, Version 2.0' __email__ = 'info@deeppavlov...
46.428571
104
0.741538
789131f6cb66fd1536a52290d841d16d51e6fb35
1,280
py
Python
lightautoml/tasks/utils.py
PhySci/LightAutoML
e860991ba36361629fe9e11e034c5e976fe4219b
[ "Apache-2.0" ]
1
2021-10-02T05:28:16.000Z
2021-10-02T05:28:16.000Z
lightautoml/tasks/utils.py
DESimakov/LightAutoML
2eaa05b27c63c613965d50cdb7d52da5d245d9af
[ "Apache-2.0" ]
null
null
null
lightautoml/tasks/utils.py
DESimakov/LightAutoML
2eaa05b27c63c613965d50cdb7d52da5d245d9af
[ "Apache-2.0" ]
null
null
null
""".""" from typing import Callable import numpy as np def infer_gib(metric: Callable) -> bool: """Infer greater is better from metric. Args: metric: Score or loss function. Returns: ```True``` if grater is better. Raises: AssertionError: If there is no way to order the pr...
21.694915
80
0.590625
463ece0f7be59780e121719edd7c6b09d8a810d7
6,639
py
Python
pygks/reg_gng.py
sbxzy/pygks_package
9e2c4910ee0eb83e6fa710f97aa39dde285bc761
[ "BSD-3-Clause" ]
null
null
null
pygks/reg_gng.py
sbxzy/pygks_package
9e2c4910ee0eb83e6fa710f97aa39dde285bc761
[ "BSD-3-Clause" ]
null
null
null
pygks/reg_gng.py
sbxzy/pygks_package
9e2c4910ee0eb83e6fa710f97aa39dde285bc761
[ "BSD-3-Clause" ]
null
null
null
"""GNG regressor""" from . import gng2 from .kde import density from .__gaussian_custom import norm_pdf_multivariate from numpy import array,diag,matrix import time from pygraph.classes.graph import graph from pygraph.algorithms.accessibility import connected_components import itertools from .gks import GKS from copy i...
42.832258
205
0.595421
63826b89c4d07d4a48754b219322427c80da2fe5
430
py
Python
real-world-examples/turtle-examples/square-circle-loop-turtle.py
sumanchary86/learning-python
99ae9c31d62a07d1363b67f22f93173730346d76
[ "MIT" ]
19
2019-08-30T06:51:52.000Z
2022-03-11T18:44:29.000Z
real-world-examples/turtle-examples/square-circle-loop-turtle.py
jassics/learning-python
b8865126e96ae79c45759186573e84d4eb11bde9
[ "MIT" ]
9
2020-02-14T09:21:20.000Z
2022-03-08T09:38:09.000Z
real-world-examples/turtle-examples/square-circle-loop-turtle.py
sumanchary86/learning-python
99ae9c31d62a07d1363b67f22f93173730346d76
[ "MIT" ]
12
2020-07-20T18:49:45.000Z
2021-12-18T11:20:03.000Z
import turtle def draw_square(some_turtle_name): for i in range(1,5): some_turtle_name.forward(100) some_turtle_name.right(90) def draw_art(): window = turtle.Screen() window.bgcolor('red') brad = turtle.Turtle() brad.shape('turtle') brad.color('yellow') brad.speed(2) ...
17.916667
37
0.627907
9629a08d978eae11d011f36573f5fd9244635535
183,901
py
Python
src/azure-cli/azure/cli/command_modules/acs/custom.py
istavrinides/azure-cli
fd310add0dfe78ae568d38ba85748c51fd83556c
[ "MIT" ]
1
2021-05-03T21:33:51.000Z
2021-05-03T21:33:51.000Z
src/azure-cli/azure/cli/command_modules/acs/custom.py
istavrinides/azure-cli
fd310add0dfe78ae568d38ba85748c51fd83556c
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/acs/custom.py
istavrinides/azure-cli
fd310add0dfe78ae568d38ba85748c51fd83556c
[ "MIT" ]
1
2021-03-02T09:26:15.000Z
2021-03-02T09:26:15.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
45.860599
222
0.650339
6fcb4244480f24d2f1e653715e0c74f7642ab8c1
1,159
py
Python
data/p2DJ/New/R2/benchmark/startPyquil189.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/R2/benchmark/startPyquil189.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/R2/benchmark/startPyquil189.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=2 # total number=12 import pyquil from pyquil.api import local_forest_runtime, QVMConnection from pyquil import Program, get_qc from pyquil.gates import * import numpy as np conn = QVMConnection() def make_circuit()-> Program: prog = Program() # circuit begin prog += H(0) # number=1 p...
22.288462
64
0.603969
95a8324d4aa05cf260cdf71829cd9f559f201db5
2,619
py
Python
SarvLibrary/ErrorCorrection/bloocoo/test/bloocootest/libs/TestExec.py
cwright7101/llvm_sarvavid
7567d617a7be78fecfde71ab04ebd8e9506a64e4
[ "MIT" ]
null
null
null
SarvLibrary/ErrorCorrection/bloocoo/test/bloocootest/libs/TestExec.py
cwright7101/llvm_sarvavid
7567d617a7be78fecfde71ab04ebd8e9506a64e4
[ "MIT" ]
null
null
null
SarvLibrary/ErrorCorrection/bloocoo/test/bloocootest/libs/TestExec.py
cwright7101/llvm_sarvavid
7567d617a7be78fecfde71ab04ebd8e9506a64e4
[ "MIT" ]
null
null
null
import os from os import listdir from os.path import exists, isfile, join, basename, splitext, getsize import shutil from math import ceil from TestReadCorrection import * #------------------------------------------------------------- # * setup_test # #Prepare the tests for a new genome #Currently this method: # - d...
34.92
127
0.589156
8b8f948a83bdde3179cb1b92e1ec2d43efd480cc
10,236
py
Python
bootstrap/p1.5.0/src/operations/tenant_validator.py
apurwaj2/df-on-k8s
1aecb0bc293d008c5a2384df32ad434bfcc51caa
[ "Apache-2.0" ]
null
null
null
bootstrap/p1.5.0/src/operations/tenant_validator.py
apurwaj2/df-on-k8s
1aecb0bc293d008c5a2384df32ad434bfcc51caa
[ "Apache-2.0" ]
null
null
null
bootstrap/p1.5.0/src/operations/tenant_validator.py
apurwaj2/df-on-k8s
1aecb0bc293d008c5a2384df32ad434bfcc51caa
[ "Apache-2.0" ]
null
null
null
import os import subprocess import base64 import time from common.mapr_exceptions.ex import NotFoundException from common.mapr_logger.log import Log from common.const import Constants from operations.operationsbase import OperationsBase from operations.yamlfile import YamlFile # Purpose: # functions in this class h...
52.762887
118
0.644295
a7c5bb4f3f5a06488252b6c7ae19b079455557d0
2,492
py
Python
scripts/hiddenapi/signature_patterns.py
t-head-aosp/platform-build-soong
582fc2d1dde6c70687e6a0bea192f2a2ef67bbd5
[ "Apache-2.0" ]
null
null
null
scripts/hiddenapi/signature_patterns.py
t-head-aosp/platform-build-soong
582fc2d1dde6c70687e6a0bea192f2a2ef67bbd5
[ "Apache-2.0" ]
null
null
null
scripts/hiddenapi/signature_patterns.py
t-head-aosp/platform-build-soong
582fc2d1dde6c70687e6a0bea192f2a2ef67bbd5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright (C) 2021 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
37.19403
146
0.713483
5ba66e2cdd66ae27f4d45c3e4665dc515a693dff
715
py
Python
mergify_engine/tests/__init__.py
Madhu-1/mergify-engine
9ca4f4697cc825230b1584f5587f10393cabc971
[ "Apache-2.0" ]
null
null
null
mergify_engine/tests/__init__.py
Madhu-1/mergify-engine
9ca4f4697cc825230b1584f5587f10393cabc971
[ "Apache-2.0" ]
null
null
null
mergify_engine/tests/__init__.py
Madhu-1/mergify-engine
9ca4f4697cc825230b1584f5587f10393cabc971
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- # # Copyright © 2019 Mehdi Abaakouk <sileht@sileht.net> # # 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 # # Unles...
29.791667
75
0.746853
9d188c7738bdd426cadea81ee82b27e3c5f2b676
371
py
Python
openprescribing/frontend/migrations/0008_auto_20161121_1236.py
annapowellsmith/openpresc
cfa9fb07d6fc2ee304159c04fcc132cefcf78745
[ "MIT" ]
91
2015-10-14T09:10:32.000Z
2022-03-10T22:09:21.000Z
openprescribing/frontend/migrations/0008_auto_20161121_1236.py
annapowellsmith/openpresc
cfa9fb07d6fc2ee304159c04fcc132cefcf78745
[ "MIT" ]
1,828
2015-12-04T14:52:27.000Z
2022-03-31T08:51:14.000Z
openprescribing/frontend/migrations/0008_auto_20161121_1236.py
HDRUK/openprescribing
510e8c07e841cd42284c109774d1730b6463f376
[ "MIT" ]
27
2015-12-03T18:26:56.000Z
2021-01-09T21:58:53.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.1 on 2016-11-21 12:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('frontend', '0007_add_cost_per_fields'), ] operations = [ migrations.RemoveField( model_name='prescripti...
18.55
49
0.592992
d55d0b76ae528252498e5b6855900fd8d7f1c19d
875
py
Python
RAT.py
HugoMskn/Telegram-RAT
53989b2509b1c844c6a33f670aece5f8dbf15305
[ "MIT" ]
375
2020-03-17T06:20:50.000Z
2022-03-29T22:27:23.000Z
RAT.py
HugoMskn/Telegram-RAT
53989b2509b1c844c6a33f670aece5f8dbf15305
[ "MIT" ]
44
2020-04-06T22:37:59.000Z
2020-11-15T15:53:39.000Z
RAT.py
HugoMskn/Telegram-RAT
53989b2509b1c844c6a33f670aece5f8dbf15305
[ "MIT" ]
173
2020-04-01T17:17:26.000Z
2022-03-24T13:28:15.000Z
from API import * # Token/ID TelegramToken = 'TOKEN' TelegramChatID = 'ID' # Run the script as administrator AdminRightsRequired = False # Disable Task Manager at first start DisableTaskManager = False # Disable Registry Editor at first start DisableRegistryTools = False # Process protection from ...
23.026316
51
0.740571
da1a5a9cb5d31889229861bd19300a36b4dbc317
1,122
py
Python
datacombine/datacombine/migrations/0004_auto_20170828_0145.py
Crimson-Star-Software/data-combine
3209ae2316afc38417e51c3261494d6e7d2e4e2a
[ "MIT" ]
null
null
null
datacombine/datacombine/migrations/0004_auto_20170828_0145.py
Crimson-Star-Software/data-combine
3209ae2316afc38417e51c3261494d6e7d2e4e2a
[ "MIT" ]
3
2020-02-11T23:14:53.000Z
2021-06-10T18:32:57.000Z
datacombine/datacombine/migrations/0004_auto_20170828_0145.py
Crimson-Star-Software/data-combine
3209ae2316afc38417e51c3261494d6e7d2e4e2a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-08-28 01:45 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('datacombine', '0003_auto_20170826_1452'), ] operations = [ migrations.Alter...
27.365854
63
0.57041
5baecd15c357cc3e7d4057cf878fddcdbf32eb36
2,591
py
Python
rasa/core/channels/callback.py
Tao2301230/rasa_learn
50093cbc696ee72fec81ab69d74a80399c6277ca
[ "Apache-2.0" ]
1
2020-09-23T11:04:38.000Z
2020-09-23T11:04:38.000Z
rasa/core/channels/callback.py
Tao2301230/rasa_learn
50093cbc696ee72fec81ab69d74a80399c6277ca
[ "Apache-2.0" ]
null
null
null
rasa/core/channels/callback.py
Tao2301230/rasa_learn
50093cbc696ee72fec81ab69d74a80399c6277ca
[ "Apache-2.0" ]
null
null
null
import logging from typing import Text, Dict, Optional, Callable, Awaitable, Any from sanic import Blueprint, response from sanic.request import Request from rasa.core.channels.channel import ( CollectingOutputChannel, UserMessage, InputChannel, ) from rasa.core.channels.rest import RestInput from rasa.ut...
34.546667
122
0.702817
30f73567e8bbdd640429b343ab1bd599c603702f
3,058
py
Python
noise_histo.py
mazpar/G305-paper-2
5afcd372de9819fc6a9b816f13c6b14bfc50d3d7
[ "MIT" ]
null
null
null
noise_histo.py
mazpar/G305-paper-2
5afcd372de9819fc6a9b816f13c6b14bfc50d3d7
[ "MIT" ]
null
null
null
noise_histo.py
mazpar/G305-paper-2
5afcd372de9819fc6a9b816f13c6b14bfc50d3d7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Jul 22 12:09:31 2021 Draw histogram of noise distribution in fits map @author: pmazumdar """ from astropy.io import fits import numpy as np import matplotlib.pyplot as plt import aplpy import seaborn as sns import scipy.stats as sst #filepath = "/home...
29.12381
79
0.631785
df304545ff21a101acf704dcc71075628e6c719e
4,646
py
Python
training.py
aprams/small-data-classification
5f6c3042fc792d31756168a2c88251ee6de1d7e0
[ "MIT" ]
1
2018-07-02T20:20:04.000Z
2018-07-02T20:20:04.000Z
training.py
aprams/small-data-classification
5f6c3042fc792d31756168a2c88251ee6de1d7e0
[ "MIT" ]
null
null
null
training.py
aprams/small-data-classification
5f6c3042fc792d31756168a2c88251ee6de1d7e0
[ "MIT" ]
null
null
null
import data_augment import nail_model import argparse import os import glob import numpy as np import keras import json import matplotlib.pyplot as plt import scipy.misc from keras.preprocessing.image import ImageDataGenerator from sklearn.model_selection import train_test_split from keras.applications.mobilenetv2 impo...
39.042017
163
0.716315
e3d2395607346936b80fe9dbecc816288a5db6f5
13,314
py
Python
sites/sandbox/settings.py
Idematica/django-oscar
242a0654210d63ba75f798788916c8b2f7abb7fb
[ "BSD-3-Clause" ]
null
null
null
sites/sandbox/settings.py
Idematica/django-oscar
242a0654210d63ba75f798788916c8b2f7abb7fb
[ "BSD-3-Clause" ]
null
null
null
sites/sandbox/settings.py
Idematica/django-oscar
242a0654210d63ba75f798788916c8b2f7abb7fb
[ "BSD-3-Clause" ]
null
null
null
import os # Path helper PROJECT_DIR = os.path.dirname(__file__) location = lambda x: os.path.join( os.path.dirname(os.path.realpath(__file__)), x) USE_TZ = True DEBUG = True TEMPLATE_DEBUG = True SQL_DEBUG = True SEND_BROKEN_LINK_EMAILS = False ALLOWED_HOSTS = ['latest.oscarcommerce.com', 'sand...
30.054176
83
0.648941
1c2d1fc8a2b5942f018d1861c44ee51d2467d88e
1,886
py
Python
src/extended_webdrivers/frame.py
dillonm197/extended-webdrivers
9cb4cdb75f37c66ee1ac7fa13b947ae3bcb17863
[ "MIT" ]
null
null
null
src/extended_webdrivers/frame.py
dillonm197/extended-webdrivers
9cb4cdb75f37c66ee1ac7fa13b947ae3bcb17863
[ "MIT" ]
null
null
null
src/extended_webdrivers/frame.py
dillonm197/extended-webdrivers
9cb4cdb75f37c66ee1ac7fa13b947ae3bcb17863
[ "MIT" ]
1
2019-08-07T01:48:36.000Z
2019-08-07T01:48:36.000Z
class Frame: """ Base class for handling switching to and from iframes using context managers. """ def __init__(self, child_frame): self.driver = child_frame.parent assert child_frame.tag_name.lower() == 'iframe' self.child_frame = child_frame def _switch_to(self): """ Swit...
35.584906
89
0.662248
5e7ce3dc184cb55630a63d0518ec34c899e72db3
765
py
Python
training_data/parse_data.py
Occupyig-Mars/alter-nlu
d689b0a589216e85f59a0073f8415c5d22b679f8
[ "Apache-2.0" ]
21
2019-02-25T21:47:15.000Z
2019-12-26T08:59:44.000Z
training_data/parse_data.py
Occupyig-Mars/alter-nlu
d689b0a589216e85f59a0073f8415c5d22b679f8
[ "Apache-2.0" ]
null
null
null
training_data/parse_data.py
Occupyig-Mars/alter-nlu
d689b0a589216e85f59a0073f8415c5d22b679f8
[ "Apache-2.0" ]
9
2020-02-26T06:31:31.000Z
2022-01-24T10:22:35.000Z
import pandas as pd # get structured data def get_data(val): botName = val['botName'] entity = pd.io.json.json_normalize(val['entity_data'], record_path='data', meta='name') train = pd.io.json.json_normalize(val['intent_data']).drop(['entities'], axis=1).drop_duplicates() intent_entity = list(set(pd.i...
40.263158
134
0.657516
d3ba290d1e91e7982a52c613557280665ee81de3
1,567
py
Python
examples/split_data_for_unbiased_estimation.py
PGBI/Surprise
76e47037675afc6c0fb017490a88d1b2b2dff0f7
[ "BSD-3-Clause" ]
5,572
2016-11-24T08:21:53.000Z
2022-03-31T20:35:00.000Z
examples/split_data_for_unbiased_estimation.py
daihui-lu/Surprise
46b9914995e6c8c7d227b46f2eaeef2d4600580f
[ "BSD-3-Clause" ]
393
2016-11-22T12:48:00.000Z
2022-03-26T15:09:53.000Z
examples/split_data_for_unbiased_estimation.py
daihui-lu/Surprise
46b9914995e6c8c7d227b46f2eaeef2d4600580f
[ "BSD-3-Clause" ]
1,096
2016-12-08T22:01:57.000Z
2022-03-29T03:55:54.000Z
""" This module descibes how to split a dataset into two parts A and B: A is for tuning the algorithm parameters, and B is for having an unbiased estimation of its performances. The tuning is done by Grid Search. """ from __future__ import (absolute_import, division, print_function, unicode_lit...
29.018519
78
0.749202
6c295380242cd79dd3f66866d3d86b80e81f20cf
2,523
py
Python
tests/integration/enforcementlevel/policy-pack-python/__main__.py
rsclarke-vgw/pulumi-policy
053a5d3608432ff945bafbd7c8d5a8ffde0d3498
[ "Apache-2.0" ]
19
2019-11-23T16:12:20.000Z
2022-01-19T19:34:57.000Z
tests/integration/enforcementlevel/policy-pack-python/__main__.py
rsclarke-vgw/pulumi-policy
053a5d3608432ff945bafbd7c8d5a8ffde0d3498
[ "Apache-2.0" ]
160
2019-08-21T21:40:01.000Z
2022-02-13T10:52:35.000Z
tests/integration/enforcementlevel/policy-pack-python/__main__.py
rsclarke-vgw/pulumi-policy
053a5d3608432ff945bafbd7c8d5a8ffde0d3498
[ "Apache-2.0" ]
5
2019-09-03T17:14:06.000Z
2021-07-13T04:25:05.000Z
# Copyright 2016-2020, Pulumi Corporation. All rights reserved. from typing import List, NamedTuple, Optional from pulumi import Config from pulumi_policy import ( EnforcementLevel, PolicyPack, ResourceValidationPolicy, StackValidationPolicy, ) class Scenario(NamedTuple): pack: Optional[Enforc...
30.39759
109
0.731272
ab9623ddf8cd6b9cfd10039b659a558a409067ba
2,635
py
Python
tests/extmod/vfs_fat_fileio2.py
MakeItZone/circuitpython
7f803c0b51c333210ed267502422ed7bb28b9be7
[ "Unlicense", "BSD-3-Clause", "MIT-0", "MIT" ]
36
2017-05-20T21:11:49.000Z
2022-01-30T18:36:45.000Z
tests/extmod/vfs_fat_fileio2.py
MakeItZone/circuitpython
7f803c0b51c333210ed267502422ed7bb28b9be7
[ "Unlicense", "BSD-3-Clause", "MIT-0", "MIT" ]
6
2018-06-01T15:12:52.000Z
2022-01-11T00:10:28.000Z
tests/extmod/vfs_fat_fileio2.py
MakeItZone/circuitpython
7f803c0b51c333210ed267502422ed7bb28b9be7
[ "Unlicense", "BSD-3-Clause", "MIT-0", "MIT" ]
6
2021-05-12T20:45:46.000Z
2021-12-27T04:51:56.000Z
try: import uerrno import uos except ImportError: print("SKIP") raise SystemExit try: uos.VfsFat except AttributeError: print("SKIP") raise SystemExit class RAMFS: SEC_SIZE = 512 def __init__(self, blocks): self.data = bytearray(blocks * self.SEC_SIZE) def readblock...
22.521368
65
0.614801
7b8c944f1f73294a1464583e8d1285afbc1dbaac
4,043
py
Python
mypy/scope.py
Affirm/mypy
bc0b551d8df2baadc44f0c3b0b801fcc12119658
[ "PSF-2.0" ]
4
2018-10-19T04:36:20.000Z
2020-02-13T16:14:09.000Z
mypy/scope.py
Affirm/mypy
bc0b551d8df2baadc44f0c3b0b801fcc12119658
[ "PSF-2.0" ]
null
null
null
mypy/scope.py
Affirm/mypy
bc0b551d8df2baadc44f0c3b0b801fcc12119658
[ "PSF-2.0" ]
1
2019-02-13T04:45:01.000Z
2019-02-13T04:45:01.000Z
"""Track current scope to easily calculate the corresponding fine-grained target. TODO: Use everywhere where we track targets, including in mypy.errors. """ from contextlib import contextmanager from typing import List, Optional, Iterator, Tuple from mypy.nodes import TypeInfo, FuncBase class Scope: """Track w...
32.869919
89
0.610438
e17aef8c65d113c1e58dfc72460ad4322a264b34
4,324
py
Python
WebRequest/Handlers.py
ImportTaste/WebRequest
0cc385622624de16ec980e0c12d9080d593cab74
[ "WTFPL" ]
8
2018-06-04T09:34:28.000Z
2021-09-16T15:21:24.000Z
WebRequest/Handlers.py
ImportTaste/WebRequest
0cc385622624de16ec980e0c12d9080d593cab74
[ "WTFPL" ]
4
2018-03-03T07:45:27.000Z
2019-12-26T20:38:18.000Z
WebRequest/Handlers.py
ImportTaste/WebRequest
0cc385622624de16ec980e0c12d9080d593cab74
[ "WTFPL" ]
1
2019-12-26T20:36:32.000Z
2019-12-26T20:36:32.000Z
#!/usr/bin/python3 import sys import codecs import http.client import email.parser import urllib.request import urllib.parse import urllib.error import os.path import time import http.cookiejar import traceback import logging import zlib import bs4 import re import string import gzip import io import socket impor...
29.216216
95
0.725717
e4700e15c8c8bb413ed08d0468170cae2f3db626
5,135
py
Python
main.py
ddeeddii/mod-diagnosis-tool
652ec02ebd395387504dd06f8c86ca3a1ef57cdf
[ "MIT" ]
null
null
null
main.py
ddeeddii/mod-diagnosis-tool
652ec02ebd395387504dd06f8c86ca3a1ef57cdf
[ "MIT" ]
null
null
null
main.py
ddeeddii/mod-diagnosis-tool
652ec02ebd395387504dd06f8c86ca3a1ef57cdf
[ "MIT" ]
null
null
null
import tkinter as tk import tkinter.filedialog as fd from xml.dom import minidom import os from math import floor from datetime import datetime # https://stackoverflow.com/questions/287871/how-to-print-colored-text-to-the-terminal class bcolors: HEADER = '\033[95m' OKBLUE = '\033[94m' OKCYAN = '\033[96m' ...
30.02924
140
0.615385
d5eb441d2eaaeccd5e928fa5055d65885b949820
47,887
py
Python
pygemfxns_output.py
Wang518hongyu/PyGEMwangtest
f6ff507681b45599d0ecce5be2e5292e94fd09f7
[ "MIT" ]
null
null
null
pygemfxns_output.py
Wang518hongyu/PyGEMwangtest
f6ff507681b45599d0ecce5be2e5292e94fd09f7
[ "MIT" ]
null
null
null
pygemfxns_output.py
Wang518hongyu/PyGEMwangtest
f6ff507681b45599d0ecce5be2e5292e94fd09f7
[ "MIT" ]
null
null
null
""" Functions that pertain to creating and writing output for the model results.""" # External Libraries import numpy as np import netCDF4 as nc from time import strftime import matplotlib.pyplot as plt # Local Libraries import pygem_input as input def netcdfcreate(filename, main_glac_rgi, main_glac_hyps,...
61.551414
122
0.6654
b791bbc812e882200d65cfc37d7668bef69c2742
4,203
py
Python
online/migrations/0001_initial.py
neosergio/hackatrix-api
27f0180415efa97bd7345d100b314d8807486b67
[ "Apache-2.0" ]
1
2021-02-12T10:25:28.000Z
2021-02-12T10:25:28.000Z
online/migrations/0001_initial.py
neosergio/hackatrix-api
27f0180415efa97bd7345d100b314d8807486b67
[ "Apache-2.0" ]
7
2020-02-21T00:53:38.000Z
2022-02-10T12:22:53.000Z
online/migrations/0001_initial.py
neosergio/hackatrix-api
27f0180415efa97bd7345d100b314d8807486b67
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.10 on 2020-04-28 15:53 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] op...
46.7
161
0.583155
a0e6c5fe18251081a220967a19c7569cd676c1b8
3,397
py
Python
nemo/collections/nlp/data/text_normalization/constants.py
Vishaal-MK/NeMo
e842e2730b02539aba0860d20e7d6771d7dd07d2
[ "Apache-2.0" ]
null
null
null
nemo/collections/nlp/data/text_normalization/constants.py
Vishaal-MK/NeMo
e842e2730b02539aba0860d20e7d6771d7dd07d2
[ "Apache-2.0" ]
null
null
null
nemo/collections/nlp/data/text_normalization/constants.py
Vishaal-MK/NeMo
e842e2730b02539aba0860d20e7d6771d7dd07d2
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021, NVIDIA CORPORATION. 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 appli...
27.617886
133
0.663527
ef5a761a3fa409ad1f4cf5160883d55714198729
1,064
py
Python
scripts/addons/animation_nodes/nodes/matrix/transform_matrix.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
2
2020-04-16T22:12:40.000Z
2022-01-22T17:18:45.000Z
scripts/addons/animation_nodes/nodes/matrix/transform_matrix.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
null
null
null
scripts/addons/animation_nodes/nodes/matrix/transform_matrix.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
2
2019-05-16T04:01:09.000Z
2020-08-25T11:42:26.000Z
import bpy from ... base_types import AnimationNode, VectorizedSocket from . c_utils import multiplyMatrixWithList class TransformMatrixNode(bpy.types.Node, AnimationNode): bl_idname = "an_TransformMatrixNode" bl_label = "Transform Matrix" useMatrixList: VectorizedSocket.newProperty() def create(self...
34.322581
81
0.695489
94130d4cabe324f7da8b263102457c8b4c245b99
339
py
Python
osf/migrations/0099_merge_20180426_0930.py
gaybro8777/osf.io
30408511510a40bc393565817b343ef5fd76ab14
[ "Apache-2.0" ]
628
2015-01-15T04:33:22.000Z
2022-03-30T06:40:10.000Z
osf/migrations/0099_merge_20180426_0930.py
gaybro8777/osf.io
30408511510a40bc393565817b343ef5fd76ab14
[ "Apache-2.0" ]
4,712
2015-01-02T01:41:53.000Z
2022-03-30T14:18:40.000Z
osf/migrations/0099_merge_20180426_0930.py
Johnetordoff/osf.io
de10bf249c46cede04c78f7e6f7e352c69e6e6b5
[ "Apache-2.0" ]
371
2015-01-12T16:14:08.000Z
2022-03-31T18:58:29.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.11 on 2018-04-26 14:30 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('osf', '0098_merge_20180416_1807'), ('osf', '0096_add_provider_doi_prefixes'), ] op...
19.941176
50
0.663717
d2fa0cdff4e905d8ede65c3a590886400be92b88
759
py
Python
usaspending_api/common/zip.py
g4brielvs/usaspending-api
bae7da2c204937ec1cdf75c052405b13145728d5
[ "CC0-1.0" ]
1
2020-08-14T04:14:32.000Z
2020-08-14T04:14:32.000Z
usaspending_api/common/zip.py
g4brielvs/usaspending-api
bae7da2c204937ec1cdf75c052405b13145728d5
[ "CC0-1.0" ]
null
null
null
usaspending_api/common/zip.py
g4brielvs/usaspending-api
bae7da2c204937ec1cdf75c052405b13145728d5
[ "CC0-1.0" ]
null
null
null
from zipfile import ZipFile def extract_single_file_zip(zip_file_path, destination_directory_path): """ Accepts a zip file path and destination directory path then extracts a single file from zip file into the desintation directory. ZIP archive must contain one and only one file. Returns the file pa...
39.947368
100
0.711462
aa42e1d37a97d9b06309b795e6be2fb88203111c
2,221
py
Python
nnrl/nn/init.py
0xangelo/nnrl
559d36b6d17425d9d657c1dffbcf070955f73afb
[ "MIT" ]
null
null
null
nnrl/nn/init.py
0xangelo/nnrl
559d36b6d17425d9d657c1dffbcf070955f73afb
[ "MIT" ]
7
2021-11-01T12:03:41.000Z
2022-01-08T14:55:49.000Z
nnrl/nn/init.py
angelolovatto/nnrl
c925af1c6ecc6e2e999b782935f7e2c7dee1ba81
[ "MIT" ]
null
null
null
"""Utilities for module initialization.""" import functools import inspect from typing import Callable, Optional, Union from torch import Tensor, nn def get_initializer(name: Optional[str]) -> Callable[[Tensor], None]: """Return initializer function given its name. Arguments: name: The initializer f...
29.223684
83
0.649707
05c9f3fb21bb4334040e88b84df62a7aca97026a
1,121
py
Python
blog/code/sl01.py
rodluger/rodluger.github.io
1639d1d299901855a56415cce056b3640093ccb0
[ "MIT" ]
2
2020-06-30T14:32:02.000Z
2021-03-01T07:10:28.000Z
blog/code/sl01.py
rodluger/rodluger.github.io
1639d1d299901855a56415cce056b3640093ccb0
[ "MIT" ]
2
2017-09-07T20:12:55.000Z
2020-09-18T19:03:16.000Z
blog/code/sl01.py
rodluger/rodluger.github.io
1639d1d299901855a56415cce056b3640093ccb0
[ "MIT" ]
4
2018-11-28T12:19:51.000Z
2022-03-08T20:03:43.000Z
import matplotlib.pyplot as plt # True values alpha_true = 2.0 beta_true = 0.33 # Array of alpha values to test alpha_arr = np.linspace(1.5, 2.5, 1000) # Let's simulate 50 different `y` datasets, each with k=1000 points np.random.seed(0) for k in range(50): # Draw our data: this is what we observe y = Beta....
32.028571
79
0.681534
a22039d76982005643bb6c34a53658b65e9595b7
354
py
Python
rllib/agents/dreamer/__init__.py
willfrey/ray
288a81b42ef0186ab4db33b30191614a7bdb69f6
[ "Apache-2.0" ]
1
2019-06-19T02:23:43.000Z
2019-06-19T02:23:43.000Z
rllib/agents/dreamer/__init__.py
willfrey/ray
288a81b42ef0186ab4db33b30191614a7bdb69f6
[ "Apache-2.0" ]
73
2021-09-25T07:11:39.000Z
2022-03-26T07:10:59.000Z
rllib/agents/dreamer/__init__.py
willfrey/ray
288a81b42ef0186ab4db33b30191614a7bdb69f6
[ "Apache-2.0" ]
1
2019-09-24T16:24:49.000Z
2019-09-24T16:24:49.000Z
from ray.rllib.algorithms.dreamer.dreamer import ( DREAMERConfig, DREAMERTrainer, DEFAULT_CONFIG, ) __all__ = [ "DREAMERConfig", "DREAMERTrainer", "DEFAULT_CONFIG", ] from ray.rllib.utils.deprecation import deprecation_warning deprecation_warning( "ray.rllib.agents.dreamer", "ray.rllib.a...
18.631579
75
0.731638
66f169c05924909072ffed20a5a4bb3117615e1a
1,494
py
Python
uavcan_gui_tool/thirdparty/pyqtgraph/widgets/PathButton.py
PonomarevDA/inno_uavcan_VTOL_interface
76bea66096f1eff72ccc8302b15b6844a66edb2d
[ "MIT" ]
null
null
null
uavcan_gui_tool/thirdparty/pyqtgraph/widgets/PathButton.py
PonomarevDA/inno_uavcan_VTOL_interface
76bea66096f1eff72ccc8302b15b6844a66edb2d
[ "MIT" ]
null
null
null
uavcan_gui_tool/thirdparty/pyqtgraph/widgets/PathButton.py
PonomarevDA/inno_uavcan_VTOL_interface
76bea66096f1eff72ccc8302b15b6844a66edb2d
[ "MIT" ]
null
null
null
from .. import functions as fn from ..Qt import QtGui, QtCore __all__ = ['PathButton'] class PathButton(QtGui.QPushButton): """Simple PushButton extension which paints a QPainterPath on its face""" def __init__(self, parent=None, path=None, pen='default', brush=None, size=(30, 30)): QtGui.QPushButton...
31.125
106
0.592369
d219aec9c6c6b46d61cf5c219d90755dd4dae112
386
py
Python
users/migrations/0004_profile_status.py
dizzyplay/djangoboard
99eb7cedca2772d78577974051b78dd522b90bd3
[ "MIT" ]
null
null
null
users/migrations/0004_profile_status.py
dizzyplay/djangoboard
99eb7cedca2772d78577974051b78dd522b90bd3
[ "MIT" ]
6
2020-02-11T23:38:07.000Z
2021-09-08T00:42:36.000Z
users/migrations/0004_profile_status.py
dizzyplay/djangoboard
99eb7cedca2772d78577974051b78dd522b90bd3
[ "MIT" ]
1
2019-03-21T17:43:42.000Z
2019-03-21T17:43:42.000Z
# Generated by Django 2.1.2 on 2018-11-13 14:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0003_auto_20181113_2112'), ] operations = [ migrations.AddField( model_name='profile', name='status', ...
20.315789
53
0.598446
4cd714fe71c8a4a589db895b747713b2d2d444a0
115
py
Python
compressible_sr/problems/__init__.py
zooechiu/pyro2
51874476e9c3c3c412c66850ab819ca70af0b20c
[ "BSD-3-Clause" ]
151
2018-08-14T12:52:22.000Z
2022-03-29T07:57:01.000Z
compressible_sr/problems/__init__.py
gfjykldd/pyro2
b0ca4aa7b1b0f0d445c6a8d0ab63fcc0bc8a431c
[ "BSD-3-Clause" ]
40
2015-03-25T15:45:44.000Z
2018-07-30T18:48:47.000Z
compressible_sr/problems/__init__.py
gfjykldd/pyro2
b0ca4aa7b1b0f0d445c6a8d0ab63fcc0bc8a431c
[ "BSD-3-Clause" ]
56
2018-10-10T16:54:59.000Z
2022-02-06T08:48:52.000Z
__all__ = ['acoustic_pulse', 'advect', 'bubble', 'hse', 'kh', 'logo', 'quad', 'rt', 'rt2', 'sedov', 'sod', 'test']
57.5
114
0.547826
898bbf833b6abc7181ce6173fac8c1816a50d18d
7,696
py
Python
tests/common/checks/test_base_check_registry.py
antonblr/checkov
9415c6593c537945c08f7a19f28bdd8b96966f67
[ "Apache-2.0" ]
3
2021-04-19T17:17:21.000Z
2021-09-06T06:31:09.000Z
tests/common/checks/test_base_check_registry.py
antonblr/checkov
9415c6593c537945c08f7a19f28bdd8b96966f67
[ "Apache-2.0" ]
16
2021-03-09T07:38:38.000Z
2021-06-09T03:53:55.000Z
tests/common/checks/test_base_check_registry.py
antonblr/checkov
9415c6593c537945c08f7a19f28bdd8b96966f67
[ "Apache-2.0" ]
1
2021-03-07T07:23:39.000Z
2021-03-07T07:23:39.000Z
import unittest from checkov.common.checks.base_check import BaseCheck from checkov.common.checks.base_check_registry import BaseCheckRegistry class TestCheck(BaseCheck): def __init__(self, *supported_entities, id="CKV_T_1"): name = "Example check" categories = [] supported_entities = li...
42.755556
104
0.706861
ad1ad77bbbdde292239d8235d09157585fff37b8
1,580
py
Python
SDK/tld-0.7.1/setup.py
Gr1ph00n/staticwebanalyzer
8bf6337a77192b85913d75778830ccbb9006081f
[ "MIT" ]
null
null
null
SDK/tld-0.7.1/setup.py
Gr1ph00n/staticwebanalyzer
8bf6337a77192b85913d75778830ccbb9006081f
[ "MIT" ]
null
null
null
SDK/tld-0.7.1/setup.py
Gr1ph00n/staticwebanalyzer
8bf6337a77192b85913d75778830ccbb9006081f
[ "MIT" ]
null
null
null
import os from setuptools import setup, find_packages try: readme = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() except: readme = '' version = '0.7.1' data_dir = "src/tld/res" data = [os.path.join(data_dir, f) for f in os.listdir(data_dir)] setup( name = 'tld', version = versio...
33.617021
93
0.614557
726f4c856319c949e18456be548d9ffd015cc6a6
7,861
py
Python
problems/euler013.py
branning/euler
b9f53cdca4b246fab45a8ea4a19f432e7f733594
[ "MIT" ]
null
null
null
problems/euler013.py
branning/euler
b9f53cdca4b246fab45a8ea4a19f432e7f733594
[ "MIT" ]
null
null
null
problems/euler013.py
branning/euler
b9f53cdca4b246fab45a8ea4a19f432e7f733594
[ "MIT" ]
null
null
null
#!/usr/bin/env python numbers_str = ["37107287533902102798797998220837590246510135740250", "46376937677490009712648124896970078050417018260538", "74324986199524741059474233309513058123726617309629", "91942213363574161572522430563301811072406154908250", ...
60.007634
75
0.691897
0805d729a4459aaf1a4406e550463a0fea734ab2
2,711
py
Python
preprocessing_tools/smarteye_gaze.py
tkerwin/pydre
a100779801ffdc9855f09328bd28bf79ab6e679b
[ "Apache-2.0" ]
null
null
null
preprocessing_tools/smarteye_gaze.py
tkerwin/pydre
a100779801ffdc9855f09328bd28bf79ab6e679b
[ "Apache-2.0" ]
null
null
null
preprocessing_tools/smarteye_gaze.py
tkerwin/pydre
a100779801ffdc9855f09328bd28bf79ab6e679b
[ "Apache-2.0" ]
null
null
null
import argparse import os import sys import glob import numpy as np import re import pandas from pandas.api.types import CategoricalDtype def summarizeGazeBlock(block, timeColName="VidTime", gazeColName="ESTIMATED_CLOSEST_WORLD_INTERSECTION"): # find the gaze sequence in block, which has a vidTime column and a ...
38.183099
107
0.673552
8b71b0fbe20166a8e0b0be028bffff240e40a3fa
14,371
py
Python
assignments/2020/assignment2_colab/assignment2/cs231n/classifiers/fc_net.py
benkmoore/cs231n.github.io
143e8864aed5ebe6b1ffaa407faf58d60de0adb9
[ "MIT" ]
10
2020-09-14T09:54:05.000Z
2022-02-27T17:46:24.000Z
assignments/2020/assignment2_colab/assignment2/cs231n/classifiers/fc_net.py
benkmoore/cs231n.github.io
143e8864aed5ebe6b1ffaa407faf58d60de0adb9
[ "MIT" ]
32
2020-09-17T19:43:53.000Z
2022-03-12T00:55:26.000Z
assignments/2020/assignment2_colab/assignment2/cs231n/classifiers/fc_net.py
benkmoore/cs231n.github.io
143e8864aed5ebe6b1ffaa407faf58d60de0adb9
[ "MIT" ]
4
2020-11-26T14:59:58.000Z
2022-01-31T08:23:13.000Z
from builtins import range from builtins import object import numpy as np from ..layers import * from ..layer_utils import * class TwoLayerNet(object): """ A two-layer fully-connected neural network with ReLU nonlinearity and softmax loss that uses a modular layer design. We assume an input dimension ...
49.215753
90
0.486953
5addefdd61797b0e9f2765e756ecdfdfee43590c
2,139
py
Python
examples/data_grid.py
edublancas/sklearn-model-evaluation
1f35d5bcc689a5f4d54c14fde60abf09af9fc374
[ "MIT" ]
351
2016-01-27T19:15:27.000Z
2022-03-09T15:40:56.000Z
examples/data_grid.py
edublancas/sklearn-model-evaluation
1f35d5bcc689a5f4d54c14fde60abf09af9fc374
[ "MIT" ]
37
2016-03-16T03:57:59.000Z
2021-06-26T14:02:33.000Z
examples/data_grid.py
edublancas/sklearn-model-evaluation
1f35d5bcc689a5f4d54c14fde60abf09af9fc374
[ "MIT" ]
30
2016-01-27T19:27:08.000Z
2022-03-31T06:09:59.000Z
""" %load_ext autoreload %autoreload 2 """ import matplotlib.pyplot as plt from sklearn_evaluation.plot.matplotlib.bar import bar_groups from sklearn_evaluation.plot.matplotlib.data_grid import DataGrid records = [ { 'a': 1, 'b': 10, 'c': 1, 'data': 0.9 }, { 'a': 1, ...
15.278571
65
0.325386
a47c7a473e57a0037ae0bb3b3aae9e241f9d49e2
475
py
Python
sgce/accounts/models.py
patokrenzok/sgce-1
814b485970290727fee025798e508af107febffb
[ "MIT" ]
1
2020-12-16T17:21:47.000Z
2020-12-16T17:21:47.000Z
sgce/accounts/models.py
FcoGabrielSL/sgce
aba719895c8516bf38342fb8bdeca5c3394ddffd
[ "MIT" ]
null
null
null
sgce/accounts/models.py
FcoGabrielSL/sgce
aba719895c8516bf38342fb8bdeca5c3394ddffd
[ "MIT" ]
1
2020-12-15T16:41:35.000Z
2020-12-15T16:41:35.000Z
from django.db import models from django.conf import settings class Profile(models.Model): user = models.OneToOneField( settings.AUTH_USER_MODEL, verbose_name='usuário', on_delete=models.CASCADE ) phone = models.CharField('telefone', max_length=16, blank=True) class Meta: ...
25
67
0.669474
565982178ecaad14519f3fa956f2d60c846ad876
186
py
Python
wargame/designpatterns/pythonic_dwarfmagiclocket.py
jeantardelli/wargameRepo
1e11ae40281f7eafa65ea6e40e045304b20e3824
[ "MIT" ]
1
2020-12-01T20:30:27.000Z
2020-12-01T20:30:27.000Z
wargame/designpatterns/pythonic_dwarfmagiclocket.py
jeantardelli/wargameRepo
1e11ae40281f7eafa65ea6e40e045304b20e3824
[ "MIT" ]
null
null
null
wargame/designpatterns/pythonic_dwarfmagiclocket.py
jeantardelli/wargameRepo
1e11ae40281f7eafa65ea6e40e045304b20e3824
[ "MIT" ]
null
null
null
"""pythonic_dwarfmagiclocket This module represents a dwarf magic locket object. """ class DwarfMagicLocket: """Represents an accessory for the attack of the orcs game""" pass
20.666667
65
0.747312
c6f1adced9dddff776e216dae8c4363bd7d29d88
3,581
py
Python
robotframework-ls/src/robotframework_debug_adapter/prerun_modifiers.py
mrdimfox/robotframework-lsp
b864e25447d7035b9b8a5d72419e30c5c4510fc6
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
robotframework-ls/src/robotframework_debug_adapter/prerun_modifiers.py
mrdimfox/robotframework-lsp
b864e25447d7035b9b8a5d72419e30c5c4510fc6
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
robotframework-ls/src/robotframework_debug_adapter/prerun_modifiers.py
mrdimfox/robotframework-lsp
b864e25447d7035b9b8a5d72419e30c5c4510fc6
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
from robot.api import SuiteVisitor import os import json from typing import Set, Dict, Optional from robocorp_ls_core.robotframework_log import get_logger log = get_logger(__name__) class FilteringTestsSuiteVisitor(SuiteVisitor): def __init__( self, tests_filtering: Optional[Dict[str, Dict[str, Set[str]...
32.554545
80
0.553756
6b398c7b7bca5ef650b470a8a59fc036b4f4712a
261
py
Python
stubs/ev3_pybricks_v1_0_0/ssl.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
stubs/ev3_pybricks_v1_0_0/ssl.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
stubs/ev3_pybricks_v1_0_0/ssl.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
""" Module: 'ssl' on LEGO EV3 v1.0.0 """ # MCU: sysname=ev3, nodename=ev3, release=('v1.0.0',), version=('0.0.0',), machine=ev3 # Stubber: 1.3.2 - updated from typing import Any CERT_NONE = None _ussl = None sym = "CERT_REQUIRED" def wrap_socket(): pass
17.4
86
0.64751
b248f394c23e130b3dfe5441e8a53e820b64efbc
1,649
py
Python
utils/constants.py
paulaWesselmann/testing_pydial
bf4fd0c99242e49d67895d92c6cfc3dc31084182
[ "Apache-2.0" ]
3
2019-09-27T06:07:12.000Z
2020-01-06T19:00:34.000Z
utils/constants.py
paulaWesselmann/testing_pydial
bf4fd0c99242e49d67895d92c6cfc3dc31084182
[ "Apache-2.0" ]
null
null
null
utils/constants.py
paulaWesselmann/testing_pydial
bf4fd0c99242e49d67895d92c6cfc3dc31084182
[ "Apache-2.0" ]
1
2019-11-27T09:28:10.000Z
2019-11-27T09:28:10.000Z
# copied from Pathak 2017 constants = { 'GAMMA': 0.99, # discount factor for rewards 'LAMBDA': 1.0, # lambda of Generalized Advantage Estimation: https://arxiv.org/abs/1506.02438 'ENTROPY_BETA': 0.0005, # entropy regurarlization constant. ... 0.01 for doom/0.0005 for mario 'ROLLOUT_MAXLEN': 20, # 20 represents the...
65.96
127
0.659794
17809252025934281de61c90488d95525f0f632a
9,308
py
Python
pandas/tests/window/conftest.py
Japanuspus/pandas
e38e987160c792f315685dc74fc1fc33d9389a71
[ "BSD-3-Clause" ]
1
2021-01-06T00:28:03.000Z
2021-01-06T00:28:03.000Z
pandas/tests/window/conftest.py
Japanuspus/pandas
e38e987160c792f315685dc74fc1fc33d9389a71
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/window/conftest.py
Japanuspus/pandas
e38e987160c792f315685dc74fc1fc33d9389a71
[ "BSD-3-Clause" ]
null
null
null
from datetime import datetime, timedelta import numpy as np import pytest import pandas.util._test_decorators as td from pandas import DataFrame, Series, bdate_range, notna @pytest.fixture(params=[True, False]) def raw(request): return request.param @pytest.fixture( params=[ "triang", "bl...
24.559367
87
0.45015
9b3cc1f6523e1a2ab8af6151f8d387ed20705954
11,017
py
Python
services/ingest-file/ingestors/support/cellebrite.py
fastbone/aleph
82fea8b1eba21462b74bdf4dd9eabe0574b234b9
[ "MIT" ]
null
null
null
services/ingest-file/ingestors/support/cellebrite.py
fastbone/aleph
82fea8b1eba21462b74bdf4dd9eabe0574b234b9
[ "MIT" ]
null
null
null
services/ingest-file/ingestors/support/cellebrite.py
fastbone/aleph
82fea8b1eba21462b74bdf4dd9eabe0574b234b9
[ "MIT" ]
null
null
null
import logging import lxml.etree as ET from banal import ensure_list from normality import stringify from ingestors.support.timestamp import TimestampSupport log = logging.getLogger(__name__) OUTGOING = 'Outgoing' class CellebriteSupport(TimestampSupport): NS = "http://pa.cellebrite.com/report/2.0" NSMAP =...
43.374016
115
0.5703
1ca4f0d92fe7d5c6c22af3c59043613851165148
351
py
Python
Python/overload-example.py
saneravi/ML_Stuff
74e1ed7ba9f4dccb555792315a14ba6071150304
[ "MIT" ]
209
2015-01-02T03:47:12.000Z
2022-03-06T16:54:47.000Z
Python/overload-example.py
Kerwin-Xie/algorithms
4347a9b7bf54ef378d16d26ef9e357ddc710664b
[ "MIT" ]
3
2015-12-06T14:40:34.000Z
2021-03-22T17:40:24.000Z
Python/overload-example.py
Kerwin-Xie/algorithms
4347a9b7bf54ef378d16d26ef9e357ddc710664b
[ "MIT" ]
114
2015-01-31T08:37:10.000Z
2022-02-23T04:42:28.000Z
from typing import overload @overload def upcase(s: str) -> str: ... @overload def upcase(s: bytes) -> bytes: ... def upcase(s): if isinstance(s, str): return s.upper() elif isinstance(s, bytes): return bytes(x - 0x20 if 0x61 <= x <= 0x7A else x for x in s) else: raise ...
16.714286
69
0.584046
b674bd6528d39fc2f26844cae88de7b91e1d3ef0
103
py
Python
looking_for_group/world/apps.py
andrlik/looking-for-group
0b1cecb37ef0f6d75692fd188130e2c60d09b7d2
[ "BSD-3-Clause" ]
null
null
null
looking_for_group/world/apps.py
andrlik/looking-for-group
0b1cecb37ef0f6d75692fd188130e2c60d09b7d2
[ "BSD-3-Clause" ]
null
null
null
looking_for_group/world/apps.py
andrlik/looking-for-group
0b1cecb37ef0f6d75692fd188130e2c60d09b7d2
[ "BSD-3-Clause" ]
null
null
null
from django.apps import AppConfig class WorldConfig(AppConfig): name = "looking_for_group.world"
17.166667
36
0.776699
3003f8f00b5829d758ecff0359035a285c42f6a5
11,985
py
Python
components/esptool_py/esptool/ecdsa/six.py
dereklitao/ESP8266_RTOS_SDK
8680849684f17ebc1a71df5be7f9547d9ecbecc5
[ "Apache-2.0" ]
2,701
2015-10-28T08:28:16.000Z
2022-03-31T16:51:13.000Z
components/esptool_py/esptool/ecdsa/six.py
dereklitao/ESP8266_RTOS_SDK
8680849684f17ebc1a71df5be7f9547d9ecbecc5
[ "Apache-2.0" ]
1,136
2015-11-09T02:40:55.000Z
2022-03-30T21:28:00.000Z
components/esptool_py/esptool/ecdsa/six.py
pheki/ESP8266_RTOS_SDK
89a3f254b63819035f65d9c5dcdae8864f1a6a8a
[ "Apache-2.0" ]
1,577
2015-10-27T15:29:27.000Z
2022-03-31T07:11:49.000Z
"""Utilities for writing code that runs on Python 2 and 3""" # Copyright (c) 2010-2012 Benjamin Peterson # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including with...
30.341772
87
0.624698
99aaa0b0fea1e7e1c4d6765a6e6beef6c2929775
9,416
py
Python
tensorflow_tts/utils/korean.py
Joovvhan/TensorFlowTTS
1303ab8db8830afa64af7e9f2e4a038fd52f7355
[ "Apache-2.0" ]
null
null
null
tensorflow_tts/utils/korean.py
Joovvhan/TensorFlowTTS
1303ab8db8830afa64af7e9f2e4a038fd52f7355
[ "Apache-2.0" ]
null
null
null
tensorflow_tts/utils/korean.py
Joovvhan/TensorFlowTTS
1303ab8db8830afa64af7e9f2e4a038fd52f7355
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # Code based on https://github.com/carpedm20/multi-speaker-tacotron-tensorflow import re import os import ast import json from jamo import hangul_to_jamo, h2j, j2h, jamo_to_hcj from .ko_dictionary import english_dictionary, etc_dictionary """ 초성과 종성은 같아보이지만, 다른 character이다. '_-!'(),-....
26.083102
90
0.514019
002d6336d70435ce3f181682a33f626aa6c7772d
56
py
Python
daemons/message/__init__.py
alexdelorenzo/daemons
1fe2c9886f76f51e1e459fe97f2ac360869deb19
[ "Apache-2.0" ]
50
2015-06-18T18:25:27.000Z
2022-02-08T22:29:09.000Z
daemons/message/__init__.py
alexdelorenzo/daemons
1fe2c9886f76f51e1e459fe97f2ac360869deb19
[ "Apache-2.0" ]
9
2015-11-27T14:39:58.000Z
2021-05-21T19:18:16.000Z
daemons/message/__init__.py
alexdelorenzo/daemons
1fe2c9886f76f51e1e459fe97f2ac360869deb19
[ "Apache-2.0" ]
16
2015-10-17T19:10:55.000Z
2021-05-20T05:48:51.000Z
"""Implementations of the message manager interface."""
28
55
0.767857
5ae7f2aadb60e6b18f69fc536e6e77c48f1563a6
34,493
py
Python
dafne/modeling/dafne/dafne_outputs.py
qilei123/DAFNe
6ae6c17ecef6b88e21843969e456fc83b34da0fe
[ "MIT" ]
35
2021-09-14T03:09:34.000Z
2022-03-30T21:29:59.000Z
dafne/modeling/dafne/dafne_outputs.py
qilei123/DAFNe
6ae6c17ecef6b88e21843969e456fc83b34da0fe
[ "MIT" ]
5
2021-11-28T07:49:36.000Z
2022-03-25T10:40:46.000Z
dafne/modeling/dafne/dafne_outputs.py
qilei123/DAFNe
6ae6c17ecef6b88e21843969e456fc83b34da0fe
[ "MIT" ]
10
2021-09-15T12:59:56.000Z
2022-03-30T10:15:33.000Z
import logging import torch import torch.nn.functional as F from fvcore.nn import sigmoid_focal_loss_jit from torch import distributed as dist from torch import nn from detectron2.layers import cat from detectron2.structures import Instances from detectron2.structures.boxes import Boxes from detectron2.utils.comm imp...
37.24946
111
0.578146
eb3df10882b8834c9ebc8627bce6c2adff47c387
9,665
py
Python
pimdm/rwlock/RWLock.py
leoplo/pim_dm
e097fb8e247b14f142b6aa97d8ee34440aeba806
[ "MIT" ]
6
2020-02-04T20:59:59.000Z
2021-11-24T09:56:07.000Z
pimdm/rwlock/RWLock.py
leoplo/pim_dm
e097fb8e247b14f142b6aa97d8ee34440aeba806
[ "MIT" ]
4
2020-04-10T14:51:39.000Z
2022-02-14T00:59:21.000Z
pimdm/rwlock/RWLock.py
leoplo/pim_dm
e097fb8e247b14f142b6aa97d8ee34440aeba806
[ "MIT" ]
3
2020-08-13T17:56:35.000Z
2021-11-24T11:03:12.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Read Write Lock """ import threading import time class RWLockRead(object): """ A Read/Write lock giving preference to Reader """ def __init__(self): self.V_ReadCount = 0 self.A_Resource = threading.Lock() self.A_LockReadCount = threading.Lock() class _aRe...
36.198502
133
0.720848
48bf7dec1a9ee833e16512885e02cea51f8dd891
172
py
Python
AtCoder/ABC/000-159/ABC135_B.py
sireline/PyCode
8578467710c3c1faa89499f5d732507f5d9a584c
[ "MIT" ]
null
null
null
AtCoder/ABC/000-159/ABC135_B.py
sireline/PyCode
8578467710c3c1faa89499f5d732507f5d9a584c
[ "MIT" ]
null
null
null
AtCoder/ABC/000-159/ABC135_B.py
sireline/PyCode
8578467710c3c1faa89499f5d732507f5d9a584c
[ "MIT" ]
null
null
null
N = int(input()) P = [int(n) for n in input().split()] X = [n for n in range(1, N+1)] ans = sum([0 if p==x else 1 for p,x in zip(P, X)]) print('YES' if ans <= 2 else 'NO')
28.666667
50
0.546512
8bcdaa745ff3b0c1886791f4fe795e270a4e85c7
96
py
Python
venv/lib/python3.8/site-packages/poetry/console/logging/io_formatter.py
Retraces/UkraineBot
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/poetry/console/logging/io_formatter.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/poetry/console/logging/io_formatter.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/6d/22/53/c55351916bc6e330317cf82fa911c4318c64258321ebbccd05d85f5c26
96
96
0.895833
dab4b043f209fe9a3a7aed1c8587d39d176641b7
1,887
py
Python
redbot/syntax/rfc7234.py
Malvoz/redbot
0edef8d4efefddde49d36cd97e471fc187837169
[ "MIT" ]
167
2015-01-07T16:34:56.000Z
2022-02-20T15:20:06.000Z
redbot/syntax/rfc7234.py
Malvoz/redbot
0edef8d4efefddde49d36cd97e471fc187837169
[ "MIT" ]
180
2015-02-01T01:37:53.000Z
2022-02-17T04:32:01.000Z
redbot/syntax/rfc7234.py
Malvoz/redbot
0edef8d4efefddde49d36cd97e471fc187837169
[ "MIT" ]
32
2015-05-20T21:00:13.000Z
2022-02-16T10:14:15.000Z
# pylint: disable=line-too-long, unused-import """ Regex for RFC7234 These regex are directly derived from the collected ABNF in RFC7234. <http://httpwg.org/specs/rfc7234.html#collected.abnf> They should be processed with re.VERBOSE. """ from .rfc3986 import port, host as uri_host from .rfc5234 import DIGIT, DQU...
23.012195
103
0.665077
91d05572d93d3711fdaf1f014ff4e4c4739f0d19
2,962
py
Python
vega/networks/pytorch/losses/sum_loss.py
jie311/vega
1bba6100ead802697e691403b951e6652a99ccae
[ "MIT" ]
724
2020-06-22T12:05:30.000Z
2022-03-31T07:10:54.000Z
vega/networks/pytorch/losses/sum_loss.py
jie311/vega
1bba6100ead802697e691403b951e6652a99ccae
[ "MIT" ]
147
2020-06-30T13:34:46.000Z
2022-03-29T11:30:17.000Z
vega/networks/pytorch/losses/sum_loss.py
jie311/vega
1bba6100ead802697e691403b951e6652a99ccae
[ "MIT" ]
160
2020-06-29T18:27:58.000Z
2022-03-23T08:42:21.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # This program is free software; you can redistribute it and/or modify # it under the terms of the MIT License. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the...
35.686747
116
0.618501
eee0da47127801d1004a8e8f8752711f7492fb55
512
py
Python
quick_time/time.py
keegang6705/instant-time
56fbd61ccd01ddebfb545289adb1b7dc4e52ae6f
[ "MIT" ]
null
null
null
quick_time/time.py
keegang6705/instant-time
56fbd61ccd01ddebfb545289adb1b7dc4e52ae6f
[ "MIT" ]
null
null
null
quick_time/time.py
keegang6705/instant-time
56fbd61ccd01ddebfb545289adb1b7dc4e52ae6f
[ "MIT" ]
null
null
null
import time from datetime import datetime import pytz def timestamp(timezone: pytz.timezone,integer: bool =False): tme = datetime.now(pytz.timezone(f"{timezone}")) tmstamp = datetime.timestamp(tme) if integer == True: return int(tmstamp) elif integer == False: return tmstamp ...
32
61
0.634766
32d50f1134f355d05c8ff793ff37bc03f44053b2
7,859
py
Python
netapp/santricity/models/v2/storage_pool_create_request.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
5
2016-08-23T17:52:22.000Z
2019-05-16T08:45:30.000Z
netapp/santricity/models/v2/storage_pool_create_request.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
2
2016-11-10T05:30:21.000Z
2019-04-05T15:03:37.000Z
netapp/santricity/models/v2/storage_pool_create_request.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
7
2016-08-25T16:11:44.000Z
2021-02-22T05:31:25.000Z
# coding: utf-8 """ StoragePoolCreateRequest.py The Clear BSD License Copyright (c) – 2016, NetApp, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions ...
37.42381
844
0.640158