hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
0dfa05fb71babc8359addb393c00a0d8e644d775
1,934
py
Python
Protheus_WebApp/Modules/SIGAWMS/WMSA225TESTCASE.py
98llm/tir-script-samples
0bff8393b79356aa562e9e6512c11ee6e039b177
[ "MIT" ]
17
2018-09-24T17:27:08.000Z
2021-09-16T19:09:46.000Z
Protheus_WebApp/Modules/SIGAWMS/WMSA225TESTCASE.py
98llm/tir-script-samples
0bff8393b79356aa562e9e6512c11ee6e039b177
[ "MIT" ]
4
2018-09-24T17:30:32.000Z
2022-01-03T11:39:30.000Z
Protheus_WebApp/Modules/SIGAWMS/WMSA225TESTCASE.py
98llm/tir-script-samples
0bff8393b79356aa562e9e6512c11ee6e039b177
[ "MIT" ]
18
2019-06-07T17:41:34.000Z
2022-01-31T18:17:31.000Z
from tir import Webapp import unittest import time class WMSA225(unittest.TestCase): @classmethod def setUpClass(inst): inst.oHelper = Webapp() inst.oHelper.Setup("SIGAWMS", "10/12/2020", "T1", "M SP 01", "42") inst.oHelper.Program("WMSA225") def test_WMSA225_CT001(self): ...
33.929825
79
0.618925
04f49a0fa56e9e3c427a54c5a5c46e451fd007e1
576
py
Python
scripts/colors.py
perlun/jetbrains-one-dark-theme
0daeaf372bec421640b8d6fdb4f26123df419ab0
[ "MIT" ]
1
2019-11-04T09:41:22.000Z
2019-11-04T09:41:22.000Z
scripts/colors.py
Noman-ahk97/jetbrains-one-dark-theme
5b422df1de40e808fcff42df97252970b740e709
[ "MIT" ]
null
null
null
scripts/colors.py
Noman-ahk97/jetbrains-one-dark-theme
5b422df1de40e808fcff42df97252970b740e709
[ "MIT" ]
null
null
null
import os import yaml CONFIG_DIR = os.path.join(os.path.dirname(__file__), 'config') if __name__ == '__main__': with open(os.path.join(CONFIG_DIR, 'colors.yaml'), 'r') as input_file: colors = yaml.load(input_file, Loader=yaml.FullLoader) theme_file_path = os.path.join(CONFIG_DIR, 'theme.yaml') ...
27.428571
74
0.680556
ddf722296b045e4651d40786b03f7d0884ace687
6,340
py
Python
odps/df/expr/tests/test_datetimes.py
Emersonxuelinux/aliyun-odps-python-sdk
0b38c777711c95ed1775fa67822febf88fc3d642
[ "Apache-2.0" ]
412
2015-11-01T09:27:52.000Z
2022-03-26T05:04:03.000Z
odps/df/expr/tests/test_datetimes.py
Emersonxuelinux/aliyun-odps-python-sdk
0b38c777711c95ed1775fa67822febf88fc3d642
[ "Apache-2.0" ]
168
2015-11-16T09:46:39.000Z
2022-03-17T06:35:26.000Z
odps/df/expr/tests/test_datetimes.py
Emersonxuelinux/aliyun-odps-python-sdk
0b38c777711c95ed1775fa67822febf88fc3d642
[ "Apache-2.0" ]
103
2015-12-01T08:10:09.000Z
2022-02-21T12:46:35.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2017 Alibaba Group Holding Ltd. # # 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/LICENS...
47.669173
109
0.730915
2276bce9ffcd8566b4b0502e557c58343a7d098f
1,070
py
Python
predicators/src/args.py
williamshen-nz/predicators
6a6b3444108a6d2da3ec3c7d85bbe60ae3b113b9
[ "MIT" ]
null
null
null
predicators/src/args.py
williamshen-nz/predicators
6a6b3444108a6d2da3ec3c7d85bbe60ae3b113b9
[ "MIT" ]
null
null
null
predicators/src/args.py
williamshen-nz/predicators
6a6b3444108a6d2da3ec3c7d85bbe60ae3b113b9
[ "MIT" ]
null
null
null
"""Contains settings that vary per run. All global, immutable settings should be in settings.py. """ import argparse def create_arg_parser(env_required: bool = True, approach_required: bool = True, seed_required: bool = True) -> argparse.ArgumentParser: """Defines com...
42.8
77
0.703738
f73092a62dc94f15d8005c38a7f97315b3879895
2,582
py
Python
src/openstack_cli/commands/conf/keys/export.py
hapylestat/openstack_cli
be627f0b3c7ab9bf1032c36faca2ad101e53fb0e
[ "Apache-2.0" ]
null
null
null
src/openstack_cli/commands/conf/keys/export.py
hapylestat/openstack_cli
be627f0b3c7ab9bf1032c36faca2ad101e53fb0e
[ "Apache-2.0" ]
1
2021-03-02T07:15:43.000Z
2021-03-02T07:15:43.000Z
src/openstack_cli/commands/conf/keys/export.py
hapylestat/openstack_cli
be627f0b3c7ab9bf1032c36faca2ad101e53fb0e
[ "Apache-2.0" ]
1
2021-03-23T10:00:56.000Z
2021-03-23T10:00:56.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...
36.366197
82
0.72773
0c9785c2d570ef00ef949f268c2c51f80508c758
1,118
py
Python
features/other.py
jacobjaeger/amadeus
5499528236845c2d7a22bcc88d10f02ddbdcfa51
[ "MIT" ]
null
null
null
features/other.py
jacobjaeger/amadeus
5499528236845c2d7a22bcc88d10f02ddbdcfa51
[ "MIT" ]
null
null
null
features/other.py
jacobjaeger/amadeus
5499528236845c2d7a22bcc88d10f02ddbdcfa51
[ "MIT" ]
null
null
null
from discord.ext.commands import Cog, command, Context, Converter, BadArgument from discord import Embed, Member import discord from aiohttp import ClientSession from .common import invalid_arg from random import choice, randint from typing import Optional, Union from re import compile class Color(Converter): REG...
32.882353
109
0.644902
a3460454e5b162ba28f47ea8a372e786114cdb8a
422
py
Python
forum/migrations/0003_auto_20190928_2259.py
duplxey/NForum
990215e5a841ac054fd3c0a167dee37298a70fb8
[ "MIT" ]
7
2019-11-12T14:01:17.000Z
2022-01-29T19:17:09.000Z
forum/migrations/0003_auto_20190928_2259.py
duplxey/NForum
990215e5a841ac054fd3c0a167dee37298a70fb8
[ "MIT" ]
4
2019-12-08T10:03:21.000Z
2020-04-07T20:27:53.000Z
forum/migrations/0003_auto_20190928_2259.py
duplxey/NForum
990215e5a841ac054fd3c0a167dee37298a70fb8
[ "MIT" ]
1
2022-01-29T13:44:24.000Z
2022-01-29T13:44:24.000Z
# Generated by Django 2.2.5 on 2019-09-28 20:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('forum', '0002_auto_20190928_2258'), ] operations = [ migrations.AlterField( model_name='category', name='subcategori...
22.210526
79
0.618483
09566356a21669017ea7782a85c4f30055cb40a7
1,125
py
Python
tests/unit/workflow/processors/test_target_postchecker.py
thoughteer/edera
c4ddb5d8a25906c3bd773c91afb3260fc0b704f2
[ "MIT" ]
3
2018-11-27T15:45:19.000Z
2018-12-21T20:32:10.000Z
tests/unit/workflow/processors/test_target_postchecker.py
thoughteer/edera
c4ddb5d8a25906c3bd773c91afb3260fc0b704f2
[ "MIT" ]
18
2018-12-02T18:38:59.000Z
2020-02-05T22:09:37.000Z
tests/unit/workflow/processors/test_target_postchecker.py
thoughteer/edera
c4ddb5d8a25906c3bd773c91afb3260fc0b704f2
[ "MIT" ]
null
null
null
import pytest from edera import Condition from edera import Task from edera.exceptions import TargetVerificationError from edera.requisites import shortcut from edera.workflow import WorkflowBuilder from edera.workflow.processors import TargetPostChecker def test_target_postchecker_always_executes_task(): class...
20.454545
67
0.662222
3ba33eff0dd0499dcd0011a5603e946a533ab149
2,200
py
Python
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/headstock/lib/logger.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
1
2017-03-28T06:41:51.000Z
2017-03-28T06:41:51.000Z
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/headstock/lib/logger.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
null
null
null
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/headstock/lib/logger.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
1
2016-12-13T21:08:58.000Z
2016-12-13T21:08:58.000Z
# -*- coding: utf-8 -*- from Axon.Component import component from Axon.Ipc import shutdownMicroprocess, producerFinished from bridge import Element as E import logging from logging import handlers class Logger(component): Inboxes = {"inbox" : "String to be logged", "control" : "Closes the logger"...
30.555556
99
0.522727
45bbe38b7b488aacbf20334b1b53e675b7c9d345
1,417
py
Python
keno/utility/stop_watch.py
matthewdeanmartin/keno
04724f5ebf53b5f11d150ec587750a18d0d3fee0
[ "MIT" ]
null
null
null
keno/utility/stop_watch.py
matthewdeanmartin/keno
04724f5ebf53b5f11d150ec587750a18d0d3fee0
[ "MIT" ]
17
2018-07-14T17:48:04.000Z
2020-09-16T10:25:59.000Z
keno/utility/stop_watch.py
matthewdeanmartin/keno
04724f5ebf53b5f11d150ec587750a18d0d3fee0
[ "MIT" ]
null
null
null
# coding=utf-8 """ How long is this taking """ import datetime class Timer(object): """A simple timer class""" def __init__(self) -> None: self.split_start: datetime.datetime self.start_time: datetime.datetime self.stop_time: datetime.datetime def start(self) -> datetime.datetime...
33.738095
77
0.62103
a03d6120ff4b8c32e66b0cde7b7ebd965af76042
473
py
Python
Django/scraping/news_scraping.py
hanana1253/TIL
301ba13acdba677b19be1c03fcd4135ff06d862c
[ "MIT" ]
3
2021-06-01T08:31:54.000Z
2022-02-02T06:03:18.000Z
Django/scraping/news_scraping.py
hanana1253/TIL
301ba13acdba677b19be1c03fcd4135ff06d862c
[ "MIT" ]
null
null
null
Django/scraping/news_scraping.py
hanana1253/TIL
301ba13acdba677b19be1c03fcd4135ff06d862c
[ "MIT" ]
2
2021-03-27T06:45:12.000Z
2022-01-07T09:34:32.000Z
import requests from bs4 import BeautifulSoup for startnum in range(1, 100, 10): url = 'https://search.naver.com/search.naver?where=news&sm=tab_jum&query=%EC%BD%94%EB%A1%9C%EB%82%98&start={}'.format(startnum) response = requests.get(url) html_text = response.text soup = BeautifulSoup(html_text, 'html....
36.384615
131
0.691332
b749425984be001e996f17e1336c011eb82344d4
1,749
py
Python
Predictive_Tracker/BoxKalmanFilter.py
Royzon/3d-tracking-approaches
58cdf55b5fef5c6ceae67f0a44d589d08b24959c
[ "MIT" ]
1
2021-12-17T16:23:56.000Z
2021-12-17T16:23:56.000Z
Predictive_Tracker/BoxKalmanFilter.py
Royzon/3d-tracking-approaches
58cdf55b5fef5c6ceae67f0a44d589d08b24959c
[ "MIT" ]
null
null
null
Predictive_Tracker/BoxKalmanFilter.py
Royzon/3d-tracking-approaches
58cdf55b5fef5c6ceae67f0a44d589d08b24959c
[ "MIT" ]
null
null
null
import numpy as np from filterpy.kalman import KalmanFilter # (x, y, z, w, l, h, angle, v_x, v_y, v_z, v_angle) class BoxKalmanFilter(): def __init__(self, box, id, type): self.id = id self.type = type self.age = 0 self.blind_time = 0 self.kf = KalmanFilter(dim_x=11...
33.634615
57
0.348771
4f6ee2e5176bc62a36b9c645fe8eab63d82c438e
704
py
Python
components/google-cloud/google_cloud_pipeline_components/version.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
1
2021-11-22T12:22:14.000Z
2021-11-22T12:22:14.000Z
components/google-cloud/google_cloud_pipeline_components/version.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
13
2021-07-06T06:47:43.000Z
2022-03-08T23:35:13.000Z
components/google-cloud/google_cloud_pipeline_components/version.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
1
2021-08-22T15:51:17.000Z
2021-08-22T15:51:17.000Z
# Copyright 2021 The Kubeflow 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 applicabl...
41.411765
74
0.761364
73ac107c68e67c1f540c7dd532312b929cb8b662
1,341
py
Python
ffield.py
Nlioxa/ffield
0ffb150b6c0336a12b5f5d7f448054c385dd56b4
[ "MIT" ]
1
2020-12-16T11:50:45.000Z
2020-12-16T11:50:45.000Z
ffield.py
Nlioxa/ffield
0ffb150b6c0336a12b5f5d7f448054c385dd56b4
[ "MIT" ]
null
null
null
ffield.py
Nlioxa/ffield
0ffb150b6c0336a12b5f5d7f448054c385dd56b4
[ "MIT" ]
null
null
null
class FNumber: def __init__(self, ffield, value): self.f = ffield self.v = int(value) % self.f.p def __neg__(self): return FNumber(self.f, -self.v) def __add__(self, other): return FNumber(self.f, int(self) + int(other)) def __sub__(self, other): ...
24.381818
76
0.517524
4483510427ca1667081aa51f724a87f274a66909
917
py
Python
src/apps/domains/location/migrations/0007_auto_20190721_0529.py
antiline/jun2
00928cea1f4b8cd6634cf9a1ae6dc19c95d0e54c
[ "MIT" ]
null
null
null
src/apps/domains/location/migrations/0007_auto_20190721_0529.py
antiline/jun2
00928cea1f4b8cd6634cf9a1ae6dc19c95d0e54c
[ "MIT" ]
17
2019-06-24T14:11:49.000Z
2021-06-04T22:19:59.000Z
src/apps/domains/location/migrations/0007_auto_20190721_0529.py
antiline/jun2
00928cea1f4b8cd6634cf9a1ae6dc19c95d0e54c
[ "MIT" ]
null
null
null
# Generated by Django 2.2.2 on 2019-07-20 20:29 from django.db import migrations, models import uuid class Migration(migrations.Migration): dependencies = [ ('location', '0006_auto_20190721_0341'), ] operations = [ migrations.AlterField( model_name='extractgpsfromexifstatus'...
31.62069
164
0.642312
aee9c25fd03d501f2094e2fd83c83bb5971b3b8e
11,214
py
Python
tensorflow_ranking/python/feature_test.py
we1559/ranking
7de1bd2d366d942c0acaabc91876035cc1d9c3f0
[ "Apache-2.0" ]
2
2019-07-29T00:56:01.000Z
2021-05-18T01:01:33.000Z
tensorflow_ranking/python/feature_test.py
rishabhmehrotra/ranking
8536405845e8ca180dae01c4d0e34ecb1be89b65
[ "Apache-2.0" ]
null
null
null
tensorflow_ranking/python/feature_test.py
rishabhmehrotra/ranking
8536405845e8ca180dae01c4d0e34ecb1be89b65
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The TensorFlow Ranking Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
39.625442
81
0.630462
41bc4868190dd457679f2c9eb5066100ad0c5a15
17,190
py
Python
CoreHandler.py
hiramegl/AaMakro5oul
fda92a4da1182965eea8bb4c508afdf43e2a8704
[ "Apache-2.0" ]
3
2019-05-01T20:33:12.000Z
2021-02-15T10:38:35.000Z
CoreHandler.py
hiramegl/AaMakro5oul
fda92a4da1182965eea8bb4c508afdf43e2a8704
[ "Apache-2.0" ]
1
2020-10-12T00:14:11.000Z
2020-10-13T11:50:36.000Z
CoreHandler.py
hiramegl/AaMakro5oul
fda92a4da1182965eea8bb4c508afdf43e2a8704
[ "Apache-2.0" ]
null
null
null
# ****************************************************************************** # This file is part of the AaMakro5oul project # (An OSC/MIDI controller for Ableton Live with DJ features) # # Full project source: https://github.com/hiramegl/AaMakro5oul # # License : Apache License 2.0 # Full license: https://githu...
33.905325
125
0.576847
86d365a64e9c422a8dba7681b586fd4f8b5b6277
6,926
py
Python
cloudera-framework-assembly/src/main/assembly/root/lib/manager/python/environment.py
ggear/cloudera-framework
a1240d85aeacfb2c467d01032d04bdb72b9e55a7
[ "Apache-2.0" ]
11
2015-07-01T02:34:37.000Z
2019-05-02T06:06:11.000Z
cloudera-framework-assembly/src/main/assembly/root/lib/manager/python/environment.py
ggear/cloudera-framework
a1240d85aeacfb2c467d01032d04bdb72b9e55a7
[ "Apache-2.0" ]
3
2015-12-16T22:29:21.000Z
2018-01-02T06:54:06.000Z
cloudera-framework-assembly/src/main/assembly/root/lib/manager/python/environment.py
ggear/cloudera-framework
a1240d85aeacfb2c467d01032d04bdb72b9e55a7
[ "Apache-2.0" ]
7
2016-06-19T10:30:38.000Z
2019-03-28T16:01:37.000Z
#!/usr/bin/env python """ Provide a flat list of cluster connectivity parameters Usage: %s [options] Options: -h --help Show help --host=<cm-server-host> Specify a Cloudera Manager Server host Defaults to 'localhost' --port=<cm-se...
42.490798
140
0.574069
1b6cdeb92d2787f82075304727b31637982bbfeb
1,967
py
Python
snakemake_workflow_template/release_modules/replace_identifiers/lib/arguments.py
regulondbunam/RegulonDB-MCO-Felipe
6e5546907399d5712a8e69f2f8320af8d30b9d7b
[ "MIT" ]
null
null
null
snakemake_workflow_template/release_modules/replace_identifiers/lib/arguments.py
regulondbunam/RegulonDB-MCO-Felipe
6e5546907399d5712a8e69f2f8320af8d30b9d7b
[ "MIT" ]
null
null
null
snakemake_workflow_template/release_modules/replace_identifiers/lib/arguments.py
regulondbunam/RegulonDB-MCO-Felipe
6e5546907399d5712a8e69f2f8320af8d30b9d7b
[ "MIT" ]
null
null
null
import argparse def load_arguments(): parser = argparse.ArgumentParser(description="Replaces the data's source identifiers with RegulonDB's identifiers.", formatter_class=argparse.ArgumentDefaultsHelpFormatter, epilog="Either Multigenomic o...
32.245902
123
0.613625
2bc5b8e5380fac52bfaa8045af40040ac06e1b5d
1,982
py
Python
test/test_inline_response2007_message.py
RiskAmerica/api-client-python
468c554a0440bef5086828631e25d99d41e28571
[ "MIT" ]
null
null
null
test/test_inline_response2007_message.py
RiskAmerica/api-client-python
468c554a0440bef5086828631e25d99d41e28571
[ "MIT" ]
null
null
null
test/test_inline_response2007_message.py
RiskAmerica/api-client-python
468c554a0440bef5086828631e25d99d41e28571
[ "MIT" ]
1
2021-04-14T15:52:03.000Z
2021-04-14T15:52:03.000Z
# coding: utf-8 """ APIs RISKAMERICA A continuación les presentamos la documentación las **APIs** **de** **RiskAmerica**, el cual es un servicio pagado ofrecido por RiskAmerica que se contrata por separado a nuestras otras ofertas de software. Algunas consideraciones que debe tener al momento de usar las API...
49.55
1,070
0.750757
d6c0273a2adf56645a606f545fd038f7db980b6c
2,479
py
Python
parlai/core/logs.py
albert-magyar/ParlAI
3133b4e8290f8a42679b93a65fc25e76ac7f6761
[ "MIT" ]
null
null
null
parlai/core/logs.py
albert-magyar/ParlAI
3133b4e8290f8a42679b93a65fc25e76ac7f6761
[ "MIT" ]
null
null
null
parlai/core/logs.py
albert-magyar/ParlAI
3133b4e8290f8a42679b93a65fc25e76ac7f6761
[ "MIT" ]
1
2020-11-04T06:13:59.000Z
2020-11-04T06:13:59.000Z
#!/usr/bin/env python3 # 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. """ Log metrics to tensorboard. This file provides interface to log any metrics in tensorboard, could be extended to any...
30.9875
85
0.621218
c9c53273a4434902758419f5bac37babc0d032fc
37,252
py
Python
official/recommendation/data_pipeline.py
denis-choi/models
b478430d89f0b40fe3caf281f4e24cefda825412
[ "Apache-2.0" ]
3
2019-10-12T07:28:40.000Z
2019-10-16T00:58:10.000Z
official/recommendation/data_pipeline.py
denis-choi/models
b478430d89f0b40fe3caf281f4e24cefda825412
[ "Apache-2.0" ]
6
2021-06-08T21:30:48.000Z
2022-03-12T00:29:00.000Z
official/recommendation/data_pipeline.py
denis-choi/models
b478430d89f0b40fe3caf281f4e24cefda825412
[ "Apache-2.0" ]
7
2017-07-01T22:47:51.000Z
2021-05-15T10:48:22.000Z
# Copyright 2018 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 applica...
38.723493
82
0.679963
139f1a357b258158eb71195d5eb8a97e707a810f
20,322
py
Python
shot_chart/core.py
theccalderon/shot_chart
97e4bd5da920bb894059c648d93e73743887d6e7
[ "Apache-2.0" ]
16
2020-04-14T11:48:14.000Z
2020-12-16T03:32:48.000Z
shot_chart/core.py
theccalderon/shot_chart
97e4bd5da920bb894059c648d93e73743887d6e7
[ "Apache-2.0" ]
4
2020-03-31T11:13:26.000Z
2021-05-20T12:45:17.000Z
shot_chart/core.py
theccalderon/shot_chart
97e4bd5da920bb894059c648d93e73743887d6e7
[ "Apache-2.0" ]
8
2020-10-14T15:17:04.000Z
2021-12-21T12:03:42.000Z
# AUTOGENERATED! DO NOT EDIT! File to edit: 00_core.ipynb (unless otherwise specified). __all__ = ['Config', 'URLs', 'download_url', 'download_data', 'file_extract', 'untar_data', 'make_df', 'delegates', 'Shots', 'list_teams', 'list_game_ids', 'TeamShots', 'list_team_players', 'PlayerShots'] # Cell from pa...
46.717241
488
0.600581
ff8e52c2a7ebf6a9b097e8dd37f7073af382f713
308
py
Python
python/graphscope/experimental/nx/tests/algorithms/forward/centrality/test_reaching.py
wenyuanyu/GraphScope
a40ccaf70557e608d8b091eb25ab04477f99ce21
[ "Apache-2.0" ]
2
2020-12-15T08:42:10.000Z
2022-01-14T09:13:16.000Z
python/graphscope/experimental/nx/tests/algorithms/forward/centrality/test_reaching.py
wenyuanyu/GraphScope
a40ccaf70557e608d8b091eb25ab04477f99ce21
[ "Apache-2.0" ]
1
2020-12-22T13:15:40.000Z
2020-12-22T13:15:40.000Z
python/graphscope/experimental/nx/tests/algorithms/forward/centrality/test_reaching.py
wenyuanyu/GraphScope
a40ccaf70557e608d8b091eb25ab04477f99ce21
[ "Apache-2.0" ]
1
2021-11-23T03:40:43.000Z
2021-11-23T03:40:43.000Z
import networkx.algorithms.centrality.tests.test_reaching import pytest from graphscope.experimental.nx.utils.compat import import_as_graphscope_nx import_as_graphscope_nx(networkx.algorithms.centrality.tests.test_reaching, decorators=pytest.mark.usefixtures("graphscope_session"))
38.5
81
0.811688
0942113b2c99f43b18d9c3e9632075ae208fc1fe
22,525
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations_async/_gallery_image_versions_operations_async.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2019-05-17T21:24:53.000Z
2020-02-12T11:13:42.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations_async/_gallery_image_versions_operations_async.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
15
2019-07-12T18:18:04.000Z
2019-07-25T20:55:51.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations_async/_gallery_image_versions_operations_async.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
50.167038
247
0.677647
56fcb70df1f09764611db868fdd757d4f7135e38
78,531
py
Python
FIDL/decompiler_utils.py
mrj0n3s/FIDL
e6ceb000cda43b450717eb171309c02dee06dd4f
[ "MIT" ]
null
null
null
FIDL/decompiler_utils.py
mrj0n3s/FIDL
e6ceb000cda43b450717eb171309c02dee06dd4f
[ "MIT" ]
null
null
null
FIDL/decompiler_utils.py
mrj0n3s/FIDL
e6ceb000cda43b450717eb171309c02dee06dd4f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # =========================================================================== # Decompiler utils # # This is a set of utilities wrapping the decompiler API into something # sane. This code focus on vulnerability research and bug hunting, # however most of the functionality is generic enough to ...
28.640044
196
0.575225
63a01777f9add1543c801b6fb8a7f8397133783a
2,060
py
Python
tests/test_security/test_security_api_key_query_description.py
dantownsend/xpresso
a4c4dbe96972a6f0339f30d7d794932f70510eea
[ "MIT" ]
null
null
null
tests/test_security/test_security_api_key_query_description.py
dantownsend/xpresso
a4c4dbe96972a6f0339f30d7d794932f70510eea
[ "MIT" ]
null
null
null
tests/test_security/test_security_api_key_query_description.py
dantownsend/xpresso
a4c4dbe96972a6f0339f30d7d794932f70510eea
[ "MIT" ]
null
null
null
from typing import Any, Dict, Generator import pytest from pydantic import BaseModel from xpresso import App, Dependant, Path, Security from xpresso.security import APIKeyQuery from xpresso.testclient import TestClient from xpresso.typing import Annotated api_key = APIKeyQuery(name="key", description="API Key Query"...
25.75
82
0.604854
56e550512d7e699360010d4b0986b534798a3b8a
3,085
py
Python
resources/lib/MSLHttpRequestHandler.py
hcordobes/plugin.video.netflix
0bf52c68b0202d61c799480f2c9d047f55c433e0
[ "MIT" ]
17
2018-08-09T20:54:53.000Z
2019-11-23T03:17:55.000Z
resources/lib/MSLHttpRequestHandler.py
hcordobes/plugin.video.netflix
0bf52c68b0202d61c799480f2c9d047f55c433e0
[ "MIT" ]
1
2019-01-07T19:44:07.000Z
2019-02-09T14:12:16.000Z
resources/lib/MSLHttpRequestHandler.py
hcordobes/plugin.video.netflix
0bf52c68b0202d61c799480f2c9d047f55c433e0
[ "MIT" ]
14
2018-11-17T05:14:22.000Z
2019-06-03T12:22:11.000Z
# -*- coding: utf-8 -*- # Author: trummerjo # Module: MSLHttpRequestHandler # Created on: 26.01.2017 # License: MIT https://goo.gl/5bMj3H """Handles & translates requests from Inputstream to Netflix""" import base64 import BaseHTTPServer from urlparse import urlparse, parse_qs from SocketServer import TCPServer from...
33.901099
79
0.610049
7daafc6e210a6ac5e88736d87fd75a925f311747
3,686
py
Python
libraryBackend/Account/migrations/0001_initial.py
junaidgirkar/departmental-library-management-app
f14320214ff5903c296ee785a329335183b35402
[ "MIT" ]
1
2021-11-17T20:13:01.000Z
2021-11-17T20:13:01.000Z
libraryBackend/Account/migrations/0001_initial.py
junaidgirkar/departmental-library-management-app
f14320214ff5903c296ee785a329335183b35402
[ "MIT" ]
null
null
null
libraryBackend/Account/migrations/0001_initial.py
junaidgirkar/departmental-library-management-app
f14320214ff5903c296ee785a329335183b35402
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-09-22 13:26 import Account.managers from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ("auth", "0012_alter_user_first_name_max_length"), ] operations = [ migrations.CreateModel( ...
34.773585
134
0.405317
c675a9c0ff5ae0fef3967630b1f90ee58bbc7ac1
1,771
py
Python
invoice/views.py
AhmedElmawary/erp
c998787c62194e26e10e3cbc61e35935e901e56d
[ "MIT" ]
null
null
null
invoice/views.py
AhmedElmawary/erp
c998787c62194e26e10e3cbc61e35935e901e56d
[ "MIT" ]
null
null
null
invoice/views.py
AhmedElmawary/erp
c998787c62194e26e10e3cbc61e35935e901e56d
[ "MIT" ]
null
null
null
# import rest_framework # from django.shortcuts import get_list_or_404, get_object_or_404 # from rest_framework.views import APIView # from rest_framework.authentication import TokenAuthentication # from rest_framework.permissions import (IsAuthenticated, IsAdminUser) # from rest_framework.status import (HTTP_200_OK, H...
33.415094
87
0.733484
edb1312d87ddd307efc63101c913e0890979fa06
673
py
Python
tests/conftest.py
SurajDonthi/Aspect-Based-Sentiment-Analysis
6f20357218b495f7ffa2d6fe9dfcb43b42a5c4f1
[ "Apache-2.0" ]
351
2020-04-20T13:08:25.000Z
2022-03-28T11:02:13.000Z
tests/conftest.py
SurajDonthi/Aspect-Based-Sentiment-Analysis
6f20357218b495f7ffa2d6fe9dfcb43b42a5c4f1
[ "Apache-2.0" ]
58
2020-04-23T05:58:14.000Z
2022-03-31T14:09:07.000Z
tests/conftest.py
SurajDonthi/Aspect-Based-Sentiment-Analysis
6f20357218b495f7ffa2d6fe9dfcb43b42a5c4f1
[ "Apache-2.0" ]
72
2020-04-22T05:39:19.000Z
2022-03-23T20:49:56.000Z
import pytest def pytest_addoption(parser): parser.addoption("--run-slow", action="store_true", default=False, help="Run slow tests") def pytest_configure(config): dsc = "slow: mark test, which can be slow to run" config.addinivalue_line("markers", dsc) def pytest_collection_modif...
29.26087
60
0.667162
353b1dd4c84736cde9f4cdd80cd06b2cdd7f50e1
17
py
Python
dcssearch/__init__.py
CharlieNPie/dcsdata
c1935e2cd969494364bd4949d08c558cbec7befd
[ "MIT" ]
null
null
null
dcssearch/__init__.py
CharlieNPie/dcsdata
c1935e2cd969494364bd4949d08c558cbec7befd
[ "MIT" ]
null
null
null
dcssearch/__init__.py
CharlieNPie/dcsdata
c1935e2cd969494364bd4949d08c558cbec7befd
[ "MIT" ]
null
null
null
name = "dcsdata"
8.5
16
0.647059
4342546beac7efc0ef2c665f76c35b72b5de18e3
355
py
Python
src/pyoffice/outlook/windows/dasl/operator/LEOperator.py
qq809326636/pyoffice
a3c036ef82f6b0438c1e38a7675eb1f06c61144d
[ "MIT" ]
7
2020-06-19T03:11:48.000Z
2020-11-18T06:14:21.000Z
src/pyoffice/outlook/windows/dasl/operator/LEOperator.py
qq809326636/pyoffice
a3c036ef82f6b0438c1e38a7675eb1f06c61144d
[ "MIT" ]
null
null
null
src/pyoffice/outlook/windows/dasl/operator/LEOperator.py
qq809326636/pyoffice
a3c036ef82f6b0438c1e38a7675eb1f06c61144d
[ "MIT" ]
null
null
null
from .BaseOperator import BaseOperator __all__ = ['LEOperator'] class LEOperator(BaseOperator): def __init__(self, *args, **kwargs): BaseOperator.__init__(self, *args, **kwargs) self.code...
18.684211
40
0.430986
c389d7ffb3ea217cf4b456fbcc2b13418cf6a676
34,228
py
Python
piicrgmms/sklearn_mixture_piicr/_strict_bayesian_mixture.py
colinweber27/piicrgmms
d74fb00c584b16f341c47a42a930e27efe4e360d
[ "MIT" ]
null
null
null
piicrgmms/sklearn_mixture_piicr/_strict_bayesian_mixture.py
colinweber27/piicrgmms
d74fb00c584b16f341c47a42a930e27efe4e360d
[ "MIT" ]
null
null
null
piicrgmms/sklearn_mixture_piicr/_strict_bayesian_mixture.py
colinweber27/piicrgmms
d74fb00c584b16f341c47a42a930e27efe4e360d
[ "MIT" ]
null
null
null
"""Bayesian Gaussian Mixture Model.""" # Author: Wei Xue <xuewei4d@gmail.com> # Thierry Guillemot <thierry.guillemot.work@gmail.com> # Contributor: Colin Weber <colin.weber.27@gmail.com> # License: BSD 3 clause import math import numpy as np from scipy.special import betaln, digamma, gammaln from ._...
43.162673
98
0.616951
e93d65770f0f554b0eead56af918ca135e612609
5,495
py
Python
tensorflow/python/keras/utils/version_utils_test.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
190,993
2015-11-09T13:17:30.000Z
2022-03-31T23:05:27.000Z
tensorflow/python/keras/utils/version_utils_test.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
48,461
2015-11-09T14:21:11.000Z
2022-03-31T23:17:33.000Z
tensorflow/python/keras/utils/version_utils_test.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
104,981
2015-11-09T13:40:17.000Z
2022-03-31T19:51:54.000Z
# Copyright 2019 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 applica...
29.702703
80
0.709372
1b436334bc8e240a39d933c5919a621bb0ee0f80
913
py
Python
mediawiki/__init__.py
arnavk/mediawiki
2f74f80e18489bb3d22de3977fc2a8e5ba2c0737
[ "MIT" ]
null
null
null
mediawiki/__init__.py
arnavk/mediawiki
2f74f80e18489bb3d22de3977fc2a8e5ba2c0737
[ "MIT" ]
1
2018-09-19T18:56:06.000Z
2018-09-19T18:56:06.000Z
mediawiki/__init__.py
arnavk/mediawiki
2f74f80e18489bb3d22de3977fc2a8e5ba2c0737
[ "MIT" ]
null
null
null
''' mediawiki module initialization ''' from __future__ import (unicode_literals, absolute_import) from .mediawiki import (MediaWiki, URL, VERSION) from .mediawikipage import (MediaWikiPage) from .exceptions import (MediaWikiException, PageError, MediaWikiGeoCoordError, RedirectError, Disambigu...
36.52
79
0.709748
91de5af1966701dd6344a6f0a300ea28d1f41974
6,834
py
Python
backend/sources/tests/unit/test_routers/test_form_router.py
TeamUnibuc/SmartForms
db558b057468dafd3adbb85d6405697f8c7b7342
[ "MIT" ]
null
null
null
backend/sources/tests/unit/test_routers/test_form_router.py
TeamUnibuc/SmartForms
db558b057468dafd3adbb85d6405697f8c7b7342
[ "MIT" ]
2
2022-02-18T09:43:17.000Z
2022-03-02T23:18:03.000Z
backend/sources/tests/unit/test_routers/test_form_router.py
TeamUnibuc/SmartForms
db558b057468dafd3adbb85d6405697f8c7b7342
[ "MIT" ]
null
null
null
import base64 import json import os, sys sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.realpath(__file__)))))) import main import time import random import unittest from main import init_state import database import smart_forms_types from PyPDF2 import PdfFileReader from fasta...
30.783784
111
0.613257
546397f4cae0674d2db8e17766f65e23645c886d
6,452
py
Python
test/test_samples.py
ricky40403/Fcos_seg
e2803108ca0114b906c739aa348e8b28f3c6342c
[ "MIT" ]
null
null
null
test/test_samples.py
ricky40403/Fcos_seg
e2803108ca0114b906c739aa348e8b28f3c6342c
[ "MIT" ]
1
2021-09-29T17:10:01.000Z
2021-09-29T17:10:01.000Z
test/test_samples.py
ricky40403/Fcos_seg
e2803108ca0114b906c739aa348e8b28f3c6342c
[ "MIT" ]
null
null
null
import os import sys import argparse import torch sys.path.append('..') from Fcos_seg.data.coco_dataset import COCODataset from Fcos_seg.data.transform import get_transform from Fcos_seg.data.data_meta import COCO_CLASS_NAME from Fcos_seg.core.config import get_cfg_defaults from Fcos_seg.utils.sampler_helper import g...
36.451977
134
0.565871
cfd5c81386506bd99f8876433d93823b61628a8b
920
py
Python
preprocess/geocode.py
code-for-magdeburg/history-of-your-house
07f0dc04eb0259ad8d9c86034c5c2231a6922f8d
[ "MIT" ]
1
2018-04-28T20:24:48.000Z
2018-04-28T20:24:48.000Z
preprocess/geocode.py
code-for-magdeburg/history-of-your-house
07f0dc04eb0259ad8d9c86034c5c2231a6922f8d
[ "MIT" ]
null
null
null
preprocess/geocode.py
code-for-magdeburg/history-of-your-house
07f0dc04eb0259ad8d9c86034c5c2231a6922f8d
[ "MIT" ]
null
null
null
import dataset import requests import time db = dataset.connect('sqlite:///databse.db') table = db['history'] key = "XAI2eQAhITGGep9PYpBj7ZQM90NtKSpd" baseUrl = "http://www.mapquestapi.com/geocoding/v1/address?street=%s&city=Magdeburg&country=Germany&maxResults=1&key=" + key def geocode(row): address = row['ans...
24.210526
124
0.620652
9e96da72b21911bfe4eb357c52c55d5591ffe000
2,017
py
Python
nahash/messages.py
jwiggins/nahash
51a41ed5e02c4414783ec4e301fb9c12a4a403ae
[ "MIT" ]
3
2018-06-13T00:42:14.000Z
2021-04-22T00:50:08.000Z
nahash/messages.py
jwiggins/nahash
51a41ed5e02c4414783ec4e301fb9c12a4a403ae
[ "MIT" ]
1
2019-11-27T10:04:16.000Z
2020-03-03T16:38:09.000Z
nahash/messages.py
jwiggins/nahash
51a41ed5e02c4414783ec4e301fb9c12a4a403ae
[ "MIT" ]
null
null
null
import subprocess import textwrap import time from .tables import MESSAGE_HANDLE_ID, MESSAGE_ROWID, MESSAGE_TEXT from .util import get_db_conn WAIT_TIMEOUT = 5.0 def send_message(recipient, text): """ Send a single message to a recipient Original: https://gist.github.com/tk512/9b578739730eb5b83c7cbf502c38c...
30.104478
76
0.627169
2f143e59638a462a78589d830766ed148d50e92e
1,334
py
Python
clock/contrib/sites/migrations/0001_initial.py
mimischi/clock
3914da6a48b89cb80ab5205c6ce1c279012472fe
[ "MIT" ]
6
2016-03-02T14:20:14.000Z
2021-01-04T04:30:27.000Z
clock/contrib/sites/migrations/0001_initial.py
mimischi/clock
3914da6a48b89cb80ab5205c6ce1c279012472fe
[ "MIT" ]
340
2015-09-24T15:30:12.000Z
2020-03-14T09:05:40.000Z
clock/contrib/sites/migrations/0001_initial.py
mimischi/clock
3914da6a48b89cb80ab5205c6ce1c279012472fe
[ "MIT" ]
4
2016-04-04T13:18:18.000Z
2018-08-02T02:16:19.000Z
# -*- coding: utf-8 -*- import django.contrib.sites.models from django.db import migrations, models class Migration(migrations.Migration): dependencies = [] operations = [ migrations.CreateModel( name="Site", fields=[ ( "id", ...
29
87
0.407046
91fab78c4d322247bbc36cb8d278166efcb2710f
3,442
py
Python
examples/http/ghcn/get_ghcn.py
jjaraalm/hsds
936c9033fbbffcfe5093dd55c4f2992458ac2df5
[ "Apache-2.0" ]
1
2020-03-12T12:26:26.000Z
2020-03-12T12:26:26.000Z
examples/http/ghcn/get_ghcn.py
jjaraalm/hsds
936c9033fbbffcfe5093dd55c4f2992458ac2df5
[ "Apache-2.0" ]
null
null
null
examples/http/ghcn/get_ghcn.py
jjaraalm/hsds
936c9033fbbffcfe5093dd55c4f2992458ac2df5
[ "Apache-2.0" ]
null
null
null
import sys import json import requests import helper import config import hsds_logger as log def printUsage(): print("Usage: get_ghcn.py [station] [obstype]") print(" Get ghcn results for given station and obstype") print(" If command line arguments are not given, default to:") print(" stati...
28.92437
84
0.590354
001d5fa7914ac83f78b65f038d6f04de7dcd2f92
1,701
py
Python
poem/Poem/poem/migrations/0006_groupofthresholdsprofiles_thresholdsprofiles.py
kevangel79/poem-2
75cda3cdd302df9c85b963bd91b7ce7182dfa220
[ "Apache-2.0" ]
null
null
null
poem/Poem/poem/migrations/0006_groupofthresholdsprofiles_thresholdsprofiles.py
kevangel79/poem-2
75cda3cdd302df9c85b963bd91b7ce7182dfa220
[ "Apache-2.0" ]
139
2020-04-06T09:22:16.000Z
2021-08-02T06:39:22.000Z
poem/Poem/poem/migrations/0006_groupofthresholdsprofiles_thresholdsprofiles.py
kevangel79/poem-2
75cda3cdd302df9c85b963bd91b7ce7182dfa220
[ "Apache-2.0" ]
3
2019-07-10T09:37:38.000Z
2020-04-02T10:48:38.000Z
# Generated by Django 2.2.5 on 2019-11-06 11:16 import django.contrib.auth.models from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('auth', '0011_update_proxy_permissions'), ('poem', '0005_tenanthistory'), ] operations = [ migratio...
38.659091
118
0.573192
4f39989fff61d1fa4b37977cfa1bf5bc5a354a41
442
py
Python
examples/fetch_tabix/fetch_tabix.py
k8iechen/vcfpy
89f7097cb5bc7bfec198d8c02fe031b44786b14b
[ "MIT" ]
48
2016-09-25T16:07:53.000Z
2022-01-19T17:44:46.000Z
examples/fetch_tabix/fetch_tabix.py
k8iechen/vcfpy
89f7097cb5bc7bfec198d8c02fe031b44786b14b
[ "MIT" ]
83
2016-09-16T12:20:02.000Z
2021-05-12T09:12:10.000Z
examples/fetch_tabix/fetch_tabix.py
k8iechen/vcfpy
89f7097cb5bc7bfec198d8c02fe031b44786b14b
[ "MIT" ]
9
2016-10-04T15:10:06.000Z
2022-02-08T21:10:51.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import vcfpy # Open input, add FILTER header, and open output file reader = vcfpy.Reader.from_path("input.vcf.gz") writer = vcfpy.Writer.from_path("/dev/stdout", reader.header) # Fetch region 20:1,110,694-1,230,237. Note that the coordinates # in the API call are zero-ba...
34
66
0.730769
76e57e77adb623fa451995104b08d00acd7bc02e
1,319
py
Python
work/PaddleVideo/paddlevideo/modeling/__init__.py
zmgaoscut/2021-CCF-BDCI---7-
bdf8139d840a31120f62c9f87542076a3db813ac
[ "Apache-2.0" ]
883
2020-11-12T11:46:46.000Z
2022-03-31T18:27:10.000Z
paddlevideo/modeling/__init__.py
arkofgalaxy/PaddleVideo
64251233c83b7eb681061b454da198a9082309a6
[ "Apache-2.0" ]
233
2020-12-09T06:04:59.000Z
2022-03-28T08:16:51.000Z
paddlevideo/modeling/__init__.py
arkofgalaxy/PaddleVideo
64251233c83b7eb681061b454da198a9082309a6
[ "Apache-2.0" ]
225
2020-11-13T06:21:55.000Z
2022-03-31T05:36:11.000Z
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License" # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
31.404762
74
0.727066
4a5e6dd36ca47bb2b91a79417c7c470af14d5528
6,020
py
Python
data/p3BR/R2/benchmark/startQiskit_QC154.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p3BR/R2/benchmark/startQiskit_QC154.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p3BR/R2/benchmark/startQiskit_QC154.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=3 # total number=28 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collections import Counter from...
29.950249
140
0.631561
7618c197413d6dbde4c9b102fff4171ca1b06f72
2,307
py
Python
tests/ut/python/parallel/test_auto_parallel_matmul_drop.py
PowerOlive/mindspore
bda20724a94113cedd12c3ed9083141012da1f15
[ "Apache-2.0" ]
3,200
2020-02-17T12:45:41.000Z
2022-03-31T20:21:16.000Z
tests/ut/python/parallel/test_auto_parallel_matmul_drop.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
176
2020-02-12T02:52:11.000Z
2022-03-28T22:15:55.000Z
tests/ut/python/parallel/test_auto_parallel_matmul_drop.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
621
2020-03-09T01:31:41.000Z
2022-03-30T03:43:19.000Z
# Copyright 2019 Huawei Technologies Co., Ltd # # 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...
30.76
74
0.683572
2c24708a3bffb2bd86287214dbc7b1011691595e
60,660
py
Python
django/test/testcases.py
hashlash/django
3baf92cf8230ad3a932986170fd07c8feae7ff2f
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
5
2020-07-04T09:43:05.000Z
2022-02-23T12:22:24.000Z
django/test/testcases.py
Warlockk/django
e12fea24f06f8911ddc2af1d6cbfb1adb529c1f2
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
null
null
null
django/test/testcases.py
Warlockk/django
e12fea24f06f8911ddc2af1d6cbfb1adb529c1f2
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
1
2020-06-24T10:24:20.000Z
2020-06-24T10:24:20.000Z
import asyncio import difflib import json import posixpath import sys import threading import unittest from collections import Counter from contextlib import contextmanager from copy import copy from difflib import get_close_matches from functools import wraps from unittest.suite import _DebugResult from unittest.util ...
40.413058
115
0.604105
85690fa8450025a8f7489b0ea456ab35da84c04c
2,738
py
Python
Exporters/Blender/src/babylon-js/exporter_settings_panel.py
harunpehlivan/Babylon.js
57275f4acf02e3d5a908672dcbda0922c7307f18
[ "Apache-2.0" ]
1
2019-04-08T07:44:09.000Z
2019-04-08T07:44:09.000Z
Exporters/Blender/src/babylon-js/exporter_settings_panel.py
harunpehlivan/Babylon.js
57275f4acf02e3d5a908672dcbda0922c7307f18
[ "Apache-2.0" ]
null
null
null
Exporters/Blender/src/babylon-js/exporter_settings_panel.py
harunpehlivan/Babylon.js
57275f4acf02e3d5a908672dcbda0922c7307f18
[ "Apache-2.0" ]
1
2019-04-08T07:49:27.000Z
2019-04-08T07:49:27.000Z
from .package_level import * import bpy # Panel displayed in Scene Tab of properties, so settings can be saved in a .blend file class ExporterSettingsPanel(bpy.types.Panel): bl_label = get_title() bl_space_type = 'PROPERTIES' bl_region_type = 'WINDOW' bl_context = 'scene' bpy.types.Scene.export_on...
36.026316
128
0.635135
d273ecebddb6d0970334840a297d5346b4190ec1
186
py
Python
LEVEL1/제일작은수제거하기/solution.py
seunghwanly/CODING-TEST
a820da950c163d399594770199aa2e782d1fbbde
[ "MIT" ]
null
null
null
LEVEL1/제일작은수제거하기/solution.py
seunghwanly/CODING-TEST
a820da950c163d399594770199aa2e782d1fbbde
[ "MIT" ]
null
null
null
LEVEL1/제일작은수제거하기/solution.py
seunghwanly/CODING-TEST
a820da950c163d399594770199aa2e782d1fbbde
[ "MIT" ]
null
null
null
def solution(arr): if len(arr) > 1: item = min(arr) del arr[arr.index(item)] return arr else: return [-1] print(solution([4,3,2,1])) print(solution([4]))
20.666667
32
0.548387
f1fd337a65bb09ced55edf055a2ba205b2a75705
3,905
py
Python
snoop/content_types.py
hoover/snoop
bd49b081418a8a01a1e469ab17759a4c5b20d850
[ "MIT" ]
5
2017-01-03T00:52:03.000Z
2019-10-27T03:32:35.000Z
snoop/content_types.py
hoover/snoop
bd49b081418a8a01a1e469ab17759a4c5b20d850
[ "MIT" ]
25
2016-08-21T11:26:44.000Z
2018-03-13T12:19:20.000Z
snoop/content_types.py
hoover/snoop
bd49b081418a8a01a1e469ab17759a4c5b20d850
[ "MIT" ]
6
2016-09-27T13:03:45.000Z
2019-10-27T03:32:30.000Z
import mimetypes import magic mimetypes.add_type('message/x-emlx', '.emlx') mimetypes.add_type('message/x-emlxpart', '.emlxpart') mimetypes.add_type('application/vnd.ms-outlook', '.msg') mimetypes.add_type('application/x-hoover-pst', '.pst') mimetypes.add_type('application/x-hoover-pst', '.ost') mimetypes.add_type('ap...
41.542553
87
0.714725
2f840aca672bc20d880ebd6129769eebdc3f89f5
903
py
Python
ctrl/cmorph/old/cmorph_regrid.py
markmuetz/cosmic
f215c499bfc8f1d717dea6aa78a58632a4e89113
[ "Apache-2.0" ]
null
null
null
ctrl/cmorph/old/cmorph_regrid.py
markmuetz/cosmic
f215c499bfc8f1d717dea6aa78a58632a4e89113
[ "Apache-2.0" ]
null
null
null
ctrl/cmorph/old/cmorph_regrid.py
markmuetz/cosmic
f215c499bfc8f1d717dea6aa78a58632a4e89113
[ "Apache-2.0" ]
1
2021-01-26T02:25:48.000Z
2021-01-26T02:25:48.000Z
import sys from pathlib import Path import iris from cosmic.util import load_module, filepath_regrid def main(year, month): target_filepath = Path(f'/gws/nopw/j04/cosmic/mmuetz/data/u-al508/ap9.pp/precip_200501/al508a.p9200501.asia_precip.nc') cmorph_datadir = Path(f'/gws/nopw/j04/cosmic/mmuetz/data/cmorph...
33.444444
123
0.744186
74aa3d3bb96a81c9140e5a38d934c9e9cfee3e46
226
py
Python
Dict comp/aula67.py
pinheirogus/Curso-Python-Udemy
d6d52320426172e924081b9df619490baa8c6016
[ "MIT" ]
1
2021-09-01T01:58:13.000Z
2021-09-01T01:58:13.000Z
Dict comp/aula67.py
pinheirogus/Curso-Python-Udemy
d6d52320426172e924081b9df619490baa8c6016
[ "MIT" ]
null
null
null
Dict comp/aula67.py
pinheirogus/Curso-Python-Udemy
d6d52320426172e924081b9df619490baa8c6016
[ "MIT" ]
null
null
null
lista = [ ('chave', 'valor'), ('chave2', 'valor2'), ('chave3', 3), ] # d1 = { x: y*2 for x, y in lista} # d1 = { x.upper(): y.upper()*2 for x, y in lista} d1 = { f'chave_{x}': x**2 for x in range(5)} print(d1)
16.142857
50
0.482301
ae7a4dfbe07b2f2204d8e33df76264e85d3847fe
419
py
Python
sudoku/src/main.py
klesnkri/sudoku-solver-aco
10170bf2a66877811fe78a65d45cb4d752c0e6f2
[ "MIT" ]
2
2021-05-14T14:51:37.000Z
2022-02-19T16:59:41.000Z
sudoku/src/main.py
christee8/sudoku-solver-aco
10170bf2a66877811fe78a65d45cb4d752c0e6f2
[ "MIT" ]
null
null
null
sudoku/src/main.py
christee8/sudoku-solver-aco
10170bf2a66877811fe78a65d45cb4d752c0e6f2
[ "MIT" ]
1
2021-06-06T20:32:15.000Z
2021-06-06T20:32:15.000Z
import sys from App import App def main(): # Command line arguments if len(sys.argv) != 3 or (sys.argv[2] != "gui" and sys.argv[2] != "console"): print("usage: " + sys.argv[0] + " <input sudoku filename> <gui/console>") return sudoku_file = sys.argv[1] gui_active = (sys.argv[2] == "g...
19.952381
81
0.582339
0ec5dfb1b134a65644022f2513b464c8072c835b
253
py
Python
manage.py
klebercode/protocolle
31b464e41e20b77d3bce2a4688b0f4f7dff2c3af
[ "MIT" ]
null
null
null
manage.py
klebercode/protocolle
31b464e41e20b77d3bce2a4688b0f4f7dff2c3af
[ "MIT" ]
null
null
null
manage.py
klebercode/protocolle
31b464e41e20b77d3bce2a4688b0f4f7dff2c3af
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "protocolle.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
23
74
0.774704
2071dd49fd312292976a8179dd06fcde8a122b3d
10,932
py
Python
ZabbixAlertYTWorkflow.py
devopshq/zabbix-youtrack-action
e4d8354e059687cc0ae13b1c5c25bf70de03c31f
[ "MIT" ]
5
2017-05-20T21:12:47.000Z
2021-03-26T14:53:09.000Z
ZabbixAlertYTWorkflow.py
devopshq/zabbix-youtrack-action
e4d8354e059687cc0ae13b1c5c25bf70de03c31f
[ "MIT" ]
null
null
null
ZabbixAlertYTWorkflow.py
devopshq/zabbix-youtrack-action
e4d8354e059687cc0ae13b1c5c25bf70de03c31f
[ "MIT" ]
3
2016-07-30T11:38:00.000Z
2019-02-28T10:39:28.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # (c) DevOpsHQ, 2016 # Integration YouTrack and Zabbix alerts. import yaml from pyzabbix import ZabbixAPI import sys import urllib import logging import time from youtrack.connection import Connection import re from requests.packages.urllib3 import disable_warnings d...
36.198675
145
0.554885
f614c47b3a151d4e70d4c3cda4b3c4265d64f7cd
5,186
py
Python
ironic_python_agent/openstack/common/ironic_lib/utils.py
faizan-barmawer/ironic-python-agent
589b198e960a69fc9d71825fdf204cbbd59f39dd
[ "Apache-2.0" ]
null
null
null
ironic_python_agent/openstack/common/ironic_lib/utils.py
faizan-barmawer/ironic-python-agent
589b198e960a69fc9d71825fdf204cbbd59f39dd
[ "Apache-2.0" ]
null
null
null
ironic_python_agent/openstack/common/ironic_lib/utils.py
faizan-barmawer/ironic-python-agent
589b198e960a69fc9d71825fdf204cbbd59f39dd
[ "Apache-2.0" ]
null
null
null
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Justin Santa Barbara # Copyright (c) 2012 NTT DOCOMO, INC. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not...
34.805369
78
0.625916
d10e8863134faadc53cd2057a122c4e6b512fc9b
5,698
py
Python
sdk/python/pulumi_azure_native/network/v20200801/get_route_filter_rule.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20200801/get_route_filter_rule.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20200801/get_route_filter_rule.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 __a...
35.6125
158
0.647596
58f20085decd164e0fc59b01031be872e82942d8
1,216
py
Python
test/test_videos_service_api.py
stanionascu/python-embyapi
a3f7aa49aea4052277cc43605c0d89bc6ff21913
[ "BSD-3-Clause" ]
null
null
null
test/test_videos_service_api.py
stanionascu/python-embyapi
a3f7aa49aea4052277cc43605c0d89bc6ff21913
[ "BSD-3-Clause" ]
null
null
null
test/test_videos_service_api.py
stanionascu/python-embyapi
a3f7aa49aea4052277cc43605c0d89bc6ff21913
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 """ Emby Server API Explore the Emby Server API # noqa: E501 OpenAPI spec version: 4.1.1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import embyapi from embyapi.api.videos_service_api import Vid...
22.109091
73
0.676809
7a8ee979453b2a33c07f33d4054b781bb33c56d0
1,073
py
Python
peas/server/reconnect_task.py
13thProgression/peas-blockchain
8e058cbfe0c1ab73f7c1ec41bedb39071c63141c
[ "Apache-2.0" ]
2
2021-08-16T17:45:07.000Z
2021-09-18T19:00:58.000Z
peas/server/reconnect_task.py
13thProgression/peas-blockchain
8e058cbfe0c1ab73f7c1ec41bedb39071c63141c
[ "Apache-2.0" ]
4
2021-09-26T15:50:20.000Z
2021-10-06T06:18:51.000Z
peas/server/reconnect_task.py
13thProgression/peas-blockchain
8e058cbfe0c1ab73f7c1ec41bedb39071c63141c
[ "Apache-2.0" ]
3
2021-09-29T19:08:41.000Z
2022-03-15T08:47:28.000Z
import asyncio import socket from peas.server.server import PeasServer from peas.types.peer_info import PeerInfo def start_reconnect_task(server: PeasServer, peer_info_arg: PeerInfo, log, auth: bool): """ Start a background task that checks connection and reconnects periodically to a peer. """ peer_i...
37
106
0.643989
51148bca23f588e0b7392640d1c53e0333ab77fe
1,134
py
Python
speakeasy/winenv/defs/windows/netapi32.py
mwilliams31/speakeasy
7b75f767017f665d66e6736f9f42cd32c1f9476d
[ "MIT" ]
null
null
null
speakeasy/winenv/defs/windows/netapi32.py
mwilliams31/speakeasy
7b75f767017f665d66e6736f9f42cd32c1f9476d
[ "MIT" ]
null
null
null
speakeasy/winenv/defs/windows/netapi32.py
mwilliams31/speakeasy
7b75f767017f665d66e6736f9f42cd32c1f9476d
[ "MIT" ]
null
null
null
# Copyright (C) 2021 FireEye, Inc. All Rights Reserved. from speakeasy.struct import EmuStruct, Ptr import ctypes as ct NERR_Success = 0 ERROR_INVALID_LEVEL = 0x7C class WKSTA_INFO_100(EmuStruct): def __init__(self, ptr_size): super().__init__(ptr_size) self.wki_platform_id = Ptr self.wk...
27.658537
55
0.671958
eb943ea0b3ef035285705a00961cc5940adf0958
25,453
py
Python
src/tests/conftest.py
wjwoodson/pretalx
935d0295e408a3518bf472147cc16722c44fe3fb
[ "Apache-2.0" ]
1
2021-06-19T02:33:29.000Z
2021-06-19T02:33:29.000Z
src/tests/conftest.py
AKJK-Internet-32002/pretalx
062177a8a361dd57a8889e2dd422beec505881a9
[ "Apache-2.0" ]
null
null
null
src/tests/conftest.py
AKJK-Internet-32002/pretalx
062177a8a361dd57a8889e2dd422beec505881a9
[ "Apache-2.0" ]
null
null
null
import datetime as dt import pytest import pytz from django.core import management from django.core.files.uploadedfile import SimpleUploadedFile from django.utils.timezone import now from django_scopes import scope, scopes_disabled from pretalx.event.models import Event, Organiser, Team, TeamInvite from pretalx.mail....
27.847921
87
0.636664
4f16eb57653ebd4735974abc23e2cfc478c28867
18,288
py
Python
app/ctaStrategy/ctaHistoryData.py
Michael-JC/inverstment_analysis
724bcda7606d3049e6299f7f3390872954f6628f
[ "Apache-2.0" ]
1
2021-05-25T06:34:13.000Z
2021-05-25T06:34:13.000Z
app/ctaStrategy/ctaHistoryData.py
Michael-JC/inverstment_analysis
724bcda7606d3049e6299f7f3390872954f6628f
[ "Apache-2.0" ]
null
null
null
app/ctaStrategy/ctaHistoryData.py
Michael-JC/inverstment_analysis
724bcda7606d3049e6299f7f3390872954f6628f
[ "Apache-2.0" ]
null
null
null
# encoding: UTF-8 """ 本模块中主要包含: 1. 从通联数据下载历史行情的引擎 2. 用来把MultiCharts导出的历史数据载入到MongoDB中用的函数 3. 增加从通达信导出的历史数据载入到MongoDB中的函数 """ from datetime import datetime, timedelta from time import time from multiprocessing.pool import ThreadPool import pymongo from vnpy.data.datayes import DatayesApi from trader.vtFunction impor...
36
117
0.481026
09a5ae08d304994c4bd6f597cd6882012a6c7cdd
5,892
py
Python
app/cogs/owner/owner_commands.py
tayron1/Starboard-2
ff83e33e026107d94c306250827373ff2c32aa7d
[ "MIT" ]
null
null
null
app/cogs/owner/owner_commands.py
tayron1/Starboard-2
ff83e33e026107d94c306250827373ff2c32aa7d
[ "MIT" ]
null
null
null
app/cogs/owner/owner_commands.py
tayron1/Starboard-2
ff83e33e026107d94c306250827373ff2c32aa7d
[ "MIT" ]
null
null
null
import io import textwrap import time import traceback from contextlib import redirect_stdout import discord from asyncpg.exceptions import InterfaceError from discord.ext import commands from ... import checks, menus, utils from ...classes.bot import Bot class Owner(commands.Cog): "Owner-only commands" de...
31.508021
78
0.492702
b259bdd63388720b6b17c5711e3bfab2cb736754
1,981
py
Python
VPython/backup/7/HeliumAtom.py
programizer/HeliumAtom
01ba9cfe930f40c137b2232447fc4f67b61e9275
[ "MIT" ]
null
null
null
VPython/backup/7/HeliumAtom.py
programizer/HeliumAtom
01ba9cfe930f40c137b2232447fc4f67b61e9275
[ "MIT" ]
null
null
null
VPython/backup/7/HeliumAtom.py
programizer/HeliumAtom
01ba9cfe930f40c137b2232447fc4f67b61e9275
[ "MIT" ]
null
null
null
# from math import * # from visual import * # from visual.graph import * from vpython import * # import vpython scene.fullscreen = True G = 0.5 spheres = [ sphere(pos=vector(0,0,0),radius =0.6,color=color.red,charge=sqrt(200),mass=7200,velocity=vector(0,0,0),a = vector(0,0,0),trail=curve(color=color.red)...
31.951613
152
0.596668
7ade01ea7ac83b8e61dc4944ad49c197b8b4a198
4,568
py
Python
experiments/steven-images/ddpg_spatial.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/steven-images/ddpg_spatial.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/steven-images/ddpg_spatial.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import rlkit.misc.hyperparameter as hyp import rlkit.torch.pytorch_util as ptu from rlkit.launchers.launcher_util import run_experiment from torch import nn as nn from rlkit.torch.networks.experimental import HuberLoss from rlkit.torch.ddpg.feat_point_ddpg import FeatPointDDPG from rlkit.torch.networks import FeatPoint...
29.470968
75
0.611646
b1fb1146e425b6cd89f062575e2792fad50a1050
3,417
py
Python
src/cmds/netspace_funcs.py
13767849/chia-blockchain
ad7d7e0cced7f2f6deddc9e006dbaeee6dab8f66
[ "Apache-2.0" ]
null
null
null
src/cmds/netspace_funcs.py
13767849/chia-blockchain
ad7d7e0cced7f2f6deddc9e006dbaeee6dab8f66
[ "Apache-2.0" ]
null
null
null
src/cmds/netspace_funcs.py
13767849/chia-blockchain
ad7d7e0cced7f2f6deddc9e006dbaeee6dab8f66
[ "Apache-2.0" ]
null
null
null
import aiohttp from src.rpc.full_node_rpc_client import FullNodeRpcClient from src.util.byte_types import hexstr_to_bytes from src.util.config import load_config from src.util.default_root import DEFAULT_ROOT_PATH from src.util.ints import uint16 async def netstorge_async(rpc_port: int, delta_block_height: str, star...
44.960526
107
0.614282
990b0f51f2e563f1e3f053091a8c20837b22851d
21,234
py
Python
T5_shared.py
Verylovenlp/MinTL-SKKU
15b5cb870c7d6dcd0f5d895aac2806539cc5101f
[ "MIT" ]
60
2020-09-24T06:17:49.000Z
2022-02-24T08:44:52.000Z
T5_shared.py
Verylovenlp/MinTL-SKKU
15b5cb870c7d6dcd0f5d895aac2806539cc5101f
[ "MIT" ]
6
2020-11-11T02:04:23.000Z
2022-03-02T23:58:01.000Z
T5_shared.py
salesforce/CASPI
3e4cd23f4f3d1fa7132ba89805366472c9fe5983
[ "BSD-3-Clause" ]
13
2020-09-28T07:29:05.000Z
2022-02-06T15:04:27.000Z
from transformers import (AdamW, T5Tokenizer, T5ForConditionalGeneration, WEIGHTS_NAME,CONFIG_NAME) from copy import deepcopy import torch from torch.nn import CrossEntropyLoss import time class MiniT5(T5ForConditionalGeneration): def __init__(self, config): super().__init__(config) #make a copy of...
45.468951
236
0.607658
1015ae15731d32ea6468eb098985d6db3acfabd6
10
py
Python
test_data/parse_retree/expected/character_set/complementing/suffix_dash/source.py
aas-core-works/aas-core-codegen
afec2cf363b6cb69816e7724a2b58626e2165869
[ "MIT" ]
5
2021-12-29T12:55:34.000Z
2022-03-01T17:57:21.000Z
test_data/parse_retree/expected/character_set/complementing/suffix_dash/source.py
aas-core-works/aas-core-codegen
afec2cf363b6cb69816e7724a2b58626e2165869
[ "MIT" ]
10
2021-12-29T02:15:55.000Z
2022-03-09T11:04:22.000Z
test_data/parse_retree/expected/character_set/complementing/suffix_dash/source.py
aas-core-works/aas-core-codegen
afec2cf363b6cb69816e7724a2b58626e2165869
[ "MIT" ]
2
2021-12-29T01:42:12.000Z
2022-02-15T13:46:33.000Z
"[^a-z-]"
5
9
0.2
58dafc08268a1a80cb3439805d5aaaa73e99cf05
132
py
Python
config.py
delldu/SCNN
a6fadfbd9e593a28684dcaf29ca8ad425c1c700f
[ "MIT" ]
1
2019-09-04T10:34:53.000Z
2019-09-04T10:34:53.000Z
config.py
delldu/SCNN
a6fadfbd9e593a28684dcaf29ca8ad425c1c700f
[ "MIT" ]
null
null
null
config.py
delldu/SCNN
a6fadfbd9e593a28684dcaf29ca8ad425c1c700f
[ "MIT" ]
null
null
null
Dataset_Path = dict( CULane_path = "/home/lion/Dataset/CULane/data/CULane", Tusimple_path = "/home/lion/Dataset/tusimple" )
26.4
58
0.712121
1fab4aa952e3c0cfd4c7853024159ef86fa37499
114,523
py
Python
use_case_WebScrapingTextData.py
lilulamili/STATY_dev_test
7353572ec626647a69694f82d483039b6e1f5c40
[ "Apache-2.0" ]
null
null
null
use_case_WebScrapingTextData.py
lilulamili/STATY_dev_test
7353572ec626647a69694f82d483039b6e1f5c40
[ "Apache-2.0" ]
null
null
null
use_case_WebScrapingTextData.py
lilulamili/STATY_dev_test
7353572ec626647a69694f82d483039b6e1f5c40
[ "Apache-2.0" ]
2
2021-12-15T18:24:56.000Z
2021-12-15T19:07:41.000Z
#################### # IMPORT LIBRARIES # #################### from selectors import BaseSelector import streamlit as st import pandas as pd import numpy as np import plotly as dd import plotly.express as px import seaborn as sns import matplotlib.pyplot as plt import matplotlib.font_manager import plotly...
67.525354
9,951
0.541961
912295f351682079d811a627513285af70f638e6
3,072
py
Python
bin/gftools-update-families.py
hyvyys/gftools
85ef924f9307f290be08b15115805cc5e3287d33
[ "Apache-2.0" ]
150
2018-07-04T12:53:34.000Z
2022-03-31T21:16:10.000Z
bin/gftools-update-families.py
hyvyys/gftools
85ef924f9307f290be08b15115805cc5e3287d33
[ "Apache-2.0" ]
365
2018-06-28T19:35:22.000Z
2022-03-30T17:07:56.000Z
bin/gftools-update-families.py
hyvyys/gftools
85ef924f9307f290be08b15115805cc5e3287d33
[ "Apache-2.0" ]
53
2018-07-20T01:47:44.000Z
2022-01-31T16:43:25.000Z
#!/usr/bin/env python3 # Copyright 2016 The Font Bakery Authors. # Copyright 2017 The Google Font Tools Authors # # 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/l...
35.72093
99
0.657552
91358f34676ca4623ec13cce4ba102738cc821db
742
py
Python
lldb/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/TestConcurrentDelaySignalWatch.py
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
305
2019-09-14T17:16:05.000Z
2022-03-31T15:05:20.000Z
lldb/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/TestConcurrentDelaySignalWatch.py
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
14
2020-02-03T23:39:51.000Z
2021-07-20T16:24:25.000Z
lldb/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events/TestConcurrentDelaySignalWatch.py
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
24
2019-10-03T11:22:11.000Z
2022-01-25T09:59:30.000Z
import unittest2 from lldbsuite.test.decorators import * from lldbsuite.test.concurrent_base import ConcurrentEventsBase from lldbsuite.test.lldbtest import TestBase @skipIfWindows class ConcurrentDelaySignalWatch(ConcurrentEventsBase): mydir = ConcurrentEventsBase.compute_mydir(__file__) @skipIfFreeBSD ...
30.916667
82
0.738544
dcb9477eacc34042874ebb3d11b8f0cd6b3f4ee8
5,943
py
Python
simple_qt/gui/goto_frame.py
zleffke/nexstar
8676fe6184b89e1ee0399da207b11e9d9c8d0bb4
[ "MIT" ]
null
null
null
simple_qt/gui/goto_frame.py
zleffke/nexstar
8676fe6184b89e1ee0399da207b11e9d9c8d0bb4
[ "MIT" ]
null
null
null
simple_qt/gui/goto_frame.py
zleffke/nexstar
8676fe6184b89e1ee0399da207b11e9d9c8d0bb4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 #-- coding: utf-8 -- from PyQt5 import QtCore from PyQt5 import Qt from nexstar import * class goto_frame(Qt.QFrame): def __init__(self, parent=None): super(goto_frame, self).__init__() self.parent = parent self.initUI() def initUI(self): self.setFrameSh...
39.62
120
0.659936
3fc4ed575afd56a4dcc20ea5bd196c4097a08511
1,550
py
Python
3_estrutura_de_repeticao/43_cardapio_lanchonete.py
cecilmalone/lista_de_exercicios_pybr
6d7c4aeddf8d1b1d839ad05ef5b5813a8fe611b5
[ "MIT" ]
null
null
null
3_estrutura_de_repeticao/43_cardapio_lanchonete.py
cecilmalone/lista_de_exercicios_pybr
6d7c4aeddf8d1b1d839ad05ef5b5813a8fe611b5
[ "MIT" ]
null
null
null
3_estrutura_de_repeticao/43_cardapio_lanchonete.py
cecilmalone/lista_de_exercicios_pybr
6d7c4aeddf8d1b1d839ad05ef5b5813a8fe611b5
[ "MIT" ]
null
null
null
""" 43. O cardápio de uma lanchonete é o seguinte: Especificação Código Preço Cachorro Quente 100 R$ 1,20 Bauru Simples 101 R$ 1,30 Bauru com ovo 102 R$ 1,50 Hambúrguer 103 R$ 1,20 Cheeseburguer 104 R$ 1,30 Refrigerante 105 R$ 1,00 Faça um program...
37.804878
80
0.579355
ae44aa1313c1bd612e44f5582947192de0c55da7
4,056
py
Python
scripts/demo.py
jetsunwhitton/pico-ner-relations
a11d48f2bd7a8ede73865f13123862262f5227d8
[ "Apache-2.0" ]
null
null
null
scripts/demo.py
jetsunwhitton/pico-ner-relations
a11d48f2bd7a8ede73865f13123862262f5227d8
[ "Apache-2.0" ]
null
null
null
scripts/demo.py
jetsunwhitton/pico-ner-relations
a11d48f2bd7a8ede73865f13123862262f5227d8
[ "Apache-2.0" ]
null
null
null
import spacy_streamlit, spacy, operator import streamlit as st from spacy import displacy from spacy.pipeline import merge_entities # make the factory work from rel_pipe import make_relation_extractor, score_relations # make the config work from rel_model import create_relation_model, create_classification_layer, creat...
41.387755
225
0.708826
2564c9ff1fd1030d40199b21786eb111492f0536
3,008
py
Python
superlists/functional_tests/base.py
alvarocneto/TDD_python
d9646802f08a18f3aa4743bbe48f8a22eebf07f7
[ "MIT" ]
null
null
null
superlists/functional_tests/base.py
alvarocneto/TDD_python
d9646802f08a18f3aa4743bbe48f8a22eebf07f7
[ "MIT" ]
null
null
null
superlists/functional_tests/base.py
alvarocneto/TDD_python
d9646802f08a18f3aa4743bbe48f8a22eebf07f7
[ "MIT" ]
null
null
null
import os import time from django.conf import settings from django.contrib.auth import (BACKEND_SESSION_KEY, SESSION_KEY, get_user_model) from django.contrib.sessions.backends.db import SessionStore from django.contrib.staticfiles.testing import StaticLiveServerTestCase from selenium i...
34.976744
87
0.674202
cd32c2f4b4816f2614ab859a372240546577a239
5,640
py
Python
pyprof/prof/misc.py
ethem-kinginthenorth/PyProf
5430eb3a95f9afc4443eb329f2e831df62cecfe6
[ "Apache-2.0" ]
null
null
null
pyprof/prof/misc.py
ethem-kinginthenorth/PyProf
5430eb3a95f9afc4443eb329f2e831df62cecfe6
[ "Apache-2.0" ]
null
null
null
pyprof/prof/misc.py
ethem-kinginthenorth/PyProf
5430eb3a95f9afc4443eb329f2e831df62cecfe6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/li...
22.56
97
0.542553
ecbf80fdbd8c15bfdbf3d6ddf2b1edebe1d5480d
4,246
py
Python
docs/examples/use_cases/paddle/tsm/infer.py
cyyever/DALI
e2b2d5a061da605e3e9e681017a7b2d53fe41a62
[ "ECL-2.0", "Apache-2.0" ]
3,967
2018-06-19T04:39:09.000Z
2022-03-31T10:57:53.000Z
docs/examples/use_cases/paddle/tsm/infer.py
cyyever/DALI
e2b2d5a061da605e3e9e681017a7b2d53fe41a62
[ "ECL-2.0", "Apache-2.0" ]
3,494
2018-06-21T07:09:58.000Z
2022-03-31T19:44:51.000Z
docs/examples/use_cases/paddle/tsm/infer.py
cyyever/DALI
e2b2d5a061da605e3e9e681017a7b2d53fe41a62
[ "ECL-2.0", "Apache-2.0" ]
531
2018-06-19T23:53:10.000Z
2022-03-30T08:35:59.000Z
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # Copyright (c) 2017-2019, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # htt...
38.252252
121
0.653085
40b82c2bfbf3cb2f4cd840fa06e5c1ad4f1746ff
10,550
py
Python
trabalho01.py
paulazomig/INE5609-DataStructure
a1d979784063f7280516604d80793abb7ba69c33
[ "MIT" ]
null
null
null
trabalho01.py
paulazomig/INE5609-DataStructure
a1d979784063f7280516604d80793abb7ba69c33
[ "MIT" ]
null
null
null
trabalho01.py
paulazomig/INE5609-DataStructure
a1d979784063f7280516604d80793abb7ba69c33
[ "MIT" ]
1
2021-08-24T11:09:05.000Z
2021-08-24T11:09:05.000Z
class Nodo: def __init__(self, id:int, dado=None, anterior=None, posterior=None): self.__id = id self.__dado = dado self.__anterior = anterior self.__posterior = posterior @property def id(self): return self.__id @id.setter def id(self, id): se...
30.668605
92
0.622275
38d32d3e18274862d02b63e43a2ae970215ae5ac
28,677
py
Python
gropylib.py
rpkarandev/propylib
e2813b045761e43515cdb93859342566bc3edbbb
[ "CC0-1.0" ]
null
null
null
gropylib.py
rpkarandev/propylib
e2813b045761e43515cdb93859342566bc3edbbb
[ "CC0-1.0" ]
null
null
null
gropylib.py
rpkarandev/propylib
e2813b045761e43515cdb93859342566bc3edbbb
[ "CC0-1.0" ]
null
null
null
r#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Apr 3 10:10:05 2019 functions to handle gromacs output files @author: karan """ import re from glob import glob import numpy as np import pandas as pd def assign_mass(s): if (s=="C"): return 12.0107 elif (s=="H"): return 1.00...
45.8832
249
0.481536
d32ea621d5d0dd51fdba343f3af6ccd0e65733d1
6,690
py
Python
ZipFolder/Fetch Shapefiles.py
mattCensus/PerlScripts
d2643d99abc3f0647ebfbd41f7e5faa704da3e91
[ "MIT" ]
null
null
null
ZipFolder/Fetch Shapefiles.py
mattCensus/PerlScripts
d2643d99abc3f0647ebfbd41f7e5faa704da3e91
[ "MIT" ]
null
null
null
ZipFolder/Fetch Shapefiles.py
mattCensus/PerlScripts
d2643d99abc3f0647ebfbd41f7e5faa704da3e91
[ "MIT" ]
null
null
null
''' This script will download TIGER data shapefiles from the Census FTP site. It can be used to download a set of geographies defined in GEO_TYPES_LIST, or can be used to fetch files for a single state and/or single geography type. Pass an -s argument to limit by state, pass a -g argument to limit to a single geog...
32.955665
79
0.624664
0ac9ddaf8297571d4b89d9f57c35aa4196098fd7
13,956
py
Python
eoxserver/services/ows/wps/parameters/complexdata.py
ESA-VirES/eoxserver
d7b65adf9317538b267d5cbb1281acb72bc0de2c
[ "OML" ]
1
2017-11-21T22:23:30.000Z
2017-11-21T22:23:30.000Z
eoxserver/services/ows/wps/parameters/complexdata.py
ESA-VirES/eoxserver
d7b65adf9317538b267d5cbb1281acb72bc0de2c
[ "OML" ]
null
null
null
eoxserver/services/ows/wps/parameters/complexdata.py
ESA-VirES/eoxserver
d7b65adf9317538b267d5cbb1281acb72bc0de2c
[ "OML" ]
null
null
null
#------------------------------------------------------------------------------- # # WPS Complex Data type # # Project: EOxServer <http://eoxserver.org> # Authors: Fabian Schindler <fabian.schindler@eox.at> # Martin Paces <martin.paces@eox.at> # #---------------------------------------------------------------...
37.923913
91
0.602178
4b567eca852dd7e2aa70a46416b97222852e8651
292
py
Python
onlinecourse/migrations/0003_delete_question.py
spacemc2/ProjectFinalDjango
0754120fd1ac742582acafdd77ed66026ab90104
[ "Apache-2.0" ]
null
null
null
onlinecourse/migrations/0003_delete_question.py
spacemc2/ProjectFinalDjango
0754120fd1ac742582acafdd77ed66026ab90104
[ "Apache-2.0" ]
null
null
null
onlinecourse/migrations/0003_delete_question.py
spacemc2/ProjectFinalDjango
0754120fd1ac742582acafdd77ed66026ab90104
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.3 on 2022-01-07 02:59 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('onlinecourse', '0002_question'), ] operations = [ migrations.DeleteModel( name='Question', ), ]
17.176471
47
0.599315
5cf1d1c6ed77517db3b301c5517161288f9c0892
3,621
py
Python
fyplot/dict_plot.py
intelligent-soft-robots/fyplot
642ba620105ee2a177cd82d147561d235bf30ad6
[ "BSD-3-Clause" ]
null
null
null
fyplot/dict_plot.py
intelligent-soft-robots/fyplot
642ba620105ee2a177cd82d147561d235bf30ad6
[ "BSD-3-Clause" ]
null
null
null
fyplot/dict_plot.py
intelligent-soft-robots/fyplot
642ba620105ee2a177cd82d147561d235bf30ad6
[ "BSD-3-Clause" ]
null
null
null
# Copyright(c) 2020 Max Planck Gesellschaft # Author: Vincent Berenz from pyqtgraph.Qt import QtGui, QtCore, QtWidgets import pyqtgraph as pg from collections import deque import threading,math,time pg.setConfigOptions(antialias=True) class Config: def __init__(self): self.channels = [] self.sl...
25.864286
92
0.605634
a24937bab183e54df40e931f2f4621ec22ea83c4
18,011
py
Python
src/test/py/bazel/test_wrapper_test.py
sevki/bazel
b18915752a69fbbc6ed94e1710198167593565fc
[ "Apache-2.0" ]
null
null
null
src/test/py/bazel/test_wrapper_test.py
sevki/bazel
b18915752a69fbbc6ed94e1710198167593565fc
[ "Apache-2.0" ]
null
null
null
src/test/py/bazel/test_wrapper_test.py
sevki/bazel
b18915752a69fbbc6ed94e1710198167593565fc
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 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...
34.972816
80
0.574149
ef1f2e30baf75627f1814f8e6ce17027a9bb0977
187,767
py
Python
Mini-Project-III/Script/Neural Networks Mini Project-II.py
cankocagil/Neural-Networks
5cb51ccb7dcc8afd30c5745111a87498ec38e006
[ "MIT" ]
null
null
null
Mini-Project-III/Script/Neural Networks Mini Project-II.py
cankocagil/Neural-Networks
5cb51ccb7dcc8afd30c5745111a87498ec38e006
[ "MIT" ]
null
null
null
Mini-Project-III/Script/Neural Networks Mini Project-II.py
cankocagil/Neural-Networks
5cb51ccb7dcc8afd30c5745111a87498ec38e006
[ "MIT" ]
null
null
null
# Necessary imports : import numpy as np import matplotlib.pyplot as plt import h5py # %% # Necessary imports : #import numpy as np #import matplotlib.pyplot as plt #import h5py import math import pandas as pd import seaborn as sns import sys question = input('Please enter question number 1/3 :') def can_kocagi...
39.916454
227
0.506292
07efd382cad29753912a8dca26eb897c239dfb3c
2,045
py
Python
wsnsims/flower/cell.py
king4arabs/wsnsims2
13d4c49ea2ae9de7ea42d4aaa8d117b3368cda20
[ "MIT" ]
2
2019-11-01T08:42:42.000Z
2020-01-02T00:17:39.000Z
wsnsims/flower/cell.py
king4arabs/wsnsims2
13d4c49ea2ae9de7ea42d4aaa8d117b3368cda20
[ "MIT" ]
null
null
null
wsnsims/flower/cell.py
king4arabs/wsnsims2
13d4c49ea2ae9de7ea42d4aaa8d117b3368cda20
[ "MIT" ]
1
2020-01-02T02:46:17.000Z
2020-01-02T02:46:17.000Z
import numpy as np from wsnsims.core import point def side_length(environment): """ :param environment: :type environment: core.environment.Environment :return: pq.meter """ return environment.comms_range / np.sqrt(2) class Cell(object): """ Defines a cell in the grid """ count =...
25.246914
77
0.61467
6c2b3109f5602dd1a5d9ada1b6953c78bb1fcb17
6,762
py
Python
pygama/io/orca_helper.py
rauscher1995/pygama
7357e3fb0be7c6712010e4925d863b0f0f843c27
[ "Apache-2.0" ]
null
null
null
pygama/io/orca_helper.py
rauscher1995/pygama
7357e3fb0be7c6712010e4925d863b0f0f843c27
[ "Apache-2.0" ]
null
null
null
pygama/io/orca_helper.py
rauscher1995/pygama
7357e3fb0be7c6712010e4925d863b0f0f843c27
[ "Apache-2.0" ]
1
2021-12-18T14:43:33.000Z
2021-12-18T14:43:33.000Z
import plistlib import sys import pandas as pd import numpy as np def parse_header(xmlfile): """ Opens the given file for binary read ('rb'), then grabs the first 8 bytes The first 4 bytes (1 long) of an orca data file are the total length in longs of the record The next 4 bytes (1 long) is the len...
35.036269
104
0.617125
42b61c317c4e3af41140df8e8a3ecfc2558530b4
93,412
py
Python
Lib/test/test_math.py
olegasics/cpython
769d7d0c66c5b86e2dd29b9ce67ac2daaab1bb38
[ "0BSD" ]
7
2021-08-07T07:30:24.000Z
2022-03-10T22:48:04.000Z
Lib/test/test_math.py
olegasics/cpython
769d7d0c66c5b86e2dd29b9ce67ac2daaab1bb38
[ "0BSD" ]
16
2018-06-03T02:04:29.000Z
2022-03-01T00:00:50.000Z
Lib/test/test_math.py
olegasics/cpython
769d7d0c66c5b86e2dd29b9ce67ac2daaab1bb38
[ "0BSD" ]
4
2021-07-30T16:40:00.000Z
2022-01-29T13:08:28.000Z
# Python test set -- math module # XXXX Should not do tests around zero only from test.support import run_unittest, verbose, requires_IEEE_754 from test import support import unittest import itertools import decimal import math import os import platform import random import struct import sys eps = 1E-05 NAN = float(...
41.739053
98
0.568342
7a9a8e0f955e87c6b580379552976c8e04e01719
21,004
py
Python
sfcollector/solidfire_graphite_collector.py
scaleoutsean/hcicollector
e30652c0e72f46937f049c7e44e3f8d5516a7b40
[ "Apache-2.0" ]
3
2020-01-30T19:56:27.000Z
2020-06-09T10:50:53.000Z
sfcollector/solidfire_graphite_collector.py
scaleoutsean/hcicollector
e30652c0e72f46937f049c7e44e3f8d5516a7b40
[ "Apache-2.0" ]
15
2020-02-04T14:09:05.000Z
2021-12-26T08:52:53.000Z
sfcollector/solidfire_graphite_collector.py
scaleoutsean/hcicollector
e30652c0e72f46937f049c7e44e3f8d5516a7b40
[ "Apache-2.0" ]
1
2020-02-20T04:21:28.000Z
2020-02-20T04:21:28.000Z
#!/usr/bin/env python # solidfire_graphite_collector.py # # Version 1.0.5 # # Original authors: Colin Bieberstein, Aaron Patten # Contributors: Pablo Luis Zorzoli, Davide Obbi, scaleoutSean # # Copyright (c) 2020 NetApp, Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you m...
43.849687
144
0.646305
a8559d0c21545bf4f541239a0f19c839fc2241fc
3,133
py
Python
MyFirstCodeProjects_GH/recursion_base/anagram.py
MingChuan09/MyFirstCodeProjects
b8cb844c1471d070c0ed7df627ac71e10e4e013a
[ "MIT" ]
null
null
null
MyFirstCodeProjects_GH/recursion_base/anagram.py
MingChuan09/MyFirstCodeProjects
b8cb844c1471d070c0ed7df627ac71e10e4e013a
[ "MIT" ]
null
null
null
MyFirstCodeProjects_GH/recursion_base/anagram.py
MingChuan09/MyFirstCodeProjects
b8cb844c1471d070c0ed7df627ac71e10e4e013a
[ "MIT" ]
null
null
null
""" File: anagram.py Name: 陳名娟 Jenny Chen ---------------------------------- This program recursively finds all the anagram(s) for the word input by user and terminates when the input string matches the EXIT constant defined at line 19 If you correctly implement this program, you should see the number of anagrams for ...
28.225225
93
0.569103
081a337b911ad9aea657fd0ce8b7af0664fd1d70
546
py
Python
convertmask/utils/backup/getArea.py
wwdok/mask2json
403c6b3df677185d5951239d13187b55bda6465a
[ "Apache-2.0" ]
27
2020-06-11T01:47:57.000Z
2022-03-18T01:47:59.000Z
convertmask/utils/backup/getArea.py
wwdok/mask2json
403c6b3df677185d5951239d13187b55bda6465a
[ "Apache-2.0" ]
14
2020-06-11T01:50:41.000Z
2022-03-18T13:11:04.000Z
convertmask/utils/backup/getArea.py
wwdok/mask2json
403c6b3df677185d5951239d13187b55bda6465a
[ "Apache-2.0" ]
5
2020-10-21T01:51:59.000Z
2022-02-28T08:27:32.000Z
''' lanhuage: python Descripttion: version: beta Author: xiaoshuyui Date: 2020-08-17 13:48:46 LastEditors: xiaoshuyui LastEditTime: 2020-10-10 15:41:28 ''' def getAreaOfPolyGonbyVector(points): # 基于向量叉乘计算多边形面积 area = 0 if (len(points) < 3): raise Exception("points is not enough to calculate area...
21
66
0.591575
4d3a9d936d0aba674062add9184bb01e46ae9e86
838
py
Python
admin/products/migrations/0001_initial.py
Branbados/microservices-application
3166defbb3713464138cb936d318de94819bd8f1
[ "MIT" ]
null
null
null
admin/products/migrations/0001_initial.py
Branbados/microservices-application
3166defbb3713464138cb936d318de94819bd8f1
[ "MIT" ]
null
null
null
admin/products/migrations/0001_initial.py
Branbados/microservices-application
3166defbb3713464138cb936d318de94819bd8f1
[ "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2021-07-08 23:15 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Product', fields=[ ('id', models.AutoField(...
27.933333
114
0.557279
e06b82f2eb0926082dc5b212d2b791ef845898d4
54,080
py
Python
fsspec/spec.py
d4l3k/filesystem_spec
bd0f7d2442e1645a696a8ebd6e56c5ebdc8cb960
[ "BSD-3-Clause" ]
1
2021-11-19T11:39:54.000Z
2021-11-19T11:39:54.000Z
fsspec/spec.py
d4l3k/filesystem_spec
bd0f7d2442e1645a696a8ebd6e56c5ebdc8cb960
[ "BSD-3-Clause" ]
null
null
null
fsspec/spec.py
d4l3k/filesystem_spec
bd0f7d2442e1645a696a8ebd6e56c5ebdc8cb960
[ "BSD-3-Clause" ]
null
null
null
import io import logging import os import threading import warnings import weakref from distutils.version import LooseVersion from errno import ESPIPE from glob import has_magic from hashlib import sha256 from .callbacks import _DEFAULT_CALLBACK from .config import apply_config, conf from .dircache import DirCache fro...
33.694704
88
0.561686
529aef37e88a072e5fce72fd562c6cbf8531551b
732
py
Python
sql_app/models.py
IEPEREZ/FastAPItutorial
cac10f4ddb60bb95aa5aa9a2871f019720f53d3d
[ "MIT" ]
null
null
null
sql_app/models.py
IEPEREZ/FastAPItutorial
cac10f4ddb60bb95aa5aa9a2871f019720f53d3d
[ "MIT" ]
null
null
null
sql_app/models.py
IEPEREZ/FastAPItutorial
cac10f4ddb60bb95aa5aa9a2871f019720f53d3d
[ "MIT" ]
null
null
null
from sqlalchemy import Boolean, Column, ForeignKey, Integer, String from sqlalchemy.orm import relationship from database import Base class User(Base): __tablename__ = "users" id = Column(Integer, primary_key=True, index=True) email = Column(String, unique=True, index=True) hashed_password = Column(...
28.153846
67
0.717213
d9b777de06489891ff67e5f8c180b5f8eea1d101
2,574
py
Python
lc/models/torch/lenet300.py
akamaster/anon_submission
105189fc1720a6b0c27df7e686519a6ffa75632b
[ "BSD-3-Clause" ]
40
2020-05-19T01:31:02.000Z
2022-01-28T00:25:33.000Z
lc/models/torch/lenet300.py
akamaster/anon_submission
105189fc1720a6b0c27df7e686519a6ffa75632b
[ "BSD-3-Clause" ]
3
2020-09-09T16:04:17.000Z
2022-03-18T00:59:39.000Z
lc/models/torch/lenet300.py
akamaster/anon_submission
105189fc1720a6b0c27df7e686519a6ffa75632b
[ "BSD-3-Clause" ]
8
2020-09-08T14:11:16.000Z
2022-01-28T00:25:41.000Z
import torch.nn as nn import torch.nn.init as init from collections import OrderedDict from .utils import LambdaLayer __all__ = ['lenet300_classic', 'lenet300_classic_drop', 'lenet300_modern', 'lenet300_modern_drop'] def _weights_init(m): classname = m.__class__.__name__ print(classname) if isinstance(m, ...
34.32
109
0.669386
1cd9069665f600d44f09aed8a540010012676c2e
858
py
Python
wbb/modules/telegraph.py
divyanshmusic/WilliamButcherBot
1d905de0ee7906c530df1b91b1fada7909d5f1e8
[ "MIT" ]
1
2021-12-06T13:59:52.000Z
2021-12-06T13:59:52.000Z
wbb/modules/telegraph.py
divyanshmusic/WilliamButcherBot
1d905de0ee7906c530df1b91b1fada7909d5f1e8
[ "MIT" ]
null
null
null
wbb/modules/telegraph.py
divyanshmusic/WilliamButcherBot
1d905de0ee7906c530df1b91b1fada7909d5f1e8
[ "MIT" ]
2
2022-03-18T17:40:10.000Z
2022-03-24T07:09:44.000Z
from pyrogram import filters from pyrogram.types import Message from wbb import app, telegraph from wbb.core.decorators.errors import capture_err __MODULE__ = "Telegraph" __HELP__ = "/telegraph [Page name]: Paste styled text on telegraph." @app.on_message(filters.command("telegraph")) @capture_err async def paste(_...
28.6
73
0.691142
518038d29c2ce0faf7f863301b91310792219e41
41,201
py
Python
venv/lib/python3.6/site-packages/sqlalchemy/engine/interfaces.py
tchengatcincoai/cryptocoin-prices-compare
f295fecc7213a877bf717af0eb98414e9137b554
[ "MIT" ]
78
2017-08-19T03:46:13.000Z
2020-02-19T04:29:45.000Z
desktop/core/ext-py/SQLAlchemy-1.2.0b3/lib/sqlalchemy/engine/interfaces.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
5
2017-08-21T16:33:08.000Z
2018-06-21T18:37:18.000Z
desktop/core/ext-py/SQLAlchemy-1.2.0b3/lib/sqlalchemy/engine/interfaces.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
43
2018-02-05T23:23:46.000Z
2021-07-28T22:51:42.000Z
# engine/interfaces.py # Copyright (C) 2005-2017 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Define core interfaces used by the engine system.""" from .. import util #...
31.790895
81
0.665324
27db26e3f14b195f96ff70eca888b1ed2bf89363
3,042
py
Python
project/parsers/price.py
nikolay-py/product_optimizer
3d7da484984e63791849ce8a12b285a1ba2daacf
[ "MIT" ]
null
null
null
project/parsers/price.py
nikolay-py/product_optimizer
3d7da484984e63791849ce8a12b285a1ba2daacf
[ "MIT" ]
1
2021-07-05T13:42:19.000Z
2021-07-05T14:14:44.000Z
project/parsers/price.py
nikolay-py/product_optimizer
3d7da484984e63791849ce8a12b285a1ba2daacf
[ "MIT" ]
null
null
null
"""We fill the base with products.""" from typing import Union import bs4 from .crud import create_goods def get_catalog_name(soup: bs4) -> Union[str, bool]: """Get catalog name.""" # Получаем имя каталога link_page = soup.find( 'li', class_='breadcrumb-page__item breadcrumb-page__current') ...
34.179775
87
0.571006