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
79555c3ab7464b582554b316a767eadbd25d15e5
1,534
py
Python
tests/urls.py
mvpoland/django-rest-framework-oauth
5afc705df1351ac411595b9db4d4f0f21ff08fc0
[ "BSD-3-Clause" ]
null
null
null
tests/urls.py
mvpoland/django-rest-framework-oauth
5afc705df1351ac411595b9db4d4f0f21ff08fc0
[ "BSD-3-Clause" ]
null
null
null
tests/urls.py
mvpoland/django-rest-framework-oauth
5afc705df1351ac411595b9db4d4f0f21ff08fc0
[ "BSD-3-Clause" ]
null
null
null
from django.http import HttpResponse from django.urls import include, re_path from rest_framework.permissions import IsAuthenticated from rest_framework_oauth import permissions from rest_framework_oauth.authentication import OAuthAuthentication, OAuth2Authentication from rest_framework.views import APIView class Mo...
31.958333
107
0.70013
79555d35ea3f68107e09c48885befc1544833a4b
390
py
Python
src/wsgi.py
firewut/data-transform-pipelines-api
c62a7aa5fd57102fa67cf715dc78c3365b739925
[ "MIT" ]
2
2019-01-09T07:42:17.000Z
2021-08-25T02:43:47.000Z
src/wsgi.py
firewut/data-transform-pipelines-api
c62a7aa5fd57102fa67cf715dc78c3365b739925
[ "MIT" ]
null
null
null
src/wsgi.py
firewut/data-transform-pipelines-api
c62a7aa5fd57102fa67cf715dc78c3365b739925
[ "MIT" ]
null
null
null
""" WSGI config for data_transform project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANG...
22.941176
78
0.787179
79555dacd0fab0641bf26d9c7dcec5ec6d9bd19a
21,518
py
Python
src/python/pants/util/dirutil.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
src/python/pants/util/dirutil.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
1
2018-09-04T17:37:34.000Z
2018-09-04T19:42:58.000Z
src/python/pants/util/dirutil.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import atexit import errno import os import shutil import stat import tempfile import threading import uuid from collections import defaultdict from contextlib import contextmanager from p...
33.833333
117
0.702853
79555e7e4f1a2b07d8eacc83f48b7d8900adb2d6
208
py
Python
tests/packages/named/named-package2/setup.py
sbg/dante
104543c3ccb5e762d3e9cd6e8fa04c5fa91e2227
[ "Apache-2.0" ]
9
2017-11-03T15:53:01.000Z
2019-10-01T14:09:56.000Z
tests/packages/named/named-package2/setup.py
sbg/dante
104543c3ccb5e762d3e9cd6e8fa04c5fa91e2227
[ "Apache-2.0" ]
4
2019-10-01T12:53:58.000Z
2021-04-26T15:39:16.000Z
tests/packages/named/named-package2/setup.py
sbg/dante
104543c3ccb5e762d3e9cd6e8fa04c5fa91e2227
[ "Apache-2.0" ]
5
2017-11-03T15:50:40.000Z
2021-09-13T08:50:45.000Z
from setuptools import setup, find_packages install_requires = [] setup( name='named-package2', version='0.0.1+local-version', install_requires=install_requires, packages=find_packages(), )
18.909091
43
0.725962
79555e92ec3964d0528f7c25dc48495c351e09d2
2,341
py
Python
Chapter02/rest.py
PacktPublishing/JUNOS-Automation-Cookbook
d61a007f585207c44d1ad5147c3660d8049ffc7d
[ "MIT" ]
8
2018-02-25T17:22:40.000Z
2021-11-08T13:10:37.000Z
Chapter02/rest.py
PacktPublishing/JUNOS-Automation-Cookbook
d61a007f585207c44d1ad5147c3660d8049ffc7d
[ "MIT" ]
null
null
null
Chapter02/rest.py
PacktPublishing/JUNOS-Automation-Cookbook
d61a007f585207c44d1ad5147c3660d8049ffc7d
[ "MIT" ]
7
2017-12-28T14:04:09.000Z
2021-06-18T05:08:11.000Z
#!/usr/bin/env python import sys import httplib import ssl import base64 import argparse import getpass import json import os import io # Error handling def onError(exception_type, exception, traceback): print "%s: %s" % (exception_type.__name__, exception) sys.excepthook = onError cmdline = argparse.ArgumentPa...
30.802632
107
0.70739
79555fa242bc028693b40063a38396141daba34d
4,113
py
Python
plugins/mutePersonal.py
micodev/botShell
e41de4545460cbb2bd00815a8681275af432ec69
[ "MIT" ]
24
2020-07-22T00:14:25.000Z
2021-09-24T12:30:05.000Z
plugins/mutePersonal.py
kossofe/botShell
01f09d93c0ef560cefd37c59421acafe937521cd
[ "MIT" ]
null
null
null
plugins/mutePersonal.py
kossofe/botShell
01f09d93c0ef560cefd37c59421acafe937521cd
[ "MIT" ]
19
2020-07-17T21:01:31.000Z
2022-02-17T11:07:43.000Z
import asyncio from utilities import utilities from Db.mute_sql import addMuteUser, getMutedUsers, getMutedUser, remMuteUser from telethon import utils, errors import re def escape(strin): alphanumeric = "" for character in strin: if character.isalnum(): alphanumeric += character e...
36.078947
87
0.601021
7955601b3b1dcf87c800839d203364236dbf8570
909
py
Python
pmdarima/compat/statsmodels.py
Saravji/pmdarima
7f42e36beb888d9e1e7e41b0d9c9f7419c730a3a
[ "MIT" ]
1
2020-11-22T00:41:47.000Z
2020-11-22T00:41:47.000Z
pmdarima/compat/statsmodels.py
Saravji/pmdarima
7f42e36beb888d9e1e7e41b0d9c9f7419c730a3a
[ "MIT" ]
null
null
null
pmdarima/compat/statsmodels.py
Saravji/pmdarima
7f42e36beb888d9e1e7e41b0d9c9f7419c730a3a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Handle inconsistencies in the statsmodels API versions from __future__ import absolute_import __all__ = [ 'bind_df_model' ] DEFAULT_NON_SEASONAL_MAXITER = 500 # ARMA, ARIMA DEFAULT_SEASONAL_MAXITER = 50 # SARIMAX def bind_df_model(model_fit, arima_results): """Set model degree...
26.735294
67
0.687569
795560e62a1fe03a1eb6a033c3777ff984164caa
1,946
py
Python
setup.py
google/tmppy
faf67af1213ee709f28cc5f492ec4903c51d4104
[ "Apache-2.0" ]
27
2017-10-02T01:17:35.000Z
2021-10-16T23:31:46.000Z
setup.py
google/tmppy
faf67af1213ee709f28cc5f492ec4903c51d4104
[ "Apache-2.0" ]
51
2017-10-01T09:38:22.000Z
2018-10-13T16:39:39.000Z
setup.py
google/tmppy
faf67af1213ee709f28cc5f492ec4903c51d4104
[ "Apache-2.0" ]
9
2017-11-04T13:12:27.000Z
2021-10-16T23:31:38.000Z
#!/usr/bin/env python3 # 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 requir...
36.037037
107
0.689106
79556149473003dd5d83b37c79ef7076efc18f47
6,698
py
Python
Transformers/Python/tests/test_cli.py
wubero/Lampion
8a81b3381dee48ffab8cf7ee1b57e0eea8aaeba2
[ "MIT" ]
1
2022-02-20T11:42:18.000Z
2022-02-20T11:42:18.000Z
Transformers/Python/tests/test_cli.py
ciselab/Lampion
ba457d152a83e9b58072ec4676cc340b5b5afb1b
[ "MIT" ]
28
2021-12-06T07:10:27.000Z
2022-03-25T09:42:51.000Z
Transformers/Python/tests/test_cli.py
wubero/Lampion
8a81b3381dee48ffab8cf7ee1b57e0eea8aaeba2
[ "MIT" ]
2
2021-11-25T08:32:45.000Z
2022-02-20T11:42:27.000Z
import os import libcst import lampion.cli import pytest # This prefix works for running pytest on project root path_prefix: str = "./tests" # You may want to change it to "./" to run the tests in the IDE. def test_read_input_files_on_folder_should_give_two_csts(): csts = lampion.cli.read_input_dir(f"{path_p...
31.446009
98
0.760376
79556273e3f6be30dac5ffba489d5f379dd76077
132
py
Python
Python/count.py
NewGuonx/DST_algorithm
8c4b2f0fe1f43044a5c37a7f993d339862d9182c
[ "Unlicense" ]
1
2022-01-23T05:29:17.000Z
2022-01-23T05:29:17.000Z
Python/count.py
sonaspy/dst_algorithms
8c4b2f0fe1f43044a5c37a7f993d339862d9182c
[ "Unlicense" ]
null
null
null
Python/count.py
sonaspy/dst_algorithms
8c4b2f0fe1f43044a5c37a7f993d339862d9182c
[ "Unlicense" ]
null
null
null
def count(data, target): n = 0 for item in data: if item == target: # found a match n += 1 return n
14.666667
52
0.492424
7955627ec05bd4cc43ff2357a3000575fe7ec9f7
3,453
py
Python
src/next_scraper/tests/tasks/test_scraper.py
EnTeQuAk/next-scraper
c362ff362976125c142caabd08e224c0156970aa
[ "BSD-3-Clause" ]
null
null
null
src/next_scraper/tests/tasks/test_scraper.py
EnTeQuAk/next-scraper
c362ff362976125c142caabd08e224c0156970aa
[ "BSD-3-Clause" ]
8
2021-03-19T00:17:16.000Z
2021-12-13T20:34:55.000Z
src/next_scraper/tests/tasks/test_scraper.py
EnTeQuAk/next-scraper
c362ff362976125c142caabd08e224c0156970aa
[ "BSD-3-Clause" ]
null
null
null
import pytest import responses from next_scraper.models import COMPLETED, NEW, Report from next_scraper.tasks.scraper import ( extract_information_from_page, fetch_status_from_links, mark_report_as_completed, ) @pytest.fixture(autouse=True) def example_page_structure(): responses.add( response...
28.073171
87
0.674486
795562d4c9c573d90398cbfc2c0b03a92050f925
891
py
Python
replication/johnson_alahi_li_2016/download_images.py
jbueltemeier/pystiche_papers
d162c2db87251f9e3280fea35cf149d030dc335b
[ "BSD-3-Clause" ]
4
2020-06-08T11:49:41.000Z
2021-04-09T16:16:42.000Z
replication/johnson_alahi_li_2016/download_images.py
jbueltemeier/pystiche_papers
d162c2db87251f9e3280fea35cf149d030dc335b
[ "BSD-3-Clause" ]
229
2020-06-08T07:24:25.000Z
2021-01-08T07:16:02.000Z
replication/johnson_alahi_li_2016/download_images.py
jbueltemeier/pystiche_papers
d162c2db87251f9e3280fea35cf149d030dc335b
[ "BSD-3-Clause" ]
2
2020-06-09T06:10:50.000Z
2020-07-29T08:07:40.000Z
from torchvision.datasets.utils import download_and_extract_archive import pystiche_papers.johnson_alahi_li_2016 as paper from utils import ArgumentParser, make_description def main(args): paper.images().download(args.images_source_dir) if args.no_dataset: return download_and_extract_archive( ...
23.447368
80
0.710438
795562e6d65763032476a8bacd0a9585f8314bf9
5,833
py
Python
rsspotify/rsspotify.py
pablomd314/rsspotify
2f68e4ebe500b2627ce625390290921504706349
[ "MIT" ]
2
2018-09-05T19:29:42.000Z
2021-12-11T23:25:09.000Z
rsspotify/rsspotify.py
pablomd314/rsspotify
2f68e4ebe500b2627ce625390290921504706349
[ "MIT" ]
7
2018-09-05T19:30:24.000Z
2022-03-11T23:31:54.000Z
rsspotify/rsspotify.py
pablomd314/rsspotify
2f68e4ebe500b2627ce625390290921504706349
[ "MIT" ]
null
null
null
import requests import copy from . import rss import urllib import time import requests import socket import datetime class SpotifyClient(object): """This class handles all communication with the spotify server""" CALLBACK_PATH = "/v1/authorization" TOKEN_URL = "https://accounts.spotify.com/api/token" ...
38.886667
100
0.610663
795562ef7c6edd41a513a86a7c5ab991448e0298
909
py
Python
jp.atcoder/agc043/agc043_b/28076515.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/agc043/agc043_b/28076515.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/agc043/agc043_b/28076515.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
import typing def main() -> typing.NoReturn: n = int(input()) a = list(map(int, input())) # odd, even a = [x - 1 for x in a] k = 1 << 20 cnt2 = [0] * k cnt2[2] = 1 for i in range(2, k): if i * 2 >= k: break cnt2[i * 2] = cnt2[i] + 1 for i in range(k ...
21.642857
74
0.382838
79556494159046c5f9b0e4231b784eafd8934c37
5,488
py
Python
hdp-ambari-mpack-3.1.4.0/stacks/HDP/3.0/services/ZOOKEEPER/package/scripts/zookeeper.py
dropoftruth/dfhz_hdp_mpack
716f0396dce25803365c1aed9904b74fbe396f79
[ "Apache-2.0" ]
3
2022-01-05T10:10:36.000Z
2022-02-21T06:57:06.000Z
hdp-ambari-mpack-3.1.4.0/stacks/HDP/3.0/services/ZOOKEEPER/package/scripts/zookeeper.py
dropoftruth/dfhz_hdp_mpack
716f0396dce25803365c1aed9904b74fbe396f79
[ "Apache-2.0" ]
13
2019-06-05T07:47:00.000Z
2019-12-29T08:29:27.000Z
hdp-ambari-mpack-3.1.4.0/stacks/HDP/3.0/services/ZOOKEEPER/package/scripts/zookeeper.py
dropoftruth/dfhz_hdp_mpack
716f0396dce25803365c1aed9904b74fbe396f79
[ "Apache-2.0" ]
2
2022-01-05T09:09:20.000Z
2022-02-21T07:02:06.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 use this ...
33.668712
117
0.71137
7955650dc7639ef2089060bd7a321b20fda5d53d
2,956
py
Python
convert_pyproject.py
0xdecaff/starknet.py
b746d7b1539d8b753ed946e5e26358a72973facc
[ "MIT" ]
null
null
null
convert_pyproject.py
0xdecaff/starknet.py
b746d7b1539d8b753ed946e5e26358a72973facc
[ "MIT" ]
null
null
null
convert_pyproject.py
0xdecaff/starknet.py
b746d7b1539d8b753ed946e5e26358a72973facc
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # @Author: José Sánchez-Gallego (gallegoj@uw.edu) # @Date: 2019-12-18 # @Filename: create_setup.py # @License: BSD 3-clause (http://www.opensource.org/licenses/BSD-3-Clause) # This is a temporary solution for the fact that pip install . fails with # poetry when there is ...
31.784946
82
0.69046
7955653be7b7ccfa4dad6ecd54057e61f639b8a9
764
py
Python
krux/types/null.py
claydodo/cab
0b68b8c88006a6b34874cfb3c450f5d2a0becb2c
[ "Unlicense" ]
null
null
null
krux/types/null.py
claydodo/cab
0b68b8c88006a6b34874cfb3c450f5d2a0becb2c
[ "Unlicense" ]
1
2018-11-07T07:53:16.000Z
2018-11-07T07:53:16.000Z
krux/types/null.py
claydodo/krux
0b68b8c88006a6b34874cfb3c450f5d2a0becb2c
[ "Unlicense" ]
null
null
null
# -*- coding:utf-8 -*- from .singleton import Singleton class NullClass(Singleton): """A do-nothing class. From A. Martelli et al. Python Cookbook. (O'Reilly) Thanks to Dinu C. Gherman, Holger Krekel. """ def __init__(self, *args, **kwargs): pass def __call__(self, *args, **kwargs): return se...
28.296296
55
0.668848
7955656cf83a42dd61cf35865309df14c0ebe986
252
py
Python
ibis_vega_transform/util.py
xmnlab/ibis-vega-transform
75b4c5e4a8452dbeb5a81e19eae817b4d9c64999
[ "Apache-2.0" ]
20
2019-08-12T17:18:10.000Z
2021-09-15T15:38:28.000Z
ibis_vega_transform/util.py
xmnlab/ibis-vega-transform
75b4c5e4a8452dbeb5a81e19eae817b4d9c64999
[ "Apache-2.0" ]
63
2019-07-29T00:07:02.000Z
2022-01-30T21:57:22.000Z
ibis_vega_transform/util.py
isabella232/ibis-vega-transform
6019825a05cefec153363ded01d5ded4a6befa75
[ "Apache-2.0" ]
6
2019-07-19T15:13:36.000Z
2022-03-06T03:01:54.000Z
from typing import * V = TypeVar("V") def promote_list(val: Union[V, List[V]]) -> List[V]: """ Maybe wrap a value in a list. If it is already a list, does nothing. """ if not isinstance(val, list): val = [val] return val
19.384615
72
0.583333
7955660173adaccd72b64fd42be40574447d044b
1,806
py
Python
chrome/test/enterprise/e2e/policy/force_google_safe_search/force_google_safe_search.py
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/test/enterprise/e2e/policy/force_google_safe_search/force_google_safe_search.py
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/test/enterprise/e2e/policy/force_google_safe_search/force_google_safe_search.py
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2019 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import logging from absl import flags from chrome_ent_test.infra.core import environment, before_all, test from infra import ChromeEnterpriseTe...
34.075472
72
0.732558
79556621c35d7e91142a839d2aefc4612160ce2d
1,959
py
Python
tests/test_views/customer/request/test_cancel.py
a-belhadj/squest
8714fefc332ab1ab349508488455f4a1f2ab8a82
[ "Apache-2.0" ]
null
null
null
tests/test_views/customer/request/test_cancel.py
a-belhadj/squest
8714fefc332ab1ab349508488455f4a1f2ab8a82
[ "Apache-2.0" ]
null
null
null
tests/test_views/customer/request/test_cancel.py
a-belhadj/squest
8714fefc332ab1ab349508488455f4a1f2ab8a82
[ "Apache-2.0" ]
null
null
null
from django.core.exceptions import PermissionDenied from django.urls import reverse from service_catalog.models import Request from tests.base_test_request import BaseTestRequest class TestCustomerRequestViewTest(BaseTestRequest): def setUp(self): super(TestCustomerRequestViewTest, self).setUp() de...
36.277778
87
0.702399
79556699efd8551c1863fa67df39167df56d2a8e
3,595
py
Python
setup.py
KDahlgren/nyctea
725940d46a63ca4189283bcc716ad0c96aab48ec
[ "MIT" ]
null
null
null
setup.py
KDahlgren/nyctea
725940d46a63ca4189283bcc716ad0c96aab48ec
[ "MIT" ]
null
null
null
setup.py
KDahlgren/nyctea
725940d46a63ca4189283bcc716ad0c96aab48ec
[ "MIT" ]
null
null
null
#!/usr/bin/env python # based on https://github.com/KDahlgren/pyLDFI/blob/master/setup.py import os, sys, time C4_FINDAPR_PATH = "./lib/c4/cmake/FindApr.cmake" ################# # GETAPR_LIST # ################# def getAPR_list() : cmd = 'find / -name "apr_file_io.h" | grep -v "Permission denied" > out.txt' p...
24.455782
161
0.54548
795566e6524f2eabc80e56e8e99405cc5bc8f706
10,987
py
Python
aioquant/event.py
littleyanglovegithub/aioquant
fc0d866980fdc37c810cff02de72efe53acaad05
[ "MIT" ]
175
2020-09-22T17:34:30.000Z
2022-03-29T10:17:54.000Z
aioquant/event.py
littleyanglovegithub/aioquant
fc0d866980fdc37c810cff02de72efe53acaad05
[ "MIT" ]
null
null
null
aioquant/event.py
littleyanglovegithub/aioquant
fc0d866980fdc37c810cff02de72efe53acaad05
[ "MIT" ]
141
2020-09-29T03:24:38.000Z
2022-03-30T11:06:45.000Z
# -*— coding:utf-8 -*- """ Event Center. Author: HuangTao Date: 2018/05/04 Email: huangtao@ifclover.com """ import json import zlib import asyncio import aioamqp from aioquant.utils import logger from aioquant.configure import config from aioquant.tasks import LoopRunTask, SingleTask from aioquant.market import...
32.89521
118
0.61864
795567fa39fe2006d4d54b78840bda6d4dc35b86
4,959
py
Python
release_notes_clear.py
SergeBakharev/content
d66cc274f5bf6f9f0e9ed7e4df1af7b6f305aacf
[ "MIT" ]
2
2020-07-27T10:35:41.000Z
2020-12-14T15:44:18.000Z
release_notes_clear.py
SergeBakharev/content
d66cc274f5bf6f9f0e9ed7e4df1af7b6f305aacf
[ "MIT" ]
48
2022-03-08T13:45:00.000Z
2022-03-31T14:32:05.000Z
release_notes_clear.py
SergeBakharev/content
d66cc274f5bf6f9f0e9ed7e4df1af7b6f305aacf
[ "MIT" ]
2
2021-12-13T13:07:21.000Z
2022-03-05T02:23:34.000Z
import os import json import argparse from datetime import datetime import yaml from demisto_sdk.commands.common.constants import UNRELEASE_HEADER, INTEGRATIONS_DIR, SCRIPTS_DIR, PLAYBOOKS_DIR, \ REPORTS_DIR, DASHBOARDS_DIR, WIDGETS_DIR, INCIDENT_FIELDS_DIR, LAYOUTS_DIR, CLASSIFIERS_DIR, INDICATOR_TYPES_DIR from d...
39.047244
117
0.660012
79556835c82408d3575bfa20638a6ad9f898b902
3,692
py
Python
docs/conf.py
TorchUQ/torchuq
5335c5948385c7b9bde4baefc9399d79a7cb07ef
[ "MIT" ]
27
2021-12-01T06:22:46.000Z
2022-03-30T13:16:52.000Z
docs/conf.py
yyht/torchuq
5335c5948385c7b9bde4baefc9399d79a7cb07ef
[ "MIT" ]
null
null
null
docs/conf.py
yyht/torchuq
5335c5948385c7b9bde4baefc9399d79a7cb07ef
[ "MIT" ]
2
2022-01-13T06:59:05.000Z
2022-02-05T23:01:41.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...
35.5
79
0.660347
795568d7136f58d75872584bb710fca00a2b59ce
2,101
py
Python
python/Closure_Decorator/metaclasses/slotstyped.py
rghvat/learning-synopsis
2f4fefc2d467a8cfb51ea4be4c0c88732787118a
[ "Apache-2.0" ]
null
null
null
python/Closure_Decorator/metaclasses/slotstyped.py
rghvat/learning-synopsis
2f4fefc2d467a8cfb51ea4be4c0c88732787118a
[ "Apache-2.0" ]
null
null
null
python/Closure_Decorator/metaclasses/slotstyped.py
rghvat/learning-synopsis
2f4fefc2d467a8cfb51ea4be4c0c88732787118a
[ "Apache-2.0" ]
null
null
null
# file: slotstyped.py """Use of descriptor and metaclass to get slots with given types. """ from __future__ import print_function class TypDescriptor(object): """Descriptor with type. """ def __init__(self, data_type, default_value=None): self.name = None self._internal_name = None ...
25.938272
73
0.60257
795569e23ab3de6b2908e81d64ceaf4fbecd1735
6,520
py
Python
script/testing/util/test_server.py
Yriuns/noisepage
7f2f6a28972a8967e0bd6ffe4336170713b56c08
[ "MIT" ]
null
null
null
script/testing/util/test_server.py
Yriuns/noisepage
7f2f6a28972a8967e0bd6ffe4336170713b56c08
[ "MIT" ]
null
null
null
script/testing/util/test_server.py
Yriuns/noisepage
7f2f6a28972a8967e0bd6ffe4336170713b56c08
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import sys import time import traceback from typing import List from util import constants from util.db_server import NoisePageServer from util.test_case import TestCase from util.constants import LOG, ErrorCode from util.periodic_task import PeriodicTask from util.common import (run_co...
40
109
0.621933
79556a6651c8232513c2e305f9f84c214d4e0acc
2,777
py
Python
bots/PLManBot.py
wen96/pl-man2
b861fd8adaf28b81747d09934c6437cbb259370b
[ "MIT" ]
null
null
null
bots/PLManBot.py
wen96/pl-man2
b861fd8adaf28b81747d09934c6437cbb259370b
[ "MIT" ]
null
null
null
bots/PLManBot.py
wen96/pl-man2
b861fd8adaf28b81747d09934c6437cbb259370b
[ "MIT" ]
null
null
null
#!/usr/bin/python2.7 import sys import json def say(txt): sys.stderr.write('PLBot >> '+txt) sys.stderr.flush() class Entity: class Types(): generator = 6 tree = 1 dot = 7 enemy = 3 empty = 0 fireDoor = 4 typeEntity = "None" alive = False def...
22.395161
74
0.562838
79556b1cdea602a696524f2db2dcbb15ecb6bf3a
1,999
py
Python
examples/pyelement/spring_mass_damper.py
peekwez/tacs
ac80d859b1cd8befb322efd338bf6c2ec1aefa03
[ "Apache-2.0" ]
1
2021-02-17T11:56:46.000Z
2021-02-17T11:56:46.000Z
examples/pyelement/spring_mass_damper.py
peekwez/tacs
ac80d859b1cd8befb322efd338bf6c2ec1aefa03
[ "Apache-2.0" ]
2
2020-06-29T12:42:37.000Z
2020-10-14T18:03:37.000Z
examples/pyelement/spring_mass_damper.py
peekwez/tacs
ac80d859b1cd8befb322efd338bf6c2ec1aefa03
[ "Apache-2.0" ]
5
2020-04-27T20:04:34.000Z
2021-07-15T13:04:15.000Z
from mpi4py import MPI from tacs import TACS, elements import numpy as np # Define an element in TACS using the pyElement feature class SpringMassDamper(elements.pyElement): def __init__(self, num_nodes, num_disps, m, c, k): super(SpringMassDamper, self).__init__(num_disps, num_nodes) self.m = m ...
27.383562
70
0.598299
79556b66e33f3a52b915b4d27f02f9c6645eef7c
459
py
Python
setup.py
olescheller/slpp-23
0a18a4abfa67c2a7b1a1e00768f383525af01195
[ "MIT" ]
null
null
null
setup.py
olescheller/slpp-23
0a18a4abfa67c2a7b1a1e00768f383525af01195
[ "MIT" ]
null
null
null
setup.py
olescheller/slpp-23
0a18a4abfa67c2a7b1a1e00768f383525af01195
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup setup( name='SLPP-23', description='SLPP-23 is a simple lua-python data structures parser', version='1.2', author='Ilya Skriblovsky', author_email='ilyaskriblovsky@gmail.com', url='https://github.com/IlyaSkriblovsky/slpp-23', license='https...
28.6875
77
0.688453
79556bd114a808b5a88cab0d97cf9aa2e7ebfbfa
3,736
py
Python
ExplorationModule/ICM.py
ariel415el/RL-Exploration
87e5bb77862cf7545634e89bde99b9e953ebb8cf
[ "Apache-2.0" ]
null
null
null
ExplorationModule/ICM.py
ariel415el/RL-Exploration
87e5bb77862cf7545634e89bde99b9e953ebb8cf
[ "Apache-2.0" ]
null
null
null
ExplorationModule/ICM.py
ariel415el/RL-Exploration
87e5bb77862cf7545634e89bde99b9e953ebb8cf
[ "Apache-2.0" ]
null
null
null
import torch from torch import nn class Forward_module(nn.Module): def __init__(self, action_dim, hidden_dim, activation=nn.ReLU(inplace=True)): super(Forward_module, self).__init__() action_embedd_dim=128 self.action_encoder = nn.Embedding(action_dim, action_embedd_dim) self.layer...
45.012048
98
0.629283
79556c1fec789dea9365221f877d53295f05c3a8
5,155
py
Python
Functions.py
shaofengzhu/codespacefunc
96f2e9d65d4486fd87fde9aea411fd034fefd992
[ "MIT" ]
null
null
null
Functions.py
shaofengzhu/codespacefunc
96f2e9d65d4486fd87fde9aea411fd034fefd992
[ "MIT" ]
null
null
null
Functions.py
shaofengzhu/codespacefunc
96f2e9d65d4486fd87fde9aea411fd034fefd992
[ "MIT" ]
null
null
null
from __future__ import annotations import itertools import pandas as pd import base64 from urllib.parse import quote as urlquote from urllib.request import urlopen def myadd(x, y): """Basic addition test""" return x + y def badadd(x : float, y : float) -> float: """Another addition test"""...
62.108434
2,929
0.82968
79556c99f1f10056f2785fc7d534d20afde7c17c
9,528
py
Python
bin/EvaluatorDirectVASP.py
quanshengwu/PyChemia
98e9f7a1118b694dbda3ee75411ff8f8d7b9688b
[ "MIT" ]
1
2021-03-26T12:34:45.000Z
2021-03-26T12:34:45.000Z
bin/EvaluatorDirectVASP.py
quanshengwu/PyChemia
98e9f7a1118b694dbda3ee75411ff8f8d7b9688b
[ "MIT" ]
null
null
null
bin/EvaluatorDirectVASP.py
quanshengwu/PyChemia
98e9f7a1118b694dbda3ee75411ff8f8d7b9688b
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse import logging import os import numpy as np from pychemia import pcm_log from pychemia.analysis import StructureAnalysis from pychemia.code.vasp.task import IonRelaxation from pychemia.db import get_database from pychemia.evaluator import DirectEvaluator from pychemia.utils.seri...
48.365482
112
0.570109
79556cc295505bf3b15b86c1962f8830a06cdc1f
179
py
Python
neuralcorefres/model/__init__.py
RyanElliott10/NeuralCorefRes
a0ca5c614cc1638ab7bd230fcfefbd26120ed800
[ "MIT" ]
2
2020-02-23T01:00:22.000Z
2020-06-17T21:39:57.000Z
neuralcorefres/model/__init__.py
RyanElliott10/NeuralCorefRes
a0ca5c614cc1638ab7bd230fcfefbd26120ed800
[ "MIT" ]
9
2020-02-27T01:08:55.000Z
2022-03-12T00:16:12.000Z
neuralcorefres/model/__init__.py
RyanElliott10/NeuralCorefRes
a0ca5c614cc1638ab7bd230fcfefbd26120ed800
[ "MIT" ]
null
null
null
from neuralcorefres.model.cluster_network import * from neuralcorefres.model.word_embedding import * __all__ = [ "ClusterNetwork", "WordEmbedding", "EMBEDDING_DIM" ]
19.888889
50
0.748603
79556d0d005637542fca359d73602170662e30bd
3,937
py
Python
samples/report_test_sam.py
ivmfnal/metacat
9eeea5f5e7867395c7203b8a7789607d3bdbd903
[ "BSD-3-Clause" ]
1
2022-03-18T19:01:29.000Z
2022-03-18T19:01:29.000Z
samples/report_test_sam.py
ivmfnal/metacat
9eeea5f5e7867395c7203b8a7789607d3bdbd903
[ "BSD-3-Clause" ]
null
null
null
samples/report_test_sam.py
ivmfnal/metacat
9eeea5f5e7867395c7203b8a7789607d3bdbd903
[ "BSD-3-Clause" ]
null
null
null
import os,time,sys,datetime, glob, fnmatch,string,subprocess, json import samweb_client samweb = samweb_client.SAMWebClient(experiment='dune') month = sys.argv[1] first = sys.argv[1] last = sys.argv[2] out = open("report_"+first+"_"+last+".tex",'w') top = "\\documentclass[10pt]{article}\n" top += "\\setlength{\\text...
36.453704
118
0.597155
79556d2c61c7934694e98502f96f9afcd81b4ebc
2,170
py
Python
basic_skills/models_ex/models_django_extensions.py
bluebamus/django_miscellaneous_book
22e0851b3a07aeef94bb723b334f036ed5c17f72
[ "MIT" ]
null
null
null
basic_skills/models_ex/models_django_extensions.py
bluebamus/django_miscellaneous_book
22e0851b3a07aeef94bb723b334f036ed5c17f72
[ "MIT" ]
null
null
null
basic_skills/models_ex/models_django_extensions.py
bluebamus/django_miscellaneous_book
22e0851b3a07aeef94bb723b334f036ed5c17f72
[ "MIT" ]
null
null
null
# 공식 문서 : https://django-extensions.readthedocs.io/en/latest/ # 가장 많이 사용되는 명령어들 # @ shell_plus # Django shell with autoloading of the apps database models and subclasses of user-defined classes. # tab 키를 이용한 자동 완성 # 실행 # python manage.py shell_plus --ipython # @ create_command # Creates a command extension direc...
31.449275
214
0.715207
79556dc5de9be8a71f4008a1fb2013a512c3845a
9,697
py
Python
pygoogle.py
bharadwaj6/slack-google
4b5e9d97487fe74d9ad609e45aa9aecce36c0332
[ "MIT" ]
5
2015-05-19T22:56:28.000Z
2021-08-23T14:39:59.000Z
pygoogle.py
bharadwaj6/slack-google
4b5e9d97487fe74d9ad609e45aa9aecce36c0332
[ "MIT" ]
2
2015-05-19T22:57:28.000Z
2019-03-20T17:39:01.000Z
pygoogle.py
bharadwaj6/slack-google
4b5e9d97487fe74d9ad609e45aa9aecce36c0332
[ "MIT" ]
1
2017-08-20T07:52:24.000Z
2017-08-20T07:52:24.000Z
#!/usr/bin/python """ Google AJAX Search Module http://code.google.com/apis/ajaxsearch/documentation/reference.html Needs Python 2.6 or later """ try: import json except ImportError, e: import simplejson as json except ImportError, e: print e exit() import sys import urllib import logging import argpar...
38.943775
125
0.573579
79556f505fd1055fa9e10beed90152514bf61294
28,972
py
Python
tests/asyncio/test_asyncio_client.py
Keylekan/python-socketio
0ccfef2dc5d0e28c2106e5f440a9a674608a9bc8
[ "MIT" ]
2
2019-03-28T07:28:16.000Z
2019-03-28T07:28:16.000Z
tests/asyncio/test_asyncio_client.py
Keylekan/python-socketio
0ccfef2dc5d0e28c2106e5f440a9a674608a9bc8
[ "MIT" ]
null
null
null
tests/asyncio/test_asyncio_client.py
Keylekan/python-socketio
0ccfef2dc5d0e28c2106e5f440a9a674608a9bc8
[ "MIT" ]
null
null
null
import asyncio import sys import unittest import six if six.PY3: from unittest import mock else: import mock from socketio import asyncio_client from socketio import asyncio_namespace from engineio import exceptions as engineio_exceptions from socketio import exceptions from socketio import packet def Async...
43.306428
79
0.609865
79556f65bc2c37da01b5ef759e8a570c4c0ab101
6,207
py
Python
h2o-perf/bench/py/h2oPerf/Process.py
vkuznet/h2o
e08f7014f228cbaecfb21f57379970e6a3ac0756
[ "Apache-2.0" ]
null
null
null
h2o-perf/bench/py/h2oPerf/Process.py
vkuznet/h2o
e08f7014f228cbaecfb21f57379970e6a3ac0756
[ "Apache-2.0" ]
null
null
null
h2o-perf/bench/py/h2oPerf/Process.py
vkuznet/h2o
e08f7014f228cbaecfb21f57379970e6a3ac0756
[ "Apache-2.0" ]
null
null
null
from Scrape import * from Table import * import re import os import subprocess import time import atexit class Process: """ @param test_dir: Full absolute path to the test directory. @param test_short_dir: Path from h2o/R/tests to the test directory. @param output_dir: The directory where we can create...
29.140845
129
0.548252
79556faff30786883034c2fe5054437219017687
1,464
py
Python
src/utils/class_utils.py
minhhoangbui/PICK-pytorch
c74d2d1e5d1f8c7e837ea9776146bc84a7ecf30a
[ "MIT" ]
null
null
null
src/utils/class_utils.py
minhhoangbui/PICK-pytorch
c74d2d1e5d1f8c7e837ea9776146bc84a7ecf30a
[ "MIT" ]
null
null
null
src/utils/class_utils.py
minhhoangbui/PICK-pytorch
c74d2d1e5d1f8c7e837ea9776146bc84a7ecf30a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: Wenwen Yu # @Created Time: 7/8/2020 9:26 PM from collections import Counter from torchtext.vocab import Vocab from pathlib import Path class ClassVocab(Vocab): def __init__(self, classes, **kwargs): """ convert key to index(stoi), and get key string by index(i...
27.622642
93
0.579235
79557077fa258f827444964aeb3dc04df42652ec
1,242
py
Python
scraper/storage_spiders/nguyenkimcom.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
null
null
null
scraper/storage_spiders/nguyenkimcom.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
10
2020-02-11T23:34:28.000Z
2022-03-11T23:16:12.000Z
scraper/storage_spiders/nguyenkimcom.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
3
2018-08-05T14:54:25.000Z
2021-06-07T01:49:59.000Z
# Auto generated by generator.py. Delete this line if you make modification. from scrapy.spiders import Rule from scrapy.linkextractors import LinkExtractor XPATH = { 'name' : "//h1[@class='block_product-title']", 'price' : "//span[contains(@id, 'sec_discounted_price')]", 'category' : "//div[@class='breadc...
41.4
163
0.6562
7955707c5abf2cb50a9775a228ae8ffcec988414
8,150
py
Python
sdk/python/pulumi_azure_native/compute/v20180401/get_snapshot.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/compute/v20180401/get_snapshot.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/compute/v20180401/get_snapshot.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
36.547085
319
0.644663
795570d732e51273d942674e2a11fbf1dd0381a0
1,510
py
Python
test/test_manager/convention_checker.py
jonghenhan/iotivity
7dfc2bc6a5c0506cf88bc23e88e38fe1b795da31
[ "Apache-2.0" ]
301
2015-01-20T16:11:32.000Z
2021-11-25T04:29:36.000Z
test/test_manager/convention_checker.py
jonghenhan/iotivity
7dfc2bc6a5c0506cf88bc23e88e38fe1b795da31
[ "Apache-2.0" ]
13
2015-06-04T09:55:15.000Z
2020-09-23T00:38:07.000Z
test/test_manager/convention_checker.py
jonghenhan/iotivity
7dfc2bc6a5c0506cf88bc23e88e38fe1b795da31
[ "Apache-2.0" ]
233
2015-01-26T03:41:59.000Z
2022-03-18T23:54:04.000Z
#!/usr/bin/python3 ''' /****************************************************************** * * Copyright 2018 Samsung Electronics 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...
35.952381
100
0.696026
795570f4e51641eb729ca3ec1821ef838aa6ba02
40
py
Python
dipy/viz/__init__.py
stefanv/dipy
4d4518861a796502826f053c17161487db126487
[ "BSD-3-Clause" ]
null
null
null
dipy/viz/__init__.py
stefanv/dipy
4d4518861a796502826f053c17161487db126487
[ "BSD-3-Clause" ]
null
null
null
dipy/viz/__init__.py
stefanv/dipy
4d4518861a796502826f053c17161487db126487
[ "BSD-3-Clause" ]
null
null
null
# Init file for visualization package
10
37
0.775
79557145dfbba0454fb8fd012db16e366e2bcdf4
3,111
py
Python
hail/python/hail/methods/__init__.py
mitochon/hail
25e5e5b8da1d978468d2cee393426ade46484a87
[ "MIT" ]
null
null
null
hail/python/hail/methods/__init__.py
mitochon/hail
25e5e5b8da1d978468d2cee393426ade46484a87
[ "MIT" ]
3
2017-06-16T18:10:45.000Z
2017-07-21T17:44:13.000Z
hail/python/hail/methods/__init__.py
mitochon/hail
25e5e5b8da1d978468d2cee393426ade46484a87
[ "MIT" ]
2
2018-01-30T00:50:52.000Z
2018-03-22T20:04:01.000Z
from .family_methods import (trio_matrix, mendel_errors, transmission_disequilibrium_test, de_novo) from .impex import (export_elasticsearch, export_gen, export_bgen, export_plink, export_vcf, import_locus_intervals, import_bed, import_fam, grep, impo...
38.8875
100
0.585021
7955719d11f5fca63a67be6aeb63fd0550942da5
1,045
py
Python
utils/http.py
Tbizla/lambot.py
66b8e114c031cc378550364c30e2364cbabac88e
[ "MIT" ]
null
null
null
utils/http.py
Tbizla/lambot.py
66b8e114c031cc378550364c30e2364cbabac88e
[ "MIT" ]
null
null
null
utils/http.py
Tbizla/lambot.py
66b8e114c031cc378550364c30e2364cbabac88e
[ "MIT" ]
null
null
null
import asyncio import aiohttp from utils import cache # Removes the aiohttp ClientSession instance warning. class HTTPSession(aiohttp.ClientSession): """ Abstract class for aiohttp. """ def __init__(self, loop=None): super().__init__(loop=loop or asyncio.get_event_loop()) def __del__(self): ...
26.794872
77
0.65933
795572c9b94bb7768dceaf079d1a37eb32b17fd2
2,736
py
Python
tests/test_gr.py
torakses/django-localflavor
17ca87095d6f8c3f3888016085a2edb5951889f4
[ "BSD-3-Clause" ]
null
null
null
tests/test_gr.py
torakses/django-localflavor
17ca87095d6f8c3f3888016085a2edb5951889f4
[ "BSD-3-Clause" ]
null
null
null
tests/test_gr.py
torakses/django-localflavor
17ca87095d6f8c3f3888016085a2edb5951889f4
[ "BSD-3-Clause" ]
null
null
null
from django.test import SimpleTestCase from localflavor.gr.forms import GRMobilePhoneNumberField, GRPhoneNumberField, GRPostalCodeField, GRTaxNumberCodeField class GRLocalFlavorTests(SimpleTestCase): def test_GRTaxNumberField(self): """The valid tests are from greek tax numbers (AFMs) found on the inter...
30.065934
118
0.518275
7955739b89d0d07687808e42cbe3b0c1835466e2
26
py
Python
Python/hellolies.py
saurabhcommand/Hello-world
647bad9da901a52d455f05ecc37c6823c22dc77e
[ "MIT" ]
1,428
2018-10-03T15:15:17.000Z
2019-03-31T18:38:36.000Z
Python/hellolies.py
saurabhcommand/Hello-world
647bad9da901a52d455f05ecc37c6823c22dc77e
[ "MIT" ]
1,162
2018-10-03T15:05:49.000Z
2018-10-18T14:17:52.000Z
Python/hellolies.py
saurabhcommand/Hello-world
647bad9da901a52d455f05ecc37c6823c22dc77e
[ "MIT" ]
3,909
2018-10-03T15:07:19.000Z
2019-03-31T18:39:08.000Z
print("Hello, pyLadies!")
13
25
0.692308
795575b87a89617896694dd2d7a9ccf5ecabb04a
4,532
py
Python
src/oidctest/site_setup.py
auth0/oidctest
13948bfdf08430addcbacbb8011a359d0a3952e3
[ "Apache-2.0" ]
null
null
null
src/oidctest/site_setup.py
auth0/oidctest
13948bfdf08430addcbacbb8011a359d0a3952e3
[ "Apache-2.0" ]
null
null
null
src/oidctest/site_setup.py
auth0/oidctest
13948bfdf08430addcbacbb8011a359d0a3952e3
[ "Apache-2.0" ]
null
null
null
import datetime import filecmp import os import shutil import subprocess def modification_date(filename): t = os.path.getmtime(filename) return datetime.datetime.fromtimestamp(t) def copy_if_not_same(src, dst, overwrite=False): try: os.stat(dst) except OSError: shutil.copy(src, dst) ...
31.692308
79
0.572816
795576979d2601fa8d8249dcf15dac88260e9a93
1,937
py
Python
sample-code/examples/python/android_simple.py
githubanly/appium
b5540de9229937cf0e92bb4a914d69c2b70c2097
[ "Apache-2.0" ]
1
2017-11-02T09:34:46.000Z
2017-11-02T09:34:46.000Z
sample-code/examples/python/android_simple.py
githubanly/appium
b5540de9229937cf0e92bb4a914d69c2b70c2097
[ "Apache-2.0" ]
null
null
null
sample-code/examples/python/android_simple.py
githubanly/appium
b5540de9229937cf0e92bb4a914d69c2b70c2097
[ "Apache-2.0" ]
null
null
null
import os from time import sleep import unittest from appium import webdriver # Returns abs path relative to this file and not cwd PATH = lambda p: os.path.abspath( os.path.join(os.path.dirname(__file__), p) ) class SimpleAndroidTests(unittest.TestCase): def setUp(self): desired_caps = {} de...
31.241935
103
0.673722
795577710c19397bf3996ae04fe76ea9e6ab7d84
7,194
py
Python
DeepLearning/functions.py
CSID-DGU/2021-2-OSSP2-DodgeCounselor-5
4e3fbc89540739f44f126cddd1a0a0fabcbc427f
[ "MIT" ]
null
null
null
DeepLearning/functions.py
CSID-DGU/2021-2-OSSP2-DodgeCounselor-5
4e3fbc89540739f44f126cddd1a0a0fabcbc427f
[ "MIT" ]
null
null
null
DeepLearning/functions.py
CSID-DGU/2021-2-OSSP2-DodgeCounselor-5
4e3fbc89540739f44f126cddd1a0a0fabcbc427f
[ "MIT" ]
null
null
null
from typing import Mapping from requests.models import HTTPError from riotwatcher import LolWatcher from riotwatcher._apis.league_of_legends.SummonerApiV4 import SummonerApiV4 from riotwatcher._apis.league_of_legends.MatchApiV5 import MatchApiV5 key = '키 입력해주세요!' #Production key watcher = LolWatcher(key) def nameSlice...
35.438424
159
0.60342
7955781663faf78bbb640c47ae14eed1462458d5
7,932
py
Python
andes/models/governor.py
lacknc/Andes
3664ff69406ac01381b675393d6ac96fcf080b25
[ "Apache-2.0" ]
null
null
null
andes/models/governor.py
lacknc/Andes
3664ff69406ac01381b675393d6ac96fcf080b25
[ "Apache-2.0" ]
null
null
null
andes/models/governor.py
lacknc/Andes
3664ff69406ac01381b675393d6ac96fcf080b25
[ "Apache-2.0" ]
null
null
null
from cvxopt import matrix, sparse, spmatrix # NOQA from cvxopt import mul, div, log, sin, cos # NOQA from .base import ModelBase from ..consts import Fx0, Fy0, Gx0, Gy0 # NOQA from ..consts import Fx, Fy, Gx, Gy # NOQA class GovernorBase(ModelBase): """Turbine governor base class""" def __init__(self, s...
34.337662
79
0.51412
79557908af643ff61a993898842166e0b7e58271
4,271
py
Python
toontown/leveleditor/ScrollMenu.py
chrisd149/OpenLevelEditor
2527f84910b198a38de140b533d07d65fe30c6c9
[ "MIT" ]
25
2020-11-23T13:55:42.000Z
2022-03-26T06:17:18.000Z
toontown/leveleditor/ScrollMenu.py
chrisd149/OpenLevelEditor
2527f84910b198a38de140b533d07d65fe30c6c9
[ "MIT" ]
15
2020-11-25T14:47:24.000Z
2021-04-21T23:40:57.000Z
toontown/leveleditor/ScrollMenu.py
chrisd149/OpenLevelEditor
2527f84910b198a38de140b533d07d65fe30c6c9
[ "MIT" ]
11
2020-11-25T13:57:02.000Z
2022-02-23T14:25:15.000Z
########################################################### # Class to create and maintain a scrolled list # that can be embedded in a LevelAttribute instance ########################################################### from direct.gui.DirectGui import * from toontown.toonbase import ToontownGlobals class ScrollMenu...
37.79646
109
0.465933
795579369523e4c2308fe7b1ff10bc1ad73e9197
5,061
py
Python
pyqtgraph/canvas/CanvasTemplate_pyqt6.py
abbasegbeyemi/pyqtgraph
6aeafce477d1d7eebb9d2fe824d4c5573ef9ceed
[ "MIT" ]
69
2020-01-06T13:31:06.000Z
2022-03-29T11:23:14.000Z
pyqtgraph/canvas/CanvasTemplate_pyqt6.py
abbasegbeyemi/pyqtgraph
6aeafce477d1d7eebb9d2fe824d4c5573ef9ceed
[ "MIT" ]
67
2019-11-30T14:45:05.000Z
2022-03-14T20:26:06.000Z
pyqtgraph/canvas/CanvasTemplate_pyqt6.py
abbasegbeyemi/pyqtgraph
6aeafce477d1d7eebb9d2fe824d4c5573ef9ceed
[ "MIT" ]
13
2020-01-06T13:44:40.000Z
2022-03-29T11:23:17.000Z
# Form implementation generated from reading ui file 'pyqtgraph\canvas\CanvasTemplate.ui' # # Created by: PyQt6 UI code generator 6.0.0 # # WARNING: Any manual changes made to this file will be lost when pyuic6 is # run again. Do not edit this file unless you know what you are doing. from PyQt6 import QtCore, QtGui,...
54.419355
122
0.731278
7955796b612420f1c46039caa5095378cf80c404
2,746
py
Python
models/alexnet.py
sytelus/convNet.pytorch
efc0f1aa428b190e492cc7ef5eedcd58ff46b1d8
[ "MIT" ]
1
2019-04-12T12:30:16.000Z
2019-04-12T12:30:16.000Z
models/alexnet.py
sytelus/convNet.pytorch
efc0f1aa428b190e492cc7ef5eedcd58ff46b1d8
[ "MIT" ]
null
null
null
models/alexnet.py
sytelus/convNet.pytorch
efc0f1aa428b190e492cc7ef5eedcd58ff46b1d8
[ "MIT" ]
null
null
null
import torch.nn as nn import torchvision.transforms as transforms __all__ = ['alexnet'] class AlexNetOWT_BN(nn.Module): def __init__(self, num_classes=1000): super(AlexNetOWT_BN, self).__init__() self.features = nn.Sequential( nn.Conv2d(3, 64, kernel_size=11, stride=4, padding=2, ...
34.325
70
0.509104
79557a05cfb6cdf8246b2dc70de2ba6ec0b88220
833
py
Python
google/ads/google_ads/v3/services/shopping_performance_view_service_client_config.py
andy0937/google-ads-python
cb5da7f4a75076828d1fc3524b08cc167670435a
[ "Apache-2.0" ]
1
2019-11-30T23:42:39.000Z
2019-11-30T23:42:39.000Z
google/ads/google_ads/v3/services/shopping_performance_view_service_client_config.py
andy0937/google-ads-python
cb5da7f4a75076828d1fc3524b08cc167670435a
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v3/services/shopping_performance_view_service_client_config.py
andy0937/google-ads-python
cb5da7f4a75076828d1fc3524b08cc167670435a
[ "Apache-2.0" ]
1
2020-03-13T00:14:31.000Z
2020-03-13T00:14:31.000Z
config = { "interfaces": { "google.ads.googleads.v3.services.ShoppingPerformanceViewService": { "retry_codes": { "idempotent": [ "DEADLINE_EXCEEDED", "UNAVAILABLE" ], "non_idempotent": [] }, "retry_params": { "default": { "initial_ret...
26.03125
72
0.542617
79557bc6b9e3f977b219d84947921d7d4efcf56b
998
py
Python
lanczos_bin/lanczos.py
chentyl/SLQ_analysis
19a43dd3c1f034e1c3b22a92da9e9fc1666d4f46
[ "MIT" ]
null
null
null
lanczos_bin/lanczos.py
chentyl/SLQ_analysis
19a43dd3c1f034e1c3b22a92da9e9fc1666d4f46
[ "MIT" ]
null
null
null
lanczos_bin/lanczos.py
chentyl/SLQ_analysis
19a43dd3c1f034e1c3b22a92da9e9fc1666d4f46
[ "MIT" ]
null
null
null
import numpy as np import scipy as sp def exact_lanczos(A,q0,k,reorth=True): """ run Lanczos with reorthogonalization Input ----- A : entries of diagonal matrix A q0 : starting vector k : number of iterations B : entries of diagonal weights for orthogonalization """ n...
23.761905
64
0.45992
79557c92c45bf784188632998fb22214071e8770
3,450
py
Python
tests/chainer_tests/functions_tests/normalization_tests/test_batch_normalization.py
ytoyama/yans_chainer_hackathon
744e7a5a67da8dec2869879f0adfae2d43eaf75c
[ "MIT" ]
null
null
null
tests/chainer_tests/functions_tests/normalization_tests/test_batch_normalization.py
ytoyama/yans_chainer_hackathon
744e7a5a67da8dec2869879f0adfae2d43eaf75c
[ "MIT" ]
null
null
null
tests/chainer_tests/functions_tests/normalization_tests/test_batch_normalization.py
ytoyama/yans_chainer_hackathon
744e7a5a67da8dec2869879f0adfae2d43eaf75c
[ "MIT" ]
1
2018-11-18T00:36:51.000Z
2018-11-18T00:36:51.000Z
import unittest import numpy import chainer from chainer import cuda from chainer import functions from chainer import gradient_check from chainer import testing from chainer.testing import attr from chainer.testing import condition # fully-connected usage class TestBatchNormalization(unittest.TestCase): aggr_...
32.54717
79
0.628696
79557cfae3c0edeea6c032e6b4206659f33213c1
216
py
Python
finetune-dataset/convert_png.py
ikhovryak/PyTorchHackathon
7a75edeccaee15ff142f9561c1c98fe49ca81e8c
[ "MIT" ]
1
2020-07-28T15:41:36.000Z
2020-07-28T15:41:36.000Z
finetune-dataset/convert_png.py
ikhovryak/PyTorchHackathon
7a75edeccaee15ff142f9561c1c98fe49ca81e8c
[ "MIT" ]
null
null
null
finetune-dataset/convert_png.py
ikhovryak/PyTorchHackathon
7a75edeccaee15ff142f9561c1c98fe49ca81e8c
[ "MIT" ]
1
2020-08-25T04:03:48.000Z
2020-08-25T04:03:48.000Z
from PIL import Image import os, sys idx = 0 for d in os.listdir("./"): # print(d) if ".jpg" in d or ".jpeg" in d: im = Image.open(d) im.save("image_" + str(idx) + ".png") idx += 1
16.615385
45
0.5
79557d8b09b31a37c4510903a7d7883ec2899bc9
800
py
Python
laos/common/base/views.py
denismakogon/aiohttp-restful-api-service
0b99d6e3a9b90860f6730e1784f10e2f4454b8c0
[ "Apache-2.0" ]
null
null
null
laos/common/base/views.py
denismakogon/aiohttp-restful-api-service
0b99d6e3a9b90860f6730e1784f10e2f4454b8c0
[ "Apache-2.0" ]
null
null
null
laos/common/base/views.py
denismakogon/aiohttp-restful-api-service
0b99d6e3a9b90860f6730e1784f10e2f4454b8c0
[ "Apache-2.0" ]
null
null
null
# Author: Denys Makogon # # 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 t...
32
78
0.69875
79557e49c8bdc67ec572cafab139bb36dae64674
16,052
py
Python
idaes/core/base/tests/test_control_volume_base.py
OOAmusat/idaes-pse
ae7d3bb8e372bc32822dcdcb75e9fd96b78da539
[ "RSA-MD" ]
null
null
null
idaes/core/base/tests/test_control_volume_base.py
OOAmusat/idaes-pse
ae7d3bb8e372bc32822dcdcb75e9fd96b78da539
[ "RSA-MD" ]
null
null
null
idaes/core/base/tests/test_control_volume_base.py
OOAmusat/idaes-pse
ae7d3bb8e372bc32822dcdcb75e9fd96b78da539
[ "RSA-MD" ]
1
2022-03-17T11:08:43.000Z
2022-03-17T11:08:43.000Z
################################################################################# # The Institute for the Design of Advanced Energy Systems Integrated Platform # Framework (IDAES IP) was produced under the DOE Institute for the # Design of Advanced Energy Systems (IDAES), and is copyright (c) 2018-2021 # by the softwar...
29.67098
85
0.643534
79557eef7fb7f8c7f84ddb06392032a4edc0f3c1
3,381
py
Python
centralreport/cr/utils/text.py
Ninir/CentralReport
655b060ae0aa7df404f3799824e7635f5997e662
[ "Apache-2.0", "ZPL-2.0" ]
1
2015-11-03T14:32:01.000Z
2015-11-03T14:32:01.000Z
centralreport/cr/utils/text.py
Ninir/CentralReport
655b060ae0aa7df404f3799824e7635f5997e662
[ "Apache-2.0", "ZPL-2.0" ]
null
null
null
centralreport/cr/utils/text.py
Ninir/CentralReport
655b060ae0aa7df404f3799824e7635f5997e662
[ "Apache-2.0", "ZPL-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ CentralReport - Text module Contains useful functions to working with strings https://github.com/miniche/CentralReport/ """ import math def removeSpecialsCharacters(text): """ Removes specials characters in string (\n, \r and \l). """ text = str.repl...
26.414063
105
0.608104
79557efd3887efedb4829d406cb947a39c8ff247
1,063
py
Python
swagger_server/test/test_metrics_controller.py
DITAS-Project/data-analytics
e337aa707129b02750162f0cd60b5199a07ade22
[ "Apache-2.0" ]
null
null
null
swagger_server/test/test_metrics_controller.py
DITAS-Project/data-analytics
e337aa707129b02750162f0cd60b5199a07ade22
[ "Apache-2.0" ]
7
2019-03-04T17:48:48.000Z
2019-11-04T14:11:30.000Z
swagger_server/test/test_metrics_controller.py
DITAS-Project/data-analytics
e337aa707129b02750162f0cd60b5199a07ade22
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import from flask import json from six import BytesIO from swagger_server.models.metric_res import MetricRes # noqa: E501 from swagger_server.test import BaseTestCase class TestMetricsController(BaseTestCase): """MetricsController integration test stubs""" ...
29.527778
77
0.594544
7955816b9b21e4dff735f40d8ad1053707638d9b
6,609
py
Python
CoNSEPT/Dataset.py
PayamDiba/CoNSEPT
496a549d2cbfb89d13bfd7683fb16a93554af71e
[ "MIT" ]
1
2021-03-17T18:37:12.000Z
2021-03-17T18:37:12.000Z
CoNSEPT/Dataset.py
PayamDiba/CoNSEPT
496a549d2cbfb89d13bfd7683fb16a93554af71e
[ "MIT" ]
null
null
null
CoNSEPT/Dataset.py
PayamDiba/CoNSEPT
496a549d2cbfb89d13bfd7683fb16a93554af71e
[ "MIT" ]
3
2021-03-08T04:12:18.000Z
2021-11-19T15:58:00.000Z
""" @author: Payam Dibaeinia """ import numpy as np import pandas as pd import tensorflow as tf from CoNSEPT.DataBuilder import InlineData import os class dataset(object): def __init__(self, seq_file, expression_file, TF_file, nBins, ...
33.045
137
0.529581
7955821a50929a27abcb2f0662032ebb62034c75
19,338
py
Python
src/cogent3/util/dict_array.py
Lmaster20/cogent3
1d5ff1ba2b3d42736f8f04de8507b5cd585b4fe9
[ "BSD-3-Clause" ]
null
null
null
src/cogent3/util/dict_array.py
Lmaster20/cogent3
1d5ff1ba2b3d42736f8f04de8507b5cd585b4fe9
[ "BSD-3-Clause" ]
null
null
null
src/cogent3/util/dict_array.py
Lmaster20/cogent3
1d5ff1ba2b3d42736f8f04de8507b5cd585b4fe9
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """Wrapper for numpy arrays so that they can be indexed by name >>> a = numpy.identity(3, int) >>> b = DictArrayTemplate('abc', 'ABC').wrap(a) >>> b[0] =========== A B C ----------- 1 0 0 ----------- >>> b['a'] =========== A B C --...
31.291262
88
0.555228
7955828e79eaac5f49d938bc89d352d19b6d2e89
122,190
py
Python
pysnmp-with-texts/CTRON-REMOTE-ACCESS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/CTRON-REMOTE-ACCESS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/CTRON-REMOTE-ACCESS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CTRON-REMOTE-ACCESS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CTRON-REMOTE-ACCESS-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:30:39 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 ...
193.033175
18,674
0.779859
795582e15b87e126a78f6ab2cde2db7b4b2ea30f
456
py
Python
env/Lib/site-packages/plotly/validators/histogram/_hovertext.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
venv/Lib/site-packages/plotly/validators/histogram/_hovertext.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
venv/Lib/site-packages/plotly/validators/histogram/_hovertext.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class HovertextValidator(_plotly_utils.basevalidators.StringValidator): def __init__(self, plotly_name="hovertext", parent_name="histogram", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
35.076923
83
0.66886
795582f6aea665b698af069fc9da142fc8427297
8,253
py
Python
reana_client/cli/cwl_runner.py
scailfin/reana-client
01ddb22ac6a9215e87212bede636389f6f24a7d2
[ "MIT" ]
null
null
null
reana_client/cli/cwl_runner.py
scailfin/reana-client
01ddb22ac6a9215e87212bede636389f6f24a7d2
[ "MIT" ]
null
null
null
reana_client/cli/cwl_runner.py
scailfin/reana-client
01ddb22ac6a9215e87212bede636389f6f24a7d2
[ "MIT" ]
1
2019-06-04T22:29:12.000Z
2019-06-04T22:29:12.000Z
# -*- coding: utf-8 -*- # # This file is part of REANA. # Copyright (C) 2017, 2018 CERN. # # REANA is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """CWL v1.0 interface CLI implementation.""" import io import logging import os import r...
36.517699
78
0.596147
795583cbfdd6593295ea2c2ddd57fa4562afad66
84
py
Python
py_utils/box_utils/__init__.py
yuezunli/BMVC2018R-AP
aaccd20934e85b4b635f1b3ec8fcc757589cfb42
[ "MIT" ]
9
2020-10-30T11:32:35.000Z
2022-03-31T02:56:00.000Z
py_utils/box_utils/__init__.py
yuezunli/BMVC2018R-AP
aaccd20934e85b4b635f1b3ec8fcc757589cfb42
[ "MIT" ]
1
2019-10-10T04:13:44.000Z
2019-10-10T04:13:44.000Z
py_utils/box_utils/__init__.py
danmohaha/BMVC2018R-AP
aaccd20934e85b4b635f1b3ec8fcc757589cfb42
[ "MIT" ]
3
2020-01-03T03:29:08.000Z
2020-04-28T08:44:35.000Z
""" Proj: YZ_utils Date: 8/15/18 Written by Yuezun Li -------------------------- """
14
26
0.452381
7955849fc40c5bc232004d683421ef9f738c995a
12,584
py
Python
SAN/lib/san_vision/transforms.py
Jack12xl/landmark-detection
68b199fe13b0a57cdd7b9302a9f38e16418d675c
[ "MIT" ]
null
null
null
SAN/lib/san_vision/transforms.py
Jack12xl/landmark-detection
68b199fe13b0a57cdd7b9302a9f38e16418d675c
[ "MIT" ]
null
null
null
SAN/lib/san_vision/transforms.py
Jack12xl/landmark-detection
68b199fe13b0a57cdd7b9302a9f38e16418d675c
[ "MIT" ]
null
null
null
############################################################## ### Copyright (c) 2018-present, Xuanyi Dong ### ### Style Aggregated Network for Facial Landmark Detection ### ### Computer Vision and Pattern Recognition, 2018 ### ############################################################## from ...
33.737265
143
0.628973
79558504b41c1252011d3d2a69097ff1f086a54e
163,250
py
Python
ekmmeters.py
ultratolido/ekmmetters
e15325023262e228b4dc037021c28a8d2b9b9b03
[ "MIT" ]
null
null
null
ekmmeters.py
ultratolido/ekmmetters
e15325023262e228b4dc037021c28a8d2b9b9b03
[ "MIT" ]
null
null
null
ekmmeters.py
ultratolido/ekmmetters
e15325023262e228b4dc037021c28a8d2b9b9b03
[ "MIT" ]
null
null
null
""" ekmmeters.py (c) 2015, 2016 EKM Metering. The ekmmeters library API for v3 and v4 EKM Omnimeters. Tested and released under Python 2.6 (tested Centos 6.x only) and Python 2.7x (Python and Iron Python). This software is provided under an MIT license: https://opensource.org/licenses/MIT """ import struct impor...
42.713239
120
0.590021
795585bb9b4f82167de62458e34e7260ba606811
5,894
py
Python
asposeimagingcloud/models/requests/modify_jpeg2000_request.py
aspose-imaging-cloud/aspose-imaging-cloud-python
9280a4a1aa415cb569ec26a05792b33186d31a85
[ "MIT" ]
1
2022-01-14T10:06:26.000Z
2022-01-14T10:06:26.000Z
asposeimagingcloud/models/requests/modify_jpeg2000_request.py
aspose-imaging-cloud/aspose-imaging-cloud-python
9280a4a1aa415cb569ec26a05792b33186d31a85
[ "MIT" ]
3
2019-07-17T15:01:31.000Z
2020-12-29T09:16:10.000Z
asposeimagingcloud/models/requests/modify_jpeg2000_request.py
aspose-imaging-cloud/aspose-imaging-cloud-python
9280a4a1aa415cb569ec26a05792b33186d31a85
[ "MIT" ]
null
null
null
# coding: utf-8 # ---------------------------------------------------------------------------- # <copyright company="Aspose" file="modify_jpeg2000_request.py"> # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # </copyright> # <summary> # Permission is hereby granted, free of charge, to any pers...
48.311475
252
0.658806
795585e3fa7f4ec3f32079e77fa541e90cd409e0
15,738
py
Python
baselines/trpo_exp/trpo_exp.py
veniversum/baselines
99666bd86f0051b2323366c6ee89111df92e7f44
[ "MIT" ]
null
null
null
baselines/trpo_exp/trpo_exp.py
veniversum/baselines
99666bd86f0051b2323366c6ee89111df92e7f44
[ "MIT" ]
1
2018-03-17T12:58:00.000Z
2018-03-17T12:58:00.000Z
baselines/trpo_exp/trpo_exp.py
veniversum/baselines
99666bd86f0051b2323366c6ee89111df92e7f44
[ "MIT" ]
1
2019-03-02T15:13:36.000Z
2019-03-02T15:13:36.000Z
from baselines.common import explained_variance, zipsame, dataset from baselines import logger import baselines.common.tf_util as U import tensorflow as tf, numpy as np import time from baselines.common import colorize from collections import deque from baselines.common import set_global_seeds from baselines.common.mpi...
36.943662
170
0.616279
7955864b3a157aae75d5b791abbb656b4069fd33
3,636
py
Python
pandas_ta/overlap/vidya.py
bartua/pandas-ta
3bbd5bef4a906f8e810cd557cf20bf92870851c0
[ "MIT" ]
null
null
null
pandas_ta/overlap/vidya.py
bartua/pandas-ta
3bbd5bef4a906f8e810cd557cf20bf92870851c0
[ "MIT" ]
null
null
null
pandas_ta/overlap/vidya.py
bartua/pandas-ta
3bbd5bef4a906f8e810cd557cf20bf92870851c0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from numpy import nan as npNaN from numpy import nonzero import numpy from pandas import Series from pandas_ta.utils import get_drift, get_offset, verify_series def vidya(close, length=None, drift=None, offset=None, **kwargs): """Indicator: Variable Index Dynamic Average (VIDYA)"...
37.102041
116
0.661716
795587315a6f72c227e342e293660b896698a731
64,281
py
Python
tests/sparse_test.py
Huizerd/jax
32319e1bc36e17ca270e9ff1a9545e6680f9eb28
[ "Apache-2.0" ]
null
null
null
tests/sparse_test.py
Huizerd/jax
32319e1bc36e17ca270e9ff1a9545e6680f9eb28
[ "Apache-2.0" ]
6
2022-01-03T04:14:24.000Z
2022-02-14T04:13:22.000Z
tests/sparse_test.py
Huizerd/jax
32319e1bc36e17ca270e9ff1a9545e6680f9eb28
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
44.732777
143
0.632442
795588712cd699d000cc16948e8eb15e79c75654
5,059
py
Python
feedback/migrations/0001_initial.py
uktrade/feed-gov-back
c2b9534ac39eb727cafb06eeb7528a1ad622512a
[ "MIT" ]
1
2019-01-08T23:01:25.000Z
2019-01-08T23:01:25.000Z
feedback/migrations/0001_initial.py
uktrade/feed-gov-back
c2b9534ac39eb727cafb06eeb7528a1ad622512a
[ "MIT" ]
null
null
null
feedback/migrations/0001_initial.py
uktrade/feed-gov-back
c2b9534ac39eb727cafb06eeb7528a1ad622512a
[ "MIT" ]
null
null
null
# Generated by Django 2.1.3 on 2019-01-01 13:50 from django.conf import settings import django.contrib.postgres.fields.jsonb from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappa...
44.377193
147
0.578375
795589976c64ff2a8b509e91978146f8641d4dba
751
py
Python
transmit.py
simondlevy/EMS22A50
a7954a84ad67507a9f8de831fe45d7e7de779c41
[ "MIT" ]
null
null
null
transmit.py
simondlevy/EMS22A50
a7954a84ad67507a9f8de831fe45d7e7de779c41
[ "MIT" ]
null
null
null
transmit.py
simondlevy/EMS22A50
a7954a84ad67507a9f8de831fe45d7e7de779c41
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ''' Reads data from EMS22A50 and sends it over a serial port as ASCII Uses '*' character as delimiter Copyright (c) 2021 Simon D. Levy MIT License ''' import time import serial import RPi.GPIO as GPIO from ems22a50 import EMS22A50 def main(): # -------------- CLK DAT CS encoder = ...
16.326087
65
0.596538
79558a9d377f550141e0e725b5ea235c272b633f
502
py
Python
src/domain/flight/entity.py
Monster-Gem/f-ticket
bfee2bcc3db92e2350c0f3bbc32108a79350583e
[ "MIT" ]
1
2022-03-23T13:35:38.000Z
2022-03-23T13:35:38.000Z
src/domain/flight/entity.py
Monster-Gem/f-ticket
bfee2bcc3db92e2350c0f3bbc32108a79350583e
[ "MIT" ]
null
null
null
src/domain/flight/entity.py
Monster-Gem/f-ticket
bfee2bcc3db92e2350c0f3bbc32108a79350583e
[ "MIT" ]
null
null
null
from enum import unique from domain.maintenance.repository import database import uuid from domain.route.entity import Route class Flight(database.Document): public_id = database.StringField(max_length=50, unique = True, default=lambda: str(uuid.uuid4())) price = database.DecimalField(required=True, decimal_pl...
45.636364
101
0.788845
79558b2924a6af68c17b28927502d5b49882d2e7
686
py
Python
app/core/migrations/0003_ingradient.py
userSoni/recipe-app-api
b9cc66ccd69c91d4698aec957b0b4e3523dd8e8d
[ "MIT" ]
null
null
null
app/core/migrations/0003_ingradient.py
userSoni/recipe-app-api
b9cc66ccd69c91d4698aec957b0b4e3523dd8e8d
[ "MIT" ]
null
null
null
app/core/migrations/0003_ingradient.py
userSoni/recipe-app-api
b9cc66ccd69c91d4698aec957b0b4e3523dd8e8d
[ "MIT" ]
null
null
null
# Generated by Django 2.1.15 on 2021-08-31 08:09 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0002_tag'), ] operations = [ migrations.CreateModel( ...
28.583333
118
0.618076
79558b9374c73c01d7aac020121dcdf607b76eeb
1,377
py
Python
baidu_code/bcoreapi/ticket/settings.py
deevarvar/myLab
7a5019f5f7fc11e173d350e6e2a7d2c80504782d
[ "MIT" ]
null
null
null
baidu_code/bcoreapi/ticket/settings.py
deevarvar/myLab
7a5019f5f7fc11e173d350e6e2a7d2c80504782d
[ "MIT" ]
null
null
null
baidu_code/bcoreapi/ticket/settings.py
deevarvar/myLab
7a5019f5f7fc11e173d350e6e2a7d2c80504782d
[ "MIT" ]
3
2016-10-08T15:01:49.000Z
2018-05-24T03:14:24.000Z
ODP_MOVIE_PATH = '/home/map/odp_movie' OLD_PARTNER_SUPPORTED = ['cmts','dingxin','jinyi','maizuo','txpc','vista','newvista','wangpiao','cfc'] # new api ignoring : komovie,lanhai NEW_PARTNER_SUPPORTED = ['cmts','dingxin','fire','jinyi','shiguang','maizuo','spider','txpc','vista','wangpiao','xingmei','cfc'] SERVE...
22.57377
129
0.554829
79558cb7fc4ba65abb055b3f84638afec228f04b
1,506
py
Python
atlantis/front/views.py
jcabdala/atlantisapp
4cf926048f0f5b68afc84b763ea1db532f66ab4e
[ "BSD-3-Clause" ]
null
null
null
atlantis/front/views.py
jcabdala/atlantisapp
4cf926048f0f5b68afc84b763ea1db532f66ab4e
[ "BSD-3-Clause" ]
null
null
null
atlantis/front/views.py
jcabdala/atlantisapp
4cf926048f0f5b68afc84b763ea1db532f66ab4e
[ "BSD-3-Clause" ]
null
null
null
from django.shortcuts import render_to_response from django.template import RequestContext from django.forms import ModelForm from front.models import Client import requests import json # Create your views here. def index(request, *args, **kwargs): form = ClientForm() return render_to_response("index.html", l...
30.734694
72
0.557105
79558cb8820abab0f14c235fa9891e092b15dc00
1,472
py
Python
tests/test_registries.py
d3rky/django-cqrs
16c7d80409b44264141240b0c8a97d5838555039
[ "Apache-2.0" ]
null
null
null
tests/test_registries.py
d3rky/django-cqrs
16c7d80409b44264141240b0c8a97d5838555039
[ "Apache-2.0" ]
null
null
null
tests/test_registries.py
d3rky/django-cqrs
16c7d80409b44264141240b0c8a97d5838555039
[ "Apache-2.0" ]
null
null
null
# Copyright © 2020 Ingram Micro Inc. All rights reserved. import pytest from dj_cqrs.registries import MasterRegistry, ReplicaRegistry from tests.dj_master import models as master_models from tests.dj_replica import models as replica_models @pytest.mark.parametrize('registry', [MasterRegistry, ReplicaRegistry]) de...
33.454545
93
0.765625
79558ceb4ef200642a091b96f07a6c40b417ce38
1,494
py
Python
fangyan_tones/utils/pinyin_utils.py
wlans4/fangyan_tones
bb108ecf771cdad9acd8a9197e2babaf37c681e1
[ "Apache-2.0" ]
null
null
null
fangyan_tones/utils/pinyin_utils.py
wlans4/fangyan_tones
bb108ecf771cdad9acd8a9197e2babaf37c681e1
[ "Apache-2.0" ]
null
null
null
fangyan_tones/utils/pinyin_utils.py
wlans4/fangyan_tones
bb108ecf771cdad9acd8a9197e2babaf37c681e1
[ "Apache-2.0" ]
null
null
null
from pypinyin import pinyin as to_pinyin from pypinyin import Style as style tone_styles = [style.TONE, style.TONE2, style.TONE3] def char_to_pinyin(char: str, tone_style: int) -> str: """Converts a single character to pinyin # TODO support heteronyms? Parameters ---------- char : String ...
30.489796
103
0.655288
79558e180765eaaea1096fa02811e0f64d72a408
1,487
py
Python
src/client_libraries/python/dynamics/customerinsights/api/models/odata_inner_error.py
microsoft/Dynamics365-CustomerInsights-Client-Libraries
e00632f7972717b03e0fb1a9e2667e8f9444a0fe
[ "MIT" ]
null
null
null
src/client_libraries/python/dynamics/customerinsights/api/models/odata_inner_error.py
microsoft/Dynamics365-CustomerInsights-Client-Libraries
e00632f7972717b03e0fb1a9e2667e8f9444a0fe
[ "MIT" ]
null
null
null
src/client_libraries/python/dynamics/customerinsights/api/models/odata_inner_error.py
microsoft/Dynamics365-CustomerInsights-Client-Libraries
e00632f7972717b03e0fb1a9e2667e8f9444a0fe
[ "MIT" ]
7
2021-02-11T19:48:57.000Z
2021-12-17T08:00:15.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
35.404762
76
0.579018
79558e8877be7ecaebc345eb4ff80b259bbc1f5a
5,119
py
Python
bsp/stm32/stm32l053-st-nucleo/rtconfig.py
rockonedege/rt-thread
4fe6c709d0bfe719bed6c927f0144ba373bbda5a
[ "Apache-2.0" ]
7,482
2015-01-01T09:23:08.000Z
2022-03-31T19:34:05.000Z
bsp/stm32/stm32l053-st-nucleo/rtconfig.py
rockonedege/rt-thread
4fe6c709d0bfe719bed6c927f0144ba373bbda5a
[ "Apache-2.0" ]
2,543
2015-01-09T02:01:34.000Z
2022-03-31T23:10:14.000Z
bsp/stm32/stm32l053-st-nucleo/rtconfig.py
rockonedege/rt-thread
4fe6c709d0bfe719bed6c927f0144ba373bbda5a
[ "Apache-2.0" ]
4,645
2015-01-06T07:05:31.000Z
2022-03-31T18:21:50.000Z
import os # toolchains options ARCH='arm' CPU='cortex-m0' CROSS_TOOL='gcc' # bsp lib config BSP_LIBRARY_TYPE = None if os.getenv('RTT_CC'): CROSS_TOOL = os.getenv('RTT_CC') if os.getenv('RTT_ROOT'): RTT_ROOT = os.getenv('RTT_ROOT') # cross_tool provides the cross compiler # EXEC_PATH is the compiler execute...
27.67027
152
0.577457
795592bee4efa846ae1a010dbe6a48bac3f75d47
544
py
Python
rmp_nav/simulation/agent_factory.py
Jbwasse2/rmp_nav
270de9d302630724c5e3fcc63c19e7449aaf18ac
[ "MIT" ]
null
null
null
rmp_nav/simulation/agent_factory.py
Jbwasse2/rmp_nav
270de9d302630724c5e3fcc63c19e7449aaf18ac
[ "MIT" ]
null
null
null
rmp_nav/simulation/agent_factory.py
Jbwasse2/rmp_nav
270de9d302630724c5e3fcc63c19e7449aaf18ac
[ "MIT" ]
null
null
null
from __future__ import print_function # Import agents from . import agent_factory_common, agent_factory_minirccar, agent_factory_rccar """ Unless absolutely necessary, we should only add agents to this file , but not modify any existing agent. Agents that start with '_' are private agents. For example, agents that ...
32
98
0.830882
79559359e4ca9ff5ae91f9682a0be9aac68cd2b2
2,520
py
Python
files/044 - pentagon numbers.py
farukara/Project-Euler-problems
806fdbd797edd9929728b43cc428a55df50e1c01
[ "MIT" ]
null
null
null
files/044 - pentagon numbers.py
farukara/Project-Euler-problems
806fdbd797edd9929728b43cc428a55df50e1c01
[ "MIT" ]
null
null
null
files/044 - pentagon numbers.py
farukara/Project-Euler-problems
806fdbd797edd9929728b43cc428a55df50e1c01
[ "MIT" ]
null
null
null
#!python3 # coding: utf-8 # Pentagonal numbers are generated by the formula, Pn=n(3n−1)/2. The first ten pentagonal numbers are: # 1, 5, 12, 22, 35, 51, 70, 92, 117, 145, ... # It can be seen that P4 + P7 = 22 + 70 = 92 = P8. However, their difference, 70 − 22 = 48, is not pentagonal. # Find the pair of pentagonal numb...
32.727273
155
0.60754
7955938902d7c528cc7435b7f6d74bf4410e92f9
1,148
py
Python
application.py
cloudpassage/list_unprotected_docker_engines
8ec56596e0f8c3a0fd63639548d5fc230a620769
[ "BSD-2-Clause" ]
null
null
null
application.py
cloudpassage/list_unprotected_docker_engines
8ec56596e0f8c3a0fd63639548d5fc230a620769
[ "BSD-2-Clause" ]
null
null
null
application.py
cloudpassage/list_unprotected_docker_engines
8ec56596e0f8c3a0fd63639548d5fc230a620769
[ "BSD-2-Clause" ]
null
null
null
"""List servers running Docker, which do not have docker inspection enabled.""" import argparse import dlib def main(): args = get_args() halo = dlib.Halo() halo.print_total_server_count() servers_running_docker = halo.get_servers_running_docker() print("Servers running dockerd: %s" % str(len(serv...
31.888889
100
0.659408
795593915940cd9d401f1f27130ea37cfb19c71a
47,241
py
Python
fairseq/models/longformer.py
hamsik1223/fairseq
13164c38b0aab4269f8775a2506e2b60f5909114
[ "MIT" ]
null
null
null
fairseq/models/longformer.py
hamsik1223/fairseq
13164c38b0aab4269f8775a2506e2b60f5909114
[ "MIT" ]
null
null
null
fairseq/models/longformer.py
hamsik1223/fairseq
13164c38b0aab4269f8775a2506e2b60f5909114
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import math from typing import Any, Dict, List, Optional, Tuple import torch import torch.nn as nn import torch.nn.functional as F from fairs...
44.483051
159
0.636735
7955942178490478c1fd9b10d3d553064f49098a
53,103
py
Python
watertap/unit_models/coag_floc_model.py
kurbansitterley/watertap
1a8986a779bdcb36f1481f03eed24c6c42d26481
[ "BSD-3-Clause-LBNL" ]
null
null
null
watertap/unit_models/coag_floc_model.py
kurbansitterley/watertap
1a8986a779bdcb36f1481f03eed24c6c42d26481
[ "BSD-3-Clause-LBNL" ]
null
null
null
watertap/unit_models/coag_floc_model.py
kurbansitterley/watertap
1a8986a779bdcb36f1481f03eed24c6c42d26481
[ "BSD-3-Clause-LBNL" ]
null
null
null
############################################################################### # WaterTAP Copyright (c) 2021, The Regents of the University of California, # through Lawrence Berkeley National Laboratory, Oak Ridge National # Laboratory, National Renewable Energy Laboratory, and National Energy # Technology Laboratory ...
41.714847
101
0.57251
79559480fefe867288e8db9228d105afb8d3b43a
4,372
py
Python
isi_sdk_8_0/isi_sdk_8_0/models/directory_query_scope_conditions.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_0/isi_sdk_8_0/models/directory_query_scope_conditions.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_0/isi_sdk_8_0/models/directory_query_scope_conditions.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 3 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class DirectoryQueryScopeConditi...
26.49697
90
0.572278
795594baedd472d37effa7c22bbb225fe1310ad0
2,157
py
Python
setup.py
tjguk/winsys
346a5bc0ad74f3f70b1099e714b544a6f008b72c
[ "MIT" ]
51
2015-01-14T09:23:48.000Z
2021-11-08T12:53:54.000Z
setup.py
tjguk/winsys
346a5bc0ad74f3f70b1099e714b544a6f008b72c
[ "MIT" ]
2
2019-05-30T12:34:40.000Z
2020-06-13T20:00:55.000Z
setup.py
tjguk/winsys
346a5bc0ad74f3f70b1099e714b544a6f008b72c
[ "MIT" ]
15
2015-04-21T19:48:48.000Z
2020-07-29T19:30:43.000Z
import os import re from setuptools import setup # # setup.py framework shamelessly stolen from the # Mu editor setup # base_dir = os.path.dirname(__file__) DUNDER_ASSIGN_RE = re.compile(r"""^__\w+__\s*=\s*['"].+['"]$""") about = {} with open(os.path.join(base_dir, "winsys", "__init__.py"), encoding="utf8...
27.653846
82
0.600834
795594bf5676e71e7151192381b3c93ed5d82432
7,748
py
Python
src/decode_demo.py
bgshin/mxnet_cnn
19ebc13f4990ee29612a479325cf13d3bd9723ec
[ "Apache-2.0" ]
null
null
null
src/decode_demo.py
bgshin/mxnet_cnn
19ebc13f4990ee29612a479325cf13d3bd9723ec
[ "Apache-2.0" ]
null
null
null
src/decode_demo.py
bgshin/mxnet_cnn
19ebc13f4990ee29612a479325cf13d3bd9723ec
[ "Apache-2.0" ]
null
null
null
from keras.layers import Conv1D, Average, Multiply from keras.layers import Dense, AveragePooling1D, Input, Lambda from keras.models import Model from keras.preprocessing import sequence from dataset import Timer import os from keras import backend as K import gensim import numpy as np import pickle class SentimentAn...
36.205607
113
0.566856
795594fe43d130f78463ad6bcbc444f6a0add8ca
4,494
py
Python
django/contrib/gis/gdal/prototypes/ds.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/contrib/gis/gdal/prototypes/ds.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/contrib/gis/gdal/prototypes/ds.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
""" This module houses the ctypes function prototypes for OGR DataSource related data structures. OGR_Dr_*, OGR_DS_*, OGR_L_*, OGR_F_*, OGR_Fld_* routines are relevant here. """ from ctypes import POINTER, c_char_p, c_double, c_int, c_long, c_void_p from django.contrib.gis.gdal.envelope import OGREnvelope f...
54.804878
101
0.804406
795596542f9f86f793e1c78b6e71b8f2d0ffb7ab
13,171
py
Python
sdk/python/pulumi_azure_nextgen/containerregistry/v20191201preview/get_registry.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/containerregistry/v20191201preview/get_registry.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/containerregistry/v20191201preview/get_registry.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
40.278287
440
0.669805
7955968560013a97be429647223cf519321a4ecf
6,735
py
Python
web_app/routes/strain_routes.py
andrewwhite5/Med-Cabinet-Solo-Project
18604b096313cc388ad7e858a4948259819e49dd
[ "MIT" ]
null
null
null
web_app/routes/strain_routes.py
andrewwhite5/Med-Cabinet-Solo-Project
18604b096313cc388ad7e858a4948259819e49dd
[ "MIT" ]
null
null
null
web_app/routes/strain_routes.py
andrewwhite5/Med-Cabinet-Solo-Project
18604b096313cc388ad7e858a4948259819e49dd
[ "MIT" ]
null
null
null
#web_app/routes/strain_routes.py from flask import Blueprint, request, render_template, flash, redirect, jsonify import os import pickle import json from sqlalchemy.sql.expression import func from sqlalchemy import or_ from web_app.models import DB, Strain, extract_data, create_table, parse_records from web_app.servic...
32.379808
129
0.63415
795597438c90dc0c3b831dcaaadb29053f299b76
565
py
Python
app/proxy_fix.py
department-of-veterans-affairs/notification-admin
afba831a1e5e407cd7939df991d7438786da8afd
[ "MIT" ]
33
2016-01-11T20:16:17.000Z
2021-11-23T12:50:29.000Z
app/proxy_fix.py
department-of-veterans-affairs/notification-admin
afba831a1e5e407cd7939df991d7438786da8afd
[ "MIT" ]
1,249
2015-11-30T16:43:21.000Z
2022-03-24T13:04:55.000Z
app/proxy_fix.py
department-of-veterans-affairs/notification-admin
afba831a1e5e407cd7939df991d7438786da8afd
[ "MIT" ]
36
2015-12-02T09:49:26.000Z
2021-04-10T18:05:41.000Z
from werkzeug.middleware.proxy_fix import ProxyFix class CustomProxyFix(object): def __init__(self, app, forwarded_proto): self.app = ProxyFix(app, x_for=1, x_proto=1, x_host=1, x_port=0, x_prefix=0) self.forwarded_proto = forwarded_proto def __call__(self, environ, start_response): e...
31.388889
88
0.699115
79559815f1aaf8bf71170b15853534c8bc663a4b
338
py
Python
as_du_transport/www/demenagement-services/index.py
yaacine/as_du_transport_app
d0b9a530240eff8916c39b39b9cb70f59b86b69a
[ "MIT" ]
null
null
null
as_du_transport/www/demenagement-services/index.py
yaacine/as_du_transport_app
d0b9a530240eff8916c39b39b9cb70f59b86b69a
[ "MIT" ]
null
null
null
as_du_transport/www/demenagement-services/index.py
yaacine/as_du_transport_app
d0b9a530240eff8916c39b39b9cb70f59b86b69a
[ "MIT" ]
null
null
null
import frappe def get_context(context): context.services= frappe.get_list("Service demenagement", fields=['name','service_title', 'short_description', 'full_description', 'service_full_image', 'service_short_image'] ) # print('#########################') # print(context.services) # print('##############...
48.285714
181
0.60355
7955983450ae8ba274ba23644242075781ebacbc
4,372
py
Python
meshio/_xdmf/common.py
clbarnes/meshio
21601539d073ea7cb7fe70cf7e2e818aa9c4353c
[ "MIT" ]
null
null
null
meshio/_xdmf/common.py
clbarnes/meshio
21601539d073ea7cb7fe70cf7e2e818aa9c4353c
[ "MIT" ]
5
2018-07-18T21:00:20.000Z
2019-11-28T10:58:37.000Z
meshio/_xdmf/common.py
clbarnes/meshio
21601539d073ea7cb7fe70cf7e2e818aa9c4353c
[ "MIT" ]
null
null
null
import numpy numpy_to_xdmf_dtype = { "int32": ("Int", "4"), "int64": ("Int", "8"), "uint32": ("UInt", "4"), "uint64": ("UInt", "8"), "float32": ("Float", "4"), "float64": ("Float", "8"), } xdmf_to_numpy_type = {v: k for k, v in numpy_to_xdmf_dtype.items()} dtype_to_format_string = { "int32...
28.763158
115
0.598124
795599a86d1b3536f7744db18d2c86aacee1f6e2
5,194
py
Python
project/service/t5_inf.py
hnliu-git/decepticon
18ce5eafd91b3128f101ef9399904bd57f32b40d
[ "Apache-2.0" ]
null
null
null
project/service/t5_inf.py
hnliu-git/decepticon
18ce5eafd91b3128f101ef9399904bd57f32b40d
[ "Apache-2.0" ]
null
null
null
project/service/t5_inf.py
hnliu-git/decepticon
18ce5eafd91b3128f101ef9399904bd57f32b40d
[ "Apache-2.0" ]
null
null
null
# Python Import: from argparse import ArgumentParser from transformers import ( T5ForConditionalGeneration, T5Config, AutoTokenizer ) # Pytorch Lightning Import: import pytorch_lightning as pl class RaceInfModule(pl.LightningModule): """ T5 Model """ @staticmethod def add_model_specific_args(parent...
40.578125
111
0.538506
79559a7f498a4a345a77e0b62d4553c9fa19c28f
1,526
py
Python
Ago-Dic-2017/Jaime Villarreal/Práctica 1/Motocicleta.py
Andremm303/DAS_Sistemas
0163505737e2b24365ea8b4e8135773a6801add4
[ "MIT" ]
null
null
null
Ago-Dic-2017/Jaime Villarreal/Práctica 1/Motocicleta.py
Andremm303/DAS_Sistemas
0163505737e2b24365ea8b4e8135773a6801add4
[ "MIT" ]
null
null
null
Ago-Dic-2017/Jaime Villarreal/Práctica 1/Motocicleta.py
Andremm303/DAS_Sistemas
0163505737e2b24365ea8b4e8135773a6801add4
[ "MIT" ]
null
null
null
from Vehiculo import Vehiculo class Motocicleta(Vehiculo): # Clase para representar una motocicleta. def __init__(self, modelo, color, transmision, motor, cilindros, sku, tipo, centimetros_cubicos, existencia=1): # Heredamos los atributos de 'Vehiculo'. super().__init__(modelo, color, tran...
31.791667
86
0.656619