hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
12300497e33483bef60d933636d4537fcf36255e
1,563
py
Python
autovideo/augmentation/weather/Clouds_primitive.py
wanghaisheng/autovideo
ca6c05e522f6ea8cb2043a60195769f3906a3a19
[ "MIT" ]
4
2021-11-01T15:33:03.000Z
2022-02-10T10:37:56.000Z
autovideo/augmentation/weather/Clouds_primitive.py
wanghaisheng/autovideo
ca6c05e522f6ea8cb2043a60195769f3906a3a19
[ "MIT" ]
2
2021-11-08T05:09:00.000Z
2022-03-08T20:42:02.000Z
autovideo/augmentation/weather/Clouds_primitive.py
wanghaisheng/autovideo
ca6c05e522f6ea8cb2043a60195769f3906a3a19
[ "MIT" ]
2
2022-02-28T10:03:14.000Z
2022-03-23T09:00:06.000Z
''' Copyright 2021 D3M Team Copyright (c) 2021 DATA Lab at Texas A&M University 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 ap...
30.647059
91
0.75112
6326d2519638adf686959f60dd28c5f3d30fc969
3,781
py
Python
release/config_release.py
bergsieker/bazel-toolchains
82bbccf71f17fd6e9216c9469f9caa4c82cd35c1
[ "Apache-2.0" ]
null
null
null
release/config_release.py
bergsieker/bazel-toolchains
82bbccf71f17fd6e9216c9469f9caa4c82cd35c1
[ "Apache-2.0" ]
null
null
null
release/config_release.py
bergsieker/bazel-toolchains
82bbccf71f17fd6e9216c9469f9caa4c82cd35c1
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
30.491935
80
0.755356
718ed7a607ce5d9102c133e3ab08626215da35a2
7,147
py
Python
sandbox/oauth2/db_utils.py
aimeeu/Udacity-FullStackWebDeveloper
96b953b3fe274434b87ad15e10661fc90aab4451
[ "Apache-2.0" ]
null
null
null
sandbox/oauth2/db_utils.py
aimeeu/Udacity-FullStackWebDeveloper
96b953b3fe274434b87ad15e10661fc90aab4451
[ "Apache-2.0" ]
null
null
null
sandbox/oauth2/db_utils.py
aimeeu/Udacity-FullStackWebDeveloper
96b953b3fe274434b87ad15e10661fc90aab4451
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # DEVELOPER: Aimee Ukasick # DATE CREATED: 31 Aug 2018 # PURPOSE: common functions for retrieving data from sqlalchemy import create_engine, sql from sqlalchemy.orm import sessionmaker from database_setup import Base, Restaurant, MenuItem, User def fetch_all_restauran...
26.76779
76
0.616482
3d48495426329622847589dfeaa048692aff5636
5,493
py
Python
tests/pa/test_deprovision.py
deathly809/WALinuxAgent
c8f63b26c8412b25cb01b06a6ac68f4ce9575b84
[ "Apache-2.0" ]
null
null
null
tests/pa/test_deprovision.py
deathly809/WALinuxAgent
c8f63b26c8412b25cb01b06a6ac68f4ce9575b84
[ "Apache-2.0" ]
null
null
null
tests/pa/test_deprovision.py
deathly809/WALinuxAgent
c8f63b26c8412b25cb01b06a6ac68f4ce9575b84
[ "Apache-2.0" ]
1
2020-08-18T20:15:17.000Z
2020-08-18T20:15:17.000Z
# Copyright 2016 Microsoft Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
38.683099
83
0.600947
f53de6301a35e7f76c892c0a06f12dba30f713ce
373
py
Python
httpserver/controllersX/basic.py
evinlort/http-server
7db0637da7afbdb3736e595c431477c5242320a9
[ "MIT" ]
null
null
null
httpserver/controllersX/basic.py
evinlort/http-server
7db0637da7afbdb3736e595c431477c5242320a9
[ "MIT" ]
null
null
null
httpserver/controllersX/basic.py
evinlort/http-server
7db0637da7afbdb3736e595c431477c5242320a9
[ "MIT" ]
null
null
null
def test(query): return "Text by ROUTER" def new(query): if isinstance(query, dict): if "test" in query: return query["test"].upper() if isinstance(query, bytes): with open("evgeny.pdf", "wb") as fd: fd.write(query) return "Saved" import time re...
23.3125
58
0.563003
797a293c46b4808faf1494f055b9684039fddb1b
11,972
py
Python
tests/grouping/test_grouping_utils.py
Slimane33/pennylane
fe5d1dffa152fd34e4f9224df02eecb219affa06
[ "Apache-2.0" ]
null
null
null
tests/grouping/test_grouping_utils.py
Slimane33/pennylane
fe5d1dffa152fd34e4f9224df02eecb219affa06
[ "Apache-2.0" ]
1
2021-05-27T05:36:41.000Z
2021-05-27T05:36:41.000Z
tests/grouping/test_grouping_utils.py
Slimane33/pennylane
fe5d1dffa152fd34e4f9224df02eecb219affa06
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2020 Xanadu Quantum Technologies Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or...
40.309764
103
0.641079
1aa5c41e095ab05b3f4677f54817bfd2da4f9ff8
16,182
py
Python
src/client/project/template_builder/view.py
Losik/toloka-kit
1e707b17bcaa8a570f0479445906d9afbdf737ae
[ "Apache-2.0" ]
null
null
null
src/client/project/template_builder/view.py
Losik/toloka-kit
1e707b17bcaa8a570f0479445906d9afbdf737ae
[ "Apache-2.0" ]
1
2021-07-02T13:56:34.000Z
2021-07-02T14:32:10.000Z
src/client/project/template_builder/view.py
Losik/toloka-kit
1e707b17bcaa8a570f0479445906d9afbdf737ae
[ "Apache-2.0" ]
1
2021-06-09T09:32:33.000Z
2021-06-09T09:32:33.000Z
__all__ = [ 'BaseViewV1', 'ActionButtonViewV1', 'AlertViewV1', 'AudioViewV1', 'CollapseViewV1', 'DeviceFrameViewV1', 'DividerViewV1', 'GroupViewV1', 'IframeViewV1', 'ImageViewV1', 'LabeledListViewV1', 'LinkViewV1', 'LinkGroupViewV1', 'ListViewV1', 'MarkdownVie...
38.165094
132
0.684402
85d42130da3a1d3393f5f99c7c46a81a5e4c25a3
4,104
py
Python
ui/page_elements/election_addpeople/__init__.py
ArcherLuo233/election-s-prediction
9da72cb855f6d61f9cdec6e15f7ca832629ba51a
[ "MIT" ]
null
null
null
ui/page_elements/election_addpeople/__init__.py
ArcherLuo233/election-s-prediction
9da72cb855f6d61f9cdec6e15f7ca832629ba51a
[ "MIT" ]
1
2022-01-26T01:23:26.000Z
2022-01-26T01:23:34.000Z
ui/page_elements/election_addpeople/__init__.py
ArcherLuo233/election-s-prediction
9da72cb855f6d61f9cdec6e15f7ca832629ba51a
[ "MIT" ]
1
2021-11-08T10:58:23.000Z
2021-11-08T10:58:23.000Z
from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QMessageBox from model.area import Area from model.user import User from ui.page_elements.modal_dialog import ModalDialog from .AddpeopleUI import Ui_Dialog class PeopleAdd(ModalDialog): def __init__(self, parent): self.alltitle = ["炎峰里", "中正里", "玉...
36.318584
115
0.4654
49fcef5a56da53676590e2c65a882f7beb3913e3
12,651
py
Python
src/github3/gists/gist.py
butsyk/github3.py
72fa5125fce75c916733839963554765c907e9e7
[ "BSD-3-Clause" ]
null
null
null
src/github3/gists/gist.py
butsyk/github3.py
72fa5125fce75c916733839963554765c907e9e7
[ "BSD-3-Clause" ]
null
null
null
src/github3/gists/gist.py
butsyk/github3.py
72fa5125fce75c916733839963554765c907e9e7
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """This module contains the Gist, ShortGist, and GistFork objects.""" from json import dumps from .. import models from .. import users from ..decorators import requires_auth from . import comment from . import file as gistfile from . import history class _Gist(models.GitHubCore): """Thi...
30.484337
83
0.61837
d78b8a31ba522378e07ebe572fea755e7708b306
13,230
py
Python
jasmin/routing/Routes.py
paradiseng/jasmin
16c54261a6a1a82db64311ee2a235f6c966c14ab
[ "Apache-2.0" ]
750
2015-01-02T23:09:54.000Z
2022-03-29T11:00:29.000Z
jasmin/routing/Routes.py
diwacreation3/jasmin
16c54261a6a1a82db64311ee2a235f6c966c14ab
[ "Apache-2.0" ]
806
2015-01-01T16:17:06.000Z
2022-03-29T20:36:03.000Z
jasmin/routing/Routes.py
diwacreation3/jasmin
16c54261a6a1a82db64311ee2a235f6c966c14ab
[ "Apache-2.0" ]
509
2015-01-16T20:15:25.000Z
2022-03-30T12:57:03.000Z
# pylint: disable=W0401,W0611,W0231 """ More info: http://docs.jasminsms.com/en/latest/routing/index.html """ import random from jasmin.routing.Bills import SubmitSmBill from jasmin.routing.Filters import Filter from jasmin.routing.Routables import Routable from jasmin.routing.jasminApi import * class InvalidRouteP...
34.724409
108
0.621315
63af35d4058a5259b147d831f03ada2f77e9e8f4
9,328
py
Python
connect_remote.py
NeotomaDB/Neotoma_SQL
503917b07a536d7cee9cbb67e256d0d29c97df4f
[ "MIT" ]
1
2021-07-29T01:19:11.000Z
2021-07-29T01:19:11.000Z
connect_remote.py
NeotomaDB/Neotoma_SQL
503917b07a536d7cee9cbb67e256d0d29c97df4f
[ "MIT" ]
5
2019-03-11T18:10:13.000Z
2020-10-15T21:55:48.000Z
connect_remote.py
NeotomaDB/Neotoma_SQL
503917b07a536d7cee9cbb67e256d0d29c97df4f
[ "MIT" ]
null
null
null
#! /usr/bin/python3 """ Neotoma DB Function Checker Simon Goring 2018 MIT License Connect to a Neotoma Paleoecology Database using a JSON connection string and return all the currently scripted queries. If a sql file exists in one of the local schema directories but does not have an associated function, then create ...
35.467681
79
0.549528
499354442fb37c98b4668ce5b0e8ca5910084fbc
175
py
Python
.history/ClassFiles/Control Flow/Elif_20210101185139.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
.history/ClassFiles/Control Flow/Elif_20210101185139.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
.history/ClassFiles/Control Flow/Elif_20210101185139.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
''' elif Statements Used to check multiple expressions for True conditions. if(Condition1): Indented statement block for Condition1 elif(Condition2) '''
13.461538
55
0.697143
ceabf43be337f1ae19fbd4487b790274895c3be6
4,782
py
Python
venv/lib/python2.7/site-packages/pelican/paginator.py
ThoMaCarto/AtlasUECI
c10d18551ee868317f63f22fab820c366936872a
[ "MIT" ]
2
2019-07-06T06:42:05.000Z
2021-05-25T09:23:08.000Z
venv/lib/python2.7/site-packages/pelican/paginator.py
ThoMaCarto/AtlasUECI
c10d18551ee868317f63f22fab820c366936872a
[ "MIT" ]
null
null
null
venv/lib/python2.7/site-packages/pelican/paginator.py
ThoMaCarto/AtlasUECI
c10d18551ee868317f63f22fab820c366936872a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals import functools import logging import os from collections import namedtuple from math import ceil import six logger = logging.getLogger(__name__) PaginationRule = namedtuple( 'PaginationRule', 'min_page URL SAVE_AS', ) class P...
31.051948
79
0.612714
46a4fbf335c892457ff47c248af13c3910158dda
14,808
py
Python
homeassistant/components/evohome/climate.py
reuank/home-assistant
fb35d382e1e1cc8be5a167e1f3834c0d48273b5a
[ "Apache-2.0" ]
null
null
null
homeassistant/components/evohome/climate.py
reuank/home-assistant
fb35d382e1e1cc8be5a167e1f3834c0d48273b5a
[ "Apache-2.0" ]
null
null
null
homeassistant/components/evohome/climate.py
reuank/home-assistant
fb35d382e1e1cc8be5a167e1f3834c0d48273b5a
[ "Apache-2.0" ]
null
null
null
"""Support for Climate devices of (EMEA/EU-based) Honeywell TCC systems.""" from datetime import datetime as dt import logging from typing import List, Optional from homeassistant.components.climate import ClimateDevice from homeassistant.components.climate.const import ( CURRENT_HVAC_HEAT, CURRENT_HVAC_IDLE, ...
35.510791
88
0.653566
ad1385a02ba2bafbf82d1b9be52d7fc530903ed6
11,182
py
Python
pcdet/models/roi_heads/ct3d_head.py
EmiyaNing/OpenPCDet
41ff28209cb000b51626a0ed8593b0adbe3dd447
[ "Apache-2.0" ]
null
null
null
pcdet/models/roi_heads/ct3d_head.py
EmiyaNing/OpenPCDet
41ff28209cb000b51626a0ed8593b0adbe3dd447
[ "Apache-2.0" ]
null
null
null
pcdet/models/roi_heads/ct3d_head.py
EmiyaNing/OpenPCDet
41ff28209cb000b51626a0ed8593b0adbe3dd447
[ "Apache-2.0" ]
null
null
null
import torch.nn as nn import pdb import torch import numpy as np from numpy import * import torch.nn.functional as F from ...utils import common_utils from .roi_head_template import RoIHeadTemplate from ..model_utils.ctrans import build_transformer class MLP(nn.Module): """ Very simple multi-layer perceptron (al...
46.786611
139
0.619657
3d205b24765ee134c9ae212d25b9fd808a845364
3,351
py
Python
google-spiders/g4spiders/google_email_spider_4/google_email_spider_4/pipelines.py
mtaziz/email-scraper-using-google-with-linkedin
8fd3fcdec8815bc5333272c9abfc1983412cdedc
[ "MIT" ]
3
2018-08-26T09:08:01.000Z
2020-05-05T19:17:21.000Z
google-spiders/g4spiders/google_email_spider_4/google_email_spider_4/pipelines.py
mtaziz/email-scraper-using-google-x-ray-search-with-linkedin
8fd3fcdec8815bc5333272c9abfc1983412cdedc
[ "MIT" ]
null
null
null
google-spiders/g4spiders/google_email_spider_4/google_email_spider_4/pipelines.py
mtaziz/email-scraper-using-google-x-ray-search-with-linkedin
8fd3fcdec8815bc5333272c9abfc1983412cdedc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html import sys from scrapy.exceptions import DropItem import requests from scrapy.utils.project import get_project_settings from scr...
36.032258
92
0.595046
0465d3032e22baab66c483388e2eaf5abf89dd39
1,444
py
Python
setup.py
cimbi/pyacq
b320251f1cf899c1d2cc4fddd5596a1ae835b39d
[ "BSD-3-Clause" ]
20
2015-12-18T05:52:04.000Z
2021-05-22T05:12:24.000Z
setup.py
cimbi/pyacq
b320251f1cf899c1d2cc4fddd5596a1ae835b39d
[ "BSD-3-Clause" ]
72
2015-07-17T19:43:36.000Z
2021-09-14T07:37:30.000Z
setup.py
cimbi/pyacq
b320251f1cf899c1d2cc4fddd5596a1ae835b39d
[ "BSD-3-Clause" ]
14
2015-06-19T12:07:25.000Z
2021-08-16T14:44:42.000Z
# -*- coding: utf-8 -*- from setuptools import setup, find_packages import os import pyacq long_description = """ Pyacq is a simple, pure-Python framework for distributed data acquisition and stream processing. Its primary use cases are for analog signals, digital signals, video, and events. Pyacq uses ZeroMQ to str...
30.723404
90
0.625346
ad6a6d4ae6b0757b332f88a0be2adc9c663dd7fc
2,146
py
Python
tahoe_idp/magiclink_views.py
appsembler/tahoe-auth0
f3b870b1626d76bab4e9e03c6c4c6ecdc226ffb7
[ "MIT" ]
null
null
null
tahoe_idp/magiclink_views.py
appsembler/tahoe-auth0
f3b870b1626d76bab4e9e03c6c4c6ecdc226ffb7
[ "MIT" ]
10
2021-12-03T14:03:52.000Z
2022-03-21T11:07:50.000Z
tahoe_idp/magiclink_views.py
appsembler/tahoe-auth0
f3b870b1626d76bab4e9e03c6c4c6ecdc226ffb7
[ "MIT" ]
null
null
null
import logging from django.conf import settings from django.contrib.auth import authenticate, login from django.contrib.auth.decorators import login_required from django.http import HttpResponseRedirect from django.shortcuts import redirect from django.utils.decorators import method_decorator from django.views.decorat...
36.372881
101
0.746039
98779333f1d104da66e410a8d408e49877e716ed
659
py
Python
dms/manage.py
tusharbohara/document-management-system
d57251b2425283c9f628de2550035dd18c79e7b1
[ "MIT" ]
null
null
null
dms/manage.py
tusharbohara/document-management-system
d57251b2425283c9f628de2550035dd18c79e7b1
[ "MIT" ]
null
null
null
dms/manage.py
tusharbohara/document-management-system
d57251b2425283c9f628de2550035dd18c79e7b1
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'dms.settings') try: from django.core.management import execute_from_command_line except ImportEr...
28.652174
73
0.676783
6298eeeb0f70d0b9e3b9874ad67043cf4eddb920
18,689
py
Python
cirq/linalg/decompositions.py
philiptmassey/Cirq
b8b457c2fc484d76bf8a82a73f6ecc11756229a6
[ "Apache-2.0" ]
null
null
null
cirq/linalg/decompositions.py
philiptmassey/Cirq
b8b457c2fc484d76bf8a82a73f6ecc11756229a6
[ "Apache-2.0" ]
null
null
null
cirq/linalg/decompositions.py
philiptmassey/Cirq
b8b457c2fc484d76bf8a82a73f6ecc11756229a6
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Cirq Developers # # 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 ...
34.867537
80
0.598855
e742898ad016572f974a6d02a833b142a04b9400
3,307
py
Python
software/tests/test_M01_covariances_correlations.py
meliao/MetaXcan
bb15480815a5c3a7ffcd0a3caa4116e427a5ef92
[ "MIT" ]
null
null
null
software/tests/test_M01_covariances_correlations.py
meliao/MetaXcan
bb15480815a5c3a7ffcd0a3caa4116e427a5ef92
[ "MIT" ]
null
null
null
software/tests/test_M01_covariances_correlations.py
meliao/MetaXcan
bb15480815a5c3a7ffcd0a3caa4116e427a5ef92
[ "MIT" ]
null
null
null
#!/usr/bin/env python import unittest import sys import shutil import os import re import gzip if "DEBUG" in sys.argv: sys.path.insert(0, "..") sys.path.insert(0, "../../") sys.path.insert(0, ".") sys.argv.remove("DEBUG") import metax.Formats as Formats from M01_covariances_correlations import Proces...
34.810526
88
0.61264
646318eeff46ac1f2a86ba08aba7c48787587e2e
13,938
py
Python
client/build/build_patch_info.py
AustralianDisabilityLimited/MultiversePlatform
7e1aad33d48b9e47f3db2ca638cb57592336ddb7
[ "MIT" ]
33
2015-02-16T02:52:08.000Z
2022-02-18T08:46:32.000Z
client/build/build_patch_info.py
bensku/MultiversePlatform
7e1aad33d48b9e47f3db2ca638cb57592336ddb7
[ "MIT" ]
1
2017-09-09T18:50:23.000Z
2020-12-29T18:13:56.000Z
client/build/build_patch_info.py
bensku/MultiversePlatform
7e1aad33d48b9e47f3db2ca638cb57592336ddb7
[ "MIT" ]
31
2015-02-07T16:20:24.000Z
2022-02-23T15:02:43.000Z
# # The Multiverse Platform is made available under the MIT License. # # Copyright (c) 2012 The Multiverse Foundation # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation # files (the "Software"), to deal in the Software without restrict...
60.864629
135
0.750825
272e2751540f5d7118daa8686467ea8cc81c012a
3,480
py
Python
rasa_core/tracker_store.py
znat/rasa_core
58d224e2e3b5aa413f004822270f7230c7c7057c
[ "Apache-2.0" ]
1
2019-03-12T12:02:18.000Z
2019-03-12T12:02:18.000Z
rasa_core/tracker_store.py
znat/rasa_core
58d224e2e3b5aa413f004822270f7230c7c7057c
[ "Apache-2.0" ]
null
null
null
rasa_core/tracker_store.py
znat/rasa_core
58d224e2e3b5aa413f004822270f7230c7c7057c
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import logging import six.moves.cPickle as pickler from typing import Text, Optional from rasa_core.actions.action import ACTION_LISTEN_NAME from rasa_core.trackers im...
30.26087
77
0.642816
184f1f357986d8a42e3cce1db383667eeafb2222
3,298
py
Python
python/chat.py
Colonel-Top/Line-Bot-Python
d890924cb89c46cdfdd80e77c1ff6175178ddc5d
[ "MIT" ]
null
null
null
python/chat.py
Colonel-Top/Line-Bot-Python
d890924cb89c46cdfdd80e77c1ff6175178ddc5d
[ "MIT" ]
null
null
null
python/chat.py
Colonel-Top/Line-Bot-Python
d890924cb89c46cdfdd80e77c1ff6175178ddc5d
[ "MIT" ]
null
null
null
#!/usr/bin/python #-*-coding: utf-8 -*- import time import random import string #from requests import .requests from gspread import client, httpsession, models ,ns, urls, utils import os import sys from oauth2client import clientsecrets import oauth2client from datetime import datetime now = datetime.now() from oa...
41.225
214
0.667677
04064b1cce3507c084378f18fcd8632d7e3326c5
3,630
py
Python
python/tvm/meta_schedule/feature_extractor/feature_extractor.py
XiaoSong9905/tvm
48940f697e15d5b50fa1f032003e6c700ae1e423
[ "Apache-2.0" ]
4,640
2017-08-17T19:22:15.000Z
2019-11-04T15:29:46.000Z
python/tvm/meta_schedule/feature_extractor/feature_extractor.py
XiaoSong9905/tvm
48940f697e15d5b50fa1f032003e6c700ae1e423
[ "Apache-2.0" ]
2,863
2017-08-17T19:55:50.000Z
2019-11-04T17:18:41.000Z
python/tvm/meta_schedule/feature_extractor/feature_extractor.py
XiaoSong9905/tvm
48940f697e15d5b50fa1f032003e6c700ae1e423
[ "Apache-2.0" ]
1,352
2017-08-17T19:30:38.000Z
2019-11-04T16:09:29.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...
33
100
0.689256
344b32f3ff3f87713c3f1da66a3a48384cdd580c
86
py
Python
teste.py
PPedriniHp/Fiap_on_Phyton
fe06cfc931cd038dfed8c14394336f69dc953926
[ "MIT" ]
null
null
null
teste.py
PPedriniHp/Fiap_on_Phyton
fe06cfc931cd038dfed8c14394336f69dc953926
[ "MIT" ]
null
null
null
teste.py
PPedriniHp/Fiap_on_Phyton
fe06cfc931cd038dfed8c14394336f69dc953926
[ "MIT" ]
null
null
null
import ctypes dll = ctypes.windll.biblioteca funcaoTeste = dll.funcaoTeste a = open
12.285714
30
0.77907
a24837a659f2794a6cb66d7412ef4d98eb2624cc
805
py
Python
antiope/__init__.py
jchrisfarris/antiope-aws-module
574fe681092b021daa3aab234cc59afc81fed696
[ "Apache-2.0" ]
null
null
null
antiope/__init__.py
jchrisfarris/antiope-aws-module
574fe681092b021daa3aab234cc59afc81fed696
[ "Apache-2.0" ]
null
null
null
antiope/__init__.py
jchrisfarris/antiope-aws-module
574fe681092b021daa3aab234cc59afc81fed696
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-2020 Turner Broadcasting Inc. / WarnerMedia # # 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 applicab...
38.333333
74
0.775155
a172ea27691f990e2635199b94ab264b9d8a9cd7
1,216
py
Python
cogs/help/web.py
tuna2134/hortbot
43176217a59af9b3ed16b2aa911b3a267569009e
[ "BSD-3-Clause" ]
1
2021-11-17T15:08:07.000Z
2021-11-17T15:08:07.000Z
cogs/help/web.py
tuna2134/hortbot
43176217a59af9b3ed16b2aa911b3a267569009e
[ "BSD-3-Clause" ]
null
null
null
cogs/help/web.py
tuna2134/hortbot
43176217a59af9b3ed16b2aa911b3a267569009e
[ "BSD-3-Clause" ]
null
null
null
from discord.ext import commands import ujson import urllib.parse from sanic.response import json class Helpweb(commands.Cog): def __init__(self, bot): self.bot = bot with open("data/help.json", "r") as f: self.data = bot.help bot.web.add_route(self.help_web, "/help") bo...
43.428571
157
0.658717
431b1ff7b0ff2e97de813ccfc88175813655a6eb
2,174
py
Python
powrl3/agent/chrl/ddqn.py
leferrad/powrl3
c3193516d5ad3485b55fe72c23849398a173309d
[ "MIT" ]
1
2018-10-07T18:07:09.000Z
2018-10-07T18:07:09.000Z
powrl3/agent/chrl/ddqn.py
leferrad/powrl3
c3193516d5ad3485b55fe72c23849398a173309d
[ "MIT" ]
null
null
null
powrl3/agent/chrl/ddqn.py
leferrad/powrl3
c3193516d5ad3485b55fe72c23849398a173309d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function """""" # https://github.com/jaara/AI-blog/blob/master/Seaquest-DDQN-PER.py # https://jaromiru.com/2016/11/07/lets-make-a-dqn-double-learning-and-prioritized-experience-replay/ from powrl3.agent.chrl.base import BaseAgent from chain...
36.847458
113
0.628335
ee0d738b4cfaef36fb13640f45159ab685bd7d31
157
py
Python
src/learners/__init__.py
YetAnotherPolicy/RMIX
dbc8f0a6560aa3f274765fa78aaaca22351ab8ad
[ "Apache-2.0" ]
6
2021-11-18T16:21:43.000Z
2021-12-31T02:22:23.000Z
src/learners/__init__.py
YetAnotherPolicy/RMIX
dbc8f0a6560aa3f274765fa78aaaca22351ab8ad
[ "Apache-2.0" ]
null
null
null
src/learners/__init__.py
YetAnotherPolicy/RMIX
dbc8f0a6560aa3f274765fa78aaaca22351ab8ad
[ "Apache-2.0" ]
1
2022-02-22T02:37:30.000Z
2022-02-22T02:37:30.000Z
from .q_learner import QLearner from .rmix_learner import RMIXLearner REGISTRY = {} REGISTRY["q_learner"] = QLearner REGISTRY["rmix_learner"] = RMIXLearner
22.428571
38
0.789809
ba3448a25a2229be3a077f358da375f4c461391c
2,763
py
Python
2021/03/code.py
mr-bigbang/advent-of-code
5fa0f78c70b10c66e516b21c08335e63e71d9e95
[ "MIT" ]
null
null
null
2021/03/code.py
mr-bigbang/advent-of-code
5fa0f78c70b10c66e516b21c08335e63e71d9e95
[ "MIT" ]
2
2020-12-04T00:58:16.000Z
2020-12-05T21:08:59.000Z
2021/03/code.py
mr-bigbang/advent-of-code
5fa0f78c70b10c66e516b21c08335e63e71d9e95
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- encoding: utf-8 -*- import sys, timeit from typing import Tuple def bit_at(value: int, pos: int) -> bool: return value & (1 << pos) != 0 # -or- #return (value >> pos) & 1 != 0 def most_common(values: Tuple[int], pos: int) -> bool: # This looks nicer but is ~3x slower :-...
29.393617
100
0.581614
80e525c8cd11f18c97a3176f69d1e82cba4b535f
771
py
Python
code/download_count.py
jindui/t66y
cb0fb4158f463faf79b0486bc6e104156d126447
[ "MIT" ]
null
null
null
code/download_count.py
jindui/t66y
cb0fb4158f463faf79b0486bc6e104156d126447
[ "MIT" ]
1
2019-06-11T04:20:50.000Z
2020-01-31T09:22:08.000Z
code/download_count.py
jindui/t66y
cb0fb4158f463faf79b0486bc6e104156d126447
[ "MIT" ]
3
2017-10-12T02:23:47.000Z
2019-06-11T04:07:05.000Z
# coding= utf-8 import requests from bs4 import BeautifulSoup def download_count(url): proxies = { "http": "http://127.0.0.1:1080", } r = requests.get(url, proxies=proxies) r.encoding='gbk' soup = BeautifulSoup(r.text,"lxml") alist = soup.find_all("a") for child in alist: if child.text.startswith("http...
27.535714
79
0.699092
659b559c5ea79db2dbc7aea8963d30e717e49979
143
py
Python
examples/formal_project/sampleproject/base.py
reorx/torext
84c4300ebc7fab0dbd11cf8b020bc7d4d1570171
[ "MIT" ]
31
2015-03-20T14:11:11.000Z
2020-10-19T08:07:45.000Z
examples/formal_project/sampleproject/base.py
reorx/torext
84c4300ebc7fab0dbd11cf8b020bc7d4d1570171
[ "MIT" ]
1
2016-09-15T07:17:26.000Z
2016-09-15T07:17:26.000Z
examples/formal_project/sampleproject/base.py
reorx/torext
84c4300ebc7fab0dbd11cf8b020bc7d4d1570171
[ "MIT" ]
8
2015-03-04T04:08:57.000Z
2019-08-31T03:03:42.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from torext.handlers import BaseHandler class MyBaseHandler(BaseHandler): visit_count = 0
15.888889
39
0.706294
99e67da06ffb63869ddf478757deacddd75cdf4d
15,162
py
Python
salt/_logging/impl.py
lllamnyp/salt
de112e5b362191e3708e170b7eb8e990787ad412
[ "Apache-2.0" ]
1
2015-04-01T21:38:46.000Z
2015-04-01T21:38:46.000Z
salt/_logging/impl.py
lllamnyp/salt
de112e5b362191e3708e170b7eb8e990787ad412
[ "Apache-2.0" ]
9
2021-03-31T20:25:25.000Z
2021-07-04T05:33:46.000Z
salt/_logging/impl.py
lllamnyp/salt
de112e5b362191e3708e170b7eb8e990787ad412
[ "Apache-2.0" ]
null
null
null
""" salt._logging.impl ~~~~~~~~~~~~~~~~~~ Salt's logging implementation classes/functionality """ import logging import re import sys import types # Let's define these custom logging levels before importing the salt._logging.mixins # since they will be used there PROFILE = logging.PROFILE = 15 TRACE = l...
33.995516
118
0.585609
7d5ca6b4b5051f168d4d1d29eebae6f027138ded
4,088
py
Python
ross/units.py
LMEst-Rotor/ross
33aaa4b32ff7c32465cb81840f3cb2d6b2cdd65a
[ "MIT" ]
null
null
null
ross/units.py
LMEst-Rotor/ross
33aaa4b32ff7c32465cb81840f3cb2d6b2cdd65a
[ "MIT" ]
null
null
null
ross/units.py
LMEst-Rotor/ross
33aaa4b32ff7c32465cb81840f3cb2d6b2cdd65a
[ "MIT" ]
null
null
null
"""This module deals with units conversion in the ROSS library.""" import inspect import warnings from functools import wraps from pathlib import Path import pint new_units_path = Path(__file__).parent / "new_units.txt" ureg = pint.get_application_registry() if isinstance(ureg, pint.registry.LazyRegistry): ureg ...
28
110
0.536448
aceef0c54aeaa0701c81c489aff7411dc3594461
2,050
py
Python
06-higher-order-functions/main.py
johnehunt/PythonIntroLabsDS
d0d63730e9bacefa99225559be98fb933eed15c8
[ "Apache-2.0" ]
1
2021-05-16T10:24:19.000Z
2021-05-16T10:24:19.000Z
06-higher-order-functions/main.py
johnehunt/PythonIntroLabsDS
d0d63730e9bacefa99225559be98fb933eed15c8
[ "Apache-2.0" ]
null
null
null
06-higher-order-functions/main.py
johnehunt/PythonIntroLabsDS
d0d63730e9bacefa99225559be98fb933eed15c8
[ "Apache-2.0" ]
null
null
null
# Illustrates use of higher order functions such as filter, map and reduce from functools import reduce def average(data): return sum(data) / len(data) def median(data): sorted_data = sorted(data) data_length = len(data) index = (data_length - 1) // 2 if data_length % 2: return sorted_data[index] else: r...
25.625
95
0.730244
c90854e1c5b0a2123498c7117a356ffb5b534e85
7,955
py
Python
PythonPlotting/PlotDataGUI.py
DCHartlen/WindEnergyProject
5921cbe99e9c744014e41e6dc628c1f7aa2f3b6f
[ "MIT" ]
null
null
null
PythonPlotting/PlotDataGUI.py
DCHartlen/WindEnergyProject
5921cbe99e9c744014e41e6dc628c1f7aa2f3b6f
[ "MIT" ]
null
null
null
PythonPlotting/PlotDataGUI.py
DCHartlen/WindEnergyProject
5921cbe99e9c744014e41e6dc628c1f7aa2f3b6f
[ "MIT" ]
null
null
null
""" Contains all objects in the GUI (buttons, plots, etc). Generated using ui_convert.py from "PlotDataGUI.ui" Created By: D.C. Hartlen, EIT Created On: 16-JUN-2018 Modified By: Modified On: """ # Form implementation generated from reading ui file 'PlotDataGUI.ui' # # Created by: PyQt5 UI code g...
55.243056
186
0.727718
1c3497047196a31028998ae4617a866c66a753ef
4,399
py
Python
pygasus/model/decorators/lazy_property.py
talismud/pygasus
fb01c8bd51003b5a008b572182a96bad86ef769f
[ "BSD-3-Clause" ]
2
2021-11-18T09:35:10.000Z
2021-11-18T14:46:32.000Z
pygasus/model/decorators/lazy_property.py
talismud/pygasus
fb01c8bd51003b5a008b572182a96bad86ef769f
[ "BSD-3-Clause" ]
null
null
null
pygasus/model/decorators/lazy_property.py
talismud/pygasus
fb01c8bd51003b5a008b572182a96bad86ef769f
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 20201, LE GOFF Vincent # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and ...
33.838462
78
0.674926
26fa6ab7c20256b82a7ad089c651f304f768d1a2
564
py
Python
pyggi/base.py
nak/pyggi
139a72d72c1a3bb17005e0c9c64e06ba4e2cd329
[ "BSD-3-Clause" ]
1
2017-12-22T06:58:47.000Z
2017-12-22T06:58:47.000Z
pyggi/base.py
nak/pyggi
139a72d72c1a3bb17005e0c9c64e06ba4e2cd329
[ "BSD-3-Clause" ]
null
null
null
pyggi/base.py
nak/pyggi
139a72d72c1a3bb17005e0c9c64e06ba4e2cd329
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ :copyright: (c) 2011 by Tobias Heinzen :license: BSD, see LICENSE for more details """ import functools from pyggi.lib.decorators import templated import pyggi.lib.filters from flask import Blueprint, redirect base = Blueprint('base', __name__) get = functools.partial(base.route,...
20.888889
68
0.702128
454038fef43b53d4ce9b59be48fecb78a10b299d
150
py
Python
config/pytorch_rnn_config.py
Aczy156/pytorch-deeplearning-models
e3aad44a0c62b84492f6135959cc8440d323387f
[ "MIT" ]
null
null
null
config/pytorch_rnn_config.py
Aczy156/pytorch-deeplearning-models
e3aad44a0c62b84492f6135959cc8440d323387f
[ "MIT" ]
null
null
null
config/pytorch_rnn_config.py
Aczy156/pytorch-deeplearning-models
e3aad44a0c62b84492f6135959cc8440d323387f
[ "MIT" ]
null
null
null
""" 数据预处理 超参数 """ num = 20 """ 模型 超参数 """ input_size = 1 output_size = 1 hidden_dim = 32 n_layers = 1 """ 模型训练 超参数 """ n_steps = 100 print_every = 25
8.823529
16
0.613333
8a64399fbaa60591fedc3b119cb20fab54cbe978
1,029
py
Python
tests/recipe/test_recipe.py
j-sommer/recipe-organizer
91d39e12c453ecf3d3254645b565bbceacaecde9
[ "MIT" ]
null
null
null
tests/recipe/test_recipe.py
j-sommer/recipe-organizer
91d39e12c453ecf3d3254645b565bbceacaecde9
[ "MIT" ]
null
null
null
tests/recipe/test_recipe.py
j-sommer/recipe-organizer
91d39e12c453ecf3d3254645b565bbceacaecde9
[ "MIT" ]
null
null
null
from recipe_organizer.recipe.ingredient.ingredient import Ingredient from recipe_organizer.recipe.recipe import Recipe def test_recipe_serialization(): # Given recipe = Recipe( "title", ["labelA", "labelB"], [Ingredient("name", "g", 50)], "preparation" ) # When jso...
30.264706
304
0.660836
4d266d975dbb3001f30efb47f67338d911faf850
466
py
Python
_includes/code/minimum-remove-to-make-valid-parentheses/solution.py
rajat19/interview-questions
cb1fa382a76f2f287f1c12dd3d1fca9bfb7fa311
[ "MIT" ]
null
null
null
_includes/code/minimum-remove-to-make-valid-parentheses/solution.py
rajat19/interview-questions
cb1fa382a76f2f287f1c12dd3d1fca9bfb7fa311
[ "MIT" ]
2
2022-03-01T06:30:35.000Z
2022-03-13T07:05:50.000Z
_includes/code/minimum-remove-to-make-valid-parentheses/solution.py
rajat19/interview-questions
cb1fa382a76f2f287f1c12dd3d1fca9bfb7fa311
[ "MIT" ]
1
2022-02-09T12:13:36.000Z
2022-02-09T12:13:36.000Z
class Solution: def minRemoveToMakeValid(self, s: str) -> str: stack = [] arr = list(s) print(arr) for i in range(len(s)): if s[i] == '(': stack.append(i) elif s[i] == ')': if not stack: arr[i] = '*' ...
29.125
50
0.369099
5f8aef124cb067e9a1ebadcccf6933853c754afd
13,327
py
Python
tests/python/testing.py
MichaelChirico/xgboost
028bdc174086d22dcda4130ca5955efca9a0eed7
[ "Apache-2.0" ]
null
null
null
tests/python/testing.py
MichaelChirico/xgboost
028bdc174086d22dcda4130ca5955efca9a0eed7
[ "Apache-2.0" ]
40
2021-09-10T06:17:11.000Z
2022-03-19T19:30:56.000Z
tests/python/testing.py
MichaelChirico/xgboost
028bdc174086d22dcda4130ca5955efca9a0eed7
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import os import urllib import zipfile import sys from typing import Optional from contextlib import contextmanager from io import StringIO from xgboost.compat import SKLEARN_INSTALLED, PANDAS_INSTALLED from xgboost.compat import DASK_INSTALLED import pytest import gc import xgboost as xgb import numpy ...
27.535124
101
0.603212
ace35e0698b42ad728fc39b43376756574423c0f
3,071
py
Python
build/sdk/sdk_common.py
allansrc/fuchsia
a2c235b33fc4305044d496354a08775f30cdcf37
[ "BSD-2-Clause" ]
5
2022-01-10T20:22:17.000Z
2022-01-21T20:14:17.000Z
build/sdk/sdk_common.py
allansrc/fuchsia
a2c235b33fc4305044d496354a08775f30cdcf37
[ "BSD-2-Clause" ]
2
2021-09-19T21:55:09.000Z
2021-12-19T03:34:53.000Z
build/sdk/sdk_common.py
allansrc/fuchsia
a2c235b33fc4305044d496354a08775f30cdcf37
[ "BSD-2-Clause" ]
1
2021-08-23T11:33:57.000Z
2021-08-23T11:33:57.000Z
# Copyright 2018 The Fuchsia 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 collections import functools import json class File(object): '''Wrapper class for file definitions.''' def __init__(self, json): sel...
27.176991
79
0.624552
933973550d1867b90948d3288e4890581f4c0f34
396
py
Python
online-shop/myshop/cart/forms.py
EssaAlshammri/django-by-example
d1a1cba9308d4f19bbb1228dbd191ad5540b2c78
[ "MIT" ]
3
2017-04-25T10:19:02.000Z
2017-06-07T12:50:30.000Z
online-shop/myshop/cart/forms.py
EssaAlshammri/django-by-example
d1a1cba9308d4f19bbb1228dbd191ad5540b2c78
[ "MIT" ]
null
null
null
online-shop/myshop/cart/forms.py
EssaAlshammri/django-by-example
d1a1cba9308d4f19bbb1228dbd191ad5540b2c78
[ "MIT" ]
null
null
null
from django import forms from django.utils.translation import gettext_lazy as _ PRODUCT_QUANTITY_CHOICES = [(i, str(i)) for i in range(1, 21)] class CartAddProductForm(forms.Form): quantity = forms.TypedChoiceField( choices=PRODUCT_QUANTITY_CHOICES, coerce=int, label=_('Quantity')) update = forms.Boo...
33
74
0.747475
a829eb0f19b349d7f22745c9b5d963ebf999ffe8
635
py
Python
data_collectors/generate_stable_join_selectivity_data_pgfplots.py
tinvukhac/deep-join
73e4b79b9e3b488860437bca278940c8a5b2ced8
[ "Apache-2.0" ]
null
null
null
data_collectors/generate_stable_join_selectivity_data_pgfplots.py
tinvukhac/deep-join
73e4b79b9e3b488860437bca278940c8a5b2ced8
[ "Apache-2.0" ]
null
null
null
data_collectors/generate_stable_join_selectivity_data_pgfplots.py
tinvukhac/deep-join
73e4b79b9e3b488860437bca278940c8a5b2ced8
[ "Apache-2.0" ]
null
null
null
def main(): print ('Generate data to copy to pgfplots') count = 5 query_ids = ['group {}'.format(i) for i in range(1, count + 1)] print (','.join(query_ids)) f = open('../data/bak/join_results_same_distribution_diff_width_height/join_selectivities/join_selectivities.csv') i = 0 line = f.r...
24.423077
118
0.555906
acecb0d999647c96e6602c0ec4e31e7f0f786c3a
7,178
py
Python
scripts/dvs_file_reader.py
cisprague/smarc_perception
149bc7873a029466d7dbfbfb09ab9d34e6c9232b
[ "BSD-3-Clause" ]
null
null
null
scripts/dvs_file_reader.py
cisprague/smarc_perception
149bc7873a029466d7dbfbfb09ab9d34e6c9232b
[ "BSD-3-Clause" ]
null
null
null
scripts/dvs_file_reader.py
cisprague/smarc_perception
149bc7873a029466d7dbfbfb09ab9d34e6c9232b
[ "BSD-3-Clause" ]
null
null
null
from enum import Enum from dataclasses import dataclass import utils from typing import List, BinaryIO, Tuple, Dict import struct from pathlib import Path from matplotlib import pyplot as plt import numpy as np class Side(Enum): """The side-scan sonar ping side (port or starboard)""" PORT = 0 STARBOARD = ...
38.8
87
0.552104
db2068552adcf4770064cca1687231a679e77c72
385
py
Python
backend/api/api/settings/test.py
lanoir42/makefeeconverge
61456d581a415257ebeb6b1d102820a164ded913
[ "MIT" ]
null
null
null
backend/api/api/settings/test.py
lanoir42/makefeeconverge
61456d581a415257ebeb6b1d102820a164ded913
[ "MIT" ]
5
2022-03-04T14:53:43.000Z
2022-03-21T00:00:28.000Z
backend/api/api/settings/test.py
lanoir42/makefeeconverge
61456d581a415257ebeb6b1d102820a164ded913
[ "MIT" ]
null
null
null
from api.settings.base import * # Database # https://docs.djangoproject.com/en/3.2/ref/settings/#databases DATABASES = { "default": { "ENGINE": "django.db.backends.postgresql", "NAME": "test", "USER": "test", "PASSWORD": "test", "HOST": "localhost", "PORT": "5432", ...
21.388889
63
0.496104
de93a3cd800ef9d73afc7a1317bb9849aba6346f
1,444
py
Python
pythran/tests/cases/calculate_u.py
SylvainCorlay/pythran
908ec070d837baf77d828d01c3e35e2f4bfa2bfa
[ "BSD-3-Clause" ]
1
2018-03-24T00:33:03.000Z
2018-03-24T00:33:03.000Z
pythran/tests/cases/calculate_u.py
SylvainCorlay/pythran
908ec070d837baf77d828d01c3e35e2f4bfa2bfa
[ "BSD-3-Clause" ]
null
null
null
pythran/tests/cases/calculate_u.py
SylvainCorlay/pythran
908ec070d837baf77d828d01c3e35e2f4bfa2bfa
[ "BSD-3-Clause" ]
null
null
null
# from the paper `using cython to speedup numerical python programs' #pythran export timeloop(float, float, float, float, float, float list list, float list list, float list list) #pythran export timeloop(float, float, float, float, float, int list list, int list list, int list list) #bench A=[list(range(70)) for i in ...
53.481481
167
0.481994
d966191e573f2642caa7e62b2010d2b26765a27a
8,187
py
Python
datapreparation.py
asisakov/stock_prediction_finhub_2y
7bd107d2d11e7e736e1895b1259d43f1c79d6cf9
[ "MIT" ]
null
null
null
datapreparation.py
asisakov/stock_prediction_finhub_2y
7bd107d2d11e7e736e1895b1259d43f1c79d6cf9
[ "MIT" ]
null
null
null
datapreparation.py
asisakov/stock_prediction_finhub_2y
7bd107d2d11e7e736e1895b1259d43f1c79d6cf9
[ "MIT" ]
null
null
null
# Import libraries import datetime import os import logging import pandas as pd import numpy as np from matplotlib import pyplot as plt from matplotlib.backends.backend_pdf import PdfPages import pickle import config SEED = config.SEED # Configure and create logger current_dir = os.getcwd() log_path = os.path.jo...
34.25523
148
0.677904
2b2a7bbfa679650afc230540c9bbd75a2a3ee9ff
98
py
Python
src/zsl_openapi/configuration.py
AtteqCom/zsl_openapi
0d9fac32ae3516b2f53a302716f162a4d688bed0
[ "BSD-2-Clause" ]
null
null
null
src/zsl_openapi/configuration.py
AtteqCom/zsl_openapi
0d9fac32ae3516b2f53a302716f162a4d688bed0
[ "BSD-2-Clause" ]
null
null
null
src/zsl_openapi/configuration.py
AtteqCom/zsl_openapi
0d9fac32ae3516b2f53a302716f162a4d688bed0
[ "BSD-2-Clause" ]
null
null
null
from collections import namedtuple OpenAPIConfiguration = namedtuple('OpenAPIConfiguration', [])
24.5
61
0.826531
003d5f06ee0d03eac930dced8cee3d1c6af9ee87
479
py
Python
new/VL53L0X_rasp_python/a.py
Deepakbaskar94/Autonomous_car_base_program
9ab79aacccabb4720f9eb419838497c565d01665
[ "Apache-2.0" ]
null
null
null
new/VL53L0X_rasp_python/a.py
Deepakbaskar94/Autonomous_car_base_program
9ab79aacccabb4720f9eb419838497c565d01665
[ "Apache-2.0" ]
null
null
null
new/VL53L0X_rasp_python/a.py
Deepakbaskar94/Autonomous_car_base_program
9ab79aacccabb4720f9eb419838497c565d01665
[ "Apache-2.0" ]
null
null
null
import time import VL53L0X # Create a VL53L0X object tof = VL53L0X.VL53L0X() # Start ranging tof.start_ranging(VL53L0X.VL53L0X_BETTER_ACCURACY_MODE) timing = tof.get_timing() if (timing &lt> 20000): timing = 20000 print ("Timing %d ms" % (timing/1000)) for count in range(1,101): distance = tof.get_dista...
20.826087
69
0.670146
a2e7e57643e95a257e68db8346a6439369fb07e9
21
py
Python
src/rolw_dummy_package/__init__.py
rolandweber/try-out-github-workflows
83520a49990eca81a205c489cf53a10a179af42f
[ "CC0-1.0" ]
null
null
null
src/rolw_dummy_package/__init__.py
rolandweber/try-out-github-workflows
83520a49990eca81a205c489cf53a10a179af42f
[ "CC0-1.0" ]
null
null
null
src/rolw_dummy_package/__init__.py
rolandweber/try-out-github-workflows
83520a49990eca81a205c489cf53a10a179af42f
[ "CC0-1.0" ]
null
null
null
version = '0.0.0a0'
7
19
0.571429
bf3a85b15809d255c8529de683a9927a8e833807
8,309
py
Python
bot/cogs/sqcs_plugin/cadre.py
phantom0174/HSQCC_bot
93d4b40f7d8885bcf927590926370d67e05a5760
[ "MIT" ]
4
2020-11-25T16:31:41.000Z
2021-08-28T21:35:01.000Z
bot/cogs/sqcs_plugin/cadre.py
phantom0174/HSQCC_bot
93d4b40f7d8885bcf927590926370d67e05a5760
[ "MIT" ]
12
2020-12-21T09:42:13.000Z
2021-05-16T06:17:49.000Z
bot/cogs/sqcs_plugin/cadre.py
phantom0174/HSQCC_bot
93d4b40f7d8885bcf927590926370d67e05a5760
[ "MIT" ]
2
2021-04-13T08:28:12.000Z
2021-07-11T02:41:35.000Z
from discord.ext import commands import os from ...core.cog_config import CogExtension from ...core.db.jsonstorage import JsonApi from ...core.db.mongodb import Mongo from ...core.utils import Time import discord class Cadre(CogExtension): @commands.group() async def ca(self, ctx): pass @ca.comm...
31.957692
96
0.567096
f69bcba68d64bb95d63a2f4b3336c59193caf48f
616,576
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_06_01/models/_models.py
vchske/azure-sdk-for-python
6383ed3676b7355af7be394562b126209961ec13
[ "MIT" ]
null
null
null
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_06_01/models/_models.py
vchske/azure-sdk-for-python
6383ed3676b7355af7be394562b126209961ec13
[ "MIT" ]
1
2019-06-04T18:12:16.000Z
2019-06-04T18:12:16.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_06_01/models/_models.py
vchske/azure-sdk-for-python
6383ed3676b7355af7be394562b126209961ec13
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
42.898212
193
0.676168
13035ae0a5b4eb1507de6faf943c45e34a7aa033
3,994
py
Python
rforests/urban_sound_tagging_baseline/urban-sound-tagging-baseline/vggish/vggish_postprocess.py
ihounie/urban-sound-tagging-baseline
686a5168c6e88570c3a964e13028ed01bd5598f9
[ "MIT" ]
16
2019-03-20T03:15:14.000Z
2021-08-10T07:35:24.000Z
urban_sound_tagging_baseline/vggish/vggish_postprocess.py
bongjun/dcase2019-task5
9b2e251cd59c55c6e2ab001830edde1bccf3840f
[ "MIT" ]
6
2019-06-10T14:48:36.000Z
2022-02-10T00:20:53.000Z
urban_sound_tagging_baseline/vggish/vggish_postprocess.py
bongjun/dcase2019-task5
9b2e251cd59c55c6e2ab001830edde1bccf3840f
[ "MIT" ]
8
2019-04-28T03:43:29.000Z
2021-12-09T17:33:01.000Z
# Copyright 2017 The TensorFlow Authors All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
42.042105
85
0.691287
9ef79b0fd3e7b579d9b6b48c1594705722979f0c
4,906
py
Python
Examples/GirlImages/GirlImages.py
wxh0000mm/TKinterDesigner
01878e78746082413a09444283edbd52118d15ef
[ "Apache-2.0" ]
1
2022-03-09T08:43:41.000Z
2022-03-09T08:43:41.000Z
Examples/GirlImages/GirlImages.py
wxh0000mm/TKinterDesigner
01878e78746082413a09444283edbd52118d15ef
[ "Apache-2.0" ]
null
null
null
Examples/GirlImages/GirlImages.py
wxh0000mm/TKinterDesigner
01878e78746082413a09444283edbd52118d15ef
[ "Apache-2.0" ]
null
null
null
#coding=utf-8 #import libs import sys import codecs sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach()) import GirlImages_cmd import GirlImages_sty import Fun import os import LeftTreeBar import RightTextBar import tkinter from tkinter import * import tkinter.ttk import tkinter.font #Add your Varial Here: (K...
47.631068
97
0.669384
a8f9a9ed3932d6fc3e047fc2c0f962477325e914
4,816
py
Python
modules/models.py
yoshum/lower-bounded-proper-losses
725c333bf24c0ae9e0218a6dae767f043a9548a3
[ "MIT" ]
1
2021-08-21T10:59:08.000Z
2021-08-21T10:59:08.000Z
modules/models.py
yoshum/lower-bounded-proper-losses
725c333bf24c0ae9e0218a6dae767f043a9548a3
[ "MIT" ]
null
null
null
modules/models.py
yoshum/lower-bounded-proper-losses
725c333bf24c0ae9e0218a6dae767f043a9548a3
[ "MIT" ]
null
null
null
from typing import Optional import torch import torch.nn as nn from torchvision import models def conv3x3(in_planes: int, out_planes: int, stride: int = 1) -> nn.Module: return nn.Conv2d( in_planes, out_planes, kernel_size=3, stride=stride, padding=1, bias=False ) def conv1x1(in_planes: int, out_pl...
30.1
86
0.598007
c380e0f5b5927e55a7d291a0ab15b54321ed98da
579
py
Python
aioclustermanager/job_list.py
sunbit/aioclustermanager
f5a2f4ba7936a75c7748cff9f77c3bfff1a3a61d
[ "BSD-3-Clause" ]
1
2020-03-24T16:15:56.000Z
2020-03-24T16:15:56.000Z
aioclustermanager/job_list.py
bloodbare/aioclustermanager
9abe7e9db7140854709c8044128e0153debe6971
[ "BSD-3-Clause" ]
8
2018-03-12T20:40:23.000Z
2018-06-05T18:35:16.000Z
aioclustermanager/job_list.py
onna/aioclustermanager
9abe7e9db7140854709c8044128e0153debe6971
[ "BSD-3-Clause" ]
2
2020-05-21T17:32:23.000Z
2021-05-11T12:17:56.000Z
class JobList: """Generic job class.""" def __init__(self, data=None, **kw): self._raw = data @property def values(self): raise NotImplementedError() def __len__(self): return len(self.values()) def __iter__(self): for job in self.values(): yield j...
25.173913
100
0.554404
7ec97f6e619a40950e385484b14b4ac0abbbb580
21
py
Python
vega/algorithms/data_augmentation/common/__init__.py
jie311/vega
1bba6100ead802697e691403b951e6652a99ccae
[ "MIT" ]
724
2020-06-22T12:05:30.000Z
2022-03-31T07:10:54.000Z
vega/algorithms/data_augmentation/common/__init__.py
jie311/vega
1bba6100ead802697e691403b951e6652a99ccae
[ "MIT" ]
147
2020-06-30T13:34:46.000Z
2022-03-29T11:30:17.000Z
vega/algorithms/data_augmentation/common/__init__.py
jie311/vega
1bba6100ead802697e691403b951e6652a99ccae
[ "MIT" ]
160
2020-06-29T18:27:58.000Z
2022-03-23T08:42:21.000Z
from .pba import PBA
10.5
20
0.761905
ab79595509f55bbac4d9010aceac0c587efb53cd
1,244
py
Python
lib/python3.7/site-packages/aiofiles/threadpool/utils.py
teomoney1999/ACT_gatco_project
a804a6348efeab90f3114606cfbc73aaebab63e1
[ "MIT" ]
3
2020-03-31T10:36:31.000Z
2020-04-23T12:01:10.000Z
lib/python3.7/site-packages/aiofiles/threadpool/utils.py
teomoney1999/ACT_gatco_project
a804a6348efeab90f3114606cfbc73aaebab63e1
[ "MIT" ]
9
2021-04-12T13:44:34.000Z
2021-04-13T16:50:08.000Z
lib/python3.7/site-packages/aiofiles/threadpool/utils.py
teomoney1999/ACT_gatco_project
a804a6348efeab90f3114606cfbc73aaebab63e1
[ "MIT" ]
1
2021-06-12T06:11:34.000Z
2021-06-12T06:11:34.000Z
import functools from types import coroutine def delegate_to_executor(*attrs): def cls_builder(cls): for attr_name in attrs: setattr(cls, attr_name, _make_delegate_method(attr_name)) return cls return cls_builder def proxy_method_directly(*attrs): def cls_builder(cls): ...
23.471698
79
0.689711
c17ec04f8780e56066253a0682611319c62f9a4e
3,367
py
Python
profiles_project/settings.py
iboumiza/profiles-rest-api
dd1c161ee4e1a2dcd941f766c0755041040e23ed
[ "MIT" ]
null
null
null
profiles_project/settings.py
iboumiza/profiles-rest-api
dd1c161ee4e1a2dcd941f766c0755041040e23ed
[ "MIT" ]
5
2021-03-19T00:37:39.000Z
2021-09-22T18:42:36.000Z
profiles_project/settings.py
BlueSkyTrading/profiles-rest-api
dd1c161ee4e1a2dcd941f766c0755041040e23ed
[ "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.70229
91
0.69706
1c6ef2286e905444a56d16faeee8c32b59878361
2,569
py
Python
paramak/parametric_components/poloidal_field_coil.py
moatazharb/paramak
785c3ed7304e22eac7d58bb1bdc6515fbd20b9a8
[ "MIT" ]
1
2021-12-14T15:53:46.000Z
2021-12-14T15:53:46.000Z
paramak/parametric_components/poloidal_field_coil.py
bam241/paramak
785c3ed7304e22eac7d58bb1bdc6515fbd20b9a8
[ "MIT" ]
null
null
null
paramak/parametric_components/poloidal_field_coil.py
bam241/paramak
785c3ed7304e22eac7d58bb1bdc6515fbd20b9a8
[ "MIT" ]
null
null
null
from typing import Optional, Tuple from paramak import RotateStraightShape class PoloidalFieldCoil(RotateStraightShape): """Creates a rectangular poloidal field coil. Args: height: the vertical (z axis) height of the coil (cm). width: the horizontal (x axis) width of the coil (cm). c...
28.230769
75
0.567536
4080d4861ecee8ea1ea91ed8f835b282ce36b91b
8,428
py
Python
docs/conf.py
bopamo/calc
02bbbbc62e9c9a14a7eba6bc13f0045db33c447a
[ "MIT" ]
null
null
null
docs/conf.py
bopamo/calc
02bbbbc62e9c9a14a7eba6bc13f0045db33c447a
[ "MIT" ]
790
2019-09-04T20:09:05.000Z
2022-03-31T12:31:10.000Z
docs/conf.py
bopamo/calc
02bbbbc62e9c9a14a7eba6bc13f0045db33c447a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # calc documentation build configuration file, created by # sphinx-quickstart on Tue Jul 9 22:26:36 2013. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autoge...
30.536232
76
0.714998
691321ca3ae9d65f3b06403cbb51c0a8691d9f2e
2,131
py
Python
dev/unittest/structure.py
PowerDNS/exabgp
bbf69f25853e10432fbe588b5bc2f8d9f1e5dda2
[ "BSD-3-Clause" ]
8
2015-01-11T09:57:26.000Z
2019-07-05T05:57:02.000Z
dev/unittest/structure.py
Acidburn0zzz/exabgp
bbf69f25853e10432fbe588b5bc2f8d9f1e5dda2
[ "BSD-3-Clause" ]
1
2018-11-15T22:10:09.000Z
2018-11-15T22:20:31.000Z
dev/unittest/structure.py
Acidburn0zzz/exabgp
bbf69f25853e10432fbe588b5bc2f8d9f1e5dda2
[ "BSD-3-Clause" ]
6
2015-09-11T01:51:06.000Z
2020-03-10T19:16:18.000Z
#!/usr/bin/env python # encoding: utf-8 """ data.py Created by Thomas Mangin on 2009-09-06. Copyright (c) 2009-2013 Exa Networks. All rights reserved. """ import unittest from exabgp.configuration.environment import environment env = environment.setup('') from exabgp.protocol.family import AFI from exabgp.protocol....
30.014085
90
0.667762
b5677de698584a2c82edbb4a657ff55a109ee436
6,820
py
Python
sdk/python/pulumi_azure_native/network/v20190701/get_express_route_gateway.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20190701/get_express_route_gateway.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20190701/get_express_route_gateway.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...
37.065217
201
0.66349
cd3257d0779671635a6ebb2c62b4a892e4acdd75
3,849
py
Python
resource/py_api/login.py
fengleyl/NetEase
1dbcea741bd294da633233c766b24113c293f94e
[ "MIT" ]
35
2015-06-18T14:11:46.000Z
2020-12-01T10:06:17.000Z
resource/py_api/login.py
StevennyZhang/NetEase
1dbcea741bd294da633233c766b24113c293f94e
[ "MIT" ]
1
2015-09-15T13:09:58.000Z
2016-05-09T05:47:24.000Z
resource/py_api/login.py
StevennyZhang/NetEase
1dbcea741bd294da633233c766b24113c293f94e
[ "MIT" ]
10
2015-05-28T15:19:18.000Z
2018-06-26T17:54:31.000Z
# -*- coding: utf-8 -*- import re import os import json import requests from Crypto.Cipher import AES import hashlib import random import base64 import sqlite3 default_timeout = 10 modulus = '00e0b509f6259df8642dbc35662901477df22677ec152b5ff68ace615bb7b725152b3ab17a876aea8a5aa76d2e417629ec4ee341f56135fccf695280104e0...
26.916084
270
0.720447
b66435dc0fec987b9180af628e2577e8d6939962
5,232
py
Python
onderwijsscrapers/onderwijsscrapers/pipelines.py
dsbaars/openonderwijsdata-api
9d0415e82e411cc0102cec98ec5668eb9540cb35
[ "CC-BY-4.0" ]
null
null
null
onderwijsscrapers/onderwijsscrapers/pipelines.py
dsbaars/openonderwijsdata-api
9d0415e82e411cc0102cec98ec5668eb9540cb35
[ "CC-BY-4.0" ]
null
null
null
onderwijsscrapers/onderwijsscrapers/pipelines.py
dsbaars/openonderwijsdata-api
9d0415e82e411cc0102cec98ec5668eb9540cb35
[ "CC-BY-4.0" ]
null
null
null
from datetime import datetime import pytz from scrapy.conf import settings from scrapy.exceptions import DropItem from scrapy import log # from onderwijsscrapers import exporters from onderwijsscrapers.item_enrichment import bag42_geocode from onderwijsscrapers.validation import validate class OnderwijsscrapersPip...
39.338346
93
0.539946
7567ce0ac170fd333d2bfa438124f09037490566
1,908
py
Python
src/file_infos.py
guionardo/py-housekeeping
3aaedc001b7ddb0b5a3397f99bd6bf4e8958f69c
[ "MIT" ]
null
null
null
src/file_infos.py
guionardo/py-housekeeping
3aaedc001b7ddb0b5a3397f99bd6bf4e8958f69c
[ "MIT" ]
null
null
null
src/file_infos.py
guionardo/py-housekeeping
3aaedc001b7ddb0b5a3397f99bd6bf4e8958f69c
[ "MIT" ]
null
null
null
import logging import os from file_age import is_aged_file class FileInfos: LOG = logging.getLogger(__name__) def __init__(self, folder): self._folder = folder self._files = [] for root, dirs, files in os.walk(folder): for file in files: fn = os.path.join...
29.8125
77
0.516247
d669cb1b0bdea7ac60c5496d2bd4da57a6c777f6
8,839
py
Python
doc/conf.py
Tim-HU/sphinx-report
3a0dc225e594c4b2083dff7a93b6d77054256416
[ "BSD-2-Clause" ]
1
2020-04-10T12:48:40.000Z
2020-04-10T12:48:40.000Z
doc/conf.py
Tim-HU/sphinx-report
3a0dc225e594c4b2083dff7a93b6d77054256416
[ "BSD-2-Clause" ]
null
null
null
doc/conf.py
Tim-HU/sphinx-report
3a0dc225e594c4b2083dff7a93b6d77054256416
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Test documentation build configuration file, created by # sphinx-quickstart on Mon Mar 23 15:27:57 2009. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All co...
33.229323
81
0.700079
77baf2ed891cc3ae9c85768d456ca4777a8029af
811
py
Python
models/vgg.py
SanaAwan5/edgecase_backdoors
c892024242e45557fa94363ecadc355a9250bca0
[ "MIT" ]
8
2021-05-08T07:49:45.000Z
2022-03-17T16:18:05.000Z
models/vgg.py
SanaAwan5/edgecase_backdoors
c892024242e45557fa94363ecadc355a9250bca0
[ "MIT" ]
3
2021-05-19T14:58:53.000Z
2022-01-13T15:53:19.000Z
models/vgg.py
SanaAwan5/edgecase_backdoors
c892024242e45557fa94363ecadc355a9250bca0
[ "MIT" ]
5
2021-05-22T08:56:20.000Z
2022-03-31T06:50:21.000Z
''' dummy file to use as an adaptor to switch between two vgg architectures vgg9: use vgg9_only.py which is from https://github.com/kuangliu/pytorch-cifar vgg11/13/16/19: use vgg_modified.py which is modified from https://github.com/pytorch/vision.git ''' import torch import torch.nn as nn import mode...
26.16129
100
0.70037
04052510f5d425892d1dd652a4c373a261680547
37,155
py
Python
xarray/core/rolling.py
lusewell/xarray
da99a5664df4f5013c2f6b0e758394bec5e0bc80
[ "CC-BY-4.0", "PSF-2.0", "BSD-2-Clause", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
xarray/core/rolling.py
lusewell/xarray
da99a5664df4f5013c2f6b0e758394bec5e0bc80
[ "CC-BY-4.0", "PSF-2.0", "BSD-2-Clause", "Apache-2.0", "BSD-3-Clause" ]
3
2021-09-13T13:10:45.000Z
2022-01-10T13:09:30.000Z
xarray/core/rolling.py
lusewell/xarray
da99a5664df4f5013c2f6b0e758394bec5e0bc80
[ "CC-BY-4.0", "PSF-2.0", "BSD-2-Clause", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
import functools import itertools import warnings from typing import Any, Callable, Dict import numpy as np from . import dtypes, duck_array_ops, utils from .arithmetic import CoarsenArithmetic from .options import _get_keep_attrs from .pycompat import is_duck_dask_array from .utils import either_dict_or_kwargs try:...
34.370953
117
0.559736
a928a1f643a5787c49e6e723051144f7b44e9c15
2,493
py
Python
voting_site/settings.py
lzh9102/ee-voting
f657499d736ff54a81ee2612e855aa9d8dc55382
[ "MIT" ]
null
null
null
voting_site/settings.py
lzh9102/ee-voting
f657499d736ff54a81ee2612e855aa9d8dc55382
[ "MIT" ]
null
null
null
voting_site/settings.py
lzh9102/ee-voting
f657499d736ff54a81ee2612e855aa9d8dc55382
[ "MIT" ]
null
null
null
""" Django settings for voting_site project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ......
24.441176
71
0.734456
09e392ab39a67567d685800550f09b8652981933
4,236
py
Python
pyabsa/core/tc/classic/__glove__/dataset_utils/data_utils_for_inference.py
yangheng95/LCF-ABSA
0eeb4788269a498d34c2aff942e03af78026617e
[ "MIT" ]
31
2019-10-07T03:05:39.000Z
2020-06-17T01:34:21.000Z
pyabsa/core/tc/classic/__glove__/dataset_utils/data_utils_for_inference.py
yangheng95/LCF-ABSA
0eeb4788269a498d34c2aff942e03af78026617e
[ "MIT" ]
7
2019-10-16T13:37:52.000Z
2020-03-30T03:40:56.000Z
pyabsa/core/tc/classic/__glove__/dataset_utils/data_utils_for_inference.py
yangheng95/LCF-ABSA
0eeb4788269a498d34c2aff942e03af78026617e
[ "MIT" ]
3
2020-01-12T13:03:35.000Z
2020-06-11T08:26:01.000Z
# -*- coding: utf-8 -*- # file: data_utils.py # author: songyouwei <youwei0314@gmail.com> # Copyright (C) 2018. All Rights Reserved. import numpy as np import tqdm from torch.utils.data import Dataset from pyabsa.core.apc.dataset_utils.apc_utils import load_apc_datasets, LABEL_PADDING def pad_and_truncate(sequence,...
30.919708
103
0.555241
a43680b22df767422976af77c8a3d2ca726c1a40
2,217
py
Python
logger/writers/record_screen_writer.py
somasopenrvdas/openrvdas
a415c30447b27ec98600d15a00553c856137c534
[ "BSD-2-Clause" ]
17
2019-10-25T19:54:19.000Z
2022-03-17T19:08:00.000Z
logger/writers/record_screen_writer.py
somasopenrvdas/openrvdas
a415c30447b27ec98600d15a00553c856137c534
[ "BSD-2-Clause" ]
120
2019-10-06T02:57:25.000Z
2022-03-11T13:03:47.000Z
logger/writers/record_screen_writer.py
somasopenrvdas/openrvdas
a415c30447b27ec98600d15a00553c856137c534
[ "BSD-2-Clause" ]
24
2019-10-25T20:01:18.000Z
2021-12-23T15:04:51.000Z
#!/usr/bin/env python3 import logging import shutil import sys from os.path import dirname, realpath sys.path.append(dirname(dirname(dirname(realpath(__file__))))) from logger.utils.formats import Python_Record # noqa: E402 from logger.utils.das_record import DASRecord # noqa: E402 from logger.writers.writer import...
30.791667
82
0.576906
f0b95e05efe33aad3ac89d03995c5d625c839061
4,836
py
Python
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/NV/vertex_program2.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/NV/vertex_program2.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/NV/vertex_program2.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
'''OpenGL extension NV.vertex_program2 This module customises the behaviour of the OpenGL.raw.GL.NV.vertex_program2 to provide a more Python-friendly API Overview (from the spec) This extension further enhances the concept of vertex programmability introduced by the NV_vertex_program extension, and ext...
41.333333
76
0.748346
97254693c945c9ec75420e962ab1d5a0617ea3a4
673
py
Python
4-collatz.py
eoinlees/pands-problems-2020
a9a3a5801590e80d023138ad36d928b395a26390
[ "MIT" ]
null
null
null
4-collatz.py
eoinlees/pands-problems-2020
a9a3a5801590e80d023138ad36d928b395a26390
[ "MIT" ]
null
null
null
4-collatz.py
eoinlees/pands-problems-2020
a9a3a5801590e80d023138ad36d928b395a26390
[ "MIT" ]
null
null
null
#Eoin Lees # This program inputs a positive integer and outputs the value of it if # value even divide by two # value odd mulitply it by three and add one # program ends when current value is 1 # Get positive value from input x = int(input("Please enter a positive integer: ")) # Return if x <= 0: print("Please ...
35.421053
87
0.668648
c57a2eaec67ebc6046e983ecf731eb1871bf8068
15,234
py
Python
Feature Generation/topicModelLDA(dominant_document, dominant_topic, topic_distribution).py
ShahedSabab/tutVis
af2b86b17650c3d92438876d871ee0867deacf2a
[ "MIT" ]
null
null
null
Feature Generation/topicModelLDA(dominant_document, dominant_topic, topic_distribution).py
ShahedSabab/tutVis
af2b86b17650c3d92438876d871ee0867deacf2a
[ "MIT" ]
null
null
null
Feature Generation/topicModelLDA(dominant_document, dominant_topic, topic_distribution).py
ShahedSabab/tutVis
af2b86b17650c3d92438876d871ee0867deacf2a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Dec 12 14:29:52 2018 @author: sabab05 """ import re import numpy as np import pandas as pd import pyLDAvis import pyLDAvis.sklearn import gensim import gensim.corpora as corpora import pyLDAvis.gensim import numpy #from gensim.utils import simple_preproess from gensim.mode...
36.797101
229
0.634436
f66e98e8de267d67fa118dc57df71f4efafb172e
2,743
py
Python
HLTrigger/Configuration/python/HLT_75e33/tasks/l1tReconstructionTask_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-30T16:24:46.000Z
2021-11-30T16:24:46.000Z
HLTrigger/Configuration/python/HLT_75e33/tasks/l1tReconstructionTask_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
4
2021-11-29T13:57:56.000Z
2022-03-29T06:28:36.000Z
HLTrigger/Configuration/python/HLT_75e33/tasks/l1tReconstructionTask_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-30T16:16:05.000Z
2021-11-30T16:16:05.000Z
import FWCore.ParameterSet.Config as cms from ..modules.L1EGammaClusterEmuProducer_cfi import * from ..modules.l1EGammaEEProducer_cfi import * from ..modules.l1NNTauProducerPuppi_cfi import * from ..modules.l1pfCandidates_cfi import * from ..modules.l1PFMetPuppi_cfi import * from ..modules.l1pfProducerBarrel_cfi impor...
36.092105
64
0.815895
7730d8a39c05186831225a682801e9c45696f28a
476
py
Python
src/wsgi.py
chunky2808/SPOJ-history-Django-App-
490c58b1593cd3626f0ddc27fdd09c6e8d1c56e1
[ "MIT" ]
1
2019-04-11T18:28:38.000Z
2019-04-11T18:28:38.000Z
src/wsgi.py
chunky2808/SPOJ-history-Django-App-
490c58b1593cd3626f0ddc27fdd09c6e8d1c56e1
[ "MIT" ]
2
2020-02-12T00:41:47.000Z
2020-06-05T18:17:31.000Z
src/wsgi.py
chunky2808/SPOJ-history-Django-App
490c58b1593cd3626f0ddc27fdd09c6e8d1c56e1
[ "MIT" ]
null
null
null
""" WSGI config for src 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/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application from whitenoise.django import DjangoWh...
23.8
78
0.798319
8239ae8cbc2db25fc42b515347d530e534338097
572
py
Python
dashboard/modules/job/tests/subprocess_driver_scripts/override_env_var.py
dsctt/ray
29d94a22114b02adfd3745c4991a3ce70592dd16
[ "Apache-2.0" ]
1
2021-09-20T15:45:59.000Z
2021-09-20T15:45:59.000Z
dashboard/modules/job/tests/subprocess_driver_scripts/override_env_var.py
dsctt/ray
29d94a22114b02adfd3745c4991a3ce70592dd16
[ "Apache-2.0" ]
53
2021-10-06T20:08:04.000Z
2022-03-21T20:17:25.000Z
dashboard/modules/job/tests/subprocess_driver_scripts/override_env_var.py
dsctt/ray
29d94a22114b02adfd3745c4991a3ce70592dd16
[ "Apache-2.0" ]
null
null
null
""" Test script that attempts to set its own runtime_env, but we should ensure we ended up using job submission API call's runtime_env instead of scripts """ def run(): import ray import os ray.init( address=os.environ["RAY_ADDRESS"], runtime_env={ "env_vars": {"TEST_SUBPROCES...
20.428571
85
0.641608
78baf4a183a494cd314f2b78c437d9ed7faca157
2,190
py
Python
tests/python/unittest/test_profiler.py
hanzz2007/mxnet
cc0b2d67c40170aced702c9f80b4b7acbb1f2b79
[ "Apache-2.0" ]
116
2018-01-01T03:53:49.000Z
2021-09-06T07:09:09.000Z
tests/python/unittest/test_profiler.py
wkcn/incubator-mxnet
2586c6691ca74d2df455a49cad964bcac8e34f25
[ "Apache-2.0" ]
4
2019-04-01T07:36:04.000Z
2022-03-24T03:11:26.000Z
tests/python/unittest/test_profiler.py
wkcn/incubator-mxnet
2586c6691ca74d2df455a49cad964bcac8e34f25
[ "Apache-2.0" ]
40
2018-01-16T04:12:39.000Z
2022-02-25T11:53:17.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...
34.21875
80
0.680365
3095fc8d14b2623cd3deb14bf905a1bf27af8bc3
1,670
py
Python
adversarial_defense/jpeg_compression/jpeg.py
machanic/TangentAttack
17c1a8e93f9bbd03e209e8650631af744a0ff6b8
[ "Apache-2.0" ]
4
2021-11-12T04:06:32.000Z
2022-01-27T09:01:41.000Z
adversarial_defense/jpeg_compression/jpeg.py
machanic/TangentAttack
17c1a8e93f9bbd03e209e8650631af744a0ff6b8
[ "Apache-2.0" ]
1
2022-02-22T14:00:59.000Z
2022-02-25T08:57:29.000Z
adversarial_defense/jpeg_compression/jpeg.py
machanic/TangentAttack
17c1a8e93f9bbd03e209e8650631af744a0ff6b8
[ "Apache-2.0" ]
null
null
null
try: from cStringIO import StringIO as BytesIO except ImportError: from io import BytesIO import torch from torchvision import transforms from PIL import Image _to_pil_image = transforms.ToPILImage() _to_tensor = transforms.ToTensor() class FloatToIntSqueezing(torch.autograd.Function): @staticmethod ...
28.305085
63
0.637725
145f7e448869161761feaa02555fd8b8677180cc
3,691
py
Python
utils.py
snigdhagit/compare-selection
26f41d06405e9a9be9894878bf604c38049a4729
[ "BSD-3-Clause" ]
1
2020-02-14T00:47:35.000Z
2020-02-14T00:47:35.000Z
utils.py
snigdhagit/compare-selection
26f41d06405e9a9be9894878bf604c38049a4729
[ "BSD-3-Clause" ]
null
null
null
utils.py
snigdhagit/compare-selection
26f41d06405e9a9be9894878bf604c38049a4729
[ "BSD-3-Clause" ]
2
2019-09-23T15:36:45.000Z
2020-02-14T03:55:29.000Z
import numpy as np import pandas as pd # Rpy import rpy2.robjects as rpy from rpy2.robjects import numpy2ri rpy.r('suppressMessages(library(selectiveInference)); suppressMessages(library(knockoff))') # R libraries we will use rpy.r(""" estimate_sigma_data_splitting = function(X,y, verbose=FALSE){ nrep = 10 sig...
28.175573
124
0.611487
d818b16b9c7dc5463ca85bdd62d8414153b7b5d1
409
py
Python
examples/rabbitmq/dispatch_commands.py
alice-biometrics/petisco
b96e697cc875f67a28e60b4fc0d9ed9fc646cd86
[ "MIT" ]
19
2019-11-01T09:27:17.000Z
2021-12-15T10:52:31.000Z
examples/rabbitmq/dispatch_commands.py
alice-biometrics/petisco
b96e697cc875f67a28e60b4fc0d9ed9fc646cd86
[ "MIT" ]
68
2020-01-15T06:55:00.000Z
2022-02-22T15:57:24.000Z
examples/rabbitmq/dispatch_commands.py
alice-biometrics/petisco
b96e697cc875f67a28e60b4fc0d9ed9fc646cd86
[ "MIT" ]
2
2019-11-19T10:40:25.000Z
2019-11-28T07:12:07.000Z
from examples.rabbitmq.common import ORGANIZATION, SERVICE, PersistUser from petisco import Uuid from petisco.extra.rabbitmq import RabbitMqConnector, RabbitMqCommandBus connector = RabbitMqConnector() command_bus = RabbitMqCommandBus(connector, ORGANIZATION, SERVICE) user_id = Uuid.v4() command = PersistUser(user_id...
27.266667
72
0.821516
d16e491808c2d4eaee98d5b5baa661570e1043c5
2,074
py
Python
helper.py
newzzack/ZhiShiWenDa-Helper
51390a7d2efbb5ce39400d7fec69aa80c69fc3a7
[ "MIT" ]
1
2019-09-30T05:52:38.000Z
2019-09-30T05:52:38.000Z
helper.py
newzzack/ZhiShiWenDa-Helper
51390a7d2efbb5ce39400d7fec69aa80c69fc3a7
[ "MIT" ]
null
null
null
helper.py
newzzack/ZhiShiWenDa-Helper
51390a7d2efbb5ce39400d7fec69aa80c69fc3a7
[ "MIT" ]
null
null
null
import requests, base64, json, os, time,config from PIL import Image from selenium import webdriver from selenium.webdriver.common.keys import Keys driver = webdriver.Chrome(config.driver_location) # 访问百度 driver.get('http://www.baidu.com') count = 0 screenpath = config.image_directory while True: text = input('按下回车...
31.907692
104
0.680328
716c473a4f4f4ac135a0f9a543d3090f82841276
412
py
Python
api/migrations/0006_alter_todo_create_date.py
jadsonlucio/TodoApp
0aaa0f0aa6753516b7fe4957ef5b64a13627fb46
[ "MIT" ]
1
2021-06-08T00:57:53.000Z
2021-06-08T00:57:53.000Z
api/migrations/0006_alter_todo_create_date.py
jadsonlucio/TodoApp
0aaa0f0aa6753516b7fe4957ef5b64a13627fb46
[ "MIT" ]
1
2021-04-10T05:51:51.000Z
2021-04-10T05:51:51.000Z
api/migrations/0006_alter_todo_create_date.py
jadsonlucio/TodoApp
0aaa0f0aa6753516b7fe4957ef5b64a13627fb46
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-04-09 02:42 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0005_alter_todo_user'), ] operations = [ migrations.AlterField( model_name='todo', name='create...
20.6
66
0.616505
a006af275ff33d2c08818000a063961f8013d7c5
5,652
py
Python
datasets/wikiasp/wikiasp.py
ExpressAI/DataLab
c3eddd4068f131d031c2486c60b650092bb0ae84
[ "Apache-2.0" ]
54
2022-01-26T06:58:58.000Z
2022-03-31T05:11:35.000Z
datasets/wikiasp/wikiasp.py
ExpressAI/DataLab
c3eddd4068f131d031c2486c60b650092bb0ae84
[ "Apache-2.0" ]
81
2022-01-26T06:46:41.000Z
2022-03-24T05:05:31.000Z
datasets/wikiasp/wikiasp.py
ExpressAI/DataLab
c3eddd4068f131d031c2486c60b650092bb0ae84
[ "Apache-2.0" ]
7
2022-02-06T09:28:31.000Z
2022-03-16T01:06:37.000Z
"""WikiAsp: A Dataset for Multi-domain Aspect-based Summarization""" import os import datalabs from datalabs import get_task, TaskType import json _CITATION = """\ @article{10.1162/tacl_a_00362, author = {Hayashi, Hiroaki and Budania, Prashant and Wang, Peng and Ackerson, Chris and Neervannan, Raj and Neubig, Gra...
43.476923
1,102
0.63712
5552c943fe4707bf1aaeea7d8a63762c470b319f
8,973
py
Python
backend/server/profiles/forms.py
Wisani90/care-curls
248d58679024b7b0d0212a9f659d472873696977
[ "MIT" ]
null
null
null
backend/server/profiles/forms.py
Wisani90/care-curls
248d58679024b7b0d0212a9f659d472873696977
[ "MIT" ]
null
null
null
backend/server/profiles/forms.py
Wisani90/care-curls
248d58679024b7b0d0212a9f659d472873696977
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from datetime import timedelta # from django import forms from django.forms import ValidationError from django.conf import settings from django.contrib.auth.models import User # from django.contr...
32.276978
118
0.673353
a014a38f4da9628602a004ae141b0a383b2b2a07
1,691
py
Python
tests/test_figure.py
CDonnerer/shellplot
52860a2af2dad1bb2eeb9d94342350038d17da66
[ "MIT" ]
1
2021-11-15T18:52:43.000Z
2021-11-15T18:52:43.000Z
tests/test_figure.py
CDonnerer/shellplot
52860a2af2dad1bb2eeb9d94342350038d17da66
[ "MIT" ]
null
null
null
tests/test_figure.py
CDonnerer/shellplot
52860a2af2dad1bb2eeb9d94342350038d17da66
[ "MIT" ]
null
null
null
"""Test figure api for shellplot """ import pytest import numpy as np from shellplot.figure import array_split, figure @pytest.mark.parametrize( "x, y, expected_xy", [ ( np.array([[0, 1], [1, 0]]), np.array([[1, 1], [2, 2]]), [ (np.array([0, 1]), n...
22.851351
59
0.465996
65aa0716b5aeb26927a540ea4f69a6dcfc6276b6
4,326
py
Python
contrib/seeds/generate-seeds.py
HaimenToshi/public
6dff42726821d426ef4895687fce2edb27df10ea
[ "MIT" ]
null
null
null
contrib/seeds/generate-seeds.py
HaimenToshi/public
6dff42726821d426ef4895687fce2edb27df10ea
[ "MIT" ]
null
null
null
contrib/seeds/generate-seeds.py
HaimenToshi/public
6dff42726821d426ef4895687fce2edb27df10ea
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2017 Wladimir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Script to generate list of seed nodes for chainparams.cpp. This script expects two text files in the dir...
31.347826
98
0.581368
629d15809365873e526f2f34a49f1060b8219caa
28,780
py
Python
pylinex/fitter/Extractor.py
CU-NESS/pylinex
b6f342595b6a154e129eb303782e5268088f34d5
[ "Apache-2.0" ]
null
null
null
pylinex/fitter/Extractor.py
CU-NESS/pylinex
b6f342595b6a154e129eb303782e5268088f34d5
[ "Apache-2.0" ]
null
null
null
pylinex/fitter/Extractor.py
CU-NESS/pylinex
b6f342595b6a154e129eb303782e5268088f34d5
[ "Apache-2.0" ]
null
null
null
""" File: pylinex/fitter/Extractor.py Author: Keith Tauscher Date: 3 Sep 2017 Description: Class which uses the rest of the module to perform an end-to-end extraction. The inputs of the class are data and error vectors, training set matrices and expanders. """ import numpy as np from ..util i...
42.511078
79
0.579812
c74c2c2bbed2224d6fcdf33cb481b6cba1df5b3d
12,664
py
Python
temp/modul.py
fadlytanjung/Prediction-DBD-case-with-ANN
36078c98498a9eaaaa11e8d1f96fa743add2887c
[ "MIT" ]
null
null
null
temp/modul.py
fadlytanjung/Prediction-DBD-case-with-ANN
36078c98498a9eaaaa11e8d1f96fa743add2887c
[ "MIT" ]
2
2021-08-25T16:11:50.000Z
2022-02-10T01:56:00.000Z
temp/modul.py
fadlytanjung/Prediction-DBD-case-with-ANN
36078c98498a9eaaaa11e8d1f96fa743add2887c
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from sklearn.preprocessing import LabelEncoder from sklearn.preprocessing import MinMaxScaler from sklearn.metrics import mean_squared_error from tensorflow.keras.layers import Dense from tensorflow.keras.models import Sequential from tensorflow.keras import backend as K f...
36.495677
138
0.589071
e0e3404f0ba98fb13139aee4b98452461775fab8
940
py
Python
setup.py
ngendah/vumi-africastalking
89922cd7931a83a089ce3f56b47d233d6003a155
[ "MIT" ]
1
2019-02-17T10:18:35.000Z
2019-02-17T10:18:35.000Z
setup.py
ngendah/vumi-africastalking
89922cd7931a83a089ce3f56b47d233d6003a155
[ "MIT" ]
null
null
null
setup.py
ngendah/vumi-africastalking
89922cd7931a83a089ce3f56b47d233d6003a155
[ "MIT" ]
null
null
null
import os from setuptools import setup, find_packages def read_file(filename): filepath = os.path.join(os.path.abspath(os.path.dirname(__file__)), filename) return open(filepath, 'r').read() setup( name='vumi-africastalking', version=read_file('VERSION'), license='BSD', description='AfricasT...
28.484848
81
0.635106
3ed0233e16fe678fa9921a0817843068c493c7e4
7,150
py
Python
thorpy/elements/lift.py
YannThorimbert/Thorpy-1.5.2a
2f0e5c9c1e17f984498b93bbdb1848e658f5d979
[ "MIT" ]
null
null
null
thorpy/elements/lift.py
YannThorimbert/Thorpy-1.5.2a
2f0e5c9c1e17f984498b93bbdb1848e658f5d979
[ "MIT" ]
null
null
null
thorpy/elements/lift.py
YannThorimbert/Thorpy-1.5.2a
2f0e5c9c1e17f984498b93bbdb1848e658f5d979
[ "MIT" ]
null
null
null
from thorpy.elements.ghost import Ghost from thorpy.elements._sliderutils._shifters import Plus, Minus from thorpy.elements.slider import SliderY from thorpy.elements._sliderutils._dragger import DraggerLiftY, DraggerDirViewerY from thorpy.miscgui.reaction import ConstantReaction from thorpy.miscgui import constants, f...
44.135802
81
0.595385
14e5c0fb293ab4d9a39f178bf927b3d434ece7b5
2,366
py
Python
brbanks2ynab/config/config.py
andreroggeri/br-to-ynab
c5d0ef3804bb575badc05ac6dc771f6a9281f955
[ "MIT" ]
5
2021-09-20T13:15:37.000Z
2022-03-01T01:03:27.000Z
brbanks2ynab/config/config.py
andreroggeri/br-to-ynab
c5d0ef3804bb575badc05ac6dc771f6a9281f955
[ "MIT" ]
4
2021-04-28T14:11:42.000Z
2021-10-09T16:18:15.000Z
brbanks2ynab/config/config.py
andreroggeri/br-to-ynab
c5d0ef3804bb575badc05ac6dc771f6a9281f955
[ "MIT" ]
1
2021-09-27T15:13:30.000Z
2021-09-27T15:13:30.000Z
from dataclasses import dataclass from typing import List, Optional @dataclass class AleloConfig: login: str password: str flex_account: str refeicao_account: str alimentacao_account: str @staticmethod def from_dict(data: dict) -> 'AleloConfig': return AleloConfig( dat...
26.886364
107
0.636517
2d403d73a7b6b2e9e1909b018a15b7025e970a12
36,277
py
Python
validator/validator_gen_js.py
brandcast/amphtml
9bbee9915541972a36209c50c6173fe00564463d
[ "Apache-2.0" ]
1
2017-03-10T09:39:45.000Z
2017-03-10T09:39:45.000Z
validator/validator_gen_js.py
brandcast/amphtml
9bbee9915541972a36209c50c6173fe00564463d
[ "Apache-2.0" ]
2
2018-06-18T07:53:55.000Z
2021-05-09T11:56:13.000Z
validator/validator_gen_js.py
brandcast/amphtml
9bbee9915541972a36209c50c6173fe00564463d
[ "Apache-2.0" ]
null
null
null
# # Copyright 2015 The AMP HTML Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
38.226554
109
0.701353
85bc45834243e7cfe9eeb3504c8581f1276266fa
2,016
py
Python
interactive_scene/scene_builder/scripts/utils.py
OneOneEleven/Interactive-Scene-Reconstruction
dade6e95eea56e04a5d39441f4e03e1667fe37ef
[ "BSD-3-Clause" ]
62
2021-04-04T13:44:24.000Z
2022-03-30T08:13:42.000Z
interactive_scene/scene_builder/scripts/utils.py
OneOneEleven/Interactive-Scene-Reconstruction
dade6e95eea56e04a5d39441f4e03e1667fe37ef
[ "BSD-3-Clause" ]
1
2021-11-23T23:10:07.000Z
2021-11-24T17:29:07.000Z
interactive_scene/scene_builder/scripts/utils.py
hmz-15/Interactive-Scene-Reconstruction
70412c8f5e9ce1c2543fe866f3c5728a723d6478
[ "BSD-3-Clause" ]
8
2021-09-28T12:44:54.000Z
2022-03-03T10:55:29.000Z
import json import argparse class bcolors: HEADER = '\033[95m' OKBLUE = '\033[94m' OKCYAN = '\033[96m' OKGREEN = '\033[92m' WARNING = '\033[93m' FAIL = '\033[91m' ENDC = '\033[0m' BOLD = '\033[1m' UNDERLINE = '\033[4m' def print_err(msg): print("{}{}{}".format(bcolors.FAIL, m...
19.960396
65
0.561012
c6f1b58807575725f205bad4104de07b6f8a81cc
6,159
py
Python
functions_modified.py
oezgueracar/hatespeech-detection-with-BERT
d212d0d86eb3002d13cce985d07aa3bb6f8532a8
[ "MIT" ]
null
null
null
functions_modified.py
oezgueracar/hatespeech-detection-with-BERT
d212d0d86eb3002d13cce985d07aa3bb6f8532a8
[ "MIT" ]
null
null
null
functions_modified.py
oezgueracar/hatespeech-detection-with-BERT
d212d0d86eb3002d13cce985d07aa3bb6f8532a8
[ "MIT" ]
1
2021-07-09T13:41:18.000Z
2021-07-09T13:41:18.000Z
# Import packages and change some pandas display options import pandas as pd import numpy as np import re import warnings import xgboost as xgb import matplotlib.pyplot as plt import seaborn as sns from sklearn.metrics import auc, f1_score, roc_curve, roc_auc_score def get_simple_features(data): """ Creates simp...
37.554878
114
0.60578
65c54ca48b3280d22524fcf00d3af979e88d9983
28,445
py
Python
evalme/tests/test_object_detection.py
heartexlabs/label-studio-evalme
48f7a5226346b6e074edb4717b84122cc089bc7a
[ "MIT" ]
3
2020-04-11T13:01:57.000Z
2021-05-19T13:53:16.000Z
evalme/tests/test_object_detection.py
heartexlabs/label-studio-evalme
48f7a5226346b6e074edb4717b84122cc089bc7a
[ "MIT" ]
28
2020-05-21T01:34:44.000Z
2022-03-21T15:39:16.000Z
evalme/tests/test_object_detection.py
heartexlabs/label-studio-evalme
48f7a5226346b6e074edb4717b84122cc089bc7a
[ "MIT" ]
1
2020-05-21T17:43:26.000Z
2020-05-21T17:43:26.000Z
import pytest from evalme.image.object_detection import KeyPointsEvalItem, keypoints_distance, PolygonObjectDetectionEvalItem, OCREvalItem def test_keypoints_matching(): ''' Matching with almost 1 distance ''' test_data = [ [{ "id": "S6oszbKrqK", "type": "keypointlabel...
59.384134
11,461
0.604851