hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a18882ed88b15ef488e2549495977d526ab9588
2,195
py
Python
aliyun-python-sdk-ccc/aliyunsdkccc/request/v20170705/ListAgentEventsRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-ccc/aliyunsdkccc/request/v20170705/ListAgentEventsRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-ccc/aliyunsdkccc/request/v20170705/ListAgentEventsRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
33.769231
74
0.740319
4a188903ce39a19145a3d803a250acdd5583c378
423
py
Python
apps/fithm-service/libs/depends/register.py
sergio1221/flask-backend
11a9e0db5b5e664fcc820919d97039738176ac62
[ "BSD-3-Clause" ]
3
2022-03-04T03:05:55.000Z
2022-03-04T09:02:32.000Z
apps/fithm-service/libs/depends/register.py
sergio1221/flask-backend
11a9e0db5b5e664fcc820919d97039738176ac62
[ "BSD-3-Clause" ]
null
null
null
apps/fithm-service/libs/depends/register.py
sergio1221/flask-backend
11a9e0db5b5e664fcc820919d97039738176ac62
[ "BSD-3-Clause" ]
null
null
null
from libs.quovo.base import QuovoRequest from .entry import DIEntry, container def register_all(): '''Register all DI entries''' register_admin_entries() register_helpers() def register_admin_entries(): pass def register_helpers(): def quovo_request_create(): re...
16.269231
43
0.659574
4a188a4cb2cb69cd0df134eb851677207baed735
3,500
py
Python
aliyun-python-sdk-emr/aliyunsdkemr/request/v20160408/ModifyClusterServiceConfigRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-emr/aliyunsdkemr/request/v20160408/ModifyClusterServiceConfigRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-emr/aliyunsdkemr/request/v20160408/ModifyClusterServiceConfigRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35
100
0.773143
4a188b12918e6b0e9f8e6f9cc1f7a056cc5daf48
42
py
Python
pymkup/__init__.py
psolin/pymkup
5f2e5787f3150e10b9c6391c805b02be7496cdc1
[ "MIT" ]
7
2021-04-17T11:35:00.000Z
2021-12-30T04:05:27.000Z
pymkup/__init__.py
psolin/pymkup
5f2e5787f3150e10b9c6391c805b02be7496cdc1
[ "MIT" ]
23
2021-04-15T18:01:44.000Z
2021-05-21T15:58:59.000Z
pymkup/__init__.py
psolin/pymkup
5f2e5787f3150e10b9c6391c805b02be7496cdc1
[ "MIT" ]
2
2021-04-20T18:09:46.000Z
2021-04-24T13:04:04.000Z
from .pymkup import * __version__ = '0.1'
14
21
0.690476
4a188c0342bb9916a6347c85d5a2c3f8cfa222f8
3,210
py
Python
app/sftp/ftp_client.py
alphagov/notifications-ftp
a3e2365e1bf31d540361cb40d60faa34414b10ab
[ "MIT" ]
1
2018-01-08T03:07:42.000Z
2018-01-08T03:07:42.000Z
app/sftp/ftp_client.py
alphagov/notifications-ftp
a3e2365e1bf31d540361cb40d60faa34414b10ab
[ "MIT" ]
182
2018-01-08T01:59:04.000Z
2022-03-11T15:47:57.000Z
app/sftp/ftp_client.py
alphagov/notifications-ftp
a3e2365e1bf31d540361cb40d60faa34414b10ab
[ "MIT" ]
3
2018-01-08T01:54:41.000Z
2021-04-10T19:10:29.000Z
from contextlib import contextmanager import pysftp from flask import current_app from monotonic import monotonic NOTIFY_SUBFOLDER = 'notify' class FtpException(Exception): pass class FtpClient(): def init_app(self, app): self.host = app.config.get('FTP_HOST') self.username = app.config.ge...
36.067416
117
0.655452
4a188c266151a72f110ca85b106ae3097c4725c5
889
py
Python
tools/migrations/0020_auto_20180206_1419.py
moonbirddk/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
2
2016-09-02T12:45:31.000Z
2018-02-10T10:18:11.000Z
tools/migrations/0020_auto_20180206_1419.py
Socialsquare/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
17
2020-03-24T15:58:05.000Z
2022-02-10T08:08:57.000Z
tools/migrations/0020_auto_20180206_1419.py
moonbirddk/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
1
2018-01-05T08:02:18.000Z
2018-01-05T08:02:18.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.8 on 2018-02-06 14:19 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 = [ ('tools', '0019_auto_2018020...
31.75
184
0.664792
4a188c64bdfbd75470ddc88838e3e7e35d6a3e68
236
py
Python
sawyer/ros/envs/sawyer/__init__.py
taohnouaccountb/gym-sawyer
e1b7259dcb21216f760bca05d87467d8df003d44
[ "MIT" ]
35
2018-10-29T07:19:34.000Z
2021-02-05T16:24:00.000Z
sawyer/ros/envs/sawyer/__init__.py
taohnouaccountb/gym-sawyer
e1b7259dcb21216f760bca05d87467d8df003d44
[ "MIT" ]
21
2018-10-24T05:51:35.000Z
2020-09-11T10:40:31.000Z
sawyer/ros/envs/sawyer/__init__.py
taohnouaccountb/gym-sawyer
e1b7259dcb21216f760bca05d87467d8df003d44
[ "MIT" ]
9
2018-11-12T14:28:59.000Z
2020-04-13T12:49:21.000Z
from sawyer.ros.envs.sawyer.pick_and_place_env import PickAndPlaceEnv from sawyer.ros.envs.sawyer.push_env import PushEnv from sawyer.ros.envs.sawyer.reacher_env import ReacherEnv __all__ = ["PickAndPlaceEnv", "PushEnv", "ReacherEnv"]
39.333333
69
0.826271
4a188d36e2a73d58f462e1a52d2518b3fdf84a8d
2,013
py
Python
timesketch/lib/analyzers/gcp_servicekey.py
wajihyassine/timesketch
b099d1afb33d0b9f906a0ad407979c8f22a54476
[ "Apache-2.0" ]
1,810
2015-01-03T22:34:45.000Z
2022-03-30T10:23:18.000Z
timesketch/lib/analyzers/gcp_servicekey.py
wajihyassine/timesketch
b099d1afb33d0b9f906a0ad407979c8f22a54476
[ "Apache-2.0" ]
1,291
2015-01-08T00:00:12.000Z
2022-03-29T03:26:58.000Z
timesketch/lib/analyzers/gcp_servicekey.py
wajihyassine/timesketch
b099d1afb33d0b9f906a0ad407979c8f22a54476
[ "Apache-2.0" ]
519
2015-01-20T09:26:06.000Z
2022-03-29T11:02:10.000Z
"""Sketch analyzer plugin for GCP Service Key usage.""" from __future__ import unicode_literals from timesketch.lib.analyzers import interface from timesketch.lib.analyzers import manager class GcpServiceKeySketchPlugin(interface.BaseAnalyzer): """Analyzer for GCP Service Key usage.""" NAME = 'gcp_serviceke...
32.467742
77
0.639344
4a188e09fcbdc83871c91e2f96b6401db7927b13
6,557
py
Python
lib/rucio/client/accountlimitclient.py
lgoossen/rucio
12c42ad15e55ed30a5fd6ddf90526e657827740c
[ "Apache-2.0" ]
null
null
null
lib/rucio/client/accountlimitclient.py
lgoossen/rucio
12c42ad15e55ed30a5fd6ddf90526e657827740c
[ "Apache-2.0" ]
null
null
null
lib/rucio/client/accountlimitclient.py
lgoossen/rucio
12c42ad15e55ed30a5fd6ddf90526e657827740c
[ "Apache-2.0" ]
1
2020-01-30T11:03:53.000Z
2020-01-30T11:03:53.000Z
# Copyright 2014-2018 CERN for the benefit of the ATLAS collaboration. # # 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...
39.263473
112
0.649687
4a188e187f14e6d102b3a9a7a29b8effec070ab7
316
py
Python
tests/conftest.py
mariomoore/paperace
a120560bfc5bf321a5e878ef20db271a77ce400d
[ "MIT" ]
null
null
null
tests/conftest.py
mariomoore/paperace
a120560bfc5bf321a5e878ef20db271a77ce400d
[ "MIT" ]
null
null
null
tests/conftest.py
mariomoore/paperace
a120560bfc5bf321a5e878ef20db271a77ce400d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Dummy conftest.py for paperace. If you don't know what this is for, just leave it empty. Read more about conftest.py under: https://pytest.org/latest/plugins.html """ from __future__ import print_function, absolute_import, division # import pytest
24.307692
64
0.699367
4a188e4782729f5ca5c97ad7c393672804bd7624
3,234
py
Python
profiles_project/settings.py
sumaiyamulla786/profiles-rest-api
8b65992ad3dd008defca68ee930ae9ed3fc45d2c
[ "MIT" ]
null
null
null
profiles_project/settings.py
sumaiyamulla786/profiles-rest-api
8b65992ad3dd008defca68ee930ae9ed3fc45d2c
[ "MIT" ]
null
null
null
profiles_project/settings.py
sumaiyamulla786/profiles-rest-api
8b65992ad3dd008defca68ee930ae9ed3fc45d2c
[ "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.872
91
0.698207
4a188edced93db6cf515eff90ce5ec876340a0e4
34,628
py
Python
sdk/python/pulumi_azure/eventhub/event_grid_topic.py
aangelisc/pulumi-azure
71dd9c75403146e16f7480e5a60b08bc0329660e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/eventhub/event_grid_topic.py
aangelisc/pulumi-azure
71dd9c75403146e16f7480e5a60b08bc0329660e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/eventhub/event_grid_topic.py
aangelisc/pulumi-azure
71dd9c75403146e16f7480e5a60b08bc0329660e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
51.916042
294
0.692705
4a188fc5e3ef7ae9d8ca69c2affdf7259e61127e
439
py
Python
clerk/management/commands/clerk_worker.py
mingaleg/yakubovich
95398c78eaffbd6ff69f8fdbedfc847531219d8a
[ "MIT" ]
5
2018-12-12T16:24:42.000Z
2020-02-29T18:45:30.000Z
clerk/management/commands/clerk_worker.py
mingaleg/yakubovich
95398c78eaffbd6ff69f8fdbedfc847531219d8a
[ "MIT" ]
3
2020-06-05T17:47:13.000Z
2022-02-11T03:39:54.000Z
clerk/management/commands/clerk_worker.py
mingaleg/yakubovich
95398c78eaffbd6ff69f8fdbedfc847531219d8a
[ "MIT" ]
null
null
null
from time import sleep from django.core.management.base import BaseCommand, CommandError from ...models import Contest class Command(BaseCommand): help = 'Runs clerk routine' def handle(self, *args, **options): try: while True: for contest in Contest.objects.all(): ...
25.823529
65
0.605923
4a18900fa4ad449c23a5ffe0427f257099441318
4,640
py
Python
tyrannosaurus/parser.py
oehs7/tyrannosaurus
70a650f194bc8f2bd178b76c0256c34645ebfe8e
[ "Apache-2.0" ]
63
2020-05-06T21:48:01.000Z
2022-03-24T21:10:20.000Z
tyrannosaurus/parser.py
dmyersturnbull/tyrannosaurus
a369dafc45963e8cb2db2f12e7747191043eac30
[ "Apache-2.0" ]
119
2020-05-07T23:07:24.000Z
2022-03-28T18:04:52.000Z
tyrannosaurus/parser.py
oehs7/tyrannosaurus
70a650f194bc8f2bd178b76c0256c34645ebfe8e
[ "Apache-2.0" ]
6
2020-05-16T05:36:47.000Z
2022-02-24T13:47:23.000Z
""" Parsing of various files. Original source: https://github.com/dmyersturnbull/tyrannosaurus Copyright 2020–2021 Douglas Myers-Turnbull 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....
38.991597
92
0.575431
4a189027d916d993bf0de1946da105435c7affd6
4,831
py
Python
test/functional/rpc_deprecated.py
cibadmin/GLBTC
52a0c8bfcb7abce8f97412dd1fd817335657896b
[ "MIT" ]
null
null
null
test/functional/rpc_deprecated.py
cibadmin/GLBTC
52a0c8bfcb7abce8f97412dd1fd817335657896b
[ "MIT" ]
null
null
null
test/functional/rpc_deprecated.py
cibadmin/GLBTC
52a0c8bfcb7abce8f97412dd1fd817335657896b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test deprecation of RPC calls.""" from test_framework.test_framework import GlobalBitcoinTestFramework ...
43.133929
137
0.677292
4a1890a20235727b49650dd84c9a82d5db9ec286
6,368
py
Python
stuff/cron/update_user_rank.py
categulario/omegaup
bfe32b9b4f58743d941f13ea707279885a30567f
[ "BSD-3-Clause" ]
1
2018-08-28T22:34:29.000Z
2018-08-28T22:34:29.000Z
stuff/cron/update_user_rank.py
categulario/omegaup
bfe32b9b4f58743d941f13ea707279885a30567f
[ "BSD-3-Clause" ]
null
null
null
stuff/cron/update_user_rank.py
categulario/omegaup
bfe32b9b4f58743d941f13ea707279885a30567f
[ "BSD-3-Clause" ]
1
2018-08-28T22:34:31.000Z
2018-08-28T22:34:31.000Z
#!/usr/bin/python3 '''Updates the user ranking.''' import argparse import collections import configparser import getpass import logging import os import MySQLdb Cutoff = collections.namedtuple('Cutoff', ['percentile', 'classname']) def update_user_rank(cur): '''Updates the user ranking.''' cur.execute('...
32.824742
79
0.549152
4a1890af83bf2dc6395fd9ebe6b3903561bdca30
3,966
py
Python
cea/analysis/uncertainty/Individual_Evaluation.py
pajotca/CityEnergyAnalyst
f3d0a08f7b5f5967961bf831625544a95c7702f0
[ "MIT" ]
null
null
null
cea/analysis/uncertainty/Individual_Evaluation.py
pajotca/CityEnergyAnalyst
f3d0a08f7b5f5967961bf831625544a95c7702f0
[ "MIT" ]
null
null
null
cea/analysis/uncertainty/Individual_Evaluation.py
pajotca/CityEnergyAnalyst
f3d0a08f7b5f5967961bf831625544a95c7702f0
[ "MIT" ]
null
null
null
""" This file helps in evaluating individual generation. This will be useful when you need to change the global variables and see how the objective function value changes. Do ensure you have the uncertainty.csv which will be obtained by running uncertainty_parameters.py This is part of the uncertainty analysis """ fr...
40.469388
118
0.669692
4a1890c8baff409fea52bb01c421d58b6f4ec95b
73
py
Python
example_minimal.py
fmasdev1/stackoverflow_tag_cloud
ab02d0adfa643c84025e98f7251dd587b5aec1df
[ "MIT" ]
22
2016-01-12T15:36:28.000Z
2020-06-24T22:45:43.000Z
example_minimal.py
fmasdev1/stackoverflow_tag_cloud
ab02d0adfa643c84025e98f7251dd587b5aec1df
[ "MIT" ]
2
2019-06-05T08:05:11.000Z
2021-11-03T11:29:22.000Z
example_minimal.py
fmasdev1/stackoverflow_tag_cloud
ab02d0adfa643c84025e98f7251dd587b5aec1df
[ "MIT" ]
12
2017-10-13T10:41:23.000Z
2022-01-03T19:48:24.000Z
from stackoverflow_users_taginfo import tag_cloud tag_cloud(link=22656)
18.25
49
0.876712
4a18922d4f361bb7c09afaa33536dedc96f3584a
141
py
Python
crm_th/clievents/views.py
covrom/django_sample
f659588373fe8c95939b3ef14d2733d6b95384ba
[ "MIT" ]
null
null
null
crm_th/clievents/views.py
covrom/django_sample
f659588373fe8c95939b3ef14d2733d6b95384ba
[ "MIT" ]
null
null
null
crm_th/clievents/views.py
covrom/django_sample
f659588373fe8c95939b3ef14d2733d6b95384ba
[ "MIT" ]
null
null
null
from material.frontend.views import ModelViewSet from . import models class SpectacleViewSet(ModelViewSet): model = models.Spectacle
15.666667
48
0.794326
4a189267ed368b204e6bf0a6d2f74c812549ec0b
11,154
py
Python
lib/third_party/GitPython/git/test/test_git.py
magnetic-lab/tdgg
3a80ed82f4b6d1cd2e7a127e079a27141b2e0422
[ "MIT" ]
5
2019-08-14T07:24:10.000Z
2020-04-15T11:47:48.000Z
lib/third_party/GitPython/git/test/test_git.py
magnetic-lab/tdgg
3a80ed82f4b6d1cd2e7a127e079a27141b2e0422
[ "MIT" ]
null
null
null
lib/third_party/GitPython/git/test/test_git.py
magnetic-lab/tdgg
3a80ed82f4b6d1cd2e7a127e079a27141b2e0422
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # test_git.py # Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors # # This module is part of GitPython and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php import os import subprocess import sys from tempfile import TemporaryFile f...
37.555556
104
0.630536
4a18928192864cdeef25d0259df90af1834eee65
1,677
py
Python
setup.py
autorope/donkeybarn
f7e985e850dea3c2a4352e00cb6337a9ab357113
[ "MIT" ]
4
2019-01-05T04:43:04.000Z
2021-04-05T11:54:20.000Z
setup.py
autorope/donkeybarn
f7e985e850dea3c2a4352e00cb6337a9ab357113
[ "MIT" ]
null
null
null
setup.py
autorope/donkeybarn
f7e985e850dea3c2a4352e00cb6337a9ab357113
[ "MIT" ]
2
2019-01-05T04:43:05.000Z
2019-11-08T02:17:29.000Z
from setuptools import setup, find_packages import os with open("README.md", "r") as fh: long_description = fh.read() setup(name='donkeybarn', version='0.0.1', description='Functions to train advanced donkeycar autopilots.', long_description=long_description, long_description_content_ty...
30.490909
79
0.550388
4a1894ab2bfdc37571341674a81610217efafdcf
3,499
py
Python
Source/Utilities/Collection.py
Dmunch04/SquareIt
0379b208afa397b349c119f15e2611ec93f3bedb
[ "MIT" ]
1
2019-07-01T10:07:30.000Z
2019-07-01T10:07:30.000Z
Source/Utilities/Collection.py
Dmunch04/SquareIt
0379b208afa397b349c119f15e2611ec93f3bedb
[ "MIT" ]
null
null
null
Source/Utilities/Collection.py
Dmunch04/SquareIt
0379b208afa397b349c119f15e2611ec93f3bedb
[ "MIT" ]
null
null
null
from DavesLogger import Logs class Collection (dict): __slots__ = ( 'Instance', 'Index' ) def __init__ (self, Instance = dict, Indexor = 'ID'): dict.__init__ (self) self.Instance = Instance self.Index = Indexor def __add__ (self, _Value): """ Adds supp...
28.917355
83
0.573307
4a18950feb0906748d9b4bcbf52153c572f6c01f
130
py
Python
test/py/largrid-tests.py
cvdlab/lar-cc
7092965acf7c0c78a5fab4348cf2c2aa01c4b130
[ "MIT", "Unlicense" ]
1
2016-09-20T04:48:12.000Z
2016-09-20T04:48:12.000Z
test/py/largrid-tests.py
Ahdhn/lar-cc
7092965acf7c0c78a5fab4348cf2c2aa01c4b130
[ "MIT", "Unlicense" ]
1
2018-02-20T21:57:07.000Z
2018-02-21T07:18:11.000Z
test/py/largrid-tests.py
Ahdhn/lar-cc
7092965acf7c0c78a5fab4348cf2c2aa01c4b130
[ "MIT", "Unlicense" ]
7
2016-11-04T10:47:42.000Z
2018-04-10T17:32:50.000Z
import os def createDir(dirpath): if not os.path.exists(dirpath): os.makedirs(dirpath) createDir('test/py/largrid/')
18.571429
35
0.692308
4a18958d76f5163a2f72010050914318d882acb0
360
py
Python
r2dbg/__init__.py
Enigmatrix/pwntools-dbg-r2
042cfb34c1e6eeacf130052722cd95b8c68280de
[ "MIT" ]
2
2020-03-05T23:41:47.000Z
2020-04-16T09:31:25.000Z
r2dbg/__init__.py
Enigmatrix/pwntools-dbg-r2
042cfb34c1e6eeacf130052722cd95b8c68280de
[ "MIT" ]
null
null
null
r2dbg/__init__.py
Enigmatrix/pwntools-dbg-r2
042cfb34c1e6eeacf130052722cd95b8c68280de
[ "MIT" ]
1
2020-04-16T09:31:38.000Z
2020-04-16T09:31:38.000Z
from pwn import * def r2dbg(args, r2script=None, r2port=None, exe=None, ssh=None, env=None, sysroot=None, **kwargs): gdbscript = "" if r2port: gdbscript += "#>port="+str(r2port)+"\n" if r2script: gdbscript += '\n'.join("#r2"+c for c in r2script.split('\n')) return gdb.debug(args, gdbscr...
32.727273
98
0.613889
4a1895b2973511754fbe196c48a63cc18fa48a84
45,310
py
Python
MapasDeCampos_by_hidromod/src/ModuloGeneralReadOptions.py
RBCanelas/MOHID_python_tools
debddbba4fed0e1eae042eedc1554094bb78a63d
[ "MIT" ]
null
null
null
MapasDeCampos_by_hidromod/src/ModuloGeneralReadOptions.py
RBCanelas/MOHID_python_tools
debddbba4fed0e1eae042eedc1554094bb78a63d
[ "MIT" ]
null
null
null
MapasDeCampos_by_hidromod/src/ModuloGeneralReadOptions.py
RBCanelas/MOHID_python_tools
debddbba4fed0e1eae042eedc1554094bb78a63d
[ "MIT" ]
null
null
null
import logging class readOptions(object): # The class "constructor" - It's actually an initializer def __init__(self, filename): #Gerais self.plot_image_type = 'maps' self.plot_type = 1 self.title = '' self.CompressImage = None self.X...
50.625698
174
0.454271
4a18973d24465418c7eba8b7ea12522654838819
439
py
Python
api/tacticalrmm/core/migrations/0033_coresettings_mesh_disable_auto_login.py
v2cloud/tacticalrmm
12f599f9749985f66ff9b559c5e5abd36064b182
[ "MIT" ]
null
null
null
api/tacticalrmm/core/migrations/0033_coresettings_mesh_disable_auto_login.py
v2cloud/tacticalrmm
12f599f9749985f66ff9b559c5e5abd36064b182
[ "MIT" ]
null
null
null
api/tacticalrmm/core/migrations/0033_coresettings_mesh_disable_auto_login.py
v2cloud/tacticalrmm
12f599f9749985f66ff9b559c5e5abd36064b182
[ "MIT" ]
null
null
null
# Generated by Django 4.0.3 on 2022-04-12 18:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0032_alter_coresettings_email_alert_recipients_and_more'), ] operations = [ migrations.AddField( model_name='coresetting...
23.105263
76
0.646925
4a18977a9dbb5b6d81e5a517facc9cdb3331e7d3
1,243
py
Python
techminer2/thematic_map_communities.py
jdvelasq/techminer-api
d2bb7d20c326f2fe7cc06d7005dfb3f2053ea1da
[ "MIT" ]
null
null
null
techminer2/thematic_map_communities.py
jdvelasq/techminer-api
d2bb7d20c326f2fe7cc06d7005dfb3f2053ea1da
[ "MIT" ]
null
null
null
techminer2/thematic_map_communities.py
jdvelasq/techminer-api
d2bb7d20c326f2fe7cc06d7005dfb3f2053ea1da
[ "MIT" ]
null
null
null
""" Thematic Map / Communities =============================================================================== >>> from techminer2 import * >>> directory = "/workspaces/techminer2/data/" >>> thematic_map_communities( ... 'author_keywords', ... min_occ=4, ... directory=directory, ... ).head() cluster ...
28.906977
80
0.513274
4a1899f900f5f1acf415fb1945bb8a8884a3da3b
2,307
py
Python
7-assets/past-student-repos/LambdaSchool-master/m6/61b1/examples/rock_paper_scissors.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
71
2019-03-05T04:44:48.000Z
2022-03-24T09:47:48.000Z
7-assets/past-student-repos/LambdaSchool-master/m6/61b1/examples/rock_paper_scissors.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/01_intro_python/Intro-Python-II/examples/rock_paper_scissors.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
37
2019-03-07T05:08:03.000Z
2022-01-05T11:32:51.000Z
#import module we need import random #file i/o functions for historical results def load_results(): text_file = open("history.txt", "r") history = text_file.read().split(",") text_file.close() return history def save_results( w, t, l): text_file = open("history.txt", "w") text_file.write( str(...
29.202532
73
0.563069
4a189aca08c61354ecc310501a4b7b8d459d7dac
381
py
Python
ores/wsgi/routes/v1/__init__.py
wikimedia/mediawiki-services-ores
13be375f9aef4f90a3f8b82bd68812ca69c8dad1
[ "MIT" ]
null
null
null
ores/wsgi/routes/v1/__init__.py
wikimedia/mediawiki-services-ores
13be375f9aef4f90a3f8b82bd68812ca69c8dad1
[ "MIT" ]
null
null
null
ores/wsgi/routes/v1/__init__.py
wikimedia/mediawiki-services-ores
13be375f9aef4f90a3f8b82bd68812ca69c8dad1
[ "MIT" ]
null
null
null
from flask import render_template from . import scores from . import spec def configure(config, bp, score_processor): @bp.route("/v1/", methods=["GET"]) def v1_index(): return render_template("swagger-ui.html", swagger_spec="/v1/spec/") bp = scores.configure(config, bp, score_processor) bp ...
22.411765
75
0.690289
4a189ad44181841cd06d70e2791a0849241842ce
3,801
py
Python
snagittopng.py
ravisayal/SnagItToPNG
16df7f68e62b07b0dd05f1a8cb819dc0a98640fa
[ "MIT" ]
null
null
null
snagittopng.py
ravisayal/SnagItToPNG
16df7f68e62b07b0dd05f1a8cb819dc0a98640fa
[ "MIT" ]
null
null
null
snagittopng.py
ravisayal/SnagItToPNG
16df7f68e62b07b0dd05f1a8cb819dc0a98640fa
[ "MIT" ]
null
null
null
# Converts the SNAGIT raw capture to PNG # this does not copy the SNAG IT annotations # use SNAGIT Batch conversion tool to convert with Annotations import os import time import datetime from ctypes import create_unicode_buffer, windll, wintypes, byref from bitstring import ConstBitStream # get the file creation da...
31.413223
78
0.648777
4a189b2ffb7963aee34900403051e91660b7d404
7,053
py
Python
pegleg/engine/util/shipyard_helper.py
openstack/airship-pegleg
cbc87967ebd572463a893b03097b615b99d9dbcf
[ "Apache-2.0" ]
9
2018-06-20T20:16:29.000Z
2019-03-24T23:07:25.000Z
pegleg/engine/util/shipyard_helper.py
openstack/airship-pegleg
cbc87967ebd572463a893b03097b615b99d9dbcf
[ "Apache-2.0" ]
8
2020-11-16T16:22:58.000Z
2021-05-14T13:29:45.000Z
pegleg/engine/util/shipyard_helper.py
airshipit/pegle
772d3a47a6db425be8249f770a732dbad4e00b08
[ "Apache-2.0" ]
2
2020-03-02T13:53:53.000Z
2021-07-19T05:02:13.000Z
# Copyright 2018 AT&T Intellectual Property. All other 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...
39.623596
78
0.648093
4a189be46a31d057bf2d9d78522d3a9377d60cf1
31,953
py
Python
grizli/aws/aws_drizzler.py
zhangxinnaoc/grizli
2d9f5f838db6ff0992d9731c399729e9e7dcfe83
[ "MIT" ]
1
2019-12-23T02:07:20.000Z
2019-12-23T02:07:20.000Z
grizli/aws/aws_drizzler.py
zhangxinnaoc/grizli
2d9f5f838db6ff0992d9731c399729e9e7dcfe83
[ "MIT" ]
null
null
null
grizli/aws/aws_drizzler.py
zhangxinnaoc/grizli
2d9f5f838db6ff0992d9731c399729e9e7dcfe83
[ "MIT" ]
null
null
null
#!/bin/env python import inspect def make_visit_fits(): import glob import numpy as np from grizli import utils visit_files = glob.glob('[egu]*visits.npy') visit_files.sort() all_visits = [] products = [] for file in visit_files: visits, groups, info = np.load(file) ...
38.637243
714
0.523175
4a189c37b0412d8e20e8f4c84b1613a7b0de5154
1,381
py
Python
photos/views.py
DennisKipkirui/Tribune
701b6e0c2f12c6789cf1722d5fc81362f61b2a05
[ "MIT" ]
null
null
null
photos/views.py
DennisKipkirui/Tribune
701b6e0c2f12c6789cf1722d5fc81362f61b2a05
[ "MIT" ]
null
null
null
photos/views.py
DennisKipkirui/Tribune
701b6e0c2f12c6789cf1722d5fc81362f61b2a05
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse from .models import Image, Location, Category # Create your views here. def welcome(request): images = Image.get_all_images() locations = Location.get_all_locations() return render(request, 'welcome.html', {'images': images, '...
32.116279
114
0.687907
4a189c6574bf47c9ebb77c87ea855756c0433ba4
1,086
py
Python
molecule/default/tests/test_default.py
mongodb-ansible-roles/ansible-role-icecc
d4e0c3c3644a9d5eae225ea517d9081ac5c357a9
[ "Apache-2.0" ]
null
null
null
molecule/default/tests/test_default.py
mongodb-ansible-roles/ansible-role-icecc
d4e0c3c3644a9d5eae225ea517d9081ac5c357a9
[ "Apache-2.0" ]
1
2020-03-24T13:55:19.000Z
2020-03-24T13:55:19.000Z
molecule/default/tests/test_default.py
mongodb-ansible-roles/ansible-role-icecc
d4e0c3c3644a9d5eae225ea517d9081ac5c357a9
[ "Apache-2.0" ]
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_host(host): assert host.file("/etc/hosts").exists def test_icecc_is_installed(host): icecc = host.package("icecc") asser...
30.166667
77
0.770718
4a189c9b7c2d04d65749836cff66716d19918616
3,565
py
Python
lib/rucio/daemons/c3po/collectors/workload.py
balrampariyarath/rucio
8a68017af6b44485a9620566f1afc013838413c1
[ "Apache-2.0" ]
1
2017-08-07T13:34:55.000Z
2017-08-07T13:34:55.000Z
lib/rucio/daemons/c3po/collectors/workload.py
balrampariyarath/rucio
8a68017af6b44485a9620566f1afc013838413c1
[ "Apache-2.0" ]
null
null
null
lib/rucio/daemons/c3po/collectors/workload.py
balrampariyarath/rucio
8a68017af6b44485a9620566f1afc013838413c1
[ "Apache-2.0" ]
1
2021-06-17T14:15:15.000Z
2021-06-17T14:15:15.000Z
# Copyright European Organization for Nuclear Research (CERN) # # 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 # # Authors: # - Thomas Beermann, <t...
33.632075
163
0.61655
4a189d43f357c0cb120ed3f9b159e657da9bd814
991
py
Python
tests/conftest.py
oisindoherty3/drem
478fe4e72fd38628f4ddc3745c16efe75ee98e4d
[ "MIT" ]
4
2020-07-21T12:18:53.000Z
2020-11-19T12:30:56.000Z
tests/conftest.py
oisindoherty3/drem
478fe4e72fd38628f4ddc3745c16efe75ee98e4d
[ "MIT" ]
101
2020-08-20T16:29:44.000Z
2021-01-13T12:41:53.000Z
tests/conftest.py
oisindoherty3/drem
478fe4e72fd38628f4ddc3745c16efe75ee98e4d
[ "MIT" ]
5
2020-07-31T11:51:30.000Z
2020-10-14T10:25:39.000Z
# flake8: noqa import logging import pytest from _pytest.logging import caplog as _caplog from _pytest.monkeypatch import MonkeyPatch from loguru import logger @pytest.fixture(autouse=True) def no_http_requests(monkeypatch): """Prevent any test from making HTTP requests. Source: https://blog.jerrycodes.co...
24.170732
79
0.69223
4a189d465eeb521e45ad7d80bc2777823c912d8b
61
py
Python
lectures/5_Image_Analysis/line_extraction.py
jagar2/Summer_2020_MAT-395-495_Scientific-Data-Analysis-and-Computing
e4b831460bddd34e7ad1d8888327c8d85b80e35e
[ "BSD-3-Clause" ]
1
2021-11-10T15:34:37.000Z
2021-11-10T15:34:37.000Z
lectures/5_Image_Analysis/line_extraction.py
jagar2/Summer_2020_MAT-395-495_Scientific-Data-Analysis-and-Computing
e4b831460bddd34e7ad1d8888327c8d85b80e35e
[ "BSD-3-Clause" ]
null
null
null
lectures/5_Image_Analysis/line_extraction.py
jagar2/Summer_2020_MAT-395-495_Scientific-Data-Analysis-and-Computing
e4b831460bddd34e7ad1d8888327c8d85b80e35e
[ "BSD-3-Clause" ]
3
2020-08-06T15:11:50.000Z
2022-01-05T20:21:09.000Z
profile = kernel[:, kernel.shape[1] // 2] plt.plot(profile)
15.25
41
0.655738
4a189dd89938ebff3f667f7d1dc0f74475d5e2b1
1,444
py
Python
util/util.py
nelson870708/PerceptualSimilarity
c46cc10ea108403d2c42925e1417617912efd4d8
[ "BSD-2-Clause" ]
null
null
null
util/util.py
nelson870708/PerceptualSimilarity
c46cc10ea108403d2c42925e1417617912efd4d8
[ "BSD-2-Clause" ]
null
null
null
util/util.py
nelson870708/PerceptualSimilarity
c46cc10ea108403d2c42925e1417617912efd4d8
[ "BSD-2-Clause" ]
null
null
null
from __future__ import print_function import os import matplotlib.pyplot as plt import numpy as np import torch from PIL import Image def load_image(path): if path[-3:] == "dng": import rawpy with rawpy.imread(path) as raw: img = raw.postprocess() elif path[-3:] == "bmp" or path...
24.474576
76
0.617036
4a189e62e3f36a6f1111eed1d5158f05e8b619cc
1,647
py
Python
spotui/src/input.py
octoshrimpy/spotui
b0d195d1cdc803839e8421472ed897521c6124d4
[ "MIT" ]
2
2021-06-10T22:30:41.000Z
2021-06-13T21:20:50.000Z
spotui/src/input.py
octoshrimpy/spotui
b0d195d1cdc803839e8421472ed897521c6124d4
[ "MIT" ]
null
null
null
spotui/src/input.py
octoshrimpy/spotui
b0d195d1cdc803839e8421472ed897521c6124d4
[ "MIT" ]
null
null
null
import curses import time import locale from curses import textpad locale.setlocale(locale.LC_ALL, "") code = locale.getpreferredencoding() class Input: def __init__(self, stdscr, starty=0, startx=0, endy=0, endx=0, ...
28.894737
81
0.567699
4a18a02641457d32ec9c31e596d3cfbbaf632855
299
py
Python
tests/test_skeleton.py
RichWolff/hackathon_supply_chain
0d51e0dbb652954d9b18e6aaf51e6968ba769d6a
[ "MIT" ]
null
null
null
tests/test_skeleton.py
RichWolff/hackathon_supply_chain
0d51e0dbb652954d9b18e6aaf51e6968ba769d6a
[ "MIT" ]
null
null
null
tests/test_skeleton.py
RichWolff/hackathon_supply_chain
0d51e0dbb652954d9b18e6aaf51e6968ba769d6a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pytest from id2020.skeleton import fib __author__ = "Richard Wolff" __copyright__ = "Richard Wolff" __license__ = "mit" def test_fib(): assert fib(1) == 1 assert fib(2) == 1 assert fib(7) == 13 with pytest.raises(AssertionError): fib(-10)
16.611111
39
0.635452
4a18a186dc12f92d6b6ff7c7a528a2a4c22c80a4
37,219
py
Python
kivymd/uix/picker.py
zarari23/KivyMD
3274d622abc0986c82719393a357b6a745e061f2
[ "MIT" ]
null
null
null
kivymd/uix/picker.py
zarari23/KivyMD
3274d622abc0986c82719393a357b6a745e061f2
[ "MIT" ]
null
null
null
kivymd/uix/picker.py
zarari23/KivyMD
3274d622abc0986c82719393a357b6a745e061f2
[ "MIT" ]
null
null
null
""" Components/Pickers ================== Includes date, time and color picker `KivyMD` provides the following classes for use: - MDTimePicker_ - MDDatePicker_ - MDThemePicker_ .. MDTimePicker: MDTimePicker ------------ .. rubric:: Usage .. code-block:: from kivy.lang import Builder from kivymd.app impo...
32.477312
101
0.494935
4a18a2a813e89d2ad894cff5004a0d031e39fd9d
2,266
py
Python
aliyun-python-sdk-dms-enterprise/aliyunsdkdms_enterprise/request/v20181101/CreateDataCronClearOrderRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-dms-enterprise/aliyunsdkdms_enterprise/request/v20181101/CreateDataCronClearOrderRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-dms-enterprise/aliyunsdkdms_enterprise/request/v20181101/CreateDataCronClearOrderRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
37.766667
105
0.75684
4a18a2b5a3a2d04907f74754b61ae090b17ff447
584
py
Python
examples/runner/parallel/validate_results.py
zpxbjdx/Hetu
e84b6436b668e56b4e97a5fcc2ced08780f2a3c3
[ "Apache-2.0" ]
82
2021-07-20T02:45:54.000Z
2022-03-14T07:08:45.000Z
examples/runner/parallel/validate_results.py
zpxbjdx/Hetu
e84b6436b668e56b4e97a5fcc2ced08780f2a3c3
[ "Apache-2.0" ]
4
2021-11-25T13:39:21.000Z
2022-03-13T04:14:14.000Z
examples/runner/parallel/validate_results.py
zpxbjdx/Hetu
e84b6436b668e56b4e97a5fcc2ced08780f2a3c3
[ "Apache-2.0" ]
13
2021-07-18T14:40:56.000Z
2022-03-09T06:37:42.000Z
import numpy as np import os.path as osp import argparse if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('number', default=None) parser.add_argument('--rtol', default='1e-6') args = parser.parse_args() directory = 'results' base = np.load(osp.join(directory, '...
32.444444
68
0.652397
4a18a2dd8c98ffad58f2b364cd3d1d9c8c813dce
5,176
py
Python
examples/py3_process_wrapper-wcps_eurac.py
ghtmtt/openeo-python-client
9277941574d3ba839562c650e2530b51f29640a2
[ "Apache-2.0" ]
null
null
null
examples/py3_process_wrapper-wcps_eurac.py
ghtmtt/openeo-python-client
9277941574d3ba839562c650e2530b51f29640a2
[ "Apache-2.0" ]
null
null
null
examples/py3_process_wrapper-wcps_eurac.py
ghtmtt/openeo-python-client
9277941574d3ba839562c650e2530b51f29640a2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import json import logging from datetime import datetime import openeo from openeo.rest.imagecollectionclient import ImageCollectionClient import sys logger = logging.getLogger(__name__) def execute( out_dir, user, password, provider, driver_url, image_collection, ...
35.944444
123
0.656685
4a18a3a20fc8d0ccb52c0c5ee1da5be156d39bb8
916
py
Python
misc/primality.py
computablelabs/starks
f8e45d56c3934a1cf24220b58e073434379e3d78
[ "MIT" ]
9
2018-11-30T18:53:54.000Z
2021-11-15T20:59:08.000Z
misc/primality.py
computablelabs/starks
f8e45d56c3934a1cf24220b58e073434379e3d78
[ "MIT" ]
13
2018-11-30T00:13:49.000Z
2019-04-04T20:14:29.000Z
misc/primality.py
computablelabs/starks
f8e45d56c3934a1cf24220b58e073434379e3d78
[ "MIT" ]
1
2020-05-14T20:35:48.000Z
2020-05-14T20:35:48.000Z
import random def decompose(n): exponentOfTwo = 0 while n % 2 == 0: n = n // 2 # using / turns large numbers into floats exponentOfTwo += 1 return exponentOfTwo, n def isWitness(possibleWitness, p, exponent, remainder): if pow(possibleWitness, remainder, p) == 1: return False if any( ...
18.693878
58
0.635371
4a18a410ef7581108c9ea426a1017cdf8f72c301
13,268
py
Python
deutschland/autobahn/model/display_type.py
kiranmusze/deutschland
86d8ead3f38ad88ad66bb338b9f5a8db06992344
[ "Apache-2.0" ]
null
null
null
deutschland/autobahn/model/display_type.py
kiranmusze/deutschland
86d8ead3f38ad88ad66bb338b9f5a8db06992344
[ "Apache-2.0" ]
null
null
null
deutschland/autobahn/model/display_type.py
kiranmusze/deutschland
86d8ead3f38ad88ad66bb338b9f5a8db06992344
[ "Apache-2.0" ]
null
null
null
""" Autobahn App API Was passiert auf Deutschlands Bundesstraßen? API für aktuelle Verwaltungsdaten zu Baustellen, Staus und Ladestationen. Außerdem Zugang zu Verkehrsüberwachungskameras und vielen weiteren Datensätzen. # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://op...
42.8
245
0.565722
4a18a4f456978222d0e767fdd9580d91e41bc2fe
749
py
Python
project/views.py
rocity/token-auth-demo
4f74cda95656a56f14534ab01e9aa2a58d4a8aa3
[ "MIT" ]
null
null
null
project/views.py
rocity/token-auth-demo
4f74cda95656a56f14534ab01e9aa2a58d4a8aa3
[ "MIT" ]
null
null
null
project/views.py
rocity/token-auth-demo
4f74cda95656a56f14534ab01e9aa2a58d4a8aa3
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.contrib.auth import authenticate from rest_framework import permissions from rest_framework.authtoken.models import Token from rest_framework.views import APIView from rest_framework.response import Response def index(request, *args): return render(request, 'index....
28.807692
89
0.719626
4a18a5a607af1346aa084f6f889041c04aef1398
793
py
Python
migrations/versions/7f3f1a931278_add_tos_approved_at_to_user.py
akebrissman/id.mkdevops.se
5a9a7a5df33a24f5c367cd476fa547a300e66ea9
[ "Apache-2.0" ]
7
2017-09-04T10:24:02.000Z
2019-12-02T13:12:30.000Z
migrations/versions/7f3f1a931278_add_tos_approved_at_to_user.py
akebrissman/id.mkdevops.se
5a9a7a5df33a24f5c367cd476fa547a300e66ea9
[ "Apache-2.0" ]
140
2017-09-06T07:02:18.000Z
2022-02-26T01:26:25.000Z
migrations/versions/7f3f1a931278_add_tos_approved_at_to_user.py
akebrissman/id.mkdevops.se
5a9a7a5df33a24f5c367cd476fa547a300e66ea9
[ "Apache-2.0" ]
2
2017-09-13T16:42:57.000Z
2018-02-15T15:32:40.000Z
"""Add 'tos_approved_at' to User. Revision ID: 7f3f1a931278 Revises: b984311d26d7 Create Date: 2017-11-29 14:42:23.349903 """ from __future__ import absolute_import, division, print_function, unicode_literals import sqlalchemy as sa from alembic import op # Revision identifiers, used by Alembic. revision = '7f3f1a...
25.580645
87
0.742749
4a18a66b29336cbe105ce2a8ce389b140fda4dbb
1,997
py
Python
predict.py
hisiter97/vietocr_hst
ce3567457b0c1478edbbd8914a131c30cdc91ad0
[ "Apache-2.0" ]
null
null
null
predict.py
hisiter97/vietocr_hst
ce3567457b0c1478edbbd8914a131c30cdc91ad0
[ "Apache-2.0" ]
null
null
null
predict.py
hisiter97/vietocr_hst
ce3567457b0c1478edbbd8914a131c30cdc91ad0
[ "Apache-2.0" ]
null
null
null
import argparse from PIL import Image from vietocr.tool.predictor import Predictor from vietocr.tool.config import Cfg import os import time # python predict_seq2seq.py --config logs/hw_word_seq2seq_finetuning_170k_v2/config.yml --weight logs/hw_word_seq2seq_finetuning_170k_v2/best.pt --img image def main(): pa...
35.035088
162
0.664497
4a18a6ab4cce67f35a5b14cf60dc5cbd747a165b
601
py
Python
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/numtrees_400/rule_63.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/numtrees_400/rule_63.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/numtrees_400/rule_63.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
def findDecision(obj): #obj[0]: Driving_to, obj[1]: Passanger, obj[2]: Weather, obj[3]: Temperature, obj[4]: Time, obj[5]: Coupon, obj[6]: Coupon_validity, obj[7]: Gender, obj[8]: Age, obj[9]: Maritalstatus, obj[10]: Children, obj[11]: Education, obj[12]: Occupation, obj[13]: Income, obj[14]: Bar, obj[15]: Coffeehouse,...
75.125
441
0.673877
4a18a6d316f050d5bea5eb2e112365946cab0c4a
438
py
Python
src/pretalx/event/migrations/0025_event_featured_sessions_text.py
lili668668/pretalx
5ba2185ffd7c5f95254aafe25ad3de340a86eadb
[ "Apache-2.0" ]
418
2017-10-05T05:52:49.000Z
2022-03-24T09:50:06.000Z
src/pretalx/event/migrations/0025_event_featured_sessions_text.py
lili668668/pretalx
5ba2185ffd7c5f95254aafe25ad3de340a86eadb
[ "Apache-2.0" ]
1,049
2017-09-16T09:34:55.000Z
2022-03-23T16:13:04.000Z
src/pretalx/event/migrations/0025_event_featured_sessions_text.py
lili668668/pretalx
5ba2185ffd7c5f95254aafe25ad3de340a86eadb
[ "Apache-2.0" ]
155
2017-10-16T18:32:01.000Z
2022-03-15T12:48:33.000Z
# Generated by Django 3.1.4 on 2020-12-13 23:27 from django.db import migrations import i18nfield.fields class Migration(migrations.Migration): dependencies = [ ("event", "0024_remove_team_review_override_votes"), ] operations = [ migrations.AddField( model_name="event", ...
21.9
60
0.641553
4a18a6f27874470db17d86c7136f3e2e3bed1715
662
py
Python
setup.py
cinchio/tap-rockgympro
aaf55111e40a74708639363cea6198f5e70eeeaf
[ "Apache-2.0" ]
1
2021-09-07T09:29:42.000Z
2021-09-07T09:29:42.000Z
setup.py
cinchio/tap-rockgympro
aaf55111e40a74708639363cea6198f5e70eeeaf
[ "Apache-2.0" ]
null
null
null
setup.py
cinchio/tap-rockgympro
aaf55111e40a74708639363cea6198f5e70eeeaf
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from setuptools import setup, find_packages setup( name="tap-rockgympro", version="0.1.12", description="Singer.io tap for extracting RockGymPro data", author="Cinch", url="https://github.com/cinchio/tap-rockgympro", python_requires='>=3.6.0', py_modules=["tap_rockgym...
25.461538
75
0.652568
4a18a872418974b52f171ee850e95b0eea4b0dec
9,621
py
Python
meraki/api/organizations.py
NoFliesOnYou/dashboard-api-python
3185d0e8a9a38eba9127ac640dcbb02444e7adf2
[ "MIT" ]
null
null
null
meraki/api/organizations.py
NoFliesOnYou/dashboard-api-python
3185d0e8a9a38eba9127ac640dcbb02444e7adf2
[ "MIT" ]
3
2020-11-08T08:50:59.000Z
2021-12-13T20:47:15.000Z
flask/meraki/api/organizations.py
cyberdevnet/mer-hacker
a7dddd03c5b02a2f8c84d711b69868d2b94f1f99
[ "MIT" ]
null
null
null
class Organizations(object): def __init__(self, session): super(Organizations, self).__init__() self._session = session def getOrganizations(self): """ **List the organizations that the user has privileges on** https://developer.cisco.com/meraki/api/#!get-organizatio...
36.443182
264
0.613138
4a18a8d3c4414bcd820dd8941ebaba8963026ebd
4,220
py
Python
src/Python/Picking/HighlightPickedActor.py
ajpmaclean/vtk-examples
1a55fc8c6af67a3c07791807c7d1ec0ab97607a2
[ "Apache-2.0" ]
81
2020-08-10T01:44:30.000Z
2022-03-23T06:46:36.000Z
src/Python/Picking/HighlightPickedActor.py
ajpmaclean/vtk-examples
1a55fc8c6af67a3c07791807c7d1ec0ab97607a2
[ "Apache-2.0" ]
2
2020-09-12T17:33:52.000Z
2021-04-15T17:33:09.000Z
src/Python/Picking/HighlightPickedActor.py
ajpmaclean/vtk-examples
1a55fc8c6af67a3c07791807c7d1ec0ab97607a2
[ "Apache-2.0" ]
27
2020-08-17T07:09:30.000Z
2022-02-15T03:44:58.000Z
#!/usr/bin/env python # noinspection PyUnresolvedReferences import vtkmodules.vtkRenderingOpenGL2 from vtkmodules.vtkCommonColor import vtkNamedColors from vtkmodules.vtkCommonCore import vtkMinimalStandardRandomSequence from vtkmodules.vtkFiltersSources import vtkSphereSource from vtkmodules.vtkInteractionStyle impor...
31.969697
84
0.691232
4a18a927fc191f06f51717c8b60f0178c7a83c76
16,213
py
Python
deploy/prod/k8s/utils/ais_k8s.py
eef808a24ff/aistore
de1e97c34aaa28acd2db60e23216526f546c5b5f
[ "MIT" ]
1
2020-05-20T23:43:38.000Z
2020-05-20T23:43:38.000Z
deploy/prod/k8s/utils/ais_k8s.py
eef808a24ff/aistore
de1e97c34aaa28acd2db60e23216526f546c5b5f
[ "MIT" ]
null
null
null
deploy/prod/k8s/utils/ais_k8s.py
eef808a24ff/aistore
de1e97c34aaa28acd2db60e23216526f546c5b5f
[ "MIT" ]
1
2021-01-12T15:06:40.000Z
2021-01-12T15:06:40.000Z
# # Run with python2 - a requirement of the AIS ais_client # # Python script to query/validate AIS cluster state & health on k8s as deployed # by our Helm chart. # # This scripts uses hard-coded knowledge of labels etc that are used/expected by # the AIS helm chart. It should instead query those labels from the DaemonS...
37.18578
142
0.571208
4a18a9ff30bbe15f8df1b39671448a4b1578a99e
1,064
py
Python
Debris detection.py
SpideySanthosh/debris-detection
c3313899f6be16fa9d3cffb7a1c0229afbee162b
[ "Apache-2.0" ]
null
null
null
Debris detection.py
SpideySanthosh/debris-detection
c3313899f6be16fa9d3cffb7a1c0229afbee162b
[ "Apache-2.0" ]
null
null
null
Debris detection.py
SpideySanthosh/debris-detection
c3313899f6be16fa9d3cffb7a1c0229afbee162b
[ "Apache-2.0" ]
null
null
null
import cv2 import numpy as np lowerBound=np.array([0,0,0]) upperBound=np.array([0,0,255]) cam= cv2.VideoCapture("debris.mp4") kernelOpen=np.ones((5,5)) kernelClose=np.ones((20,20)) font=cv2.FONT_HERSHEY_SIMPLEX while True: ret, img=cam.read() img=cv2.resize(img,(1366,768)) #convert BGR ...
29.555556
90
0.653195
4a18aad9be273f0a2951f6450206a330edb1b951
28,228
py
Python
tests/test_hist.py
diana-hep/pandhist
0874f6a3a778b85974b2d59e3a6f89391f8f3fe9
[ "BSD-3-Clause" ]
67
2018-05-07T17:09:23.000Z
2018-06-22T00:30:06.000Z
tests/test_hist.py
diana-hep/pandhist
0874f6a3a778b85974b2d59e3a6f89391f8f3fe9
[ "BSD-3-Clause" ]
31
2018-05-23T00:47:09.000Z
2018-06-22T16:45:57.000Z
tests/test_hist.py
diana-hep/pandhist
0874f6a3a778b85974b2d59e3a6f89391f8f3fe9
[ "BSD-3-Clause" ]
7
2018-07-11T08:13:23.000Z
2021-08-29T05:20:42.000Z
#!/usr/bin/env python # Copyright (c) 2018, DIANA-HEP # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list ...
62.5898
497
0.537516
4a18abc567d61bc8887e015eb4736647c6efd6cb
869
py
Python
xctf/pwn/pwn-100/exp.py
haysengithub/ctf
c2cefed8470f40d0cb6bc4d1ae941a70936ea497
[ "MIT" ]
null
null
null
xctf/pwn/pwn-100/exp.py
haysengithub/ctf
c2cefed8470f40d0cb6bc4d1ae941a70936ea497
[ "MIT" ]
null
null
null
xctf/pwn/pwn-100/exp.py
haysengithub/ctf
c2cefed8470f40d0cb6bc4d1ae941a70936ea497
[ "MIT" ]
null
null
null
from pwn import * context(arch="amd64",os="linux",log_level="debug",terminal=["tmux","splitw","-h"]) p =process("./pwn") #gdb.attach(p,"b *0x4006b8") elf = ELF("./pwn") libc = ELF("/lib/x86_64-linux-gnu/libc-2.27.so") pop_rdi_ret = 0x0000000000400763 elf_got =elf.got["puts"] elf_plt = elf.plt["puts"] main_addr = 0x40...
28.966667
82
0.715765
4a18ace592b97e1a77daa10530157bfab282ca69
2,061
py
Python
IMU/VTK-6.2.0/Filters/Modeling/Testing/Python/TestRibbonAndTube.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
4
2016-03-30T14:31:52.000Z
2019-02-02T05:01:32.000Z
IMU/VTK-6.2.0/Filters/Modeling/Testing/Python/TestRibbonAndTube.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
null
null
null
IMU/VTK-6.2.0/Filters/Modeling/Testing/Python/TestRibbonAndTube.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
2
2019-08-30T23:36:13.000Z
2019-11-08T16:52:01.000Z
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # create pipeline # reader = vtk.vtkPolyDataReader() reader.SetFileName("" + str(VTK_DATA_ROOT) + "/Data/vtk.vtk") # Read a ruler texture r = vtk.vtkPNGReader() r.SetFileN...
30.308824
66
0.769044
4a18acea1241dc6956e8b15d931e1692ab9540fe
2,355
py
Python
main.py
DrEuler/MakeMaskPython
608ebfbb5f1e4e1f20197bea56b24e3887ecbe6c
[ "MIT" ]
null
null
null
main.py
DrEuler/MakeMaskPython
608ebfbb5f1e4e1f20197bea56b24e3887ecbe6c
[ "MIT" ]
null
null
null
main.py
DrEuler/MakeMaskPython
608ebfbb5f1e4e1f20197bea56b24e3887ecbe6c
[ "MIT" ]
null
null
null
from __future__ import print_function import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import os.path import numpy as np # 'as' lets us use standard abbreviations '''Read the image data''' # Get the directory of this python script directory = os.path.dirname(os.path.abspath(__file__)) # ...
25.053191
72
0.669214
4a18aceeabbcea68b1ece4aae7f2b828bded4750
931
py
Python
sequana/lazy.py
cokelaer/sequana
da35de12b45f38b4fa488c7a15a6d9829890b44e
[ "BSD-3-Clause" ]
null
null
null
sequana/lazy.py
cokelaer/sequana
da35de12b45f38b4fa488c7a15a6d9829890b44e
[ "BSD-3-Clause" ]
null
null
null
sequana/lazy.py
cokelaer/sequana
da35de12b45f38b4fa488c7a15a6d9829890b44e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of Sequana software # # Copyright (c) 2016-2017 - Sequana Development Team # # File author(s): Sequana Development Team # # Distributed under the terms of the 3-clause BSD license. # The full license is in the LICENSE file, distributed with this software. # # website:...
28.212121
78
0.672395
4a18ad035a04d802051beee555808a33049844a1
21,239
py
Python
pypika/dialects.py
foggel/pypika
1f6ab34bada982fe632e5828f87bfbac2e601c5f
[ "Apache-2.0" ]
null
null
null
pypika/dialects.py
foggel/pypika
1f6ab34bada982fe632e5828f87bfbac2e601c5f
[ "Apache-2.0" ]
null
null
null
pypika/dialects.py
foggel/pypika
1f6ab34bada982fe632e5828f87bfbac2e601c5f
[ "Apache-2.0" ]
null
null
null
from copy import copy from typing import Any, Union, Optional from pypika.enums import Dialects from pypika.queries import ( CreateQueryBuilder, Query, QueryBuilder, Table, ) from pypika.terms import ( ArithmeticExpression, EmptyCriterion, Field, Function, Star, Term, ValueW...
33.185938
117
0.615801
4a18ad0a477eaff536213311e1c0d91ab11c4ca3
6,671
py
Python
test/unit/test_natural_language_understanding.py
avilaroman/python-sdk
5f2dad0c91fa29d188c00f686993c4ab2243fdcd
[ "Apache-2.0" ]
1
2019-06-29T19:32:38.000Z
2019-06-29T19:32:38.000Z
test/unit/test_natural_language_understanding.py
avilaroman/python-sdk
5f2dad0c91fa29d188c00f686993c4ab2243fdcd
[ "Apache-2.0" ]
null
null
null
test/unit/test_natural_language_understanding.py
avilaroman/python-sdk
5f2dad0c91fa29d188c00f686993c4ab2243fdcd
[ "Apache-2.0" ]
1
2019-11-26T03:04:12.000Z
2019-11-26T03:04:12.000Z
# coding: utf-8 from unittest import TestCase from ibm_watson import NaturalLanguageUnderstandingV1 from ibm_watson.natural_language_understanding_v1 import \ Features, ConceptsOptions, EntitiesOptions, KeywordsOptions, CategoriesOptions, \ EmotionOptions, MetadataOptions, SemanticRolesOptions, RelationsOptio...
43.318182
88
0.545945
4a18ae2e87d1a41ecee31c3bee66f57729d4b62d
448
py
Python
bdc_collection_builder/celery/worker.py
brazil-data-cube/bdc-collection-builder
765213341a30555d9ff2eab553ea659e278a69b5
[ "MIT" ]
2
2020-02-06T13:52:30.000Z
2020-09-14T15:05:39.000Z
bdc_collection_builder/celery/worker.py
brazil-data-cube/bdc-collection-builder
765213341a30555d9ff2eab553ea659e278a69b5
[ "MIT" ]
94
2020-02-03T19:34:14.000Z
2022-03-25T18:28:40.000Z
bdc_collection_builder/celery/worker.py
brazil-data-cube/bdc-collection-builder
765213341a30555d9ff2eab553ea659e278a69b5
[ "MIT" ]
6
2020-02-04T17:21:21.000Z
2020-10-07T13:02:39.000Z
# # This file is part of Brazil Data Cube Collection Builder. # Copyright (C) 2019-2020 INPE. # # Brazil Data Cube Collection Builder is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. # """Defines a structure component to run celery work...
26.352941
96
0.756696
4a18ae9058af5e714ffdea73c980d3aa565aab1d
5,441
py
Python
EISeg/eiseg/model/modeling/ocr.py
JamesLim-sy/PaddleSeg
f8cfb80f543a52599d1588026e71f069b702b781
[ "Apache-2.0" ]
4,708
2019-08-26T13:54:39.000Z
2022-03-31T16:01:53.000Z
EISeg/eiseg/model/modeling/ocr.py
JamesLim-sy/PaddleSeg
f8cfb80f543a52599d1588026e71f069b702b781
[ "Apache-2.0" ]
1,083
2019-09-12T02:57:24.000Z
2022-03-31T13:30:30.000Z
EISeg/eiseg/model/modeling/ocr.py
JamesLim-sy/PaddleSeg
f8cfb80f543a52599d1588026e71f069b702b781
[ "Apache-2.0" ]
1,046
2019-08-26T22:05:01.000Z
2022-03-30T14:09:28.000Z
import paddle import paddle.nn as nn import paddle.nn.functional as F class SpatialGather_Module(nn.Layer): """ Aggregate the context features according to the initial predicted probability distribution. Employ the soft-weighted method to aggregate the context. """ def __init__(se...
39.715328
108
0.602463
4a18aeec7caaeb51a24ff7779c6a989f560ccc49
235
py
Python
pydocx/test/__init__.py
botzill/pydocx
98c6aa626d875278240eabea8f86a914840499b3
[ "Apache-2.0" ]
127
2015-01-12T22:35:34.000Z
2022-01-20T06:24:18.000Z
pydocx/test/__init__.py
turbo-q/pydocx
98c6aa626d875278240eabea8f86a914840499b3
[ "Apache-2.0" ]
156
2015-01-05T19:55:56.000Z
2020-10-14T07:01:42.000Z
pydocx/test/__init__.py
turbo-q/pydocx
98c6aa626d875278240eabea8f86a914840499b3
[ "Apache-2.0" ]
45
2015-02-22T18:52:08.000Z
2021-06-14T08:05:47.000Z
from pydocx.test.testcases import ( DocumentGeneratorTestCase, DocXFixtureTestCaseFactory, TranslationTestCase, ) __all__ = [ 'DocumentGeneratorTestCase', 'DocXFixtureTestCaseFactory', 'TranslationTestCase', ]
19.583333
35
0.748936
4a18afb6265e2a536665f0282971d1175a616a36
3,267
py
Python
docs/conf.py
zama-ai/concrete-numpy
ca60d646f26bc26c4c398aeb2bb89c572b3e6d63
[ "FTL" ]
96
2022-01-12T15:07:50.000Z
2022-03-16T04:00:09.000Z
docs/conf.py
zama-ai/concrete-numpy
ca60d646f26bc26c4c398aeb2bb89c572b3e6d63
[ "FTL" ]
10
2022-02-04T16:26:37.000Z
2022-03-25T14:08:01.000Z
docs/conf.py
zama-ai/concrete-numpy
ca60d646f26bc26c4c398aeb2bb89c572b3e6d63
[ "FTL" ]
8
2022-01-12T15:07:55.000Z
2022-03-05T00:46:16.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
32.029412
79
0.648913
4a18afd3a9192894cc7809390e1f230bfd754653
1,218
py
Python
L1TriggerConfig/GMTConfigProducers/test/minitestRS_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
L1TriggerConfig/GMTConfigProducers/test/minitestRS_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
L1TriggerConfig/GMTConfigProducers/test/minitestRS_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process("L1ConfigWritePayloadDummy") process.load("FWCore.MessageLogger.MessageLogger_cfi") process.MessageLogger.cout.enable = cms.untracked.bool(True) process.MessageLogger.cout.threshold = cms.untracked.string('INFO') process.MessageLogger.debugModules = cms.un...
32.052632
85
0.776683
4a18b0d20323bbedfbe57c23ff0577809d7237fd
495
py
Python
research/views/__init__.py
ZviBaratz/pylabber
35337284f3d0615249f642743b993b7dad407390
[ "Apache-2.0" ]
3
2020-08-28T21:33:07.000Z
2021-07-19T17:52:17.000Z
research/views/__init__.py
TheLabbingProject/pylabber
27d6073e7bde871c16912a8ea5e0e389711bbd9f
[ "Apache-2.0" ]
74
2019-09-04T11:40:16.000Z
2022-01-03T19:43:04.000Z
research/views/__init__.py
ZviBaratz/pylabber
35337284f3d0615249f642743b993b7dad407390
[ "Apache-2.0" ]
3
2019-05-07T07:09:05.000Z
2019-08-30T15:40:47.000Z
from research.views.data_acquisition import DataAcquisitionViewSet from research.views.event import EventViewSet from research.views.group import GroupViewSet from research.views.measurement_definition import MeasurementDefinitionViewSet from research.views.procedure import ProcedureViewSet from research.views.procedur...
49.5
78
0.890909
4a18b10ef4b4b586170bbd67d94288f566d8044b
407
py
Python
catalog/migrations/0011_dayinstance_day_image.py
esalascolas/blog_diari
43f6d22db745a38559fc2dcb8ea52c39a9d28753
[ "MIT" ]
null
null
null
catalog/migrations/0011_dayinstance_day_image.py
esalascolas/blog_diari
43f6d22db745a38559fc2dcb8ea52c39a9d28753
[ "MIT" ]
13
2020-02-11T22:06:44.000Z
2022-02-10T08:23:36.000Z
catalog/migrations/0011_dayinstance_day_image.py
esalascolas/blog_diari
43f6d22db745a38559fc2dcb8ea52c39a9d28753
[ "MIT" ]
null
null
null
# Generated by Django 2.0.1 on 2018-05-27 10:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('catalog', '0010_auto_20180527_1235'), ] operations = [ migrations.AddField( model_name='dayinstance', name='day_imag...
21.421053
65
0.601966
4a18b196a9f5b661711cdebaf9b8f0be96544f27
1,825
py
Python
pytweet/metrics.py
w3bhook/PyTweet
0920523dfeee62c7d38014ec09ff49ffb4a0e194
[ "MIT" ]
null
null
null
pytweet/metrics.py
w3bhook/PyTweet
0920523dfeee62c7d38014ec09ff49ffb4a0e194
[ "MIT" ]
null
null
null
pytweet/metrics.py
w3bhook/PyTweet
0920523dfeee62c7d38014ec09ff49ffb4a0e194
[ "MIT" ]
null
null
null
from typing import Any, Dict __all__ = ( "UserPublicMetrics", "TweetPublicMetrics", ) class UserPublicMetrics: __slots__ = ("__original_payload", "_public") def __init__(self, data: Dict[str, Any] = {}): self.__original_payload = data self._public = self.__original_payload.get("publi...
29.918033
190
0.676712
4a18b2245746a4e9bb62690dd6c9c4af2d3903be
12,965
py
Python
utils/eval_tool.py
Ray-Luo/BV
705a97b34f271d1d2b6eaba4777fcc48905c3852
[ "MIT" ]
null
null
null
utils/eval_tool.py
Ray-Luo/BV
705a97b34f271d1d2b6eaba4777fcc48905c3852
[ "MIT" ]
null
null
null
utils/eval_tool.py
Ray-Luo/BV
705a97b34f271d1d2b6eaba4777fcc48905c3852
[ "MIT" ]
null
null
null
from __future__ import division from collections import defaultdict import itertools import numpy as np import six from model.utils.bbox_tools import bbox_iou def eval_detection_voc( pred_bboxes, pred_labels, pred_scores, gt_bboxes, gt_labels, gt_difficults=None, iou_thresh=0.5, use_07_metri...
40.77044
79
0.593598
4a18b3b643807b91152d740b2b7c26bb88f8fc1b
3,725
py
Python
eventtypeidentification/voxnet_train.py
marivasq/gamma-ai
735953e80901afea3e5cdeb2a7b27c9ab5725434
[ "MIT" ]
6
2020-01-29T07:24:14.000Z
2022-03-16T10:05:25.000Z
eventtypeidentification/voxnet_train.py
marivasq/gamma-ai
735953e80901afea3e5cdeb2a7b27c9ab5725434
[ "MIT" ]
6
2020-07-03T00:31:10.000Z
2021-09-10T07:45:01.000Z
eventtypeidentification/voxnet_train.py
marivasq/gamma-ai
735953e80901afea3e5cdeb2a7b27c9ab5725434
[ "MIT" ]
5
2019-02-27T22:56:49.000Z
2019-08-24T19:01:41.000Z
import math, datetime, os from voxnet import * from volumetric_data import ShapeNet40Vox30 dataset = ShapeNet40Vox30() voxnet = VoxNet() p = dict() # placeholders p['labels'] = tf.placeholder(tf.float32, [200, 6697]) p['loss'] = tf.nn.softmax_cross_entropy_with_logits(logits=voxnet[-2], labels=p['labels']) p['loss'...
35.141509
97
0.721342
4a18b43043d5f7a3e9e512a6e505fa07dde29e86
1,092
py
Python
Doc/examples/make_subsmat.py
Amrithasuresh/biopython
85aa21c3ebe0d70c220d6dca7ab15fbb948a73c6
[ "BSD-3-Clause" ]
null
null
null
Doc/examples/make_subsmat.py
Amrithasuresh/biopython
85aa21c3ebe0d70c220d6dca7ab15fbb948a73c6
[ "BSD-3-Clause" ]
null
null
null
Doc/examples/make_subsmat.py
Amrithasuresh/biopython
85aa21c3ebe0d70c220d6dca7ab15fbb948a73c6
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright 2000 Brad Chapman. All rights reserved. # # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Example of generating a substitution matrix from an alignment.""" from...
29.513514
80
0.746337
4a18b4a57f7ef737234a4fd331388b8fc4a24829
1,738
py
Python
tests/test_nodes.py
travigd/aiodocker
13d0abd3866da4f216f7c3c5b67ed3648e116cb5
[ "Apache-2.0" ]
null
null
null
tests/test_nodes.py
travigd/aiodocker
13d0abd3866da4f216f7c3c5b67ed3648e116cb5
[ "Apache-2.0" ]
null
null
null
tests/test_nodes.py
travigd/aiodocker
13d0abd3866da4f216f7c3c5b67ed3648e116cb5
[ "Apache-2.0" ]
null
null
null
import pytest from aiodocker.exceptions import DockerError @pytest.mark.asyncio async def test_nodes_list(swarm): swarm_nodes = await swarm.nodes.list() assert len(swarm_nodes) == 1 @pytest.mark.asyncio async def test_nodes_list_with_filter(swarm): filters = {"role": "manager"} filtered_nodes = awa...
27.15625
79
0.682969
4a18b67c918247a76f327148626a8b8dd63a128f
4,575
py
Python
blivedm/handlers.py
nie9286/blivedm
778573fb5abcd69fa565ebc0abd9e403298fce3c
[ "MIT" ]
null
null
null
blivedm/handlers.py
nie9286/blivedm
778573fb5abcd69fa565ebc0abd9e403298fce3c
[ "MIT" ]
null
null
null
blivedm/handlers.py
nie9286/blivedm
778573fb5abcd69fa565ebc0abd9e403298fce3c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging from typing import * from . import client as client_ from . import models __all__ = ( 'HandlerInterface', 'BaseHandler', ) logger = logging.getLogger('blivedm') # 常见可忽略的cmd IGNORED_CMDS = ( 'COMBO_SEND', 'ENTRY_EFFECT', 'HOT_RANK_CHANGED', 'HOT_RANK_CHA...
29.326923
111
0.646776
4a18b68d8bfad338022349ee05a7246a374a4a81
4,772
py
Python
drnalpha/users/migrations/0001_initial.py
UKGovernmentBEIS/BRE_DigitalRegulationNavigator_Alpha
bfa6d08212bc18034b20b9c922a554a6e1ddd0f1
[ "MIT" ]
null
null
null
drnalpha/users/migrations/0001_initial.py
UKGovernmentBEIS/BRE_DigitalRegulationNavigator_Alpha
bfa6d08212bc18034b20b9c922a554a6e1ddd0f1
[ "MIT" ]
null
null
null
drnalpha/users/migrations/0001_initial.py
UKGovernmentBEIS/BRE_DigitalRegulationNavigator_Alpha
bfa6d08212bc18034b20b9c922a554a6e1ddd0f1
[ "MIT" ]
1
2021-04-21T09:41:43.000Z
2021-04-21T09:41:43.000Z
# Generated by Django 2.0.9 on 2018-11-06 15:43 import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [("auth", "0009_alter_user_last_name_max_length"...
36.992248
138
0.398575
4a18b6d4d6d2d9124e1cf649cccc604928308adb
32,686
py
Python
DQM/Integration/python/clients/sistrip_dqm_sourceclient-live_cfg.py
akssikdar/cmssw
060bed0f27c94e9803b26f2f595fab5db394a6d8
[ "Apache-2.0" ]
2
2020-05-09T16:03:43.000Z
2020-05-09T16:03:50.000Z
DQM/Integration/python/clients/sistrip_dqm_sourceclient-live_cfg.py
akssikdar/cmssw
060bed0f27c94e9803b26f2f595fab5db394a6d8
[ "Apache-2.0" ]
null
null
null
DQM/Integration/python/clients/sistrip_dqm_sourceclient-live_cfg.py
akssikdar/cmssw
060bed0f27c94e9803b26f2f595fab5db394a6d8
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import FWCore.ParameterSet.Config as cms import sys from Configuration.Eras.Era_Run2_2018_pp_on_AA_cff import Run2_2018_pp_on_AA process = cms.Process("SiStrpDQMLive", Run2_2018_pp_on_AA) process.MessageLogger = cms.Service("MessageLogger", debugModules = cms.untracked.vstrin...
50.51932
261
0.73533
4a18ba430a346f2d7651e2fe26e33fa186d1de08
7,221
py
Python
var/spack/repos/builtin/packages/sherpa/package.py
varioustoxins/spack
cab0e4cb240f34891a6d753f3393e512f9a99e9a
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/sherpa/package.py
varioustoxins/spack
cab0e4cb240f34891a6d753f3393e512f9a99e9a
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
6
2022-01-08T08:41:11.000Z
2022-03-14T19:28:07.000Z
var/spack/repos/builtin/packages/sherpa/package.py
foeroyingur/spack
5300cbbb2e569190015c72d0970d25425ea38647
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Sherpa(AutotoolsPackage): """Sherpa is a Monte Carlo event generator for the Simulation of...
55.546154
105
0.689932
4a18ba84f4cb1d725b674a908e7491effee8c85f
2,162
py
Python
loquat/handler.py
guanzhenxing/loquat
cdfe7464ed48bde448355ad6bc830e5d94760b6e
[ "MIT" ]
null
null
null
loquat/handler.py
guanzhenxing/loquat
cdfe7464ed48bde448355ad6bc830e5d94760b6e
[ "MIT" ]
null
null
null
loquat/handler.py
guanzhenxing/loquat
cdfe7464ed48bde448355ad6bc830e5d94760b6e
[ "MIT" ]
null
null
null
import logging from typing import Optional, Awaitable, Any, Union import tornado.web from tornado import httputil from .middleware import MiddlewareType logger = logging.getLogger(__name__) class MiddlewareHandlerMixin(object): def __init__(self, application, request, **kwargs: Any) -> None: super().__...
32.757576
111
0.685939
4a18bad7bb2393ea6346c8f27c2cc82d14d0472c
8,991
py
Python
source/playbooks/CIS/lambda/cis26.py
fuellbie/aws-security-hub-automated-response-and-remediation
3de36c0d1d1d84fb175dad88343bd54d819e5c78
[ "Apache-2.0" ]
null
null
null
source/playbooks/CIS/lambda/cis26.py
fuellbie/aws-security-hub-automated-response-and-remediation
3de36c0d1d1d84fb175dad88343bd54d819e5c78
[ "Apache-2.0" ]
null
null
null
source/playbooks/CIS/lambda/cis26.py
fuellbie/aws-security-hub-automated-response-and-remediation
3de36c0d1d1d84fb175dad88343bd54d819e5c78
[ "Apache-2.0" ]
2
2021-11-08T04:05:48.000Z
2021-11-08T04:55:53.000Z
#!/usr/bin/python ############################################################################### # Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # # # Licensed under the Apache License Version 2.0 (the "License...
39.96
172
0.566567
4a18bc05092f09f2b9cb9db4b9460e022c8c8674
1,517
py
Python
main.py
nickyjaspers/textracematrix
a36b3cf297e5b30684309663270643846caf86f2
[ "MIT" ]
null
null
null
main.py
nickyjaspers/textracematrix
a36b3cf297e5b30684309663270643846caf86f2
[ "MIT" ]
null
null
null
main.py
nickyjaspers/textracematrix
a36b3cf297e5b30684309663270643846caf86f2
[ "MIT" ]
null
null
null
import getopt import sys import os from code_parser import CodeParser from file_browser import FileBrowser from matrix_writer import MatrixWriter def usage(): print("===============================================") print("Get requirements trace matrix mapping for files") print("") print("-d [BASEDIR...
27.581818
91
0.556361
4a18bc996724f97e2a43cc5d3c46c399997f07c2
3,345
py
Python
homeassistant/components/light/scsgate.py
dauden1184/home-assistant
f4c6d389b77d0efa86644e76604eaea5d21abdb5
[ "Apache-2.0" ]
4
2019-01-10T14:47:54.000Z
2021-04-22T02:06:27.000Z
homeassistant/components/light/scsgate.py
dauden1184/home-assistant
f4c6d389b77d0efa86644e76604eaea5d21abdb5
[ "Apache-2.0" ]
6
2021-02-08T20:25:50.000Z
2022-03-11T23:27:53.000Z
homeassistant/components/light/scsgate.py
dauden1184/home-assistant
f4c6d389b77d0efa86644e76604eaea5d21abdb5
[ "Apache-2.0" ]
3
2018-08-29T19:26:20.000Z
2020-01-19T11:58:22.000Z
""" Support for SCSGate lights. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/light.scsgate/ """ import logging import voluptuous as vol from homeassistant.components import scsgate from homeassistant.components.light import (Light, PLATFORM_SCHEMA) f...
27.644628
78
0.63707
4a18bd455bc4406e6bd79e045fa787a88f66438b
1,593
py
Python
test/unit/test_all_unit.py
muchu1983/104_cameo
8c7f78de198a5bd8d870589402e3b7e8b59f520a
[ "BSD-3-Clause" ]
1
2017-05-25T20:25:20.000Z
2017-05-25T20:25:20.000Z
test/unit/test_all_unit.py
muchu1983/104_findfine
b2255db6327324e89b914fd93a81f7ea5eac6f64
[ "BSD-3-Clause" ]
null
null
null
test/unit/test_all_unit.py
muchu1983/104_findfine
b2255db6327324e89b914fd93a81f7ea5eac6f64
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Copyright (C) 2015, MuChu Hsu Contributed by Muchu Hsu (muchu1983@gmail.com) This file is part of BSD license <https://opensource.org/licenses/BSD-3-Clause> """ import unittest from test.unit.test_player import PlayerTest from test.unit.test_world import WorldTest from test.unit.test_server...
37.046512
97
0.85248
4a18bd4dbb2051653a62ab3c9f8414006b3b2666
5,492
py
Python
pypureclient/flasharray/FA_2_13/models/resource_performance_no_id_by_array_get_response.py
ashahid-ps/py-pure-client
2e3565d37b2a41db69308769f6f485d08a7c46c3
[ "BSD-2-Clause" ]
null
null
null
pypureclient/flasharray/FA_2_13/models/resource_performance_no_id_by_array_get_response.py
ashahid-ps/py-pure-client
2e3565d37b2a41db69308769f6f485d08a7c46c3
[ "BSD-2-Clause" ]
null
null
null
pypureclient/flasharray/FA_2_13/models/resource_performance_no_id_by_array_get_response.py
ashahid-ps/py-pure-client
2e3565d37b2a41db69308769f6f485d08a7c46c3
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.13 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ...
40.382353
524
0.627276
4a18be0601e7be47831fea7f7f54edcda2966a26
1,812
py
Python
examples/twisted/websocket/pingpong_keepalive/client.py
rapyuta-robotics/autobahn-python
c08e9e352d526a7fd0885bb94706366a432ada1a
[ "MIT" ]
1,670
2015-10-12T15:46:22.000Z
2022-03-30T22:12:53.000Z
examples/twisted/websocket/pingpong_keepalive/client.py
rapyuta-robotics/autobahn-python
c08e9e352d526a7fd0885bb94706366a432ada1a
[ "MIT" ]
852
2015-10-16T22:11:03.000Z
2022-03-27T07:57:01.000Z
examples/twisted/websocket/pingpong_keepalive/client.py
rapyuta-robotics/autobahn-python
c08e9e352d526a7fd0885bb94706366a432ada1a
[ "MIT" ]
790
2015-10-15T08:46:12.000Z
2022-03-30T12:22:13.000Z
############################################################################### # # The MIT License (MIT) # # Copyright (c) Crossbar.io Technologies GmbH # # 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 ...
36.24
79
0.687086
4a18be1c7dce934788c634dafdfa5a84b02f092e
1,638
py
Python
run.py
Spico197/open-entity-relation-extraction
0f2f805dadfa175581a4f5b8504677986d7fa8c0
[ "MIT" ]
1
2021-05-28T15:07:11.000Z
2021-05-28T15:07:11.000Z
run.py
Spico197/open-entity-relation-extraction
0f2f805dadfa175581a4f5b8504677986d7fa8c0
[ "MIT" ]
null
null
null
run.py
Spico197/open-entity-relation-extraction
0f2f805dadfa175581a4f5b8504677986d7fa8c0
[ "MIT" ]
null
null
null
import os import re from oer.core.nlp import NLP from oer.core.extractor import Extractor from oer.core.pipeline import Pipeline def predict_file(input_path, output_path): if os.path.isfile(output_path): os.remove(output_path) print('Start extracting...') # 实例化NLP(分词,词性标注,命名实体识别,依存句法分析) nlp...
30.90566
93
0.622711
4a18be242ac986b70247a4267debd20458fffb8d
21,403
py
Python
CAAPR/CAAPR_AstroMagic/PTS/pts/eagle/plotresults.py
wdobbels/CAAPR
50d0b32642a61af614c22f1c6dc3c4a00a1e71a3
[ "MIT" ]
7
2016-05-20T21:56:39.000Z
2022-02-07T21:09:48.000Z
CAAPR/CAAPR_AstroMagic/PTS/pts/eagle/plotresults.py
wdobbels/CAAPR
50d0b32642a61af614c22f1c6dc3c4a00a1e71a3
[ "MIT" ]
1
2019-03-21T16:10:04.000Z
2019-03-22T17:21:56.000Z
CAAPR/CAAPR_AstroMagic/PTS/pts/eagle/plotresults.py
wdobbels/CAAPR
50d0b32642a61af614c22f1c6dc3c4a00a1e71a3
[ "MIT" ]
1
2020-05-19T16:17:17.000Z
2020-05-19T16:17:17.000Z
#!/usr/bin/env python # -*- coding: utf8 -*- # ***************************************************************** # ** PTS -- Python Toolkit for working with SKIRT ** # ** © Astronomical Observatory, Ghent University ** # ***************************************************************** ##...
62.218023
170
0.638368
4a18c1aabc9c96b8736e35f1409eb6523bfe5ae8
449
py
Python
data/scripts/templates/object/mobile/shared_dressed_death_watch_grey.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/mobile/shared_dressed_death_watch_grey.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/mobile/shared_dressed_death_watch_grey.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Creature() result.template = "object/mobile/shared_dressed_death_watch_grey.iff" result.attribute_template_id = 9...
26.411765
70
0.732739
4a18c1d380a678c04db8c58d5a43a62326156693
2,507
py
Python
pydatomic/datomic.py
gns24/pydatomic
f7e89081a1305b7e916f0d48727d5c588d495ec6
[ "MIT" ]
56
2015-01-14T16:38:37.000Z
2022-02-24T10:54:53.000Z
pydatomic/datomic.py
gns24/pydatomic
f7e89081a1305b7e916f0d48727d5c588d495ec6
[ "MIT" ]
null
null
null
pydatomic/datomic.py
gns24/pydatomic
f7e89081a1305b7e916f0d48727d5c588d495ec6
[ "MIT" ]
10
2015-01-27T02:53:03.000Z
2021-12-06T11:30:24.000Z
# -*- coding: utf-8 -*- import requests from urlparse import urljoin from pydatomic.edn import loads class Database(object): def __init__(self, name, conn): self.name = name self.conn = conn def __getattr__(self, name): def f(*args, **kwargs): return getattr(self.conn, nam...
34.819444
91
0.570004
4a18c26a3f5479c3d52464f284bfed8ccb8daf69
16,883
py
Python
django/core/management/base.py
egenerat/gae-django
f12379483cf3917ed3cb46ca5ff0b94daf89fc50
[ "MIT" ]
3
2016-07-08T23:49:32.000Z
2018-04-15T22:55:01.000Z
django/core/management/base.py
egenerat/gae-django
f12379483cf3917ed3cb46ca5ff0b94daf89fc50
[ "MIT" ]
27
2017-02-05T15:57:04.000Z
2018-04-15T22:57:26.000Z
django/core/management/base.py
egenerat/gae-django
f12379483cf3917ed3cb46ca5ff0b94daf89fc50
[ "MIT" ]
null
null
null
""" Base classes for writing management commands (named commands which can be executed through ``django-admin.py`` or ``manage.py``). """ import os import sys from optparse import make_option, OptionParser import django from django.core.exceptions import ImproperlyConfigured from django.core.management.c...
39.081019
178
0.612687
4a18c2789e86932058f18c6c23eadc714139935f
16,684
py
Python
spinup/algos/pytorch/ppo/ppo.py
RamiSketcher/spinningupMPAC
543a3587ef88cd098ec2f060f183d0f9969e92e3
[ "MIT" ]
null
null
null
spinup/algos/pytorch/ppo/ppo.py
RamiSketcher/spinningupMPAC
543a3587ef88cd098ec2f060f183d0f9969e92e3
[ "MIT" ]
null
null
null
spinup/algos/pytorch/ppo/ppo.py
RamiSketcher/spinningupMPAC
543a3587ef88cd098ec2f060f183d0f9969e92e3
[ "MIT" ]
null
null
null
import numpy as np import torch from torch.optim import Adam import gym import time import spinup.algos.pytorch.ppo.core as core from spinup.utils.logx import EpochLogger from spinup.utils.mpi_pytorch import setup_pytorch_for_mpi, sync_params, mpi_avg_grads from spinup.utils.mpi_tools import mpi_fork, mpi_avg, proc_id,...
43.447917
97
0.585291
4a18c2add19cbe96301956526083004fc5a3fcb6
1,779
py
Python
niconico/video.py
tuna2134/niconico.py
0c06fb25a25599a1eabffe471e1fcf7a399236ac
[ "MIT" ]
null
null
null
niconico/video.py
tuna2134/niconico.py
0c06fb25a25599a1eabffe471e1fcf7a399236ac
[ "MIT" ]
null
null
null
niconico/video.py
tuna2134/niconico.py
0c06fb25a25599a1eabffe471e1fcf7a399236ac
[ "MIT" ]
null
null
null
# niconico.py - Video from typing import TYPE_CHECKING, NoReturn, Union from threading import Thread from bs4 import BeautifulSoup from .base import DictFromAttribute, BaseClient from .exceptions import ExtractFailed from .headers import Headers, VIDEO from ._json import loads, dumps from .types.video import EasyC...
25.414286
86
0.583474
4a18c3fc38981d3d69c8288058cc5de6bef2eb81
527
py
Python
dsproject/{{cookiecutter.project_slug}}/scripts/example.py
timothyb0912/cookiecutters
dbe386d7e30cd66886562d779ca83a880788337a
[ "MIT" ]
null
null
null
dsproject/{{cookiecutter.project_slug}}/scripts/example.py
timothyb0912/cookiecutters
dbe386d7e30cd66886562d779ca83a880788337a
[ "MIT" ]
2
2021-01-30T17:11:41.000Z
2021-03-14T22:54:05.000Z
dsproject/{{cookiecutter.project_slug}}/scripts/example.py
timothyb0912/cookiecutters
dbe386d7e30cd66886562d779ca83a880788337a
[ "MIT" ]
null
null
null
""" Example CLI for {{cookiecutter.project_name}}. """ import hydra import pyprojroot from omegaconf import DictConfig default_config_path = str(pyprojroot.here("configs")) default_config_name = "config" @hydra.main(config_path=default_config_path, config_name=default_config_name) def main(cfg: DictConfig): """ ...
21.08
77
0.732448
4a18c64a13dd22573f7669e850dd589b1a21b704
53,649
py
Python
src/transformers/models/imagegpt/modeling_imagegpt.py
JingyaHuang/transformers
6589e510fa4e6c442059de2fab84752535de9b23
[ "Apache-2.0" ]
null
null
null
src/transformers/models/imagegpt/modeling_imagegpt.py
JingyaHuang/transformers
6589e510fa4e6c442059de2fab84752535de9b23
[ "Apache-2.0" ]
null
null
null
src/transformers/models/imagegpt/modeling_imagegpt.py
JingyaHuang/transformers
6589e510fa4e6c442059de2fab84752535de9b23
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021 The OpenAI Team Authors and HuggingFace Inc. 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 # # Unles...
44.228359
120
0.640124
4a18c6868ffbc547ca2cf71063f787dff5a9aaaf
4,572
py
Python
logical_statement.py
BenKelly99/TruthTreeGenerator
d4f5613ddc1586b1a42b049c96f12410dbfc31b1
[ "MIT" ]
null
null
null
logical_statement.py
BenKelly99/TruthTreeGenerator
d4f5613ddc1586b1a42b049c96f12410dbfc31b1
[ "MIT" ]
null
null
null
logical_statement.py
BenKelly99/TruthTreeGenerator
d4f5613ddc1586b1a42b049c96f12410dbfc31b1
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod class LogicalStatement(ABC): @abstractmethod def evaluate(self, truth_assignment): pass @abstractmethod def getDecomposition(self): pass @abstractmethod def getString(self): pass class BinaryStatement(LogicalStatement): def __in...
32.892086
149
0.688101
4a18c687d677d636843fe67e7e4567d285f6b89f
2,737
py
Python
preprocess.py
jackyin68/chinese-relationship-nre
92df0bf3737bbddd4f5a4e816da216536a60b0ff
[ "MIT" ]
2
2020-05-14T16:25:19.000Z
2020-06-28T13:53:50.000Z
preprocess.py
jackyin68/chinese-relationship-nre
92df0bf3737bbddd4f5a4e816da216536a60b0ff
[ "MIT" ]
null
null
null
preprocess.py
jackyin68/chinese-relationship-nre
92df0bf3737bbddd4f5a4e816da216536a60b0ff
[ "MIT" ]
null
null
null
import logging import multiprocessing import re import string import jieba from tqdm import tqdm from zhon.hanzi import punctuation raw_file = 'data/raw/text.txt' clean_file = 'data/processed/clean_text.txt' seg_file = 'data/processed/seg_text.txt' logger = logging.getLogger('Preprocess') logger.setLevel(logging.INF...
28.216495
96
0.663866
4a18c96bd17726ce97a25359e6008553082163ac
760
py
Python
Day07/mouse.py
dksmuz7/open-cv
eff81e97aa9830ae0342a98f942b0b082e4d7f2a
[ "MIT" ]
null
null
null
Day07/mouse.py
dksmuz7/open-cv
eff81e97aa9830ae0342a98f942b0b082e4d7f2a
[ "MIT" ]
null
null
null
Day07/mouse.py
dksmuz7/open-cv
eff81e97aa9830ae0342a98f942b0b082e4d7f2a
[ "MIT" ]
null
null
null
# Mouse event bindings # importing library import cv2 as cv import numpy as np def draw(event,x,y,flags,param): print("Flags =",flags) # unique for button clicked print("Param =",param) # process is going on # binding double left click to draw circle if event == cv.EVENT_LBUTTONDBLCLK: cv.cir...
25.333333
58
0.665789
4a18ca12cf0ed4f966f593ce63ac50d4b21bd280
459
py
Python
backend/medicar/agendamento/serializers/usuario.py
devlarysson/medicar
da47f03e6718c2053d42360806aae3ebb3b6f727
[ "MIT" ]
1
2020-06-26T22:08:42.000Z
2020-06-26T22:08:42.000Z
backend/medicar/agendamento/serializers/usuario.py
devlarysson/medicar
da47f03e6718c2053d42360806aae3ebb3b6f727
[ "MIT" ]
null
null
null
backend/medicar/agendamento/serializers/usuario.py
devlarysson/medicar
da47f03e6718c2053d42360806aae3ebb3b6f727
[ "MIT" ]
1
2020-08-04T21:42:45.000Z
2020-08-04T21:42:45.000Z
from django.contrib.auth.models import User from rest_framework import serializers class UsuarioSerializer(serializers.ModelSerializer): class Meta: model = User fields = ['username', 'email', 'password', 'first_name'] def create(self, validated_data): password = validated_data.pop('p...
28.6875
64
0.679739
4a18cacffd1dc7f3674441885d1409e734e84911
10,169
py
Python
socks5_server.py
raddup/socks5-server-py
44f7d3f491ff33087d2c9ceacd1b3269ad2aad14
[ "MIT" ]
null
null
null
socks5_server.py
raddup/socks5-server-py
44f7d3f491ff33087d2c9ceacd1b3269ad2aad14
[ "MIT" ]
null
null
null
socks5_server.py
raddup/socks5-server-py
44f7d3f491ff33087d2c9ceacd1b3269ad2aad14
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ socks5_server Supports both python 2 and 3. """ __author__ = "Caleb Madrigal" __date__ = '2016-10-17' import sys import argparse import logging import socket import select import threading PY3 = sys.version_info[0] == 3 if PY3: chr_to_int = lambda x: x encode_str = lambda x: x.en...
39.568093
99
0.601239