hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
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
251
max_issues_repo_name
stringlengths
4
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
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
454453eab91aa77a631ac0aa12025ca69dac8cdb
4,294
py
Python
app.py
univoid/a3x
46f48363f191344747fec5e643efe1b467fb04c3
[ "MIT" ]
null
null
null
app.py
univoid/a3x
46f48363f191344747fec5e643efe1b467fb04c3
[ "MIT" ]
null
null
null
app.py
univoid/a3x
46f48363f191344747fec5e643efe1b467fb04c3
[ "MIT" ]
null
null
null
import os import base64 import botocore import boto3 import json import urllib from chalice import BadRequestError from chalice import ChaliceViewError from chalice import Chalice app = Chalice(app_name='a3x') app.debug = True REGION = 'us-east-1' BUCKET = 'freko-001' S3 = boto3.resource('s3') REKOGNITION = boto3.cl...
30.027972
96
0.642757
188445351d4fd03596d67479b0ce34074904480c
7,387
py
Python
nnutils/laplacian_loss.py
lolrudy/GPV_pose
f326a623b3e45e6edfc1963b068e8e7aaea2bfff
[ "MIT" ]
10
2022-03-16T02:14:56.000Z
2022-03-31T19:01:34.000Z
nnutils/laplacian_loss.py
lolrudy/GPV_pose
f326a623b3e45e6edfc1963b068e8e7aaea2bfff
[ "MIT" ]
1
2022-03-18T06:43:16.000Z
2022-03-18T06:56:35.000Z
nnutils/laplacian_loss.py
lolrudy/GPV_pose
f326a623b3e45e6edfc1963b068e8e7aaea2bfff
[ "MIT" ]
2
2022-03-19T13:06:28.000Z
2022-03-19T16:08:18.000Z
# -------------------------------------------------------- # Written by Yufei Ye (https://github.com/JudyYe) # -------------------------------------------------------- from __future__ import print_function from __future__ import absolute_import from __future__ import division # Copyright (c) Facebook, Inc. and its affi...
36.569307
84
0.578855
18864b9d7449a28b5e8d9bd986a21846e666ecbc
3,294
py
Python
bioimageio/spec/commands.py
esgomezm/spec-bioimage-io
2bc3f8177d5346ac94bf8a771ed619e076c6e935
[ "MIT" ]
null
null
null
bioimageio/spec/commands.py
esgomezm/spec-bioimage-io
2bc3f8177d5346ac94bf8a771ed619e076c6e935
[ "MIT" ]
null
null
null
bioimageio/spec/commands.py
esgomezm/spec-bioimage-io
2bc3f8177d5346ac94bf8a771ed619e076c6e935
[ "MIT" ]
null
null
null
import shutil import traceback from pathlib import Path from pprint import pprint from typing import List, Optional, Union from marshmallow import ValidationError from bioimageio.spec import export_resource_package, load_raw_resource_description from bioimageio.spec.shared.raw_nodes import URI from bioimageio.spec.sh...
34.3125
112
0.663327
18865f902dc6b7cb2f38ac721fff0266a60bf991
1,309
py
Python
pettingzoo/test/max_cycles_test.py
RedTachyon/PettingZoo
0c4be0ca0de5a11bf8eff3f7b87976edcacd093e
[ "Apache-2.0" ]
846
2020-05-12T05:55:00.000Z
2021-10-08T19:38:40.000Z
pettingzoo/test/max_cycles_test.py
RedTachyon/PettingZoo
0c4be0ca0de5a11bf8eff3f7b87976edcacd093e
[ "Apache-2.0" ]
237
2020-04-27T06:01:39.000Z
2021-10-13T02:55:54.000Z
pettingzoo/test/max_cycles_test.py
RedTachyon/PettingZoo
0c4be0ca0de5a11bf8eff3f7b87976edcacd093e
[ "Apache-2.0" ]
126
2020-05-29T04:20:29.000Z
2021-10-13T05:31:12.000Z
import numpy as np
36.361111
121
0.683728
188756e6fbd2150cbbb2fc3f3acd8c382070ad00
3,460
py
Python
models/models.py
nv-tlabs/DIB-R-Single-Image-3D-Reconstruction
faa6364cc6ec464f81f960a9fa6b55bbf3443d5f
[ "Apache-2.0" ]
8
2021-09-10T04:54:54.000Z
2022-03-26T02:34:54.000Z
models/models.py
nv-tlabs/DIB-R-Single-Image-3D-Reconstruction
faa6364cc6ec464f81f960a9fa6b55bbf3443d5f
[ "Apache-2.0" ]
2
2021-11-12T17:10:26.000Z
2022-03-24T14:59:01.000Z
models/models.py
nv-tlabs/DIB-R-Single-Image-3D-Reconstruction
faa6364cc6ec464f81f960a9fa6b55bbf3443d5f
[ "Apache-2.0" ]
2
2021-09-19T16:25:26.000Z
2021-12-27T16:01:31.000Z
''' MIT License Copyright (c) 2020 Autonomous Vision Group (AVG), Max Planck Institute for Intelligent Systems Tbingen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
35.306122
148
0.695954
18875eee96b4d3c67bcfb581481611caf6ee9b44
4,855
py
Python
slixmpp/plugins/xep_0223.py
marconfus/slixmpp
bcf186f42dc31d360e0a0af8a4b3aaf1e0b212aa
[ "BSD-3-Clause" ]
null
null
null
slixmpp/plugins/xep_0223.py
marconfus/slixmpp
bcf186f42dc31d360e0a0af8a4b3aaf1e0b212aa
[ "BSD-3-Clause" ]
null
null
null
slixmpp/plugins/xep_0223.py
marconfus/slixmpp
bcf186f42dc31d360e0a0af8a4b3aaf1e0b212aa
[ "BSD-3-Clause" ]
null
null
null
""" Slixmpp: The Slick XMPP Library Copyright (C) 2012 Nathanael C. Fritz, Lance J.T. Stout This file is part of Slixmpp. See the file LICENSE for copying permission. """ import logging from slixmpp.xmlstream import register_stanza_plugin from slixmpp.plugins.base import BasePlugin, register_plugin ...
40.458333
82
0.557158
18890abc6529f42ce336f6f93049f9ebe7b6d9a1
3,578
py
Python
merge_pdf/merge.py
DariHernandez/merge_pdf
5aa0df950caee81d1a2c2709697f82472858b7ec
[ "MIT" ]
null
null
null
merge_pdf/merge.py
DariHernandez/merge_pdf
5aa0df950caee81d1a2c2709697f82472858b7ec
[ "MIT" ]
null
null
null
merge_pdf/merge.py
DariHernandez/merge_pdf
5aa0df950caee81d1a2c2709697f82472858b7ec
[ "MIT" ]
1
2021-06-23T19:46:42.000Z
2021-06-23T19:46:42.000Z
#! python3 # Combines all the pafs in the current working directory into a single pdf import PyPDF2, os, sys, logging
31.385965
103
0.564561
1889e33c1df53b96578448ca9e90add8e038bfe9
3,941
py
Python
test/inprogress/mock/JobBrowserBFF_get_job_log_mock_test.py
eapearson/kbase-skd-module-job-browser-bff
426445f90569adac16632ef4921f174e51abd42f
[ "MIT" ]
null
null
null
test/inprogress/mock/JobBrowserBFF_get_job_log_mock_test.py
eapearson/kbase-skd-module-job-browser-bff
426445f90569adac16632ef4921f174e51abd42f
[ "MIT" ]
6
2020-05-26T17:40:07.000Z
2022-03-11T16:33:11.000Z
test/inprogress/mock/JobBrowserBFF_get_job_log_mock_test.py
eapearson/kbase-skd-module-job-browser-bff
426445f90569adac16632ef4921f174e51abd42f
[ "MIT" ]
1
2020-05-26T17:12:59.000Z
2020-05-26T17:12:59.000Z
# -*- coding: utf-8 -*- import traceback from JobBrowserBFF.TestBase import TestBase from biokbase.Errors import ServiceError import unittest import re UPSTREAM_SERVICE = 'mock' ENV = 'mock' JOB_ID_WITH_LOGS = '59820c93e4b06f68bf751eeb' # non-admin JOB_ID_NO_LOGS = '5cf1522aaa5a4d298c5dc2ff' # non-admin JOB_ID_NOT_F...
36.831776
107
0.603146
188cb20c595f8931979892b300bbc3dc12968c1c
674
py
Python
migrations/versions/323f8d77567b_index_related_entity_names.py
yaelmi3/backslash
edf39caf97af2c926da01c340a83648f4874e97e
[ "BSD-3-Clause" ]
17
2015-11-25T13:02:38.000Z
2021-12-14T20:18:36.000Z
migrations/versions/323f8d77567b_index_related_entity_names.py
yaelmi3/backslash
edf39caf97af2c926da01c340a83648f4874e97e
[ "BSD-3-Clause" ]
533
2015-11-24T12:47:13.000Z
2022-02-12T07:59:08.000Z
migrations/versions/323f8d77567b_index_related_entity_names.py
parallelsystems/backslash
577cdd18d5f665a8b493c4b2e2a605b7e0f6e11b
[ "BSD-3-Clause" ]
15
2015-11-22T13:25:54.000Z
2022-02-16T19:23:11.000Z
"""Index related entity names Revision ID: 323f8d77567b Revises: 82b34e2777a4 Create Date: 2016-11-16 13:00:25.782487 """ # revision identifiers, used by Alembic. revision = '323f8d77567b' down_revision = '82b34e2777a4' from alembic import op import sqlalchemy as sa
24.962963
93
0.71365
1890545ab78e2e102de4a2155cb00d7f5cb2cdc7
772
py
Python
learn/02week/code/cc_dicegame.py
tmax818/nucamp_intro_python
6fac59f53054055ba4ab40559c44eba07b7f9fd6
[ "MIT" ]
null
null
null
learn/02week/code/cc_dicegame.py
tmax818/nucamp_intro_python
6fac59f53054055ba4ab40559c44eba07b7f9fd6
[ "MIT" ]
null
null
null
learn/02week/code/cc_dicegame.py
tmax818/nucamp_intro_python
6fac59f53054055ba4ab40559c44eba07b7f9fd6
[ "MIT" ]
null
null
null
import random high_score = 0 dice_game()
20.864865
56
0.477979
189184fcb0cca3093cef204f192b8979a5c7f238
29,762
py
Python
SVS/model/utils/utils.py
ftshijt/SVS_system
569d0a2f7ae89965bde132e5be538f6a84be471f
[ "Apache-2.0" ]
null
null
null
SVS/model/utils/utils.py
ftshijt/SVS_system
569d0a2f7ae89965bde132e5be538f6a84be471f
[ "Apache-2.0" ]
null
null
null
SVS/model/utils/utils.py
ftshijt/SVS_system
569d0a2f7ae89965bde132e5be538f6a84be471f
[ "Apache-2.0" ]
null
null
null
"""Copyright [2020] [Jiatong Shi]. 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 writing, softwar...
32.140389
88
0.540152
18918e38b1911d887e6cd9f7014807483471a02f
10,115
py
Python
run_classifier.py
to-aoki/my-pytorch-bert
8e412ae6331f5f19fee55b430be389de2f5c49a6
[ "Apache-2.0" ]
21
2019-03-04T03:43:19.000Z
2022-02-14T15:50:41.000Z
run_classifier.py
to-aoki/my-pytorch-bert
8e412ae6331f5f19fee55b430be389de2f5c49a6
[ "Apache-2.0" ]
1
2019-10-07T17:49:21.000Z
2019-12-14T11:50:10.000Z
run_classifier.py
to-aoki/my-pytorch-bert
8e412ae6331f5f19fee55b430be389de2f5c49a6
[ "Apache-2.0" ]
5
2019-07-19T07:04:55.000Z
2020-07-01T13:24:14.000Z
# Author Toshihiko Aoki # # 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 writing, softw...
43.787879
120
0.625309
1891a7b479098620bf760b07575489ea73d1fccf
279
py
Python
dev/urls.py
ledgku/utilscombine
aaf13ca2208bcf522f005c64769c34bc8e8ee9f4
[ "MIT" ]
2
2018-07-18T10:10:01.000Z
2018-07-18T10:10:17.000Z
dev/urls.py
ledgku/utilscombine
aaf13ca2208bcf522f005c64769c34bc8e8ee9f4
[ "MIT" ]
5
2018-09-19T11:33:54.000Z
2021-06-10T20:43:32.000Z
dev/urls.py
ledgku/utilscombine
aaf13ca2208bcf522f005c64769c34bc8e8ee9f4
[ "MIT" ]
null
null
null
from django.urls import path from dev.views import FindMyIp,FindMyGps app_name = 'dev' urlpatterns = [ # path('', Main.as_view(), name = 'index'), path('findmyip', FindMyIp.as_view(), name = 'findmyip'), path('findmygps', FindMyGps.as_view(), name = 'findmygps'), ]
27.9
63
0.666667
1891f24339199dafe363a5f1dfae29b9615437e5
406
py
Python
cookbook/c02/p17_html_xml.py
itpubs/python3-cookbook
140f5e4cc0416b9674edca7f4c901b1f58fc1415
[ "Apache-2.0" ]
3
2018-09-19T06:44:13.000Z
2019-03-24T10:07:07.000Z
cookbook/c02/p17_html_xml.py
itpubs/python3-cookbook
140f5e4cc0416b9674edca7f4c901b1f58fc1415
[ "Apache-2.0" ]
2
2020-09-19T17:10:23.000Z
2020-10-17T16:43:52.000Z
cookbook/c02/p17_html_xml.py
itpubs/python3-cookbook
140f5e4cc0416b9674edca7f4c901b1f58fc1415
[ "Apache-2.0" ]
1
2020-07-20T22:10:31.000Z
2020-07-20T22:10:31.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ Topic: htmlxml Desc : """ import html if __name__ == '__main__': html_xml()
16.916667
56
0.618227
1892414a440ce9963c67565a93d5515f1867c2ed
53
py
Python
utils/__init__.py
Rfam/rfam-production
36f3963380da2a08e9cf73c951691c4e95738ac4
[ "Apache-2.0" ]
7
2016-06-17T09:21:11.000Z
2021-10-13T20:25:06.000Z
utils/__init__.py
mb1069/rfam-production
10c76e249dc22d30862b3a873fd54f390e859ad8
[ "Apache-2.0" ]
82
2016-04-08T10:51:32.000Z
2022-03-11T13:49:18.000Z
utils/__init__.py
mb1069/rfam-production
10c76e249dc22d30862b3a873fd54f390e859ad8
[ "Apache-2.0" ]
3
2019-09-01T09:46:35.000Z
2021-11-29T08:01:58.000Z
__all__ = ['db_utils', 'RfamDB', 'parse_taxbrowser']
26.5
52
0.698113
1892cc18e4d651a8551d9ce9d603987daef5b912
625
py
Python
jina/drivers/craft.py
slettner/jina
4140961c62359e3acd540a6d88931665c6313824
[ "Apache-2.0" ]
null
null
null
jina/drivers/craft.py
slettner/jina
4140961c62359e3acd540a6d88931665c6313824
[ "Apache-2.0" ]
null
null
null
jina/drivers/craft.py
slettner/jina
4140961c62359e3acd540a6d88931665c6313824
[ "Apache-2.0" ]
null
null
null
__copyright__ = "Copyright (c) 2020 Jina AI Limited. All rights reserved." __license__ = "Apache-2.0" from typing import Optional from . import FlatRecursiveMixin, BaseExecutableDriver, DocsExtractUpdateMixin
31.25
84
0.72
18931f6a4553b81704db5d7e58f8609781b151d9
5,543
py
Python
solutionbox/structured_data/mltoolbox/_structured_data/preprocess/local_preprocess.py
freyrsae/pydatalab
9aba1ac6bbe8e1384e7a4b07c5042af84348797d
[ "Apache-2.0" ]
198
2016-07-14T19:47:52.000Z
2022-03-15T08:45:21.000Z
solutionbox/structured_data/mltoolbox/_structured_data/preprocess/local_preprocess.py
freyrsae/pydatalab
9aba1ac6bbe8e1384e7a4b07c5042af84348797d
[ "Apache-2.0" ]
534
2016-07-15T19:12:43.000Z
2022-03-11T23:11:39.000Z
solutionbox/structured_data/mltoolbox/_structured_data/preprocess/local_preprocess.py
freyrsae/pydatalab
9aba1ac6bbe8e1384e7a4b07c5042af84348797d
[ "Apache-2.0" ]
86
2016-07-13T17:39:05.000Z
2021-11-03T03:39:41.000Z
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
32.798817
86
0.673642
189920c0b5a16b9f087f121b4d4d90e4791b2184
5,876
py
Python
habitrac/habits/api/resolvers.py
IgnisDa/habitrac
0b5f6f1f4a6659c4cce49aacae54cdb0e74af67a
[ "Apache-2.0" ]
null
null
null
habitrac/habits/api/resolvers.py
IgnisDa/habitrac
0b5f6f1f4a6659c4cce49aacae54cdb0e74af67a
[ "Apache-2.0" ]
null
null
null
habitrac/habits/api/resolvers.py
IgnisDa/habitrac
0b5f6f1f4a6659c4cce49aacae54cdb0e74af67a
[ "Apache-2.0" ]
null
null
null
import datetime import json from ariadne import MutationType, QueryType, convert_kwargs_to_snake_case from ariadne_token_auth.decorators import login_required from django.contrib.auth import get_user_model from habits import models as habit_models from utils.general import get_user from utils.handlers.errors import Er...
32.826816
89
0.681246
189970d0714654ace0194ba8650e7bc2d279578b
2,542
py
Python
src/target_matrix.py
smusali/rightwhalerecognition
0def80bc7e19864093008112455ae08869b40501
[ "MIT" ]
null
null
null
src/target_matrix.py
smusali/rightwhalerecognition
0def80bc7e19864093008112455ae08869b40501
[ "MIT" ]
null
null
null
src/target_matrix.py
smusali/rightwhalerecognition
0def80bc7e19864093008112455ae08869b40501
[ "MIT" ]
null
null
null
import csv, pylab as pl, re DB = dict(); BD = dict(); whales_ = []; classes = []; line_num = 0; with open('data/train.csv', 'rb') as train_class_data: data = csv.reader(train_class_data, delimiter=','); for line in data: if (line_num == 0): line_num += 1; continue; keys...
30.261905
80
0.562549
1899c8f523a33646e893cd33cd3682188e0ca8e5
5,990
py
Python
src/fsec/yammler.py
HiggsHydra/permian-frac-exchange
1dd1e409e5389373590c7d3780a54cd9f12d1166
[ "MIT" ]
null
null
null
src/fsec/yammler.py
HiggsHydra/permian-frac-exchange
1dd1e409e5389373590c7d3780a54cd9f12d1166
[ "MIT" ]
null
null
null
src/fsec/yammler.py
HiggsHydra/permian-frac-exchange
1dd1e409e5389373590c7d3780a54cd9f12d1166
[ "MIT" ]
null
null
null
from typing import Union from datetime import datetime import os import tempfile from contextlib import contextmanager import logging from collections import Counter import yaml logger = logging.getLogger(__name__) if __name__ == "__main__": fspath = "./config/download_log.yaml" import loggers from y...
26.504425
88
0.543573
189b834780427e5805e8ddb0880c32074d93411d
879
py
Python
pricecalc/pricecalc/apps/calc/migrations/0024_ldstp_alter_furnitureincalc_options.py
oocemb/Calculation
91d202d1b5a2dde6376487147517310682294278
[ "Apache-2.0" ]
null
null
null
pricecalc/pricecalc/apps/calc/migrations/0024_ldstp_alter_furnitureincalc_options.py
oocemb/Calculation
91d202d1b5a2dde6376487147517310682294278
[ "Apache-2.0" ]
null
null
null
pricecalc/pricecalc/apps/calc/migrations/0024_ldstp_alter_furnitureincalc_options.py
oocemb/Calculation
91d202d1b5a2dde6376487147517310682294278
[ "Apache-2.0" ]
null
null
null
# Generated by Django 4.0.2 on 2022-03-25 11:59 from django.db import migrations, models
32.555556
117
0.602958
189c6b3a4cd4803a7422b2fd630d54013aa0aa1e
14,356
py
Python
aiida_siesta/calculations/stm.py
mailhexu/aiida_siesta_plugin
313ef4b3532b54d8d0c81788b683c53cb4701965
[ "MIT" ]
null
null
null
aiida_siesta/calculations/stm.py
mailhexu/aiida_siesta_plugin
313ef4b3532b54d8d0c81788b683c53cb4701965
[ "MIT" ]
2
2019-05-12T22:11:46.000Z
2019-05-13T11:46:16.000Z
aiida_siesta/calculations/stm.py
mailhexu/aiida_siesta_plugin
313ef4b3532b54d8d0c81788b683c53cb4701965
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os # Module with fdf-aware dictionary from tkdict import FDFDict from aiida.orm.calculation.job import JobCalculation from aiida.common.exceptions import InputValidationError from aiida.common.datastructures import CalcInfo from aiida.common.utils import classproperty from aiida.common....
39.657459
278
0.60156
189dad7d4fc31c11984202f5abd8d52b7d7034ce
5,974
py
Python
backend/api/fixtures/test/functional_test/load_ft_data.py
amichard/tfrs
ed3973016cc5c2ae48999d550a23b41a5ddad807
[ "Apache-2.0" ]
18
2017-05-10T21:55:11.000Z
2021-03-01T16:41:32.000Z
backend/api/fixtures/test/functional_test/load_ft_data.py
amichard/tfrs
ed3973016cc5c2ae48999d550a23b41a5ddad807
[ "Apache-2.0" ]
1,167
2017-03-04T00:18:43.000Z
2022-03-03T22:31:51.000Z
backend/api/fixtures/test/functional_test/load_ft_data.py
amichard/tfrs
ed3973016cc5c2ae48999d550a23b41a5ddad807
[ "Apache-2.0" ]
48
2017-03-09T17:19:39.000Z
2022-02-24T16:38:17.000Z
import uuid import os from datetime import datetime from django.db import transaction from api.management.data_script import OperationalDataScript from api.models.CompliancePeriod import CompliancePeriod from api.models.Organization import Organization from api.models.OrganizationActionsType import OrganizationActio...
55.831776
132
0.68999
189e049c8ff1d8fc6680e58e527827763bd3d33c
3,456
py
Python
challenge/agoda_cancellation_prediction.py
ZebraForce9/IML.HUJI
a263a621331c7c7d51c90c8325f76aa0797d424e
[ "MIT" ]
null
null
null
challenge/agoda_cancellation_prediction.py
ZebraForce9/IML.HUJI
a263a621331c7c7d51c90c8325f76aa0797d424e
[ "MIT" ]
null
null
null
challenge/agoda_cancellation_prediction.py
ZebraForce9/IML.HUJI
a263a621331c7c7d51c90c8325f76aa0797d424e
[ "MIT" ]
null
null
null
from challenge.agoda_cancellation_estimator import AgodaCancellationEstimator from IMLearn.utils import split_train_test from IMLearn.base import BaseEstimator import numpy as np import pandas as pd def load_data(filename: str): """ Load Agoda booking cancellation dataset Parameters ---------- fi...
37.565217
120
0.713252
189ea5728ae22b441ea875f1bd0c5faac3a76ced
294
py
Python
example2.py
presidento/scripthelper
71b9e69f2967fb8d352376213c046263d5c31849
[ "MIT" ]
null
null
null
example2.py
presidento/scripthelper
71b9e69f2967fb8d352376213c046263d5c31849
[ "MIT" ]
3
2020-04-28T13:14:31.000Z
2021-01-15T09:41:56.000Z
example2.py
presidento/scripthelper
71b9e69f2967fb8d352376213c046263d5c31849
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import scripthelper scripthelper.add_argument("-n", "--name", help="Name to greet") logger, args = scripthelper.bootstrap_args() if args.name: logger.debug("Name was provided") logger.info(f"Hello {args.name}") else: logger.warning("Name was not provided")
24.5
63
0.710884
18a1a66ddfc12bbc493302b88cd1fbc01b59d040
71
py
Python
Chapter 01/Chap01_Example1.40.py
Anancha/Programming-Techniques-using-Python
e80c329d2a27383909d358741a5cab03cb22fd8b
[ "MIT" ]
null
null
null
Chapter 01/Chap01_Example1.40.py
Anancha/Programming-Techniques-using-Python
e80c329d2a27383909d358741a5cab03cb22fd8b
[ "MIT" ]
null
null
null
Chapter 01/Chap01_Example1.40.py
Anancha/Programming-Techniques-using-Python
e80c329d2a27383909d358741a5cab03cb22fd8b
[ "MIT" ]
null
null
null
#backslash and new line ignored print("one\ two\ three")
14.2
31
0.591549
18a1ae9b017d856fff834435791dc30cf0986f3f
15,575
py
Python
turbo_seti/find_event/find_event_pipeline.py
savinshynu/turbo_seti
7d756f130af5a323403affcdcb9f9bfa62325836
[ "MIT" ]
null
null
null
turbo_seti/find_event/find_event_pipeline.py
savinshynu/turbo_seti
7d756f130af5a323403affcdcb9f9bfa62325836
[ "MIT" ]
null
null
null
turbo_seti/find_event/find_event_pipeline.py
savinshynu/turbo_seti
7d756f130af5a323403affcdcb9f9bfa62325836
[ "MIT" ]
null
null
null
#!/usr/bin/env python r""" Front-facing script to find drifting, narrowband events in a set of generalized cadences of ON-OFF radio SETI observations. The main function contained in this file is :func:`find_event_pipeline` calls find_events from find_events.py to read a list of turboSETI .dat files. It then finds eve...
41.094987
144
0.616116
18a1b4659b986cda93994b346c85aae4f37fb1a4
1,558
py
Python
scripts/plot_snaps.py
wordsworthgroup/libode
c3e9dbfe3e09c49ed666f10ae8fb964b37ecb479
[ "MIT" ]
11
2020-02-27T22:32:04.000Z
2021-05-06T17:51:50.000Z
scripts/plot_snaps.py
markmbaum/libode
c3e9dbfe3e09c49ed666f10ae8fb964b37ecb479
[ "MIT" ]
null
null
null
scripts/plot_snaps.py
markmbaum/libode
c3e9dbfe3e09c49ed666f10ae8fb964b37ecb479
[ "MIT" ]
2
2021-09-26T07:36:55.000Z
2021-11-29T23:45:32.000Z
import numpy as np import matplotlib.pyplot as plt #Dahlquist test #sol1ex = lambda t: np.exp(-t) #sol2ex = lambda t: np.exp(-2*t) #oscillator 1 sol1ex = lambda t: np.cos(t**2/2) sol2ex = lambda t: np.sin(t**2/2) #oscillator 2 #sol1ex = lambda t: np.exp(np.sin(t**2)) #sol2ex = lambda t: np.exp(np.cos(t**2)) name = 'O...
29.396226
86
0.632863
18a22f9ecd12b8cd2ba070dcb05f2e55ef3f8d64
86
py
Python
mne/datasets/kiloword/__init__.py
fmamashli/mne-python
52f064415e7c9fa8fe243d22108dcdf3d86505b9
[ "BSD-3-Clause" ]
1,953
2015-01-17T20:33:46.000Z
2022-03-30T04:36:34.000Z
mne/datasets/kiloword/__init__.py
fmamashli/mne-python
52f064415e7c9fa8fe243d22108dcdf3d86505b9
[ "BSD-3-Clause" ]
8,490
2015-01-01T13:04:18.000Z
2022-03-31T23:02:08.000Z
mne/datasets/kiloword/__init__.py
fmamashli/mne-python
52f064415e7c9fa8fe243d22108dcdf3d86505b9
[ "BSD-3-Clause" ]
1,130
2015-01-08T22:39:27.000Z
2022-03-30T21:44:26.000Z
"""MNE visual_92_categories dataset.""" from .kiloword import data_path, get_version
21.5
44
0.790698
18a3288be8f39dff9c36e526ba62428f9babcc0d
1,688
py
Python
app/framework/tagger_framework/tagger/pos/evaluation.py
kislerdm/nlp_pos_demo
cea5a0432e3fc0a626f090d40a28e084e3243efc
[ "MIT" ]
null
null
null
app/framework/tagger_framework/tagger/pos/evaluation.py
kislerdm/nlp_pos_demo
cea5a0432e3fc0a626f090d40a28e084e3243efc
[ "MIT" ]
null
null
null
app/framework/tagger_framework/tagger/pos/evaluation.py
kislerdm/nlp_pos_demo
cea5a0432e3fc0a626f090d40a28e084e3243efc
[ "MIT" ]
null
null
null
# Dmitry Kisler 2020-present # www.dkisler.com from typing import List, Dict from sklearn.metrics import f1_score, accuracy_score def model_performance(y_true: List[List[str]], y_pred: List[List[str]]) -> Dict[str, float]: """Accuracy calculation function Args: y_true: List ...
29.103448
83
0.598934
18a5fa9fa6c228a2b9d1020387a728db780df2f0
3,451
py
Python
tools/interpret.py
Notgnoshi/generative
d9702c18b59553541f0cce706089f9fad501cd33
[ "MIT" ]
5
2021-02-11T07:55:51.000Z
2022-02-10T01:11:02.000Z
tools/interpret.py
Notgnoshi/generative
d9702c18b59553541f0cce706089f9fad501cd33
[ "MIT" ]
67
2020-12-31T18:02:05.000Z
2022-02-21T14:57:52.000Z
tools/interpret.py
Notgnoshi/generative
d9702c18b59553541f0cce706089f9fad501cd33
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Interpret an L-String as a set of 3D Turtle commands and record the turtle's path. Multiple lines of input will be treated as a continuation of a single L-String. Default commandset: F,G - Step forward while drawing f,g - Step forward without drawing -,+ - Yaw around the normal ...
29
101
0.634888
18a6ffdb28982da58249e4d719411ed0e1af6ac5
699
py
Python
PointsToRobot.py
chuong/robot-arm-manipulation
a5ad277f86c278ccf8fe99abe337d0c64f8a407e
[ "MIT" ]
null
null
null
PointsToRobot.py
chuong/robot-arm-manipulation
a5ad277f86c278ccf8fe99abe337d0c64f8a407e
[ "MIT" ]
null
null
null
PointsToRobot.py
chuong/robot-arm-manipulation
a5ad277f86c278ccf8fe99abe337d0c64f8a407e
[ "MIT" ]
null
null
null
""" @author: yuboya """ ### pins position to be sent to robot ## from TransformationCalculation: import numpy as np import math
18.891892
61
0.542203
18a73b665ef0eeab4028398fb264c011541365f0
2,418
py
Python
plugins/module_utils/github_api.py
zp4rker/ansible-github-api
8b4d154915a5d92ec6f379d50cfb2c66a07fb16c
[ "Apache-2.0" ]
null
null
null
plugins/module_utils/github_api.py
zp4rker/ansible-github-api
8b4d154915a5d92ec6f379d50cfb2c66a07fb16c
[ "Apache-2.0" ]
null
null
null
plugins/module_utils/github_api.py
zp4rker/ansible-github-api
8b4d154915a5d92ec6f379d50cfb2c66a07fb16c
[ "Apache-2.0" ]
null
null
null
import requests import json from json import JSONDecodeError base_uri = "https://api.github.com/" licenses = ['afl-3.0', 'apache-2.0', 'artistic-2.0', 'bsl-1.0', 'bsd-2-clause', 'license bsd-3-clause', 'bsd-3-clause-clear', 'cc', 'cc0-1.0', 'cc-by-4.0', 'cc-by-sa-4.0', 'wtfpl', 'ecl-2.0', 'epl-1.0', 'epl-2.0', 'eu...
34.056338
413
0.619934
18a994a759d85007cf88e43e5353bf80d7ac9a5c
3,055
py
Python
src/onegov/core/datamanager.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/core/datamanager.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/core/datamanager.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import os import tempfile import transaction from onegov.core import log from onegov.core.utils import safe_move
24.637097
73
0.629133
18aaa916c943bdb538fc41fcf2673ef26fba2444
3,603
py
Python
djangocms_modules/models.py
crydotsnake/djangocms-modules
ab5b75ee1076e6fccab1a26b8dbe1c754c4de8d7
[ "BSD-3-Clause" ]
8
2019-01-29T15:11:30.000Z
2020-06-07T19:27:50.000Z
djangocms_modules/models.py
crydotsnake/djangocms-modules
ab5b75ee1076e6fccab1a26b8dbe1c754c4de8d7
[ "BSD-3-Clause" ]
11
2018-12-14T14:01:06.000Z
2020-09-02T09:02:49.000Z
djangocms_modules/models.py
divio/djangocms-modules
8328f130cddd4cf5f90beca170d1303b95158cda
[ "BSD-3-Clause" ]
3
2021-04-16T12:26:27.000Z
2021-06-25T14:53:47.000Z
from django.conf import settings from django.db import models from django.dispatch import receiver from django.urls import Resolver404, resolve from django.utils.functional import cached_property from django.utils.translation import gettext_lazy as _ from cms import operations from cms.models import CMSPlugin, Placeho...
27.090226
75
0.686095
18ad2e27ac7dd39dc407f19da04c84adb7ca9a06
553
py
Python
do_tasks.py
youqingkui/zhihufav
97c465d1bf825a6621d221c39a3677887cbd9261
[ "MIT" ]
null
null
null
do_tasks.py
youqingkui/zhihufav
97c465d1bf825a6621d221c39a3677887cbd9261
[ "MIT" ]
null
null
null
do_tasks.py
youqingkui/zhihufav
97c465d1bf825a6621d221c39a3677887cbd9261
[ "MIT" ]
null
null
null
#!/usr/bin/env python #coding=utf-8 import json from lib.sqs import zhihufav_sqs from lib.tasks import add_note if __name__=="__main__": for i in range(5): get_sqs_queue()
22.12
60
0.679928
18ad36444d5128007b08506ac3f31875adc10b4d
127
py
Python
books/SystemProgramming/ch4_advanced/echo_command.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/SystemProgramming/ch4_advanced/echo_command.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/SystemProgramming/ch4_advanced/echo_command.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from subprocess import Popen, PIPE cmd = "echo hello world" p = Popen(cmd, shell=True, stdout=PIPE) ret, err = p.communicate()
25.4
39
0.724409
18ad5089ae1f33994da7db7c1701301bde09c817
2,238
py
Python
NiaPy/algorithms/basic/bbfwa.py
Flyzoor/NiaPy
fec1faee0f215cc3a6c2c967ec77dcbe2cbffa42
[ "MIT" ]
null
null
null
NiaPy/algorithms/basic/bbfwa.py
Flyzoor/NiaPy
fec1faee0f215cc3a6c2c967ec77dcbe2cbffa42
[ "MIT" ]
null
null
null
NiaPy/algorithms/basic/bbfwa.py
Flyzoor/NiaPy
fec1faee0f215cc3a6c2c967ec77dcbe2cbffa42
[ "MIT" ]
null
null
null
# encoding=utf8 # pylint: disable=mixed-indentation, trailing-whitespace, multiple-statements, attribute-defined-outside-init, logging-not-lazy import logging from numpy import apply_along_axis, argmin from NiaPy.algorithms.algorithm import Algorithm logging.basicConfig() logger = logging.getLogger('NiaPy.algorithms.b...
32.434783
204
0.707328
18ae5fde1fdfdd5b09f5207f83e23ef0e8f54a07
854
py
Python
ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/ripng_template.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/ripng_template.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/ripng_template.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
from ixnetwork_restpy.base import Base from ixnetwork_restpy.files import Files
30.5
94
0.701405
18af0a7d2a7ce2d43b7672a9c24d93c96068fd61
1,083
py
Python
backend/feedback/migrations/0001_initial.py
kylecarter/ict4510-advwebdvlp
0360b2353535611a6b3dd79cefe2d5780d027511
[ "Apache-2.0" ]
null
null
null
backend/feedback/migrations/0001_initial.py
kylecarter/ict4510-advwebdvlp
0360b2353535611a6b3dd79cefe2d5780d027511
[ "Apache-2.0" ]
null
null
null
backend/feedback/migrations/0001_initial.py
kylecarter/ict4510-advwebdvlp
0360b2353535611a6b3dd79cefe2d5780d027511
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.1.3 on 2018-11-18 02:34 from django.db import migrations, models
40.111111
152
0.626962
18b132a361a1a147d36815958a1a5e8956b159fc
6,050
py
Python
ktaned/bomb.py
MartinHarding/ktaned
b38fb91b4e2d370d20310e472863766007d4adb3
[ "MIT" ]
1
2017-12-02T21:21:37.000Z
2017-12-02T21:21:37.000Z
ktaned/bomb.py
MartinHarding/ktaned
b38fb91b4e2d370d20310e472863766007d4adb3
[ "MIT" ]
22
2017-12-02T05:15:32.000Z
2018-07-24T02:04:56.000Z
ktaned/bomb.py
MartinHarding/ktaned
b38fb91b4e2d370d20310e472863766007d4adb3
[ "MIT" ]
2
2017-12-01T23:49:17.000Z
2017-12-27T17:05:03.000Z
import random
31.842105
79
0.571074
18b146154d393893b10c35ac0c235675a70fdc26
1,377
py
Python
Aula19/ex09.py
danicon/MD3-Curso_Python
3d419d440d3b28adb5c019268f4b217e7d0ce45a
[ "MIT" ]
null
null
null
Aula19/ex09.py
danicon/MD3-Curso_Python
3d419d440d3b28adb5c019268f4b217e7d0ce45a
[ "MIT" ]
null
null
null
Aula19/ex09.py
danicon/MD3-Curso_Python
3d419d440d3b28adb5c019268f4b217e7d0ce45a
[ "MIT" ]
null
null
null
jogador = dict() partidas = list() jogador['nome'] = str(input('Nome do jogador: ')) tot = int(input(f'Quantas partidas {jogador["nome"]} jogou? ')) for c in range(0, tot): partidas.append(int(input(f' Quantos gols na partida {c}? '))) jogador['gols'] = partidas[:] jogador['total'] = sum(partidas) print(30*'-=')...
31.295455
76
0.600581
18b187b96d4e16d8219c2f6163b45c5b1b15ce59
2,832
py
Python
hummingbot/core/data_type/kline_stream_tracker.py
gmfang/hummingbot
fbdf516903c3b98c8447e4dc1bdceee6607b20ab
[ "Apache-2.0" ]
null
null
null
hummingbot/core/data_type/kline_stream_tracker.py
gmfang/hummingbot
fbdf516903c3b98c8447e4dc1bdceee6607b20ab
[ "Apache-2.0" ]
null
null
null
hummingbot/core/data_type/kline_stream_tracker.py
gmfang/hummingbot
fbdf516903c3b98c8447e4dc1bdceee6607b20ab
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import asyncio from abc import abstractmethod, ABC from enum import Enum import logging from typing import ( Optional, List, Deque ) from hummingbot.logger import HummingbotLogger from hummingbot.core.data_type.kline_stream_tracker_data_source import \ KlineStreamTrackerDataSource...
28.897959
166
0.67161
18b20197ca16f4d94391b3685611593c8849a3d6
23,599
py
Python
cogs/management.py
xthecoolboy/MizaBOT
fb8a449bde29fdf1d32b5a597e48e6b3463dd867
[ "MIT" ]
null
null
null
cogs/management.py
xthecoolboy/MizaBOT
fb8a449bde29fdf1d32b5a597e48e6b3463dd867
[ "MIT" ]
null
null
null
cogs/management.py
xthecoolboy/MizaBOT
fb8a449bde29fdf1d32b5a597e48e6b3463dd867
[ "MIT" ]
null
null
null
import discord from discord.ext import commands import asyncio from datetime import datetime, timedelta import psutil # Bot related commands
59.593434
695
0.604221
18b252f0addcf4c4512b055a5ed661c24cb4f654
3,658
py
Python
interpreter.py
Wheatwizard/Lost
59281e2e8ab6f0fd35b8496b5f04b2a4a8d7b350
[ "MIT" ]
13
2017-08-10T21:54:12.000Z
2021-12-08T12:50:31.000Z
interpreter.py
Wheatwizard/Lost
59281e2e8ab6f0fd35b8496b5f04b2a4a8d7b350
[ "MIT" ]
null
null
null
interpreter.py
Wheatwizard/Lost
59281e2e8ab6f0fd35b8496b5f04b2a4a8d7b350
[ "MIT" ]
null
null
null
from Stack import Stack from random import randint
29.983607
70
0.617824
18b25e53c1ed1abb7bdec386aaba62360b44deb4
1,826
py
Python
masterStock.py
Coway/premeStock
27106fd581b71df1729f94a79f5a6a10b41ece00
[ "MIT" ]
69
2017-03-09T00:24:09.000Z
2021-11-15T05:52:09.000Z
masterStock.py
Coway/premeStock
27106fd581b71df1729f94a79f5a6a10b41ece00
[ "MIT" ]
12
2017-03-11T04:31:29.000Z
2018-06-21T03:54:28.000Z
masterStock.py
supthunder/premeStock
27106fd581b71df1729f94a79f5a6a10b41ece00
[ "MIT" ]
19
2017-03-05T22:16:37.000Z
2020-06-23T22:41:33.000Z
import requests from bs4 import BeautifulSoup import json if __name__ == '__main__': loadMasterStock()
41.5
161
0.680723
18b566b173e3af542df61de7dc132ac1fb281305
231
py
Python
tests/WebkitGtkDriverBenchmarkTest.py
hiroshitoda/WebDriverBenchmark.py
74b643b9f299436ef6fb50741a60f04c0c69cf8c
[ "Apache-2.0" ]
null
null
null
tests/WebkitGtkDriverBenchmarkTest.py
hiroshitoda/WebDriverBenchmark.py
74b643b9f299436ef6fb50741a60f04c0c69cf8c
[ "Apache-2.0" ]
null
null
null
tests/WebkitGtkDriverBenchmarkTest.py
hiroshitoda/WebDriverBenchmark.py
74b643b9f299436ef6fb50741a60f04c0c69cf8c
[ "Apache-2.0" ]
null
null
null
import unittest from selenium import webdriver from tests import Base if __name__ == "__main__": unittest.main()
16.5
46
0.74026
18b58622c0bb04c070be5b53bb5876f7354aa18d
18,442
py
Python
utils/create_cropped_motion_dataset.py
maheriya/tennisLabels
d363addcd043dba731aebf1f4a5abb86ef434ac5
[ "MIT" ]
null
null
null
utils/create_cropped_motion_dataset.py
maheriya/tennisLabels
d363addcd043dba731aebf1f4a5abb86ef434ac5
[ "MIT" ]
null
null
null
utils/create_cropped_motion_dataset.py
maheriya/tennisLabels
d363addcd043dba731aebf1f4a5abb86ef434ac5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Given a VOC dataset of TENNIS videos dumped at 1920x1080 resolution, this script creates a # scaled and cropped dataset. Even though the cropped zone size is static (1280x720/640x360) # crop scale), the zones themselves are dynamically selected based on the objects locations # (by reading the...
46.570707
131
0.612244
18b5cd9e5d6c9c3f826dbcf798680d452eb2f577
5,454
py
Python
tests/unit/core/test_core_config.py
Mbompr/fromconfig
eb34582c79a9a9e3b9e60d41fec2ac6a619e9c27
[ "Apache-2.0" ]
19
2021-03-18T16:48:03.000Z
2022-03-02T13:09:21.000Z
tests/unit/core/test_core_config.py
Mbompr/fromconfig
eb34582c79a9a9e3b9e60d41fec2ac6a619e9c27
[ "Apache-2.0" ]
3
2021-04-23T23:03:29.000Z
2021-05-11T14:09:16.000Z
tests/unit/core/test_core_config.py
Mbompr/fromconfig
eb34582c79a9a9e3b9e60d41fec2ac6a619e9c27
[ "Apache-2.0" ]
3
2021-04-19T22:05:34.000Z
2022-02-21T11:32:16.000Z
"""Tests for core.config.""" import json import yaml from pathlib import Path import pytest import fromconfig def test_core_config_no_jsonnet(tmpdir, monkeypatch): """Test jsonnet missing handling.""" monkeypatch.setattr(fromconfig.core.config, "_jsonnet", None) # No issue to dump even if missing ...
31.894737
113
0.565457
18b6001fed8371bb91ce9e52ae604dbe21d1ea14
5,353
py
Python
release.py
dhleong/beholder
1459c67907c436f6abc2abcd82c817e177fcd85f
[ "MIT" ]
4
2020-03-11T01:35:42.000Z
2021-08-31T20:18:22.000Z
release.py
dhleong/beholder
1459c67907c436f6abc2abcd82c817e177fcd85f
[ "MIT" ]
15
2018-04-29T20:25:14.000Z
2020-03-14T13:44:59.000Z
release.py
dhleong/beholder
1459c67907c436f6abc2abcd82c817e177fcd85f
[ "MIT" ]
1
2020-10-27T22:43:46.000Z
2020-10-27T22:43:46.000Z
#!/usr/bin/env python # # Release script for beholder # import hashlib import urllib from collections import OrderedDict try: from hostage import * #pylint: disable=unused-wildcard-import,wildcard-import except ImportError: print "!! Release library unavailable." print "!! Use `pip install hostage` to fi...
27.172589
82
0.64618
18b65fdb2a140d38c3ae1d51c5156e9061a7ade5
881
py
Python
cmsplugin_cascade/migrations/0003_inlinecascadeelement.py
aDENTinTIME/djangocms-cascade
c38c1c5ad052dbe233b50fb833ad8e9a919014f2
[ "MIT" ]
null
null
null
cmsplugin_cascade/migrations/0003_inlinecascadeelement.py
aDENTinTIME/djangocms-cascade
c38c1c5ad052dbe233b50fb833ad8e9a919014f2
[ "MIT" ]
null
null
null
cmsplugin_cascade/migrations/0003_inlinecascadeelement.py
aDENTinTIME/djangocms-cascade
c38c1c5ad052dbe233b50fb833ad8e9a919014f2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import jsonfield.fields
31.464286
152
0.611805
18b6ab1df2a80e856e7bccdd1594333d60103c4a
366
py
Python
SmartWaiterAPI/API/collections/goeswellwith_operations.py
KyrumX/project78-api
334b4781a4488cf53b360f75b9f3265e40ebf8b4
[ "MIT" ]
null
null
null
SmartWaiterAPI/API/collections/goeswellwith_operations.py
KyrumX/project78-api
334b4781a4488cf53b360f75b9f3265e40ebf8b4
[ "MIT" ]
null
null
null
SmartWaiterAPI/API/collections/goeswellwith_operations.py
KyrumX/project78-api
334b4781a4488cf53b360f75b9f3265e40ebf8b4
[ "MIT" ]
null
null
null
from API.models import GoesWellWith, Menu
24.4
67
0.661202
18b77fe12dbcd84b5d365548128c4a03151b1396
3,949
py
Python
src/simulator/simulator.py
ed741/PathBench
50fe138eb1f824f49fe1a862705e435a1c3ec3ae
[ "BSD-3-Clause" ]
46
2020-12-25T04:09:15.000Z
2022-03-25T12:32:42.000Z
src/simulator/simulator.py
ed741/PathBench
50fe138eb1f824f49fe1a862705e435a1c3ec3ae
[ "BSD-3-Clause" ]
36
2020-12-21T16:10:02.000Z
2022-01-03T01:42:01.000Z
src/simulator/simulator.py
judicaelclair/PathBenchURO
101e67674efdfa8e27e1cf7787dac9fdf99552fe
[ "BSD-3-Clause" ]
11
2021-01-06T23:34:12.000Z
2022-03-21T17:21:47.000Z
from typing import Optional from algorithms.basic_testing import BasicTesting from simulator.controllers.main_controller import MainController from simulator.controllers.map.map_controller import MapController from simulator.controllers.gui.gui_controller import GuiController from simulator.models.main_model import M...
34.640351
95
0.683971
18b7fbb4733a21ef838f96c25af5f53f3a7b8f73
1,445
py
Python
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/mrp_byproduct/models/mrp_subproduct.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
1
2019-12-19T01:53:13.000Z
2019-12-19T01:53:13.000Z
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/mrp_byproduct/models/mrp_subproduct.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/mrp_byproduct/models/mrp_subproduct.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models, _ from odoo.addons import decimal_precision as dp
40.138889
125
0.665744
18b95560e12ae1f8ecbf164d50ad646b8d18c3b3
126
py
Python
contacts/urls.py
HaraDev001/RealEstate-Backend
db2ae8d143bd15fbb49432ae8b14fd3bf8e6dd1c
[ "MIT" ]
2
2021-05-17T18:02:36.000Z
2021-05-17T18:02:44.000Z
contacts/urls.py
HaraDev001/RealEstate-Backend
db2ae8d143bd15fbb49432ae8b14fd3bf8e6dd1c
[ "MIT" ]
null
null
null
contacts/urls.py
HaraDev001/RealEstate-Backend
db2ae8d143bd15fbb49432ae8b14fd3bf8e6dd1c
[ "MIT" ]
null
null
null
from django.urls import path from .views import ContactCreateView urlpatterns = [ path('',ContactCreateView.as_view()), ]
21
41
0.753968
18b9e35412962cc6d7d17f54bab50f62ce2c5c9d
410
py
Python
Python_do_zero_Guanabara/04_CondiçõesEmPython/aula/aula15.py
HenriqueSOliver/Projetos_Python
f18c5a343ad1b746a12bd372298b2debe9bc65ec
[ "MIT" ]
null
null
null
Python_do_zero_Guanabara/04_CondiçõesEmPython/aula/aula15.py
HenriqueSOliver/Projetos_Python
f18c5a343ad1b746a12bd372298b2debe9bc65ec
[ "MIT" ]
null
null
null
Python_do_zero_Guanabara/04_CondiçõesEmPython/aula/aula15.py
HenriqueSOliver/Projetos_Python
f18c5a343ad1b746a12bd372298b2debe9bc65ec
[ "MIT" ]
null
null
null
# modelo anterior - Enquanto cont at 10 for verdade, ser repetido cont = 1 while cont <= 10: print(cont, ' ...', end='') cont += 1 print('FIM') # Usando o Enquanto VERDADE ele vai repetir para sempre, temos que colocar uma condio PARA=BREAK n = s = 0 while True: n = int(input('Digite um nmero: [Digite 99...
27.333333
98
0.62439
18bb4104d3cd6b1e910557e18aee65ea9222b8ce
1,124
py
Python
internal/handlers/lebanon.py
fillingthemoon/cartogram-web
58b645bca0c22b9bccdb2a5a8213a5a24a7e5958
[ "MIT" ]
null
null
null
internal/handlers/lebanon.py
fillingthemoon/cartogram-web
58b645bca0c22b9bccdb2a5a8213a5a24a7e5958
[ "MIT" ]
20
2019-10-20T11:27:38.000Z
2022-03-12T00:28:17.000Z
internal/handlers/lebanon.py
fillingthemoon/cartogram-web
58b645bca0c22b9bccdb2a5a8213a5a24a7e5958
[ "MIT" ]
16
2019-08-22T04:49:44.000Z
2021-06-09T04:44:57.000Z
import settings import handlers.base_handler import csv
28.1
319
0.623665
18bbd1f2f3931ba0aa7f9a0bc9c67949e29e02ad
11,184
py
Python
routes/GetFeed/insta_crawling 복사본/ScrollFeed.py
akalswl14/styltebox_manageweb
5d0e33435a7456387d28b6b58762912d0552a717
[ "MIT" ]
null
null
null
routes/GetFeed/insta_crawling 복사본/ScrollFeed.py
akalswl14/styltebox_manageweb
5d0e33435a7456387d28b6b58762912d0552a717
[ "MIT" ]
2
2021-03-31T20:20:47.000Z
2021-12-13T20:50:07.000Z
routes/GetFeed/insta_crawling 복사본/ScrollFeed.py
akalswl14/styltebox_manageweb
5d0e33435a7456387d28b6b58762912d0552a717
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import urllib.request from urllib.request import urlopen # url from urllib.parse import quote_plus # from bs4 import BeautifulSoup from selenium import webdriver # webdriver import time # from time import sleep import warnings # from selenium.webdriver.common.ke...
36.429967
109
0.630097
18bca4227b43e8db0e3b74e9fc679d7c822dc33c
358
py
Python
option.py
ujiro99/python_cli_sample
34e39e05722ebba3b539861b6567aeecb93a818f
[ "MIT" ]
null
null
null
option.py
ujiro99/python_cli_sample
34e39e05722ebba3b539861b6567aeecb93a818f
[ "MIT" ]
null
null
null
option.py
ujiro99/python_cli_sample
34e39e05722ebba3b539861b6567aeecb93a818f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import click if __name__ == '__main__': main()
14.916667
71
0.572626
18bcc995a7294c17a7102d9ddff9a88a24d958f1
27
py
Python
itsnp/__init__.py
CaffeineDuck/itsnp-discord-bot
73d8fddc282c0fbc3cdaef81eef3efa9dccacfd8
[ "MIT" ]
null
null
null
itsnp/__init__.py
CaffeineDuck/itsnp-discord-bot
73d8fddc282c0fbc3cdaef81eef3efa9dccacfd8
[ "MIT" ]
null
null
null
itsnp/__init__.py
CaffeineDuck/itsnp-discord-bot
73d8fddc282c0fbc3cdaef81eef3efa9dccacfd8
[ "MIT" ]
null
null
null
from .bot import ItsnpBot
13.5
26
0.777778
18be667bef982c766e8e51b2444d4138ae324879
7,182
py
Python
mojo/public/tools/bindings/pylib/parse/mojo_lexer_unittest.py
Acidburn0zzz/chromium-1
4c08f442d2588a2c7cfaa117a55bd87d2ac32f9a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
mojo/public/tools/bindings/pylib/parse/mojo_lexer_unittest.py
Acidburn0zzz/chromium-1
4c08f442d2588a2c7cfaa117a55bd87d2ac32f9a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
mojo/public/tools/bindings/pylib/parse/mojo_lexer_unittest.py
Acidburn0zzz/chromium-1
4c08f442d2588a2c7cfaa117a55bd87d2ac32f9a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import mojo_lexer import unittest # Try to load the ply module, if not, then assume it is in the third_party # directory. try: # Disable lint check which ...
44.608696
80
0.632693
18c2d8a09f275424cdb15f2a256534524b3fa369
59
py
Python
glue/admin.py
Valchris/AngularJS-Django-Template
10c90087984dcd9e6d29380eb4380824e65bcecf
[ "MIT" ]
1
2015-07-29T04:28:26.000Z
2015-07-29T04:28:26.000Z
glue/admin.py
Valchris/AngularJS-Django-Template
10c90087984dcd9e6d29380eb4380824e65bcecf
[ "MIT" ]
null
null
null
glue/admin.py
Valchris/AngularJS-Django-Template
10c90087984dcd9e6d29380eb4380824e65bcecf
[ "MIT" ]
null
null
null
from django.contrib import admin from glue.models import *
19.666667
32
0.813559
18c72218e5a46e6e788b195ce2de8f4c86c23159
444
py
Python
qmt/geometry/geo_data_base.py
basnijholt/qmt
68f781ff489fd9f5ddc817dacfc8ff3a8fdeb2b4
[ "MIT" ]
null
null
null
qmt/geometry/geo_data_base.py
basnijholt/qmt
68f781ff489fd9f5ddc817dacfc8ff3a8fdeb2b4
[ "MIT" ]
null
null
null
qmt/geometry/geo_data_base.py
basnijholt/qmt
68f781ff489fd9f5ddc817dacfc8ff3a8fdeb2b4
[ "MIT" ]
null
null
null
from typing import Any, Dict, List from qmt.infrastructure import WithParts
26.117647
58
0.572072
18c9fc293f4846928246ba71ec2d917b2627fc7c
20,166
py
Python
ANSIBLE/library/eos_routemap.py
ayosef/pynet_test
1b750a62467fbbcb2436c035ce49d41b435f45ba
[ "Apache-2.0" ]
null
null
null
ANSIBLE/library/eos_routemap.py
ayosef/pynet_test
1b750a62467fbbcb2436c035ce49d41b435f45ba
[ "Apache-2.0" ]
null
null
null
ANSIBLE/library/eos_routemap.py
ayosef/pynet_test
1b750a62467fbbcb2436c035ce49d41b435f45ba
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright (c) 2015, Arista Networks, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # Redistributions of source code must retain the above copyright notice, # t...
33.1133
82
0.611475
18cbef6584ee81c511138c2578efbf19d3e08e5c
890
py
Python
setup.py
colinfrei/furystoolbox
2a8613393a46ad6ae2ad2c2fa86fd255fea96796
[ "MIT" ]
1
2020-01-03T00:32:35.000Z
2020-01-03T00:32:35.000Z
setup.py
colinfrei/furystoolbox
2a8613393a46ad6ae2ad2c2fa86fd255fea96796
[ "MIT" ]
1
2020-02-08T08:54:31.000Z
2020-02-08T09:31:30.000Z
setup.py
colinfrei/furystoolbox
2a8613393a46ad6ae2ad2c2fa86fd255fea96796
[ "MIT" ]
1
2020-02-08T06:54:29.000Z
2020-02-08T06:54:29.000Z
"""Setup configuration.""" import setuptools from furystoolbox import __version__ with open("README.md", "r") as fh: LONG = fh.read() REQUIRES = ['click>=7.0', 'requests>=2.21.0', 'PyGithub>=1.43.4'] setuptools.setup( name="furystoolbox", version=__version__, author="Joakim So...
26.176471
50
0.62809
18cca0ce2ddedc77fe6c967bfef7de9a4fb88942
2,120
py
Python
pythran/tests/cases/sobelfilter.py
SylvainCorlay/pythran
908ec070d837baf77d828d01c3e35e2f4bfa2bfa
[ "BSD-3-Clause" ]
1
2018-03-24T00:33:03.000Z
2018-03-24T00:33:03.000Z
pythran/tests/cases/sobelfilter.py
SylvainCorlay/pythran
908ec070d837baf77d828d01c3e35e2f4bfa2bfa
[ "BSD-3-Clause" ]
null
null
null
pythran/tests/cases/sobelfilter.py
SylvainCorlay/pythran
908ec070d837baf77d828d01c3e35e2f4bfa2bfa
[ "BSD-3-Clause" ]
1
2017-03-12T20:32:36.000Z
2017-03-12T20:32:36.000Z
#skip.runas import Image; im = Image.open("Scribus.gif"); image_list = list(im.getdata()); cols, rows = im.size; res = range(len(image_list)); sobelFilter(image_list, res, cols, rows) #runas cols = 100; rows = 100 ;image_list=[x%10+y%20 for x in xrange(cols) for y in xrange(rows)]; sobelFilter(image_list, cols, rows) #...
49.302326
183
0.544811
18cd66ae12672c4f05fb7afeb5ea83419646d0b9
7,110
py
Python
occam_utils/occam_datasets.py
dschinagl/occam
f001cc3a0bf56687dc4c4bb79385f5d010cdd43e
[ "BSD-3-Clause" ]
1
2022-03-29T07:05:23.000Z
2022-03-29T07:05:23.000Z
occam_utils/occam_datasets.py
dschinagl/occam
f001cc3a0bf56687dc4c4bb79385f5d010cdd43e
[ "BSD-3-Clause" ]
null
null
null
occam_utils/occam_datasets.py
dschinagl/occam
f001cc3a0bf56687dc4c4bb79385f5d010cdd43e
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import torch from spconv.pytorch.utils import PointToVoxel from scipy.spatial.transform import Rotation from pcdet.datasets import DatasetTemplate
35.909091
87
0.610689
18ceea770cb8f269d967cd89240a6533d6cf62a5
5,840
py
Python
utils/calibration_module.py
choushunn/holography_test
79100f8b955683afd47e63e2762d6945d6b14e34
[ "CC-BY-3.0" ]
null
null
null
utils/calibration_module.py
choushunn/holography_test
79100f8b955683afd47e63e2762d6945d6b14e34
[ "CC-BY-3.0" ]
null
null
null
utils/calibration_module.py
choushunn/holography_test
79100f8b955683afd47e63e2762d6945d6b14e34
[ "CC-BY-3.0" ]
1
2021-12-24T04:18:22.000Z
2021-12-24T04:18:22.000Z
""" This is the script containing the calibration module, basically calculating homography matrix. This code and data is released under the Creative Commons Attribution-NonCommercial 4.0 International license (CC BY-NC.) In a nutshell: # The license is only for non-commercial use (commercial licenses can be obtain...
37.677419
136
0.638185
18ceea954bda99122d17bf7b1a926a3bf8227da9
270
py
Python
Main/apps.py
Naretto95/Django-Vault
36fac69873c844bf72732ff635513f0204b7d61a
[ "MIT" ]
null
null
null
Main/apps.py
Naretto95/Django-Vault
36fac69873c844bf72732ff635513f0204b7d61a
[ "MIT" ]
null
null
null
Main/apps.py
Naretto95/Django-Vault
36fac69873c844bf72732ff635513f0204b7d61a
[ "MIT" ]
null
null
null
from django.apps import AppConfig from django.contrib.admin.apps import AdminConfig
27
56
0.781481
18d163664110bd63d5393ef2d5efd9b345f52613
38
py
Python
researchutils/task/__init__.py
yuishihara/researchutils
bb3ec467386d43a1e2282ec6d024216ce4dae841
[ "MIT" ]
1
2018-09-06T00:54:49.000Z
2018-09-06T00:54:49.000Z
researchutils/task/__init__.py
yuishihara/researchutils
bb3ec467386d43a1e2282ec6d024216ce4dae841
[ "MIT" ]
28
2018-08-25T03:54:30.000Z
2018-10-14T12:09:47.000Z
researchutils/task/__init__.py
yuishihara/researchutils
bb3ec467386d43a1e2282ec6d024216ce4dae841
[ "MIT" ]
null
null
null
from researchutils.task import plotter
38
38
0.894737
18d43cd8f5f88ffb19e9b4a5bb9e768fb2646c67
220,532
py
Python
venv/lib/python3.8/site-packages/aws_cdk/aws_kinesis/__init__.py
harun-vit/aws-cdk-pipelines-demo
7e7faeee112c3dca718613fa8a1fba80d2116bac
[ "MIT-0" ]
null
null
null
venv/lib/python3.8/site-packages/aws_cdk/aws_kinesis/__init__.py
harun-vit/aws-cdk-pipelines-demo
7e7faeee112c3dca718613fa8a1fba80d2116bac
[ "MIT-0" ]
null
null
null
venv/lib/python3.8/site-packages/aws_cdk/aws_kinesis/__init__.py
harun-vit/aws-cdk-pipelines-demo
7e7faeee112c3dca718613fa8a1fba80d2116bac
[ "MIT-0" ]
null
null
null
''' # Amazon Kinesis Construct Library <!--BEGIN STABILITY BANNER-->--- ![cfn-resources: Stable](https://img.shields.io/badge/cfn--resources-stable-success.svg?style=for-the-badge) ![cdk-constructs: Stable](https://img.shields.io/badge/cdk--constructs-stable-success.svg?style=for-the-badge) --- <!--END STABILITY B...
60.635689
468
0.68824
18d5365ed6c594ed06788598b0b869b72340bab9
2,752
py
Python
model.py
nupurbaghel/Image_Captioning_CV
2af5abe1464006113e38a911ace62faacb9cbbd4
[ "MIT" ]
null
null
null
model.py
nupurbaghel/Image_Captioning_CV
2af5abe1464006113e38a911ace62faacb9cbbd4
[ "MIT" ]
null
null
null
model.py
nupurbaghel/Image_Captioning_CV
2af5abe1464006113e38a911ace62faacb9cbbd4
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torchvision.models as models from torch.nn.utils.rnn import pack_padded_sequence
43
125
0.62936
18d56845b92528becf4631678e4c6ca21b008e41
965
py
Python
BaseTest/click_button_chrome.py
lloydtawanda/AzurePriceListWebScrapper
0d6e7a38af13cb780a7b04a8832b67a22727e3bc
[ "Apache-2.0" ]
2
2019-07-16T13:49:35.000Z
2021-06-17T22:21:17.000Z
BaseTest/click_button_chrome.py
lloydtawanda/AzurePriceListWebScrapper
0d6e7a38af13cb780a7b04a8832b67a22727e3bc
[ "Apache-2.0" ]
null
null
null
BaseTest/click_button_chrome.py
lloydtawanda/AzurePriceListWebScrapper
0d6e7a38af13cb780a7b04a8832b67a22727e3bc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Jul 16 14:36:46 2019 @author: Tawanda """ import sys import argparse from selenium import webdriver from selenium.common.exceptions import NoSuchElementException if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_arg...
28.382353
85
0.660104
18d5b7387f5bbbe02061b184773c4b0590414bd7
22,854
py
Python
hymo/swmmreport.py
lucashtnguyen/hymo
956661401b2ac5220a83349ed15bc1d4bb7d60f4
[ "BSD-3-Clause" ]
4
2017-12-18T17:43:54.000Z
2021-09-29T01:05:33.000Z
hymo/swmmreport.py
lucashtnguyen/hymo
956661401b2ac5220a83349ed15bc1d4bb7d60f4
[ "BSD-3-Clause" ]
30
2017-09-26T22:23:33.000Z
2021-09-03T16:38:18.000Z
hymo/swmmreport.py
lucashtnguyen/hymo
956661401b2ac5220a83349ed15bc1d4bb7d60f4
[ "BSD-3-Clause" ]
2
2017-10-03T01:41:16.000Z
2019-12-17T23:42:42.000Z
from .base_reader import BaseReader import pandas as pd
36.801932
141
0.586899
18d5cbf8a3d63285ac1fed2569f0fc69a3422e0e
25,917
py
Python
tbip.py
n-longuetmarx/tbip
c6f137167aec8075c2ae98183cdf4c5e7dbc700a
[ "MIT" ]
null
null
null
tbip.py
n-longuetmarx/tbip
c6f137167aec8075c2ae98183cdf4c5e7dbc700a
[ "MIT" ]
null
null
null
tbip.py
n-longuetmarx/tbip
c6f137167aec8075c2ae98183cdf4c5e7dbc700a
[ "MIT" ]
null
null
null
"""Learn ideal points with the text-based ideal point model (TBIP). Let y_{dv} denote the counts of word v in document d. Let x_d refer to the ideal point of the author of document d. Then we model: theta, beta ~ Gamma(alpha, alpha) x, eta ~ N(0, 1) y_{dv} ~ Pois(sum_k theta_dk beta_kv exp(x_d * eta_kv). We perform...
42.141463
80
0.680904
18d6578d8c4bdcf3e1695a1c9ddbac250283e282
6,138
py
Python
calc/gui.py
tatarskiy-welder/tax_calc
827ec6e174ffc9cfc13e24427307a8a6b85123e0
[ "MIT" ]
null
null
null
calc/gui.py
tatarskiy-welder/tax_calc
827ec6e174ffc9cfc13e24427307a8a6b85123e0
[ "MIT" ]
null
null
null
calc/gui.py
tatarskiy-welder/tax_calc
827ec6e174ffc9cfc13e24427307a8a6b85123e0
[ "MIT" ]
null
null
null
from tkinter import * from tax_profiler import TaxProfile from tkinter import messagebox as mb if __name__ == '__main__': main()
33.540984
81
0.564679
18d67d5d9fabdd711ac5fef81a528edb66bc9e9b
136
py
Python
lms_python/lms_app/admin.py
gabrielmdsantos/LMSBD
dff3001a560f8cccb938957bf2d5732d4ae3d163
[ "Apache-2.0" ]
null
null
null
lms_python/lms_app/admin.py
gabrielmdsantos/LMSBD
dff3001a560f8cccb938957bf2d5732d4ae3d163
[ "Apache-2.0" ]
null
null
null
lms_python/lms_app/admin.py
gabrielmdsantos/LMSBD
dff3001a560f8cccb938957bf2d5732d4ae3d163
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from lms_app.models import Professor admin.site.register(Professor) # Register your models here.
22.666667
37
0.794118
18d7a6360616dabd7740bc58273af43b8634ecfa
5,573
py
Python
pymedextcore/normalize.py
equipe22/pymedext_core
578e32fdc015c9b75f566d9e58a8fade889879e7
[ "Apache-2.0" ]
1
2021-02-04T10:33:00.000Z
2021-02-04T10:33:00.000Z
pymedextcore/normalize.py
equipe22/pymedext_core
578e32fdc015c9b75f566d9e58a8fade889879e7
[ "Apache-2.0" ]
4
2020-12-17T09:16:24.000Z
2021-03-26T10:40:30.000Z
pymedextcore/normalize.py
equipe22/pymedext_core
578e32fdc015c9b75f566d9e58a8fade889879e7
[ "Apache-2.0" ]
1
2020-12-17T12:32:50.000Z
2020-12-17T12:32:50.000Z
#!/usr/bin/env python3 from .document import Document from intervaltree import Interval,IntervalTree # from .annotationGraph import AnnotationGraph import logging logger = logging.getLogger(__name__)
42.869231
145
0.61134
18d8e4a9db3824bc1bf6d57f22782a4ffcc36549
93
py
Python
phr/dnireniec/apps.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/dnireniec/apps.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/dnireniec/apps.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
from django.apps import AppConfig
15.5
33
0.763441
18d91850121d98d86b712bda14df3f044488a26e
479
py
Python
Exercício feitos pela primeira vez/ex004colorido.py
Claayton/pythonExerciciosLinux
696cdb16983638418bd0d0d4fe44dc72662b9c97
[ "MIT" ]
1
2021-01-23T15:43:34.000Z
2021-01-23T15:43:34.000Z
Exercício feitos pela primeira vez/ex004colorido.py
Claayton/pythonExerciciosLinux
696cdb16983638418bd0d0d4fe44dc72662b9c97
[ "MIT" ]
null
null
null
Exercício feitos pela primeira vez/ex004colorido.py
Claayton/pythonExerciciosLinux
696cdb16983638418bd0d0d4fe44dc72662b9c97
[ "MIT" ]
null
null
null
#Ex004b algo = (input('\033[34m''Digite algo: ''\033[m')) print('So letras ou palavras?: \033[33m{}\033[m'.format(algo.isalpha())) print('Est em maisculo?: \033[34m{}\033[m'.format(algo.isupper())) print('Est em minsculo?: \033[35m{}\033[m'.format(algo.islower())) print('Est captalizada?: \033[36m{}\033[m'.format(algo....
47.9
73
0.668058
18da93de7ae1c7f1f8c72d039c0ee8611ca41811
1,444
py
Python
utilities_common/util_base.py
pettershao-ragilenetworks/sonic-utilities
553936b61a677b95a45a797c0e3ccdaf015cce94
[ "Apache-2.0" ]
null
null
null
utilities_common/util_base.py
pettershao-ragilenetworks/sonic-utilities
553936b61a677b95a45a797c0e3ccdaf015cce94
[ "Apache-2.0" ]
null
null
null
utilities_common/util_base.py
pettershao-ragilenetworks/sonic-utilities
553936b61a677b95a45a797c0e3ccdaf015cce94
[ "Apache-2.0" ]
null
null
null
import os import sonic_platform # Constants ==================================================================== PDDF_SUPPORT_FILE = '/usr/share/sonic/platform/pddf_support' # Helper classs
28.88
100
0.606648
18dbd268ee84904b28a7b1eab62ddc99c40934ff
2,900
py
Python
consensus_engine/tests/test_view_create_proposal.py
jonsaunders-git/consensus_engine
6fc2b3df7b342d4dff919969329c8b586e33a9d3
[ "MIT" ]
null
null
null
consensus_engine/tests/test_view_create_proposal.py
jonsaunders-git/consensus_engine
6fc2b3df7b342d4dff919969329c8b586e33a9d3
[ "MIT" ]
4
2021-06-05T00:03:14.000Z
2021-09-22T19:41:03.000Z
consensus_engine/tests/test_view_create_proposal.py
jonsaunders-git/consensus_engine
6fc2b3df7b342d4dff919969329c8b586e33a9d3
[ "MIT" ]
null
null
null
from django.test import TestCase, RequestFactory from .mixins import TwoUserMixin, ProposalGroupMixin, ViewMixin from django.utils import timezone from consensus_engine.views import CreateProposalView from consensus_engine.forms import ProposalForm from consensus_engine.models import Proposal from django.core.exceptio...
46.774194
106
0.632759
18dc89f687d6010723363d00fb4079f119453e21
290
py
Python
tests/jdi_uitests_webtests/main/page_objects/w3c_site/w3c_site.py
jdi-testing/jdi-python
7c0607b97d4d44b27ea8f532d47c68b8dd00e6f7
[ "MIT" ]
5
2020-02-14T10:32:01.000Z
2021-07-22T08:20:28.000Z
tests/jdi_uitests_webtests/main/page_objects/w3c_site/w3c_site.py
jdi-testing/jdi-python
7c0607b97d4d44b27ea8f532d47c68b8dd00e6f7
[ "MIT" ]
54
2018-07-27T14:07:33.000Z
2021-11-08T09:24:16.000Z
tests/jdi_uitests_webtests/main/page_objects/w3c_site/w3c_site.py
jdi-testing/jdi-python
7c0607b97d4d44b27ea8f532d47c68b8dd00e6f7
[ "MIT" ]
1
2021-01-20T14:31:52.000Z
2021-01-20T14:31:52.000Z
from JDI.web.selenium.elements.composite.web_site import WebSite from tests.jdi_uitests_webtests.main.page_objects.w3c_site.frame_page import FramePage
32.222222
86
0.793103
18dca1ce28f6ce9649a6e926a3f6be554544907d
1,382
py
Python
tests/scrapers/test_scraper_composite.py
oluiscabral/stockopedia-scraper
1050206d7a534f0e57eee84a5187615dc0af6bd9
[ "MIT" ]
null
null
null
tests/scrapers/test_scraper_composite.py
oluiscabral/stockopedia-scraper
1050206d7a534f0e57eee84a5187615dc0af6bd9
[ "MIT" ]
null
null
null
tests/scrapers/test_scraper_composite.py
oluiscabral/stockopedia-scraper
1050206d7a534f0e57eee84a5187615dc0af6bd9
[ "MIT" ]
null
null
null
''' @author: oluiscabral ''' import unittest from creationals.scraper_factory import ScraperFactory from helpers.webdriver_factory import WebdriverFactory from actioners.login_control import LoginControl from ui.login_ui import LoginUI from data_structure.data_ref import DataRef if __name__ == "__main__": #import ...
34.55
86
0.700434
18dcab3c94de533e1fad537525409735b1a45b43
22,917
py
Python
deepx/backend/tensorflow.py
sharadmv/deepx
07470e7a579a63427de1d5ff90b9fd00d3f54b61
[ "MIT" ]
74
2015-11-13T02:26:37.000Z
2021-07-29T11:00:45.000Z
deepx/backend/tensorflow.py
sharadmv/deepx
07470e7a579a63427de1d5ff90b9fd00d3f54b61
[ "MIT" ]
21
2015-12-12T20:33:55.000Z
2019-04-03T02:49:42.000Z
deepx/backend/tensorflow.py
sharadmv/deepx
07470e7a579a63427de1d5ff90b9fd00d3f54b61
[ "MIT" ]
19
2015-11-23T10:07:01.000Z
2021-08-30T17:06:00.000Z
import copy import logging import numpy as np import six import tensorflow as tf from functools import wraps from contextlib import contextmanager from .backend_base import BackendBase, FunctionBase, DeviceDecorator try: from tensorflow.contrib.distributions import fill_triangular except: print("Cannot find fi...
33.455474
116
0.595322
18dcc7a079d7a14db43a4e9f8cd6c7a80e6794d0
90,257
py
Python
netharn/util/mplutil.py
JoshuaBeard/netharn
90773542c47363e663ee58f20fd151eb89bc313b
[ "Apache-2.0" ]
null
null
null
netharn/util/mplutil.py
JoshuaBeard/netharn
90773542c47363e663ee58f20fd151eb89bc313b
[ "Apache-2.0" ]
null
null
null
netharn/util/mplutil.py
JoshuaBeard/netharn
90773542c47363e663ee58f20fd151eb89bc313b
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import, division, print_function import cv2 import pandas as pd import numpy as np import six import ubelt as ub from six.moves import zip_longest from os.path import join, dirname import warnings def multi_plot(xdata=None, ydata=[], **kwargs): r""" plots multiple lines, bars, ...
33.943964
139
0.566649
18dcca6339890714a53a527f99f816d155ae5c43
4,876
py
Python
mmdeploy/codebase/mmdet/models/roi_heads/test_mixins.py
zhiqwang/mmdeploy
997d111a6f4ca9624ab3b36717748e6ce002037d
[ "Apache-2.0" ]
746
2021-12-27T10:50:28.000Z
2022-03-31T13:34:14.000Z
mmdeploy/codebase/mmdet/models/roi_heads/test_mixins.py
zhiqwang/mmdeploy
997d111a6f4ca9624ab3b36717748e6ce002037d
[ "Apache-2.0" ]
253
2021-12-28T05:59:13.000Z
2022-03-31T18:22:25.000Z
mmdeploy/codebase/mmdet/models/roi_heads/test_mixins.py
zhiqwang/mmdeploy
997d111a6f4ca9624ab3b36717748e6ce002037d
[ "Apache-2.0" ]
147
2021-12-27T10:50:33.000Z
2022-03-30T10:44:20.000Z
# Copyright (c) OpenMMLab. All rights reserved. import torch from mmdeploy.core import FUNCTION_REWRITER
41.322034
75
0.611567
18dd011d855404f1d1af53f818b57ec996f325ba
1,060
py
Python
examples/props.py
SandNerd/notional
ccab44bc4c5d19d4546156f0d72b22b93e28e2ed
[ "MIT" ]
23
2021-08-03T08:13:14.000Z
2022-03-27T13:13:54.000Z
examples/props.py
SandNerd/notional
ccab44bc4c5d19d4546156f0d72b22b93e28e2ed
[ "MIT" ]
15
2021-08-03T04:04:23.000Z
2022-03-31T14:27:26.000Z
examples/props.py
SandNerd/notional
ccab44bc4c5d19d4546156f0d72b22b93e28e2ed
[ "MIT" ]
3
2021-08-08T04:47:48.000Z
2022-03-06T23:13:52.000Z
#!/usr/bin/env python3 """This script demonstrates setting properties on a page manually. The script accepts a single command line option, which is a page ID. It will then display information about the properties and update a few of them. Note that this script assumes the database has already been created with requ...
25.853659
82
0.756604
18dd1d1444e3f06d7820ae1bbcacd5a56dc12c2e
1,116
py
Python
retroroot.py
retroroot-linux/retroroo
07ae0a93f6ea781fa6330a8defdabac9bda82adc
[ "MIT" ]
null
null
null
retroroot.py
retroroot-linux/retroroo
07ae0a93f6ea781fa6330a8defdabac9bda82adc
[ "MIT" ]
null
null
null
retroroot.py
retroroot-linux/retroroo
07ae0a93f6ea781fa6330a8defdabac9bda82adc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Use this file to setup a build environment.""" import os import argparse from support.linux.log import Log from support.docker_wrapper.retroroot import RetrorootDocker CWD = os.getcwd() def parse_args(args): """Parse arguments. :return: The argument object. """ parser = argp...
24.8
60
0.556452
18dd3cd341f57a8da1bfa888190207388f947eb8
1,796
py
Python
grr/test_bench.py
kecho/grr
b6554f20bc8a279bc946a2a0da54d028160d880d
[ "MIT" ]
8
2021-11-08T16:12:25.000Z
2021-12-16T06:41:01.000Z
grr/test_bench.py
kecho/grr
b6554f20bc8a279bc946a2a0da54d028160d880d
[ "MIT" ]
null
null
null
grr/test_bench.py
kecho/grr
b6554f20bc8a279bc946a2a0da54d028160d880d
[ "MIT" ]
null
null
null
import coalpy.gpu as g import numpy as np import math import functools from . import prefix_sum as gpu_prefix_sum if __name__ == "__main__": run_test("test prefix sum inclusive", test_cluster_gen_inclusive) run_test("test prefix sum exclusive", test_cluster_gen_exclusive)
32.654545
114
0.698218
18dd6ac52fd7ae55fdafeac9d413e2a786dc94b3
3,633
py
Python
code/train.py
ty-on-h12/srgan-pytorch
de0972782200a052a615754b14466f0c495f8b80
[ "MIT" ]
null
null
null
code/train.py
ty-on-h12/srgan-pytorch
de0972782200a052a615754b14466f0c495f8b80
[ "MIT" ]
null
null
null
code/train.py
ty-on-h12/srgan-pytorch
de0972782200a052a615754b14466f0c495f8b80
[ "MIT" ]
null
null
null
from torchvision.transforms import transforms from torch.utils.data import DataLoader from torchvision.datasets import ImageFolder import torch as T import torch.optim as optim from model import Generator, Discriminator from loss_fn import GeneratorLoss, TVLoss from utils import show_progress, save import datetime impo...
31.318966
138
0.619048
18dd7f23d5115fd8f4284ee064ed94347d9523f8
497
py
Python
utils/Formatting.py
levindoneto/lmGen
ffe2150ebff577135efa3d65a845dd3b806a94ed
[ "MIT" ]
5
2018-11-17T17:16:24.000Z
2019-10-17T15:16:37.000Z
utils/Formatting.py
levindoneto/lanGen
ffe2150ebff577135efa3d65a845dd3b806a94ed
[ "MIT" ]
6
2018-02-06T23:05:29.000Z
2019-10-14T02:23:38.000Z
utils/Formatting.py
levindoneto/lmGen
ffe2150ebff577135efa3d65a845dd3b806a94ed
[ "MIT" ]
4
2018-10-29T06:37:58.000Z
2019-10-06T13:51:18.000Z
import re ''' Function for Formatting n-grams. @Parameters: Tuple: n-gram to be formatted. @Return: String: formatted gram. ''' ''' Function for Formatting sentences. @Parameters: Sentence: unformatted sentence. @Return: String: formatted sentence. '''
26.157895
48
0.661972
18de55269df5672d53cc5989addf4883d366d066
1,735
py
Python
mkt/users/tasks.py
ngokevin/zamboni
a33dcd489175d8e7ba1c02ee4dabb6cfdc405e69
[ "BSD-3-Clause" ]
null
null
null
mkt/users/tasks.py
ngokevin/zamboni
a33dcd489175d8e7ba1c02ee4dabb6cfdc405e69
[ "BSD-3-Clause" ]
null
null
null
mkt/users/tasks.py
ngokevin/zamboni
a33dcd489175d8e7ba1c02ee4dabb6cfdc405e69
[ "BSD-3-Clause" ]
null
null
null
from datetime import timedelta import commonware.log from celeryutils import task from django.utils.encoding import force_text from tower import ugettext_lazy as _ from mkt.account.utils import fxa_preverify_url from mkt.site.mail import send_html_mail_jinja from mkt.users.models import UserProfile fxa_email_subje...
32.12963
72
0.673199
18df2c4ff7c83fc2ff4c4df2ad5efb199366fdfd
82
wsgi
Python
jpmorgan.wsgi
mrukhlov/jpmorgan
ef8f49054772c3f07161f4eaf7c119019ce600e2
[ "Apache-2.0" ]
null
null
null
jpmorgan.wsgi
mrukhlov/jpmorgan
ef8f49054772c3f07161f4eaf7c119019ce600e2
[ "Apache-2.0" ]
null
null
null
jpmorgan.wsgi
mrukhlov/jpmorgan
ef8f49054772c3f07161f4eaf7c119019ce600e2
[ "Apache-2.0" ]
null
null
null
import sys sys.path.insert(0, '/srv/jpmorgan') from app import app as application
20.5
35
0.768293
18e485c0872cf9f87d1144effd64d6706192e11d
449
py
Python
examples/plot_voronoi.py
smsaladi/msmexplorer
7880545c239c8f33ababdd111f58fd553b8bbdde
[ "MIT" ]
6
2018-03-02T21:02:32.000Z
2020-05-26T08:23:24.000Z
examples/plot_voronoi.py
smsaladi/msmexplorer
7880545c239c8f33ababdd111f58fd553b8bbdde
[ "MIT" ]
9
2018-03-02T21:19:26.000Z
2021-07-26T13:54:30.000Z
examples/plot_voronoi.py
smsaladi/msmexplorer
7880545c239c8f33ababdd111f58fd553b8bbdde
[ "MIT" ]
5
2018-02-07T18:42:23.000Z
2021-04-29T07:01:50.000Z
""" Voronoi Plot ============ """ import numpy as np from sklearn.cluster import KMeans import msmexplorer as msme # Create a random dataset across several variables rs = np.random.RandomState(42) n, p = 1000, 2 d = rs.normal(0, 2, (n, p)) d += np.log(np.arange(1, p + 1)) * -5 + 10 # Cluster data using KMeans kmeans...
20.409091
63
0.701559
18e6697372af7e5090bad7d69e9278ea7660cfcd
40,586
py
Python
algo_sherbend.py
ymoisan/GeoSim
84f1482c885d7d3b1e07b92dee9580e4bcacf9cb
[ "MIT" ]
null
null
null
algo_sherbend.py
ymoisan/GeoSim
84f1482c885d7d3b1e07b92dee9580e4bcacf9cb
[ "MIT" ]
null
null
null
algo_sherbend.py
ymoisan/GeoSim
84f1482c885d7d3b1e07b92dee9580e4bcacf9cb
[ "MIT" ]
null
null
null
"""This algorithm implements the Wang Generalization algotithm with constraint checking This algorithm simplifies lines. It detects for each line the bends. It analyze the bend and remove the bends that are below a certain diameter. The point and lines that do not need to be simplified are still used to...
33.486799
130
0.567708
18e68b384996aec6ddd93fd4e05675ce4c043545
393
py
Python
src/Server/Py_Easy_TCP_Server.py
Moguf/Py_Network
13e351e9955464a5d65bd3dee3642438cfe9ed92
[ "MIT" ]
null
null
null
src/Server/Py_Easy_TCP_Server.py
Moguf/Py_Network
13e351e9955464a5d65bd3dee3642438cfe9ed92
[ "MIT" ]
null
null
null
src/Server/Py_Easy_TCP_Server.py
Moguf/Py_Network
13e351e9955464a5d65bd3dee3642438cfe9ed92
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import socket port = 12345 MAX_SIZE = 65535 target_address = '127.0.0.1' s = socket.socket(socket.AF_INET,socket.SOCK_STREAM) s.bind((target_address,port)) s.listen(2) conn, addr = s.accept() # conn: socket is the client socket. print(addr, "Now Connected") text = "Thank you for connecting fro...
19.65
52
0.725191
18e718827e2560736ccb159689ee15cc3157f2a5
4,084
py
Python
empyric/collection/controllers.py
dmerthe/empyric
7553b71e241709836cdef156afa7dd2a1c1edf5a
[ "MIT" ]
3
2021-01-17T14:05:27.000Z
2022-03-03T06:25:39.000Z
empyric/collection/controllers.py
dmerthe/empyric
7553b71e241709836cdef156afa7dd2a1c1edf5a
[ "MIT" ]
null
null
null
empyric/collection/controllers.py
dmerthe/empyric
7553b71e241709836cdef156afa7dd2a1c1edf5a
[ "MIT" ]
1
2021-01-17T14:05:29.000Z
2021-01-17T14:05:29.000Z
from empyric.adapters import * from empyric.collection.instrument import *
22.31694
117
0.588149
18e80ab1f054cab4110f82ef2bcc62a0377ee9cd
2,468
py
Python
bot/main.py
the-rango/Discord-Python-Bot-Tutorial
5afa7b0b6b2397a0d566bc6009bb7cac2e4354de
[ "Apache-2.0" ]
null
null
null
bot/main.py
the-rango/Discord-Python-Bot-Tutorial
5afa7b0b6b2397a0d566bc6009bb7cac2e4354de
[ "Apache-2.0" ]
null
null
null
bot/main.py
the-rango/Discord-Python-Bot-Tutorial
5afa7b0b6b2397a0d566bc6009bb7cac2e4354de
[ "Apache-2.0" ]
null
null
null
# APACHE LICENSE # Copyright 2020 Stuart Paterson # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
29.380952
82
0.66329
18e81c7e28ba4d13c0ba77aba68314299f3e766e
4,945
py
Python
src/main.py
LucidtechAI/auth_example
a370833a16f8345e1e595f1ade3e830f8371157c
[ "Apache-2.0" ]
null
null
null
src/main.py
LucidtechAI/auth_example
a370833a16f8345e1e595f1ade3e830f8371157c
[ "Apache-2.0" ]
null
null
null
src/main.py
LucidtechAI/auth_example
a370833a16f8345e1e595f1ade3e830f8371157c
[ "Apache-2.0" ]
1
2019-03-08T09:52:05.000Z
2019-03-08T09:52:05.000Z
import argparse import json import requests import pathlib from urllib.parse import urlparse from auth import AWSSignatureV4 if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('api_endpoint', help='HTTPS endpoint for REST API') parser.add_argument('api_key') pa...
37.180451
121
0.70455