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
472e95ac4a9261e3fcd32bd608de33687d066d95
5,772
py
Python
src/enviroment.py
Menoita99/Reinforcement-Learning-Based-Encoder-Decoder-Implementation-
ed67b4ef6e23ee403ca43dc061c94301f1c685af
[ "MIT" ]
1
2021-07-11T13:12:08.000Z
2021-07-11T13:12:08.000Z
src/enviroment.py
Menoita99/Reinforcement-Learning-Based-Encoder-Decoder-Implementation-
ed67b4ef6e23ee403ca43dc061c94301f1c685af
[ "MIT" ]
1
2022-03-24T02:15:30.000Z
2022-03-24T02:15:30.000Z
src/enviroment.py
Menoita99/Reinforcement-Learning-Based-Encoder-Decoder-Implementation-
ed67b4ef6e23ee403ca43dc061c94301f1c685af
[ "MIT" ]
1
2021-07-11T13:12:08.000Z
2021-07-11T13:12:08.000Z
import enum import random import pandas as pd
31.889503
175
0.560638
472ec64557b8a07de29a23ddc1a024b5551b7046
2,225
py
Python
setup.py
MarkusH/django-osm-field
b7b8f6bd324a3dc29924962c303a6c4166840de4
[ "MIT" ]
23
2015-10-13T05:55:37.000Z
2021-12-09T02:43:59.000Z
setup.py
MarkusH/django-osm-field
b7b8f6bd324a3dc29924962c303a6c4166840de4
[ "MIT" ]
18
2015-04-21T16:35:21.000Z
2021-10-10T14:39:14.000Z
setup.py
MarkusH/django-osm-field
b7b8f6bd324a3dc29924962c303a6c4166840de4
[ "MIT" ]
13
2015-04-28T22:34:55.000Z
2022-03-28T16:03:42.000Z
import setuptools with open("README.md", "r") as f: long_description = f.read() setuptools.setup( name="django-osm-field", author="Markus Holtermann", author_email="info@markusholtermann.eu", description="Django OpenStreetMap Field", license="MIT", long_description=long_description, lo...
31.785714
98
0.545169
4730a28366b706a90435534ccea87bb676932eaa
24,143
py
Python
src/tools/bin/archive_to_arkivum.py
aherbert/omero-archiving
ce52a63215ea9b75a50d35ee9690fe37ee74794a
[ "0BSD" ]
1
2021-07-08T11:03:34.000Z
2021-07-08T11:03:34.000Z
src/tools/bin/archive_to_arkivum.py
aherbert/omero-archiving
ce52a63215ea9b75a50d35ee9690fe37ee74794a
[ "0BSD" ]
1
2022-01-20T12:24:43.000Z
2022-01-20T17:48:01.000Z
src/tools/bin/archive_to_arkivum.py
aherbert/omero-archiving
ce52a63215ea9b75a50d35ee9690fe37ee74794a
[ "0BSD" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted. # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANT...
33.672245
80
0.588121
4730cdda8c75e103b2413e71694e53ee48400e4d
3,980
py
Python
projects/Yolov3/convert.py
shellhue/detectron2
a027f2fe0dc21eedd201727515c4e963cd007ec0
[ "Apache-2.0" ]
3
2019-12-18T09:04:21.000Z
2020-04-21T08:31:26.000Z
projects/Yolov3/convert.py
shellhue/detectron2
a027f2fe0dc21eedd201727515c4e963cd007ec0
[ "Apache-2.0" ]
4
2021-06-08T20:51:59.000Z
2022-03-12T00:12:46.000Z
projects/Yolov3/convert.py
shellhue/detectron2
a027f2fe0dc21eedd201727515c4e963cd007ec0
[ "Apache-2.0" ]
1
2020-03-14T05:39:43.000Z
2020-03-14T05:39:43.000Z
import torch.nn as nn import numpy as np import torch import os from detectron2.config import get_cfg from detectron2.engine import DefaultTrainer, default_argument_parser, default_setup, launch from detectron2.evaluation import COCOEvaluator, verify_results from yolov3 import add_yolov3_config def setup(args): ...
35.221239
97
0.626131
4732b7772eda8e5da2f3077d9fda0eed21160738
6,102
py
Python
examples/al_logistic.py
kirthevasank/mps
2ba818c361e467841f6bbe0ef47a1e833ef315d3
[ "MIT" ]
3
2019-08-11T22:50:51.000Z
2021-08-03T06:39:04.000Z
examples/al_logistic.py
kirthevasank/mps
2ba818c361e467841f6bbe0ef47a1e833ef315d3
[ "MIT" ]
null
null
null
examples/al_logistic.py
kirthevasank/mps
2ba818c361e467841f6bbe0ef47a1e833ef315d3
[ "MIT" ]
3
2019-08-11T22:53:00.000Z
2021-04-15T13:16:43.000Z
""" An active learning example on a 1D parametric problem. -- kandasamy@cs.cmu.edu To execute this example, you will need to install the Edward probabilistic programming language (http://edwardlib.org). See http://edwardlib.org/iclr2017 for instructions. """ # pylint: disable=invalid-name # pylint: disable=...
36.759036
86
0.687807
5b25cfe6974828d106200cab739a7140d4fcfc56
306
py
Python
settings/settings.py
guilhermegch/telegram-twitter-bot
463517569e60d4caab5bf4fd36deac9b7f1bc2cd
[ "MIT" ]
2
2020-12-24T15:10:43.000Z
2021-02-13T05:23:10.000Z
settings/settings.py
guilhermegch/telegram-twitter-bot
463517569e60d4caab5bf4fd36deac9b7f1bc2cd
[ "MIT" ]
1
2021-02-26T16:30:36.000Z
2021-02-26T16:30:36.000Z
settings/settings.py
guilhermegch/telegram-twitter-bot
463517569e60d4caab5bf4fd36deac9b7f1bc2cd
[ "MIT" ]
null
null
null
import os from dotenv import load_dotenv load_dotenv() TELEGRAM_TOKEN = os.getenv("TELEGRAM_TOKEN") CHAT_ID = os.getenv("CHAT_ID") API_KEY = os.getenv("API_KEY") API_SECRET_KEY = os.getenv("API_SECRET_KEY") ACCESS_TOKEN = os.getenv("ACCESS_TOKEN") ACCESS_TOKEN_SECRET = os.getenv("ACCESS_TOKEN_SECRET")
23.538462
54
0.784314
5b262fe1cfdd19c11d28767c67a03711bd313651
12,917
py
Python
rsbeams/rsstats/kinematic.py
radiasoft/rsbeams
1a35c9222ee727a580d626b1791b2c29c1215346
[ "ECL-2.0", "Apache-2.0" ]
3
2017-11-03T18:06:27.000Z
2022-03-02T22:03:14.000Z
rsbeams/rsstats/kinematic.py
radiasoft/rsbeams
1a35c9222ee727a580d626b1791b2c29c1215346
[ "ECL-2.0", "Apache-2.0" ]
29
2018-01-14T16:48:28.000Z
2022-03-25T21:17:36.000Z
rsbeams/rsstats/kinematic.py
radiasoft/rsbeams
1a35c9222ee727a580d626b1791b2c29c1215346
[ "ECL-2.0", "Apache-2.0" ]
23
2018-01-16T19:41:20.000Z
2020-09-18T11:17:16.000Z
#!/usr/bin/env python import sys import argparse as arg import numpy as np from scipy.constants import e, c, m_e, physical_constants from future.utils import iteritems # TODO: Priority #1: Need to go back to the principle that user puts in whatever units they desire # TODO: cont. All calculations internall are cgs an...
42.630363
148
0.565379
5b26ea4b942bbea2547de23d670546a45074eb42
292
py
Python
Python Basics/Week 4/assess_ac4_1_1_8.py
sasathornt/Python-3-Programming-Specialization
34a204662112f8977bdd2831687a020d775d6f39
[ "MIT" ]
1
2020-04-17T14:22:15.000Z
2020-04-17T14:22:15.000Z
Python Basics/Week 4/assess_ac4_1_1_8.py
sasathornt/Python-3-Programming-Specialization
34a204662112f8977bdd2831687a020d775d6f39
[ "MIT" ]
null
null
null
Python Basics/Week 4/assess_ac4_1_1_8.py
sasathornt/Python-3-Programming-Specialization
34a204662112f8977bdd2831687a020d775d6f39
[ "MIT" ]
null
null
null
##Write code to switch the order of the winners list so that it is now Z to A. Assign this list to the variable z_winners. winners = ['Alice Munro', 'Alvin E. Roth', 'Kazuo Ishiguro', 'Malala Yousafzai', 'Rainer Weiss', 'Youyou Tu'] z_winners = winners z_winners.reverse() print(z_winners)
36.5
122
0.732877
5b272e873c9de7f31e79382b02ad299738f19a80
1,254
py
Python
shreddit/app.py
llalon/Shreddit
4b083121b8909aca39715390c6c61b5b9f11664d
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
shreddit/app.py
llalon/Shreddit
4b083121b8909aca39715390c6c61b5b9f11664d
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
shreddit/app.py
llalon/Shreddit
4b083121b8909aca39715390c6c61b5b9f11664d
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
"""This module contains script entrypoints for shreddit. """ import argparse import yaml import logging import os import pkg_resources from shreddit import default_config from shreddit.shredder import Shredder CONFIG_FILE_PATH = "/app/config/shreddit.yml" if __name__ == "__main__": try: main() exce...
28.5
115
0.69697
5b28828610a5ad5e04acee2728602c3a07c4c935
476
py
Python
helpers/bnp.py
wim-vdw/bank-statement-converter
c79f56a756778d249b38b871e02cf68d95b2943e
[ "MIT" ]
null
null
null
helpers/bnp.py
wim-vdw/bank-statement-converter
c79f56a756778d249b38b871e02cf68d95b2943e
[ "MIT" ]
null
null
null
helpers/bnp.py
wim-vdw/bank-statement-converter
c79f56a756778d249b38b871e02cf68d95b2943e
[ "MIT" ]
null
null
null
from PyPDF3 import PdfFileReader
29.75
60
0.661765
5b2959e590709993e1842b7c13e5e7666b0d0eed
426
py
Python
c15/p280_test1511.py
pkingpeng/-python-
f7c3269b6c13edf31449a3f21c3314c27095c984
[ "Apache-2.0" ]
null
null
null
c15/p280_test1511.py
pkingpeng/-python-
f7c3269b6c13edf31449a3f21c3314c27095c984
[ "Apache-2.0" ]
null
null
null
c15/p280_test1511.py
pkingpeng/-python-
f7c3269b6c13edf31449a3f21c3314c27095c984
[ "Apache-2.0" ]
null
null
null
import time print(time.time()) startTime = time.time() result = calcProd() endTime = time.time() print('The result is %s digits long, took %s seconds to calculate.' % (len(str(result)), (endTime - startTime))) """ 1586680463.075951 The result is 456569 digits long, took 2.2562198638916016 seconds to calculate. ""...
18.521739
112
0.673709
5b2a2ee9eb529547d321f575db078e312ed392cd
3,592
py
Python
blog/user.py
mahdisj/flask_project
464f892c4f67b0404c8d44517325f9a43496b22b
[ "BSD-3-Clause" ]
1
2022-01-06T07:38:03.000Z
2022-01-06T07:38:03.000Z
blog/user.py
mowbish/Blog_Project
464f892c4f67b0404c8d44517325f9a43496b22b
[ "BSD-3-Clause" ]
2
2021-08-18T18:56:35.000Z
2021-08-19T13:42:18.000Z
blog/user.py
mowbish/Blog_Project
464f892c4f67b0404c8d44517325f9a43496b22b
[ "BSD-3-Clause" ]
4
2021-08-12T13:28:13.000Z
2021-09-01T14:15:10.000Z
from flask import Blueprint from flask import g from flask import flash from flask import redirect from flask import render_template from flask import request from flask import url_for from werkzeug.exceptions import abort from werkzeug.utils import secure_filename from bson import ObjectId from blog.auth imp...
31.234783
119
0.548719
5b2d3bb33aaf00064a4a81aefce63447edda3498
100
py
Python
Python-Hackerrank/Eye and Identity.py
nihalkhan2810/Data-Structures-Algorithms
3224fba18dcdbb1c6cc3d7f7a16df4ed0e0a321d
[ "MIT" ]
10
2020-05-02T14:42:15.000Z
2021-01-26T16:51:47.000Z
Python-Hackerrank/Eye and Identity.py
nihalkhan2810/Data-Structures-Algorithms
3224fba18dcdbb1c6cc3d7f7a16df4ed0e0a321d
[ "MIT" ]
null
null
null
Python-Hackerrank/Eye and Identity.py
nihalkhan2810/Data-Structures-Algorithms
3224fba18dcdbb1c6cc3d7f7a16df4ed0e0a321d
[ "MIT" ]
13
2020-03-05T13:31:11.000Z
2021-01-29T08:14:26.000Z
import numpy print(str(numpy.eye(*map(int,input().split()))).replace('1',' 1').replace('0',' 0'))
20
84
0.61
5b2ea698bf453d5761c99858fd3248bda11d4d8d
160
py
Python
main.py
NChechulin/telegram-renderer-bot
3b66a550022bce1604a073a2c922d6c9597f508f
[ "MIT" ]
1
2020-09-20T04:36:11.000Z
2020-09-20T04:36:11.000Z
main.py
NChechulin/telegram-renderer-bot
3b66a550022bce1604a073a2c922d6c9597f508f
[ "MIT" ]
2
2020-04-04T21:02:49.000Z
2020-04-06T11:16:17.000Z
main.py
NChechulin/telegram-renderer-bot
3b66a550022bce1604a073a2c922d6c9597f508f
[ "MIT" ]
null
null
null
"""Main file which starts the bot and sets all of the parameters""" from bot import Bot if __name__ == '__main__': bot = Bot('token.txt') bot.start()
20
67
0.6625
5b2fe9458d92b9142657735d809e3eae76a1581c
14,009
py
Python
tpRigToolkit/tools/controlrig/widgets/controlviewer.py
tpRigToolkit/tpRigToolkit-tools-controlrig
46e15377d64418bcc4bc8944c3f9537603fa0e9d
[ "MIT" ]
null
null
null
tpRigToolkit/tools/controlrig/widgets/controlviewer.py
tpRigToolkit/tpRigToolkit-tools-controlrig
46e15377d64418bcc4bc8944c3f9537603fa0e9d
[ "MIT" ]
null
null
null
tpRigToolkit/tools/controlrig/widgets/controlviewer.py
tpRigToolkit/tpRigToolkit-tools-controlrig
46e15377d64418bcc4bc8944c3f9537603fa0e9d
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Module that contains control viewer widget for tpRigToolkit.tools.controlrig """ from __future__ import print_function, division, absolute_import import math from copy import copy from Qt.QtCore import QPoint, QPointF, QRect, QRectF, QLineF from Qt.QtWidgets import...
36.481771
119
0.572346
5b31e7140c554c44dbfaf956752e0ce5c615d9a0
3,647
py
Python
sinfo/perifericos/views.py
webdesigncuba/Sinfo
15998b43057b0c0f13083a3017f27740c64239bf
[ "MIT" ]
null
null
null
sinfo/perifericos/views.py
webdesigncuba/Sinfo
15998b43057b0c0f13083a3017f27740c64239bf
[ "MIT" ]
null
null
null
sinfo/perifericos/views.py
webdesigncuba/Sinfo
15998b43057b0c0f13083a3017f27740c64239bf
[ "MIT" ]
null
null
null
# # Created on Sat Dec 25 2021 # # The MIT License (MIT) # Copyright (c) 2021 David Cordero Rosales # # 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, # including without li...
33.458716
122
0.718124
5b332c72b302cfe177178082cf6acc6352315dcc
2,548
py
Python
autogluon/utils/tabular/ml/models/tab_transformer/hyperparameters/parameters.py
joshr17/autogluon
893cf20ad761751886a827e2d10710eb6df61291
[ "Apache-2.0" ]
null
null
null
autogluon/utils/tabular/ml/models/tab_transformer/hyperparameters/parameters.py
joshr17/autogluon
893cf20ad761751886a827e2d10710eb6df61291
[ "Apache-2.0" ]
null
null
null
autogluon/utils/tabular/ml/models/tab_transformer/hyperparameters/parameters.py
joshr17/autogluon
893cf20ad761751886a827e2d10710eb6df61291
[ "Apache-2.0" ]
null
null
null
from ....constants import BINARY, MULTICLASS, REGRESSION def get_fixed_params(): """ Parameters that currently cannot be searched during HPO TODO: HPO NOT CURRENTLY IMPLEMENTED FOR TABTRANSFORMER Will need to figure out what (in future PR) is "fixed" and what is searchable. """ fixed_params = {'batch_s...
44.701754
86
0.431319
5b346d8eb912e92694627beff6d3cb24dfe08b7c
327
py
Python
Accounts/migrations/0014_remove_timetable_class_time.py
Anand911/E-LEARNING-SCLMAXO-
a16c317ae482c91f4f91c967ddc3e498a43ac7e9
[ "MIT" ]
1
2021-02-14T10:43:21.000Z
2021-02-14T10:43:21.000Z
Accounts/migrations/0014_remove_timetable_class_time.py
Anand911/E-LEARNING-SCLMAXO-
a16c317ae482c91f4f91c967ddc3e498a43ac7e9
[ "MIT" ]
1
2021-01-12T07:22:08.000Z
2021-01-13T19:07:02.000Z
Accounts/migrations/0014_remove_timetable_class_time.py
Anand911/E-LEARNING-SCLMAXO-
a16c317ae482c91f4f91c967ddc3e498a43ac7e9
[ "MIT" ]
6
2020-12-13T17:46:37.000Z
2021-02-10T13:47:25.000Z
# Generated by Django 3.1.3 on 2020-12-18 12:59 from django.db import migrations
18.166667
47
0.590214
5b375610f2df94425cc6ff0fc566d0f540dd1a07
93
py
Python
app/crawlzero/apps.py
rputh055/crawlzerotest
6dfd919b2d59b5d3eec7ea9b2f5ff149428ae83f
[ "MIT" ]
null
null
null
app/crawlzero/apps.py
rputh055/crawlzerotest
6dfd919b2d59b5d3eec7ea9b2f5ff149428ae83f
[ "MIT" ]
null
null
null
app/crawlzero/apps.py
rputh055/crawlzerotest
6dfd919b2d59b5d3eec7ea9b2f5ff149428ae83f
[ "MIT" ]
null
null
null
from django.apps import AppConfig
15.5
33
0.763441
5b37b2fb348d45fd02d8f2acaf70e041233fe2f7
1,334
py
Python
fastflix/encoders/copy/settings_panel.py
AwesomeGitHubRepos/FastFlix
60adf2b68a13907ac17013cb621867b2b302c101
[ "MIT" ]
1
2021-06-14T04:35:50.000Z
2021-06-14T04:35:50.000Z
fastflix/encoders/copy/settings_panel.py
AwesomeGitHubRepos/FastFlix
60adf2b68a13907ac17013cb621867b2b302c101
[ "MIT" ]
1
2020-12-24T13:08:56.000Z
2020-12-24T13:08:56.000Z
fastflix/encoders/copy/settings_panel.py
leonardyan/FastFlix
01f19c2de74945a4c60db61711aea9d3fe01b0cc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging from qtpy import QtWidgets from fastflix.encoders.common.setting_panel import SettingPanel from fastflix.language import t from fastflix.models.encode import CopySettings from fastflix.models.fastflix_app import FastFlixApp logger = logging.getLogger("fastflix")
36.054054
109
0.715142
5b38ee5a6db9bcb14bd052bda891d575c9747173
1,611
py
Python
thermo_images/teste.py
brochinejr/thermo_images
be9f6d6fa26f58301d102a7cdcc8ca32a69a5289
[ "RSA-MD" ]
null
null
null
thermo_images/teste.py
brochinejr/thermo_images
be9f6d6fa26f58301d102a7cdcc8ca32a69a5289
[ "RSA-MD" ]
null
null
null
thermo_images/teste.py
brochinejr/thermo_images
be9f6d6fa26f58301d102a7cdcc8ca32a69a5289
[ "RSA-MD" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import cv2 from skimage.data import astronaut from skimage.color import rgb2gray from skimage.filters import sobel from skimage.segmentation import felzenszwalb, slic, quickshift, watershed from skimage.segmentation import mark_boundaries from skimage.util import img_...
38.357143
90
0.770329
5b3912de771cac5c847fca87045280e13b237dd4
2,048
py
Python
tests/test_params.py
matthewjohnpayne/MPCData
bf5cc4b846437928d3c7e4bfb8d809f8bf9f9dc4
[ "MIT" ]
null
null
null
tests/test_params.py
matthewjohnpayne/MPCData
bf5cc4b846437928d3c7e4bfb8d809f8bf9f9dc4
[ "MIT" ]
null
null
null
tests/test_params.py
matthewjohnpayne/MPCData
bf5cc4b846437928d3c7e4bfb8d809f8bf9f9dc4
[ "MIT" ]
null
null
null
# mpcdata/tests/test_query.py # import pytest # Third-party imports import os # Import the specific package/module/function we are testing import mpcdata.params as params # from .context import mpcdata def test_required_dictionaries_exist(): """ Does params.py contain all of the required dictionaries ? "...
32
111
0.679199
5b3953f91cb7e3a0cd0d67201766483abefb5893
229
py
Python
Week 3/Python Track/Permituation.py
Dawit-Getachew/A2SV_Practice
2fe06d725e0acfe668c6dae98fe3ef6e6e26ef61
[ "MIT" ]
null
null
null
Week 3/Python Track/Permituation.py
Dawit-Getachew/A2SV_Practice
2fe06d725e0acfe668c6dae98fe3ef6e6e26ef61
[ "MIT" ]
null
null
null
Week 3/Python Track/Permituation.py
Dawit-Getachew/A2SV_Practice
2fe06d725e0acfe668c6dae98fe3ef6e6e26ef61
[ "MIT" ]
null
null
null
# Enter your code here. Read input from STDIN. Print output to STDOUT from itertools import permutations s1 = input().split() S2 = sorted(tuple(s1[0])) out = tuple(permutations(S2,int(s1[1]))) for i in out: print("".join(i))
28.625
69
0.69869
5b39d240262b13166339eac3bbfa745be468bf90
1,685
py
Python
tests/chainer_tests/functions_tests/math_tests/test_linear_interpolate.py
zaltoprofen/chainer
3b03f9afc80fd67f65d5e0395ef199e9506b6ee1
[ "MIT" ]
3,705
2017-06-01T07:36:12.000Z
2022-03-30T10:46:15.000Z
tests/chainer_tests/functions_tests/math_tests/test_linear_interpolate.py
zaltoprofen/chainer
3b03f9afc80fd67f65d5e0395ef199e9506b6ee1
[ "MIT" ]
5,998
2017-06-01T06:40:17.000Z
2022-03-08T01:42:44.000Z
tests/chainer_tests/functions_tests/math_tests/test_linear_interpolate.py
zaltoprofen/chainer
3b03f9afc80fd67f65d5e0395ef199e9506b6ee1
[ "MIT" ]
1,150
2017-06-02T03:39:46.000Z
2022-03-29T02:29:32.000Z
import numpy from chainer import functions from chainer import testing from chainer import utils testing.run_module(__name__, __file__)
27.622951
70
0.588131
5b3c6f097c1609e8407e35a3ba36afcad1ca179f
1,290
py
Python
python/exercicios mundo 2/ex36_45.py/ex011.py
LEXW3B/PYTHON
1ae54ea709c008bd7fab7602e034773610e7985e
[ "MIT" ]
1
2022-01-05T08:51:16.000Z
2022-01-05T08:51:16.000Z
python/exercicios mundo 2/ex36_45.py/ex011.py
LEXW3B/PYTHON
1ae54ea709c008bd7fab7602e034773610e7985e
[ "MIT" ]
null
null
null
python/exercicios mundo 2/ex36_45.py/ex011.py
LEXW3B/PYTHON
1ae54ea709c008bd7fab7602e034773610e7985e
[ "MIT" ]
null
null
null
#45-crie um programa que faa o computador jogar jokenpo com voce. print('=====JOKENPO=====') print('') from random import randint from time import sleep itens = ('pedra','papel','tesoura') computador = randint(0, 2) print('''FAA SUA ESCOLHA [ 0 ] pedra [ 1 ] papel [ 2 ] tesoura ''') jogador = int(input('Qual a sua jog...
20.47619
66
0.589922
5b3d1a1a7b9ced330a393b5b36de18c6dc02c5f8
5,940
py
Python
pyvcloud/vcd/vm.py
pacogomez/pyvcloud
731aded20b999d269472caf65df774c284dd49b6
[ "Apache-2.0" ]
null
null
null
pyvcloud/vcd/vm.py
pacogomez/pyvcloud
731aded20b999d269472caf65df774c284dd49b6
[ "Apache-2.0" ]
1
2017-12-28T13:50:54.000Z
2017-12-28T17:28:15.000Z
pyvcloud/vcd/vm.py
pacogomez/pyvcloud
731aded20b999d269472caf65df774c284dd49b6
[ "Apache-2.0" ]
1
2017-12-28T10:22:55.000Z
2017-12-28T10:22:55.000Z
# VMware vCloud Director Python SDK # Copyright (c) 2017 VMware, 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 #...
37.125
79
0.639394
5b3d25843802a6a90ece238f7b25e27cfaa9ff9d
8,105
py
Python
backend/api/models.py
ezequielaranda/solservicios
275405e628b17543a42b28a9bc25bea345669aae
[ "MIT" ]
null
null
null
backend/api/models.py
ezequielaranda/solservicios
275405e628b17543a42b28a9bc25bea345669aae
[ "MIT" ]
6
2020-05-07T19:32:26.000Z
2021-06-10T22:56:56.000Z
backend/api/models.py
ezequielaranda/solservicios
275405e628b17543a42b28a9bc25bea345669aae
[ "MIT" ]
null
null
null
from django.db import models from rest_framework import serializers from django.utils import timezone from django.contrib.auth.models import User # Definicin de la clase PROVEEDOR # Definicin de la TIPOS de PRODUCTO # Definicin de las FAMILIAS de PRODUCTO #Definicin de la clase ACCION # Definicin de la clase PRODU...
41.142132
109
0.744232
5b3e1ecc5b38c542cefb82dcef9d99e754c07ad0
8,113
py
Python
Leak #5 - Lost In Translation/windows/Resources/Dsz/PyScripts/Lib/dsz/mca/survey/cmd/passworddump/errors.py
bidhata/EquationGroupLeaks
1ff4bc115cb2bd5bf2ed6bf769af44392926830c
[ "Unlicense" ]
9
2019-11-22T04:58:40.000Z
2022-02-26T16:47:28.000Z
Leak #5 - Lost In Translation/windows/Resources/Dsz/PyScripts/Lib/dsz/mca/survey/cmd/passworddump/errors.py
bidhata/EquationGroupLeaks
1ff4bc115cb2bd5bf2ed6bf769af44392926830c
[ "Unlicense" ]
null
null
null
Leak #5 - Lost In Translation/windows/Resources/Dsz/PyScripts/Lib/dsz/mca/survey/cmd/passworddump/errors.py
bidhata/EquationGroupLeaks
1ff4bc115cb2bd5bf2ed6bf769af44392926830c
[ "Unlicense" ]
8
2017-09-27T10:31:18.000Z
2022-01-08T10:30:46.000Z
# uncompyle6 version 2.9.10 # Python bytecode 2.7 (62211) # Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10) # [GCC 6.2.0 20161005] # Embedded file name: errors.py import mcl.status ERR_SUCCESS = mcl.status.MCL_SUCCESS ERR_INVALID_PARAM = mcl.status.framework.ERR_START ERR_NOT_IMPLEMENTED = mcl.status....
68.754237
109
0.824972
5b3efa495764e79db80a8d873dca101b98d76f42
682
py
Python
meep/__init__.py
mtander/meep
5b8085014d43f9201b2283bc7d9085f1ace20406
[ "MIT" ]
null
null
null
meep/__init__.py
mtander/meep
5b8085014d43f9201b2283bc7d9085f1ace20406
[ "MIT" ]
null
null
null
meep/__init__.py
mtander/meep
5b8085014d43f9201b2283bc7d9085f1ace20406
[ "MIT" ]
null
null
null
from flask import Flask from config import DefaultConfig # factory method for creating app objects
27.28
56
0.752199
5b3f258a42659e83c84a193664cad0abb36435d6
22,508
py
Python
inversehaar.py
matthewearl/inversehaar
876cfb055e656e1c75ef25dbfbecdf3ce9f8ad3b
[ "MIT" ]
20
2016-01-18T12:26:06.000Z
2019-04-15T11:13:49.000Z
inversehaar.py
matthewearl/inversehaar
876cfb055e656e1c75ef25dbfbecdf3ce9f8ad3b
[ "MIT" ]
null
null
null
inversehaar.py
matthewearl/inversehaar
876cfb055e656e1c75ef25dbfbecdf3ce9f8ad3b
[ "MIT" ]
4
2017-05-31T02:40:41.000Z
2020-04-22T10:38:03.000Z
#!/usr/bin/env python # Copyright (c) 2015 Matthew Earl # # 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, including without limitation the rights # to use, copy, modify,...
36.070513
83
0.571708
5b41dca0dc7f5a816592454fec9d09eb00293d8b
199
py
Python
users/urls.py
a-vek/news-aggregator
d1aafbf7f2eed365ba734912e494af5c92728379
[ "MIT" ]
null
null
null
users/urls.py
a-vek/news-aggregator
d1aafbf7f2eed365ba734912e494af5c92728379
[ "MIT" ]
null
null
null
users/urls.py
a-vek/news-aggregator
d1aafbf7f2eed365ba734912e494af5c92728379
[ "MIT" ]
null
null
null
from django.urls import path from news.views import scrape, news_list from . import views urlpatterns = [ # path('', views.index, name="home"), # path('newslist', news_list, name="home"), ]
22.111111
47
0.678392
5b42b16965f1e6f2275117ba1529d214339f949e
4,735
py
Python
communication/socket_util.py
compix/MetadataManagerCore
59ff0bd908d69c624834d72e64f4e0bff01f2a49
[ "MIT" ]
null
null
null
communication/socket_util.py
compix/MetadataManagerCore
59ff0bd908d69c624834d72e64f4e0bff01f2a49
[ "MIT" ]
null
null
null
communication/socket_util.py
compix/MetadataManagerCore
59ff0bd908d69c624834d72e64f4e0bff01f2a49
[ "MIT" ]
null
null
null
import socket import json import struct from concurrent.futures import ThreadPoolExecutor import time import logging logger = logging.getLogger(__name__) if __name__ == "__main__": serverSocket = JsonSocket() serverSocket.connectServer(5000) g_executor = ThreadPoolExecutor(max_workers=1) g_executor.s...
31.993243
96
0.640127
5b4477c7ff32f21e1eedcba6eff6f119beced119
1,120
py
Python
src/api/migrations/0003_auto_20190604_1058.py
pradipta/back-end
05895b051afc4c8e0cb17db708063d80102e9de5
[ "MIT" ]
17
2019-05-11T22:15:34.000Z
2022-03-26T22:45:33.000Z
src/api/migrations/0003_auto_20190604_1058.py
pradipta/back-end
05895b051afc4c8e0cb17db708063d80102e9de5
[ "MIT" ]
390
2019-05-23T10:48:57.000Z
2021-12-17T21:01:43.000Z
src/api/migrations/0003_auto_20190604_1058.py
pradipta/back-end
05895b051afc4c8e0cb17db708063d80102e9de5
[ "MIT" ]
40
2019-05-21T14:41:57.000Z
2021-01-30T13:39:38.000Z
# Generated by Django 2.2.2 on 2019-06-04 15:58 from django.db import migrations
37.333333
58
0.686607
5b45b7ebc3202d65284b774cf188919577862056
370
py
Python
Stomp/Utils/util.py
phan91/STOMP_agilis
c47394e7b58809fdd3eba539b6fa610eb8b476ce
[ "MIT" ]
null
null
null
Stomp/Utils/util.py
phan91/STOMP_agilis
c47394e7b58809fdd3eba539b6fa610eb8b476ce
[ "MIT" ]
null
null
null
Stomp/Utils/util.py
phan91/STOMP_agilis
c47394e7b58809fdd3eba539b6fa610eb8b476ce
[ "MIT" ]
null
null
null
import re def replace_all(repls, str): """ Applies replacements as described in the repls dictionary on input str. :param repls: Dictionary of replacements :param str: The string to be changed :return: The changed string """ return re.sub('|'.join(re.escape(key) for key in repls.keys()), ...
30.833333
75
0.645946
5b46be0de52122650ce7b53028183e21f425fa14
185
py
Python
ex048.py
CarlosEduardoAS/Python-exercicios
c0063660191a86e83f25708239b62b6764a51670
[ "MIT" ]
null
null
null
ex048.py
CarlosEduardoAS/Python-exercicios
c0063660191a86e83f25708239b62b6764a51670
[ "MIT" ]
null
null
null
ex048.py
CarlosEduardoAS/Python-exercicios
c0063660191a86e83f25708239b62b6764a51670
[ "MIT" ]
null
null
null
s = 0 cont = 0 for c in range(1, 501, 2): if c % 3 == 0: cont += 1 s += c print('A soma ente todos os {} mpares mltiplos de 3 entre 1 e 500 {}.'.format(cont, s))
26.428571
91
0.524324
5b46cfa3134f9db13338c6b633fbe8af7e2e0a25
4,153
py
Python
source/casual/make/compiler/gcc.py
casualcore/casual-make
935392bc54d2e1fb86a20406f668774de63a7cb1
[ "MIT" ]
null
null
null
source/casual/make/compiler/gcc.py
casualcore/casual-make
935392bc54d2e1fb86a20406f668774de63a7cb1
[ "MIT" ]
null
null
null
source/casual/make/compiler/gcc.py
casualcore/casual-make
935392bc54d2e1fb86a20406f668774de63a7cb1
[ "MIT" ]
null
null
null
import platform import casual.make.platform.common as common import casual.make.tools.environment as environment CXX = common.cxx() COMPILER = CXX OPTIONAL_FLAGS = common.optional_flags() VERSION_DIRECTIVE = common.casual_build_version() GITHASH_DIRECTIVE = common.casual_build_commit_hash() # Linkers LIBRARY_L...
30.762963
99
0.650614
5b46e230e630204c976c8ffe3cfb3b96c0f2ab66
3,914
py
Python
modificar_pacientes.py
Ratius9919/TP-programacion
bbe7040333b0319ca609fa61147519ee9c6434b0
[ "Apache-2.0" ]
null
null
null
modificar_pacientes.py
Ratius9919/TP-programacion
bbe7040333b0319ca609fa61147519ee9c6434b0
[ "Apache-2.0" ]
null
null
null
modificar_pacientes.py
Ratius9919/TP-programacion
bbe7040333b0319ca609fa61147519ee9c6434b0
[ "Apache-2.0" ]
null
null
null
import os dni = input("Cual es el DNI que desea modificar?") main(dni)
30.818898
114
0.566684
5b47c020381d563cd22c6d5f79397ba250b6cf19
266
py
Python
solutions/pybasic_ex1_4_1.py
mfernandes61/python-basic
fc105db0e2e3af1830d833eef368fd011b4fcf5e
[ "Unlicense" ]
40
2017-02-22T05:35:16.000Z
2022-01-10T09:28:35.000Z
solutions/pybasic_ex1_4_1.py
mfernandes61/python-basic
fc105db0e2e3af1830d833eef368fd011b4fcf5e
[ "Unlicense" ]
10
2016-12-12T17:06:50.000Z
2019-06-14T13:34:22.000Z
solutions/pybasic_ex1_4_1.py
mfernandes61/python-basic
fc105db0e2e3af1830d833eef368fd011b4fcf5e
[ "Unlicense" ]
47
2017-03-24T19:48:50.000Z
2022-02-27T15:53:09.000Z
# Protein sequence given seq = "MPISEPTFFEIF" # Split the sequence into its component amino acids seq_list = list(seq) # Use a set to establish the unique amino acids unique_amino_acids = set(seq_list) # Print out the unique amino acids print(unique_amino_acids)
22.166667
51
0.781955
5b47c29aaab3cdf3c4e1671a310113a2c0e1ba3f
486
py
Python
campy/private/backends/backend_interactive_console.py
TristenSeth/campy
9e726c342d682239e1c19e6f5645c0b2167d7fab
[ "MIT" ]
null
null
null
campy/private/backends/backend_interactive_console.py
TristenSeth/campy
9e726c342d682239e1c19e6f5645c0b2167d7fab
[ "MIT" ]
null
null
null
campy/private/backends/backend_interactive_console.py
TristenSeth/campy
9e726c342d682239e1c19e6f5645c0b2167d7fab
[ "MIT" ]
null
null
null
from campy.private.backend_base import ConsoleBackendBase
20.25
57
0.658436
5b485cb1cc265a14ca9183a9c1f8a057dc3e6b2f
2,608
py
Python
apps/examples/simple-example/test/integration/test_it_collect_spawn.py
pcanto-hopeit/hopeit.engine
c17b0438e56940a4d1b2f071cca90ae8b6f70629
[ "Apache-2.0" ]
15
2020-07-09T17:41:14.000Z
2021-10-04T20:13:08.000Z
apps/examples/simple-example/test/integration/test_it_collect_spawn.py
pcanto-hopeit/hopeit.engine
c17b0438e56940a4d1b2f071cca90ae8b6f70629
[ "Apache-2.0" ]
48
2020-07-10T15:16:17.000Z
2022-03-03T19:46:46.000Z
apps/examples/simple-example/test/integration/test_it_collect_spawn.py
pcanto-hopeit/hopeit.engine
c17b0438e56940a4d1b2f071cca90ae8b6f70629
[ "Apache-2.0" ]
3
2020-07-08T20:12:58.000Z
2021-01-10T15:57:21.000Z
import os import uuid import pytest # type: ignore from hopeit.testing.apps import execute_event from hopeit.server.version import APPS_API_VERSION from model import Something from simple_example.collector.collect_spawn import ItemsInfo, ItemsCollected APP_VERSION = APPS_API_VERSION.replace('.', "x")
41.396825
94
0.577071
5b487a8b99ccb82c0f1a7123624b4438aa8ebb71
1,767
py
Python
app.py
ruturajshete1008/Heart-health-prediction
75fe4232f19014ed2b6fb2463c815ba023ad7a0d
[ "MIT" ]
3
2018-11-28T04:30:15.000Z
2019-01-02T09:13:03.000Z
app.py
ruturajshete1008/Heart-health-prediction
75fe4232f19014ed2b6fb2463c815ba023ad7a0d
[ "MIT" ]
null
null
null
app.py
ruturajshete1008/Heart-health-prediction
75fe4232f19014ed2b6fb2463c815ba023ad7a0d
[ "MIT" ]
null
null
null
from flask import Flask, jsonify, render_template import pandas as pd import os import pymongo from flask import send_from_directory from pymongo import MongoClient # initialize flask app app = Flask(__name__) app.config['JSON_SORT_KEYS'] = False # read the data and merge it df_labels = pd.read_csv('train_labels.csv...
26.772727
89
0.710243
5b48b34a9e7a2aa7d8ebb9fa3eabb138aabac88b
15,103
py
Python
tests/test_transform.py
braedon/kong-log-bridge
a2f7622f1ad77af93036b221243f556853c34343
[ "MIT" ]
2
2021-03-10T20:12:28.000Z
2021-07-24T05:54:46.000Z
tests/test_transform.py
braedon/kong-log-bridge
a2f7622f1ad77af93036b221243f556853c34343
[ "MIT" ]
null
null
null
tests/test_transform.py
braedon/kong-log-bridge
a2f7622f1ad77af93036b221243f556853c34343
[ "MIT" ]
null
null
null
import unittest from kong_log_bridge.transform import transform_log
44.683432
653
0.449315
5b48f5f2c39f9a6ca862b7d0c171aebace55201c
655
py
Python
tests/utils.py
ilyarogozin/homework_bot
52bc4c028edb2a80082d4902fb35d09a3b98fc7c
[ "MIT" ]
null
null
null
tests/utils.py
ilyarogozin/homework_bot
52bc4c028edb2a80082d4902fb35d09a3b98fc7c
[ "MIT" ]
null
null
null
tests/utils.py
ilyarogozin/homework_bot
52bc4c028edb2a80082d4902fb35d09a3b98fc7c
[ "MIT" ]
null
null
null
from inspect import signature from types import ModuleType def check_function(scope: ModuleType, func_name: str, params_qty: int = 0): """Checks if scope has a function with specific name and params with qty""" assert hasattr(scope, func_name), ( f' `{func_name}`. ' ' .' ) func ...
28.478261
79
0.658015
5b4a8c62ba6b42395b0ef146b30118ae4a735b55
539
py
Python
train.py
ex7763/pytorch-HED
8695c996af48d917851bfe629ca219471d40aa5c
[ "MIT" ]
null
null
null
train.py
ex7763/pytorch-HED
8695c996af48d917851bfe629ca219471d40aa5c
[ "MIT" ]
null
null
null
train.py
ex7763/pytorch-HED
8695c996af48d917851bfe629ca219471d40aa5c
[ "MIT" ]
null
null
null
import torch import yaml import argparse from dataset.BSD500 import BSD500Dataset from models.HED import HED ############### # parse cfg ############### parser = argparse.ArgumentParser() parser.add_argument('--cfg', dest='cfg', required=True, help='path to config file') args = parser.parse_known_args() args = pars...
17.387097
83
0.625232
5b4aa60fac414c1e92f0c6cad337e78c14c64cbe
3,482
py
Python
tests/unit/hypernode_vagrant_runner/commands/test_parse_start_runner_arguments.py
vdloo/hypernode-vagrant-runner
241b9612769b74b536a43f4e6821003c5f1ea2c3
[ "MIT" ]
null
null
null
tests/unit/hypernode_vagrant_runner/commands/test_parse_start_runner_arguments.py
vdloo/hypernode-vagrant-runner
241b9612769b74b536a43f4e6821003c5f1ea2c3
[ "MIT" ]
null
null
null
tests/unit/hypernode_vagrant_runner/commands/test_parse_start_runner_arguments.py
vdloo/hypernode-vagrant-runner
241b9612769b74b536a43f4e6821003c5f1ea2c3
[ "MIT" ]
null
null
null
from mock import ANY, call from hypernode_vagrant_runner.commands import parse_start_runner_arguments from hypernode_vagrant_runner.settings import HYPERNODE_VAGRANT_PHP_VERSIONS, \ HYPERNODE_VAGRANT_DEFAULT_USER, HYPERNODE_VAGRANT_DEFAULT_PHP_VERSION, \ HYPERNODE_VAGRANT_USERS from tests.testcase import TestC...
31.369369
101
0.670879
5b4d5fdd9c41e3cd542218051f15a30c5892c606
161
py
Python
Configs/UNet_Configs.py
zeeshanalipnhwr/Semantic-Segmentation-Keras
304af52c60a16e32da9f1e3f57c653f578cc8bf5
[ "MIT" ]
3
2020-04-13T07:56:03.000Z
2020-10-13T12:56:00.000Z
Configs/UNet_Configs.py
zeeshanalipnhwr/Semantic-Segmentation-Keras
304af52c60a16e32da9f1e3f57c653f578cc8bf5
[ "MIT" ]
null
null
null
Configs/UNet_Configs.py
zeeshanalipnhwr/Semantic-Segmentation-Keras
304af52c60a16e32da9f1e3f57c653f578cc8bf5
[ "MIT" ]
2
2020-04-06T02:09:04.000Z
2020-04-06T09:43:36.000Z
DEPTH = 16 # the number of filters of the first conv layer of the encoder of the UNet # Training hyperparameters BATCHSIZE = 16 EPOCHS = 100 OPTIMIZER = "adam"
23
85
0.751553
5b4efefa7c72bf1ac0d47d8be34d61c51dd67ac7
571
py
Python
geinos/app/core/radius/radius.py
falhenaki/GEINOS
c0bf883c582972b08ab5ee45d2bd0463d6c48087
[ "MIT" ]
3
2018-03-19T16:51:21.000Z
2019-01-18T22:52:19.000Z
geinos/app/core/radius/radius.py
falhenaki/GEINOS
c0bf883c582972b08ab5ee45d2bd0463d6c48087
[ "MIT" ]
261
2018-02-08T16:24:26.000Z
2018-08-07T03:38:16.000Z
geinos/app/core/radius/radius.py
falhenaki/GEINOS
c0bf883c582972b08ab5ee45d2bd0463d6c48087
[ "MIT" ]
null
null
null
from sqlalchemy import * from sqlalchemy import Column, String from sqlalchemy.ext.declarative import declarative_base from app.core.sqlalchemy_base.augmented_base import CustomMixin Base = declarative_base()
33.588235
76
0.628722
5b51429e70bf3b023a44e4c609ce439b41983428
2,747
py
Python
FCN.py
xinming365/DL-exercise
3ef153bc1aa791889cd37a7d3c14bef3937c459a
[ "Apache-2.0" ]
null
null
null
FCN.py
xinming365/DL-exercise
3ef153bc1aa791889cd37a7d3c14bef3937c459a
[ "Apache-2.0" ]
1
2020-07-31T13:15:06.000Z
2020-07-31T13:17:34.000Z
FCN.py
xinming365/DL-exercise
3ef153bc1aa791889cd37a7d3c14bef3937c459a
[ "Apache-2.0" ]
null
null
null
# Author : xinming # Time : 2020/06/27 # Imports import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F from torch.utils.data import DataLoader import torchvision.datasets as datasets import torchvision.transforms as transforms #Create fully connected network # Base class for a...
28.319588
114
0.680743
5b51b63f59cf7aeec2c467a2071c5cf2def5fcc8
15,485
py
Python
skexplain/common/utils.py
monte-flora/scikit-explain
d93ca4c77d1d47e613479ae36cc055ffaafea88c
[ "MIT" ]
null
null
null
skexplain/common/utils.py
monte-flora/scikit-explain
d93ca4c77d1d47e613479ae36cc055ffaafea88c
[ "MIT" ]
7
2022-03-06T01:51:33.000Z
2022-03-28T13:06:34.000Z
skexplain/common/utils.py
monte-flora/scikit-explain
d93ca4c77d1d47e613479ae36cc055ffaafea88c
[ "MIT" ]
null
null
null
import numpy as np import xarray as xr import pandas as pd from collections import ChainMap from statsmodels.distributions.empirical_distribution import ECDF from scipy.stats import t def check_all_features_for_ale(ale, estimator_names, features): """ Is there ALE values for each feature """ data_vars = ...
31.156942
97
0.619309
5b539203b00b4fad7af2f3522746cdd2fcb16ed4
5,941
py
Python
recipes/recipe_modules/powershell/resources/psinvoke.py
xswz8015/infra
f956b78ce4c39cc76acdda47601b86794ae0c1ba
[ "BSD-3-Clause" ]
null
null
null
recipes/recipe_modules/powershell/resources/psinvoke.py
xswz8015/infra
f956b78ce4c39cc76acdda47601b86794ae0c1ba
[ "BSD-3-Clause" ]
7
2022-02-15T01:11:37.000Z
2022-03-02T12:46:13.000Z
recipes/recipe_modules/powershell/resources/psinvoke.py
NDevTK/chromium-infra
d38e088e158d81f7f2065a38aa1ea1894f735ec4
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2021 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 subprocess import argparse import sys import os import re import json import codecs import platform # Used to run commands through powershell on wind...
30.782383
80
0.650059
5b54b2dda0833770af7c0575bf7b026b9ce83b41
5,628
py
Python
Cinema 4D/Clean.py
FitchOpenSource/C4D-To-Unity
a7b976d552ff4f44df473240623409b5768ea322
[ "MIT" ]
2
2017-09-06T13:19:35.000Z
2017-11-17T18:42:08.000Z
Cinema 4D/Clean.py
FitchOpenSource/C4D-To-Unity
a7b976d552ff4f44df473240623409b5768ea322
[ "MIT" ]
null
null
null
Cinema 4D/Clean.py
FitchOpenSource/C4D-To-Unity
a7b976d552ff4f44df473240623409b5768ea322
[ "MIT" ]
null
null
null
import c4d from c4d import gui, documents #Welcome to the world of Python #Create a unique name for the materials and remove unorthodox characters #def findNameObject(string, objects, cnt): # #cnt = cnt + 1 #tmp = string; #string = string + "_" + str(cnt) #if objects.count(string) == 0: ...
28.14
113
0.598792
5b56109d5d5abec15a2278c520d6306048bb083e
270
py
Python
templates/flask/flaskRest/app/configs/config.py
david-osas/create-basic-app
860fc579672855093ad8426fb01d010de4c7cff8
[ "MIT" ]
2
2020-12-01T11:33:36.000Z
2020-12-01T12:25:49.000Z
templates/flask/flaskRest/app/configs/config.py
david-osas/create-basic-app
860fc579672855093ad8426fb01d010de4c7cff8
[ "MIT" ]
2
2020-11-25T14:38:57.000Z
2020-11-25T22:55:25.000Z
templates/flask/flaskRest/app/configs/config.py
david-osas/create-basic-app
860fc579672855093ad8426fb01d010de4c7cff8
[ "MIT" ]
2
2020-11-26T08:59:50.000Z
2021-03-30T20:01:06.000Z
from .development_config import DevelopmentConfig from .production_config import ProductionConfig from .testing_config import TestingConfig ENVIRONMENT_MAPPING = { "production": ProductionConfig, "development": DevelopmentConfig, "testing": TestingConfig }
27
49
0.807407
5b561f3a8cc1973bf3b5ae98192b62df11c2ad7d
743
py
Python
LeetCode/Python/160.intersection-of-two-linked-lists.py
Alfonsxh/LeetCode-Challenge-python
e93f93fd58d1945708d6aa300dcbcd17d0708274
[ "MIT" ]
null
null
null
LeetCode/Python/160.intersection-of-two-linked-lists.py
Alfonsxh/LeetCode-Challenge-python
e93f93fd58d1945708d6aa300dcbcd17d0708274
[ "MIT" ]
null
null
null
LeetCode/Python/160.intersection-of-two-linked-lists.py
Alfonsxh/LeetCode-Challenge-python
e93f93fd58d1945708d6aa300dcbcd17d0708274
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=160 lang=python # # [160] Intersection of Two Linked Lists # # Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None # https://leetcode-cn.com/problems/intersection-of-two-linked-lists/solution/tu-jie-xiang-j...
27.518519
121
0.625841
5b593df1d532c6d0fa3c3a20d72a0f9c45807594
3,475
py
Python
test/client/test_utils.py
DobromirM/swim-system-python
a5b4f05457f1eb2739a920c42dfc721c83a1226a
[ "Apache-2.0" ]
8
2019-11-11T19:38:59.000Z
2022-01-06T11:13:04.000Z
test/client/test_utils.py
swimos/swim-system-python
727c09b6e7300b063e320364373ff724d9b8af90
[ "Apache-2.0" ]
40
2019-10-29T10:35:49.000Z
2021-05-14T22:18:35.000Z
test/client/test_utils.py
DobromirM/swim-system-python
a5b4f05457f1eb2739a920c42dfc721c83a1226a
[ "Apache-2.0" ]
3
2020-01-31T18:28:58.000Z
2021-08-25T08:53:13.000Z
# Copyright 2015-2021 SWIM.AI inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
28.483607
75
0.601151
5b5975a909c1137119120f7fc6fd7242b0e2d766
656
py
Python
regtests/list/slice.py
ahakingdom/Rusthon
5b6b78111b62281cd1381e53362c5d4b520ade30
[ "BSD-3-Clause" ]
622
2015-01-01T14:53:51.000Z
2022-03-27T14:52:25.000Z
regtests/list/slice.py
ahakingdom/Rusthon
5b6b78111b62281cd1381e53362c5d4b520ade30
[ "BSD-3-Clause" ]
74
2015-01-05T01:24:09.000Z
2021-04-26T00:06:38.000Z
regtests/list/slice.py
ahakingdom/Rusthon
5b6b78111b62281cd1381e53362c5d4b520ade30
[ "BSD-3-Clause" ]
67
2015-01-18T22:54:54.000Z
2022-03-01T12:54:23.000Z
from runtime import * """list slice""" main()
13.387755
29
0.501524
5b5a42e3e8c1b9664b17bcd555310e3c00b19953
4,661
py
Python
src/test/test.py
ntalabot/base_dl_project_struct
2a8b52081baf678fec4b74b16f41dd22a3d0eb21
[ "MIT" ]
null
null
null
src/test/test.py
ntalabot/base_dl_project_struct
2a8b52081baf678fec4b74b16f41dd22a3d0eb21
[ "MIT" ]
null
null
null
src/test/test.py
ntalabot/base_dl_project_struct
2a8b52081baf678fec4b74b16f41dd22a3d0eb21
[ "MIT" ]
null
null
null
""" Module for testing models (evaluation, predictions). """ import numpy as np import matplotlib.pyplot as plt import torch import torchvision def predict_dataloader(model, dataloader, discard_target=True): """ Return predictions for the given dataloader and model. Parameters ---------- mo...
30.464052
79
0.617035
5b5b10607266561433613c17a985d903f65eb540
524
py
Python
forums/migrations/0007_auto_20191203_0820.py
phiratio/django-forums-app
a8d50b436bc34f74ab8c58234f5f7cf5175e00c5
[ "MIT" ]
22
2019-10-14T20:57:18.000Z
2022-01-13T11:32:16.000Z
forums/migrations/0007_auto_20191203_0820.py
phiratio/django-forums-app
a8d50b436bc34f74ab8c58234f5f7cf5175e00c5
[ "MIT" ]
22
2019-10-16T12:21:59.000Z
2021-12-16T14:05:46.000Z
forums/migrations/0007_auto_20191203_0820.py
phiratio/django-forums-app
a8d50b436bc34f74ab8c58234f5f7cf5175e00c5
[ "MIT" ]
10
2019-10-15T19:55:30.000Z
2022-02-27T13:53:55.000Z
# Generated by Django 2.2.5 on 2019-12-03 08:20 from django.db import migrations, models import django.db.models.deletion
26.2
102
0.599237
5b5b2553a6c42f4fdcde3de08cf09dc44f4ebc02
4,078
py
Python
hw4/generate.py
anthonywchen/uci-statnlp
0cb98fecda11158601702f9fdb4f85a8011b5f5c
[ "Apache-2.0" ]
16
2017-01-19T21:36:05.000Z
2022-03-07T05:49:01.000Z
hw4/generate.py
anthonywchen/uci-statnlp
0cb98fecda11158601702f9fdb4f85a8011b5f5c
[ "Apache-2.0" ]
null
null
null
hw4/generate.py
anthonywchen/uci-statnlp
0cb98fecda11158601702f9fdb4f85a8011b5f5c
[ "Apache-2.0" ]
82
2017-01-22T00:06:51.000Z
2021-10-07T11:45:48.000Z
import argparse import json import random import jsonlines import tqdm from transformers import BartTokenizer, BartForConditionalGeneration import decoders from models import TransformerModel random.seed(0) def generate_summary(model, tokenizer, document, decoder): """ Generates a summary for a single document...
33.702479
88
0.61844
5b5d7896ccaafcb748c653f5c939c542c31a8d1a
1,048
py
Python
xain/grpc/test_grpc.py
skade/xain
4d9a84b64d98dd4229968755110c60e1c0fd51f7
[ "Apache-2.0" ]
null
null
null
xain/grpc/test_grpc.py
skade/xain
4d9a84b64d98dd4229968755110c60e1c0fd51f7
[ "Apache-2.0" ]
null
null
null
xain/grpc/test_grpc.py
skade/xain
4d9a84b64d98dd4229968755110c60e1c0fd51f7
[ "Apache-2.0" ]
null
null
null
from concurrent import futures import grpc import numpy as np import pytest from numproto import ndarray_to_proto, proto_to_ndarray from xain.grpc import hellonumproto_pb2, hellonumproto_pb2_grpc from xain.grpc.numproto_server import NumProtoServer # pylint: disable=W0613,W0621
27.578947
72
0.753817
5b5e91b7967d2987cec2827cf1d367005896b8b4
7,920
py
Python
AffluenceCounter/app/tracker.py
dvalladaresv/AIVA_2021_Deteccion_de_actividad_grupo_F
5966c83b3eaeab37b19f6f2a070cd906209df4cc
[ "MIT" ]
null
null
null
AffluenceCounter/app/tracker.py
dvalladaresv/AIVA_2021_Deteccion_de_actividad_grupo_F
5966c83b3eaeab37b19f6f2a070cd906209df4cc
[ "MIT" ]
4
2021-05-08T16:53:34.000Z
2021-05-09T18:31:34.000Z
AffluenceCounter/app/tracker.py
dvalladaresv/AIVA_2021_Deteccion_de_actividad_grupo_F
5966c83b3eaeab37b19f6f2a070cd906209df4cc
[ "MIT" ]
1
2022-03-21T19:16:14.000Z
2022-03-21T19:16:14.000Z
import cv2 OPENCV_OBJECT_TRACKERS = { "csrt": cv2.TrackerCSRT_create, "kcf": cv2.TrackerKCF_create, "mil": cv2.TrackerMIL_create }
29.886792
100
0.529419
5b5eb638f3c45dd8372789c8fa5a6b4ca5ba99fc
738
py
Python
app/middlewares/apikey_auth.py
meongbego/IOT_ADRINI
0923b86a9d1da5d6859b70726ad1e041aecc97b2
[ "MIT" ]
1
2019-07-27T12:17:23.000Z
2019-07-27T12:17:23.000Z
app/middlewares/apikey_auth.py
meongbego/ADRINI_IOT_PLATFORM
0923b86a9d1da5d6859b70726ad1e041aecc97b2
[ "MIT" ]
4
2021-04-18T11:41:31.000Z
2021-06-01T23:12:19.000Z
app/middlewares/apikey_auth.py
sofyan48/ADRINI_IOT_PLATFORM
0923b86a9d1da5d6859b70726ad1e041aecc97b2
[ "MIT" ]
null
null
null
from functools import wraps from app.helpers.rest import * from app import redis_store from flask import request from app.models import model as db import hashlib
29.52
71
0.605691
5b60c8c38a51a827116df702a80c66bfa7ab4576
4,204
py
Python
tests/recog_tests.py
anthonys01/snip2fumen
43f5cda3cffd34108082b6653216df9a0480025a
[ "MIT" ]
null
null
null
tests/recog_tests.py
anthonys01/snip2fumen
43f5cda3cffd34108082b6653216df9a0480025a
[ "MIT" ]
2
2022-02-12T07:48:15.000Z
2022-02-18T21:50:49.000Z
tests/recog_tests.py
anthonys01/snip2fumen
43f5cda3cffd34108082b6653216df9a0480025a
[ "MIT" ]
null
null
null
""" Test image to fumen conversion """ import unittest from snip2fumen.recog import BoardRecognizer, FumenEncoder if __name__ == '__main__': unittest.main()
38.218182
96
0.578259
5b62f78362a43ef686c374acc27b359783b74d27
337
py
Python
src/utility.py
wadinj/out_of_many_one
a6563a2b7bbcf66479c4cefe9bc6541d0cc5ba59
[ "MIT" ]
null
null
null
src/utility.py
wadinj/out_of_many_one
a6563a2b7bbcf66479c4cefe9bc6541d0cc5ba59
[ "MIT" ]
null
null
null
src/utility.py
wadinj/out_of_many_one
a6563a2b7bbcf66479c4cefe9bc6541d0cc5ba59
[ "MIT" ]
null
null
null
""" General purpose functions """ import hashlib LOGGING_FORMAT = '%(asctime)s %(levelname)s: %(message)s' def hash_from_strings(items): """ Produce a hash value from the combination of all str elements """ JOIN_KEY = '+|+' item_text = JOIN_KEY.join(items).encode('utf-8') return hashlib.sha256(item_t...
28.083333
73
0.691395
5b64ae0e55cb234089cde25553e4f5c0de44b4d8
2,558
py
Python
gqa/data/datasets/gqa.py
xiling42/VL-BERT
4573b4e1e82b6c092d4830d0b88821e9ee1a81fb
[ "MIT" ]
null
null
null
gqa/data/datasets/gqa.py
xiling42/VL-BERT
4573b4e1e82b6c092d4830d0b88821e9ee1a81fb
[ "MIT" ]
null
null
null
gqa/data/datasets/gqa.py
xiling42/VL-BERT
4573b4e1e82b6c092d4830d0b88821e9ee1a81fb
[ "MIT" ]
null
null
null
import json import os import pickle import numpy as np from PIL import Image import torch from torch.utils.data import Dataset from torchvision import transforms import h5py from .transforms import Scale img = None img_info = {} transform = transforms.Compose([ Scale([224, 224]), transforms.Pad(4), tran...
30.452381
93
0.598124
5b661dbcb573ffb3020fc029bc865c3b7a199ad0
2,019
py
Python
progressivis/core/changemanager_dict.py
jdfekete/progressivis
3bc79ce229cd628ef0aa4663136a674743697b47
[ "BSD-2-Clause" ]
51
2015-09-14T16:31:02.000Z
2022-01-12T17:56:53.000Z
progressivis/core/changemanager_dict.py
jdfekete/progressivis
3bc79ce229cd628ef0aa4663136a674743697b47
[ "BSD-2-Clause" ]
10
2017-11-15T15:10:05.000Z
2022-01-19T07:36:43.000Z
progressivis/core/changemanager_dict.py
jdfekete/progressivis
3bc79ce229cd628ef0aa4663136a674743697b47
[ "BSD-2-Clause" ]
5
2017-11-14T20:20:56.000Z
2020-01-22T06:26:51.000Z
from .changemanager_base import BaseChangeManager from ..utils.psdict import PsDict from ..table.tablechanges import TableChanges from .slot import Slot import copy Slot.add_changemanager_type(PsDict, DictChangeManager)
33.65
74
0.594849
5b66e22e0d96cd42bf15f9bdcbe03461e565fd2f
1,813
py
Python
classifier/classes/data/loaders/Loader.py
canary-for-cognition/multimodal-dl-framework
54ebd3c6dcdfc48ed619316321d9f0e7a5f0fc9c
[ "MIT" ]
2
2021-08-31T08:58:30.000Z
2021-09-02T14:32:30.000Z
classifier/classes/data/loaders/Loader.py
canary-for-cognition/multimodal-nn-framework
7733376b05840e2b3dead438dd3981db9694b6ae
[ "MIT" ]
5
2020-09-22T04:29:25.000Z
2020-12-20T16:16:47.000Z
classifier/classes/data/loaders/Loader.py
canary-for-cognition/multimodal-nn-framework
7733376b05840e2b3dead438dd3981db9694b6ae
[ "MIT" ]
1
2021-02-09T18:40:55.000Z
2021-02-09T18:40:55.000Z
import os import torch from classifier.classes.utils.Params import Params
40.288889
104
0.690017
5b67e852602727d6512e5eacbc68b00f61443e8e
9,486
py
Python
rel2/bluecat_app/bin/bluecat/entity.py
mheidir/BlueCatSG-SplunkApp-UnOfficial
bd914b8650d191e48c18acda5bdd70aeabb99207
[ "Apache-2.0" ]
1
2018-06-26T14:57:54.000Z
2018-06-26T14:57:54.000Z
rel2/bluecat_app/bin/bluecat/entity.py
mheidir/BlueCatSG-SplunkApp-UnOfficial
bd914b8650d191e48c18acda5bdd70aeabb99207
[ "Apache-2.0" ]
null
null
null
rel2/bluecat_app/bin/bluecat/entity.py
mheidir/BlueCatSG-SplunkApp-UnOfficial
bd914b8650d191e48c18acda5bdd70aeabb99207
[ "Apache-2.0" ]
null
null
null
from suds import WebFault from api_exception import api_exception from util import * from version import version from wrappers.generic_setters import *
34.747253
151
0.613641
5b695471ab29b797681a7c5ba85992682e02db15
137
py
Python
users/admin.py
rossm6/accounts
74633ce4038806222048d85ef9dfe97a957a6a71
[ "MIT" ]
11
2021-01-23T01:09:54.000Z
2021-01-25T07:16:30.000Z
users/admin.py
rossm6/accounts
74633ce4038806222048d85ef9dfe97a957a6a71
[ "MIT" ]
7
2021-04-06T18:19:10.000Z
2021-09-22T19:45:03.000Z
users/admin.py
rossm6/accounts
74633ce4038806222048d85ef9dfe97a957a6a71
[ "MIT" ]
3
2021-01-23T18:55:32.000Z
2021-02-16T17:47:59.000Z
from django.contrib import admin from users.models import Lock, UserSession admin.site.register(Lock) admin.site.register(UserSession)
19.571429
42
0.824818
5b6a869041b8f7099f1366b7e23ffabaa5619e62
1,083
py
Python
selenium/load-html-from-string-instead-of-url/main.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
140
2017-02-21T22:49:04.000Z
2022-03-22T17:51:58.000Z
selenium/load-html-from-string-instead-of-url/main.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
5
2017-12-02T19:55:00.000Z
2021-09-22T23:18:39.000Z
selenium/load-html-from-string-instead-of-url/main.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
79
2017-01-25T10:53:33.000Z
2022-03-11T16:13:57.000Z
#!/usr/bin/env python3 # date: 2019.11.24 import selenium.webdriver driver = selenium.webdriver.Firefox() html_content = """ <div class=div1> <ul> <li> <a href='path/to/div1stuff/1'>Generic string 1</a> <a href='path/to/div1stuff/2'>Generic string 2</a> ...
26.414634
99
0.54663
5b6ad3dccf84bb8ff4fe870c3a1a16f0ee7630a4
263
py
Python
Python_codes/palindrome_string/palindrome.py
latedeveloper08/hacktober2021
3b2b4781668221b32dd96e2335157572b00dcf56
[ "MIT" ]
null
null
null
Python_codes/palindrome_string/palindrome.py
latedeveloper08/hacktober2021
3b2b4781668221b32dd96e2335157572b00dcf56
[ "MIT" ]
null
null
null
Python_codes/palindrome_string/palindrome.py
latedeveloper08/hacktober2021
3b2b4781668221b32dd96e2335157572b00dcf56
[ "MIT" ]
null
null
null
string=input("Enter a string:") length=len(string) mid=length//2 rev=-1 for a in range(mid): if string[a]==string[rev]: a+=1 rev=-1 else: print(string,"is a palindrome") break else: print(string,"is not a palindrome")
17.533333
39
0.585551
5b6e0169ead672709cd2da73eb412706af67a106
3,841
py
Python
PythonClient/Framework/ModCameraGimble.py
SweetShot/AirSim
d43269f9387fdac03298d14416ecf6af43b6fd12
[ "MIT" ]
null
null
null
PythonClient/Framework/ModCameraGimble.py
SweetShot/AirSim
d43269f9387fdac03298d14416ecf6af43b6fd12
[ "MIT" ]
null
null
null
PythonClient/Framework/ModCameraGimble.py
SweetShot/AirSim
d43269f9387fdac03298d14416ecf6af43b6fd12
[ "MIT" ]
2
2018-03-07T18:23:42.000Z
2020-02-12T19:58:32.000Z
from ModBase import * import setup_path import airsim import copy
40.431579
116
0.601146
5b6fbfdce0aeea51fda85018f63eb008c4350c82
174
py
Python
gluoncv/data/video_custom/__init__.py
Kh4L/gluon-cv
849411ed56632cd854850b07142087d599f97dcb
[ "Apache-2.0" ]
5,447
2018-04-25T18:02:51.000Z
2022-03-31T00:59:49.000Z
gluoncv/data/video_custom/__init__.py
Kh4L/gluon-cv
849411ed56632cd854850b07142087d599f97dcb
[ "Apache-2.0" ]
1,566
2018-04-25T21:14:04.000Z
2022-03-31T06:42:42.000Z
gluoncv/data/video_custom/__init__.py
Kh4L/gluon-cv
849411ed56632cd854850b07142087d599f97dcb
[ "Apache-2.0" ]
1,345
2018-04-25T18:44:13.000Z
2022-03-30T19:32:53.000Z
# pylint: disable=wildcard-import """ Customized data loader for video classification related tasks. """ from __future__ import absolute_import from .classification import *
24.857143
62
0.804598
5b6fc9e9dc0aa155879b2501fe4a3f2cf129de50
809
py
Python
CAV Test and Evaluation/Scaled-vehicle-in-the-loop/catkin_ws/src/tongjirc/script/talker.py
tongjirc/Intelligent-Vehicle-and-Road
1c6b35612007bb0a20aafd39e5ec9ab9d67ec2e3
[ "MIT" ]
3
2019-07-22T01:19:25.000Z
2020-11-16T02:42:07.000Z
CAV Test and Evaluation/Scaled-vehicle-in-the-loop/catkin_ws/src/tongjirc/script/talker.py
tongjirc/Intelligent-Vehicle-and-Road
1c6b35612007bb0a20aafd39e5ec9ab9d67ec2e3
[ "MIT" ]
null
null
null
CAV Test and Evaluation/Scaled-vehicle-in-the-loop/catkin_ws/src/tongjirc/script/talker.py
tongjirc/Intelligent-Vehicle-and-Road
1c6b35612007bb0a20aafd39e5ec9ab9d67ec2e3
[ "MIT" ]
1
2020-11-16T02:42:08.000Z
2020-11-16T02:42:08.000Z
#!/usr/bin/env python2 #created by Alvin zixuan tongjirc #Oct. 1th 2018 import rospy import time from std_msgs.msg import String,Duration from trajectory_msgs.msg import JointTrajectoryPoint jp=JointTrajectoryPoint() if __name__ == '__main__': try: talker() except rospy.ROSInterruptException: ...
26.096774
72
0.660074
5b728343141af718346ac4978505ec35a2d52270
470
py
Python
problems/greedy/Solution870.py
akalu/cs-problems-python
9b1bd8e3932be62135a38a77f955ded9a766b654
[ "MIT" ]
null
null
null
problems/greedy/Solution870.py
akalu/cs-problems-python
9b1bd8e3932be62135a38a77f955ded9a766b654
[ "MIT" ]
null
null
null
problems/greedy/Solution870.py
akalu/cs-problems-python
9b1bd8e3932be62135a38a77f955ded9a766b654
[ "MIT" ]
null
null
null
""" Given two arrays A and B of equal size, the advantage of A with respect to B is the number of indices i for which A[i] > B[i]. Return any permutation of A that maximizes its advantage with respect to B. Example 1: Input: A = [2,7,11,15], B = [1,10,4,11] Output: [2,11,7,15] ID...
23.5
82
0.63617
5b7391d6b2a463ec5ffec394ba3d99bf008d1599
1,182
py
Python
src/authentication/migrations/0003_user_additional_fiels_nullable.py
Alirezaja1384/MajazAmooz
9200e46bed33aeb60d578a5c4c02013a8032cf08
[ "MIT" ]
3
2021-04-01T19:42:53.000Z
2022-03-01T09:50:17.000Z
src/authentication/migrations/0003_user_additional_fiels_nullable.py
Alirezaja1384/MajazAmooz
9200e46bed33aeb60d578a5c4c02013a8032cf08
[ "MIT" ]
null
null
null
src/authentication/migrations/0003_user_additional_fiels_nullable.py
Alirezaja1384/MajazAmooz
9200e46bed33aeb60d578a5c4c02013a8032cf08
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-03-27 10:53 from django.db import migrations, models
26.863636
62
0.51692
5b73e195d32533a2f980dd3d40f7b2ac22ca9c43
757
py
Python
src/hyperloop/Python/mission/tests/test_lat_long.py
jcchin/Hyperloop_v2
73861d2207af8738425c1d484909ed0433b9653f
[ "Apache-2.0" ]
1
2021-04-29T00:23:03.000Z
2021-04-29T00:23:03.000Z
src/hyperloop/Python/mission/tests/test_lat_long.py
jcchin/Hyperloop_v2
73861d2207af8738425c1d484909ed0433b9653f
[ "Apache-2.0" ]
1
2018-10-10T04:06:34.000Z
2018-10-10T04:06:34.000Z
src/hyperloop/Python/mission/tests/test_lat_long.py
jcchin/Hyperloop_v2
73861d2207af8738425c1d484909ed0433b9653f
[ "Apache-2.0" ]
11
2016-01-19T20:26:35.000Z
2021-02-13T11:16:20.000Z
import pytest from hyperloop.Python.mission import lat_long import numpy as np from openmdao.api import Group, Problem
25.233333
70
0.623514
5b74a7016dc6843c0a1ceebedf0fe8627754ec1f
451
py
Python
answers/ex10.py
metmirr/project-euler
2432e6fc392d5a3dfc87b331ad2246f8e84c1f12
[ "MIT" ]
1
2020-01-09T14:57:28.000Z
2020-01-09T14:57:28.000Z
answers/ex10.py
metmirr/project-euler
2432e6fc392d5a3dfc87b331ad2246f8e84c1f12
[ "MIT" ]
null
null
null
answers/ex10.py
metmirr/project-euler
2432e6fc392d5a3dfc87b331ad2246f8e84c1f12
[ "MIT" ]
null
null
null
""" Problem 10: The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.Find the sum of all the primes below two million. """ sum = 0 size = 2000000 slots = [True for i in range(size)] slots[0] = False slots[1] = False for stride in range(2, size // 2): pos = stride while pos < size - stride: ...
17.346154
72
0.576497
5b74ca87ccbb7137e1d1ff7086010eae374775ba
1,646
py
Python
src/oci_cli/cli_clients.py
honzajavorek/oci-cli
6ea058afba323c6b3b70e98212ffaebb0d31985e
[ "Apache-2.0" ]
null
null
null
src/oci_cli/cli_clients.py
honzajavorek/oci-cli
6ea058afba323c6b3b70e98212ffaebb0d31985e
[ "Apache-2.0" ]
null
null
null
src/oci_cli/cli_clients.py
honzajavorek/oci-cli
6ea058afba323c6b3b70e98212ffaebb0d31985e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. import os import pkgutil from os.path import abspath from inspect import getsourcefile CLIENT_MAP = {} MODULE_TO_TYPE_MAPPINGS = {} ALL_SERVICES_DIR = "services" this_file_path = abspath(getsourcefile(lambda: 0)) if "site-p...
51.4375
128
0.727825
5b74fbbc3bd037c8121ea683c08bcace2932b036
26,767
py
Python
testing/unittest_analysis.py
dsg-bielefeld/mumodo
0f220ada888f5e464344f4150be6d8cd454b72a1
[ "MIT" ]
1
2020-04-27T06:47:12.000Z
2020-04-27T06:47:12.000Z
testing/unittest_analysis.py
clp-research/mumodo
0f220ada888f5e464344f4150be6d8cd454b72a1
[ "MIT" ]
1
2015-04-26T22:52:27.000Z
2017-06-07T13:06:32.000Z
testing/unittest_analysis.py
dsg-bielefeld/mumodo
0f220ada888f5e464344f4150be6d8cd454b72a1
[ "MIT" ]
1
2015-07-14T14:51:36.000Z
2015-07-14T14:51:36.000Z
import unittest import pandas as pd from mumodo.mumodoIO import open_intervalframe_from_textgrid, \ open_streamframe_from_xiofile from mumodo.analysis import intervalframe_overlaps, intervalframe_union, \ invert_intervalframe, \ create_...
51.179732
80
0.42403
5b75521d38171fc3f17cd63f930032aca3a11c04
799
py
Python
main.py
neohanju/GoogleImageSearchDownload
09344be0f356816ee16921f75b16114340e40b67
[ "MIT" ]
null
null
null
main.py
neohanju/GoogleImageSearchDownload
09344be0f356816ee16921f75b16114340e40b67
[ "MIT" ]
null
null
null
main.py
neohanju/GoogleImageSearchDownload
09344be0f356816ee16921f75b16114340e40b67
[ "MIT" ]
null
null
null
# reference: http://icrawler.readthedocs.io/en/latest/usage.html from icrawler.builtin import GoogleImageCrawler import os dataset_base_dir = 'D:/Workspace/Dataset/fake_image_detection/task_2' keyword_lists = ['snapchat face swap', 'MSQRD'] for keyword in keyword_lists: folder_path = dataset_base_dir + '/' + ke...
27.551724
79
0.669587
5b75d17a228cb623b421648bad8d7be7041786ab
841
py
Python
Chapter 3/Q19_Match_output.py
inshaal/CBSE_NCERT_SOLUTIONS
0804c2b42e80ccf42ad7dc4d91998848529e216d
[ "Unlicense" ]
null
null
null
Chapter 3/Q19_Match_output.py
inshaal/CBSE_NCERT_SOLUTIONS
0804c2b42e80ccf42ad7dc4d91998848529e216d
[ "Unlicense" ]
null
null
null
Chapter 3/Q19_Match_output.py
inshaal/CBSE_NCERT_SOLUTIONS
0804c2b42e80ccf42ad7dc4d91998848529e216d
[ "Unlicense" ]
null
null
null
''' Q19 Predict the output''' print "Test.__do__ :",Match.__doc__ print "Test.__name__ : ",Match.__name__ print "Test.__module__ : ",Match.__module__ print "Test.__bases__ : ",Match.__bases__ print "Test.__dict__ : ",Match.__dict__ ''' SOLUTIONS : This is the output - Runs scored are : 281 Wickets taken...
26.28125
149
0.653983
5b77b55412440ca872621e6080c45d3d24321ec7
1,632
py
Python
src/daipeproject/silver/01_some_notebook.py
DataSentics/daipe-bad-practices-1
a23c1b42908f646763a3a1d0821600f8d0d78db2
[ "MIT" ]
null
null
null
src/daipeproject/silver/01_some_notebook.py
DataSentics/daipe-bad-practices-1
a23c1b42908f646763a3a1d0821600f8d0d78db2
[ "MIT" ]
null
null
null
src/daipeproject/silver/01_some_notebook.py
DataSentics/daipe-bad-practices-1
a23c1b42908f646763a3a1d0821600f8d0d78db2
[ "MIT" ]
null
null
null
# Databricks notebook source # MAGIC %run ../app/bootstrap # COMMAND ---------- from pyspark.sql.dataframe import DataFrame from datalakebundle.imports import transformation # COMMAND ---------- datasets = [ { "id": "123", "name": "knihydobrovsky_cz", "custom_attrs": { 105: "...
27.661017
111
0.628676
5b789ac50113811cea9f5671853ed49ad42da467
560
py
Python
tests/pyspark_utils/test_convert_cerberus_schema_to_pyspark.py
ONS-SST/cis_households
e475df5929e6763a46cd05aff1f7e960ccbe8e21
[ "MIT" ]
null
null
null
tests/pyspark_utils/test_convert_cerberus_schema_to_pyspark.py
ONS-SST/cis_households
e475df5929e6763a46cd05aff1f7e960ccbe8e21
[ "MIT" ]
252
2021-05-19T11:12:43.000Z
2022-03-02T10:39:10.000Z
tests/pyspark_utils/test_convert_cerberus_schema_to_pyspark.py
ONS-SST/cis_households
e475df5929e6763a46cd05aff1f7e960ccbe8e21
[ "MIT" ]
null
null
null
from pyspark.sql.types import StructField from cishouseholds.pyspark_utils import convert_cerberus_schema_to_pyspark
40
109
0.783929
5b78eb23d489938fa4e1d56da1cf000445c3616a
2,954
py
Python
bus_schedule.py
32-52/LanitBusScheduleBot
1f50b824c2cbd07e1855eb6bce59595b8c639e40
[ "MIT" ]
3
2019-11-05T08:15:32.000Z
2019-11-08T05:20:32.000Z
bus_schedule.py
32-52/LanitBusScheduleBot
1f50b824c2cbd07e1855eb6bce59595b8c639e40
[ "MIT" ]
25
2019-11-06T08:54:09.000Z
2021-12-13T20:25:45.000Z
bus_schedule.py
32-52/LanitBusScheduleBot
1f50b824c2cbd07e1855eb6bce59595b8c639e40
[ "MIT" ]
3
2019-11-02T22:20:09.000Z
2019-11-26T09:52:43.000Z
from models import Destinations, Locations from settings import logging from datetime import datetime import requests import settings
43.441176
112
0.602911
5b79805d4767cfaf22c2d662504bc4ac42b4ebc2
1,808
py
Python
test/unit/controllers/logging_api_test.py
beer-garden/brew-view
e973d490fc2a25c0c264b04c9494f64df2db283f
[ "MIT" ]
5
2018-02-20T13:34:55.000Z
2020-08-09T01:45:39.000Z
test/unit/controllers/logging_api_test.py
beer-garden/brew-view
e973d490fc2a25c0c264b04c9494f64df2db283f
[ "MIT" ]
179
2018-02-06T13:11:41.000Z
2022-03-10T13:12:15.000Z
test/unit/controllers/logging_api_test.py
beer-garden/brew-view
e973d490fc2a25c0c264b04c9494f64df2db283f
[ "MIT" ]
1
2019-01-03T17:35:35.000Z
2019-01-03T17:35:35.000Z
import unittest import json from . import TestHandlerBase from mock import patch if __name__ == "__main__": unittest.main()
35.45098
84
0.678097
5b7ae6b9736863ef24badaeecf71daf094c1c542
4,646
py
Python
src/sparkcleaner/functions/string_cleaning.py
IvoWnds/sparkcleaner-git
b2acac27da1f05ed93941c59fe870b62c3539536
[ "MIT" ]
null
null
null
src/sparkcleaner/functions/string_cleaning.py
IvoWnds/sparkcleaner-git
b2acac27da1f05ed93941c59fe870b62c3539536
[ "MIT" ]
null
null
null
src/sparkcleaner/functions/string_cleaning.py
IvoWnds/sparkcleaner-git
b2acac27da1f05ed93941c59fe870b62c3539536
[ "MIT" ]
null
null
null
from typing import List, Optional, Type import pyspark.sql.functions as F from pyspark.sql import DataFrame as SparkDataFrame from pyspark.sql.types import DataType import src.sparkcleaner.helpers.verify as verify def remove_leading_zeros(df: SparkDataFrame, col_name: str, ...
34.932331
84
0.566939
5b7afef62f513c7426b0ae16d60e1e1c3c3a0c71
1,811
py
Python
src/unifi_api/utils/decorators.py
r4mmer/unifi_python_client
54c89f1c66cf219a37fd7317566defbf2ef4c9ff
[ "MIT" ]
1
2021-01-25T16:19:09.000Z
2021-01-25T16:19:09.000Z
src/unifi_api/utils/decorators.py
ioannova/unifi_python_api
cd8c6549cdd14294c9747acd8b053cb911d22305
[ "MIT" ]
null
null
null
src/unifi_api/utils/decorators.py
ioannova/unifi_python_api
cd8c6549cdd14294c9747acd8b053cb911d22305
[ "MIT" ]
3
2020-01-09T14:30:41.000Z
2022-01-31T23:22:35.000Z
# custom decorators from functools import wraps import trafaret as t from .exceptions import UnifiLoginError from .models import JsonResponse
31.224138
113
0.619547
5b7bc8ef2ba6b2dcd2a0766bba13e09db8e6d318
484
py
Python
examples/another_simple_example.py
Inzilkin/vk.py
969f01e666c877c1761c3629a100768f93de27eb
[ "MIT" ]
2
2020-02-28T11:31:11.000Z
2020-09-16T06:11:11.000Z
examples/another_simple_example.py
Inzilkin/vk.py
969f01e666c877c1761c3629a100768f93de27eb
[ "MIT" ]
null
null
null
examples/another_simple_example.py
Inzilkin/vk.py
969f01e666c877c1761c3629a100768f93de27eb
[ "MIT" ]
1
2020-03-03T20:49:57.000Z
2020-03-03T20:49:57.000Z
from vk import VK from vk.utils import TaskManager import asyncio import logging logging.basicConfig(level="DEBUG") token = "TOKEN" vk = VK(access_token=token) task_manager = TaskManager(vk.loop) api = vk.get_api() if __name__ == "__main__": task_manager.add_task(send_message) task_manager.run() task_m...
21.043478
76
0.733471
5b7f91f8b133bdf24c68950699e17811ceddf1da
5,493
py
Python
Ambience/display/EmulatedDisplay.py
Matchstic/automated-ambience
79fe5f7988fcfeb51c07a281e2ee6e188df4cb60
[ "BSD-2-Clause" ]
1
2018-07-13T12:03:35.000Z
2018-07-13T12:03:35.000Z
Ambience/display/EmulatedDisplay.py
Matchstic/automated-ambience
79fe5f7988fcfeb51c07a281e2ee6e188df4cb60
[ "BSD-2-Clause" ]
null
null
null
Ambience/display/EmulatedDisplay.py
Matchstic/automated-ambience
79fe5f7988fcfeb51c07a281e2ee6e188df4cb60
[ "BSD-2-Clause" ]
null
null
null
from tkinter import Tk, Canvas # This is an emulated display with the same API interface as for the Unicorn HAT/pHAT hardware. # Thus, it relies upon (in part) code from: https://github.com/pimoroni/unicorn-hat/blob/master/library/UnicornHat/unicornhat.py # Note that only the pHAT is supported, and rotation of the di...
28.169231
128
0.497724
5b805582575f471d3237916e3dc521e5bb626336
1,033
py
Python
TEP/lista3/C.py
GuilhermeBraz/unb-workflow
37d680a675a87cea2ff936badf94d757393870c3
[ "MIT" ]
null
null
null
TEP/lista3/C.py
GuilhermeBraz/unb-workflow
37d680a675a87cea2ff936badf94d757393870c3
[ "MIT" ]
null
null
null
TEP/lista3/C.py
GuilhermeBraz/unb-workflow
37d680a675a87cea2ff936badf94d757393870c3
[ "MIT" ]
null
null
null
# Argus was charged with guarding Io, which is not an ordinary cow. Io is quite an explorer, and she wanders off rather frequently, making Argus' life stressful. So the cowherd decided to construct an enclosed pasture for Io. # There are nnn trees growing along the river, where Argus tends Io. For this problem, the riv...
114.777778
408
0.75605
5b81f231a630775497623e340d76ccd4baa322f0
5,463
py
Python
pyowb/open_work_bench.py
fifoforlifo/pyowb
33833ad564c3f2d7b72c2fa4d66f9cab10ff9a22
[ "Apache-2.0" ]
null
null
null
pyowb/open_work_bench.py
fifoforlifo/pyowb
33833ad564c3f2d7b72c2fa4d66f9cab10ff9a22
[ "Apache-2.0" ]
null
null
null
pyowb/open_work_bench.py
fifoforlifo/pyowb
33833ad564c3f2d7b72c2fa4d66f9cab10ff9a22
[ "Apache-2.0" ]
1
2021-02-14T17:12:51.000Z
2021-02-14T17:12:51.000Z
# Python plan -> Open Workbench XML converter. # # Python plan defines a Work Breakdown Structure where # tasks are dictionaries and children are defined in a list. # Children can contain sequences, to simplify data input; # sequenced tasks are automatically chained (dependencies). import sys import math from ...
34.14375
137
0.658796
5b8245e73f37dd605b04cea9066a60ec35f34aae
3,123
py
Python
utils/data_utils.py
junsu-kim97/self_improved_retro
5bb2e641a57a0623f509dd7a006896e6a105373c
[ "MIT" ]
9
2021-06-21T02:19:57.000Z
2022-02-25T02:56:13.000Z
utils/data_utils.py
junsu-kim97/self_improved_retro
5bb2e641a57a0623f509dd7a006896e6a105373c
[ "MIT" ]
null
null
null
utils/data_utils.py
junsu-kim97/self_improved_retro
5bb2e641a57a0623f509dd7a006896e6a105373c
[ "MIT" ]
1
2021-11-25T01:15:10.000Z
2021-11-25T01:15:10.000Z
import rdkit.Chem as Chem import pickle def smi_tokenizer(smi): """ Tokenize a SMILES molecule or reaction """ import re pattern = "(\[[^\]]+]|Br?|Cl?|N|O|S|P|F|I|b|c|n|o|s|p|\(|\)|\.|=|#|-|\+|\\\\|\/|:|~|@|\?|>|\*|\$|\%[0-9]{2}|[0-9])" regex = re.compile(pattern) tokens = [token for token...
30.028846
120
0.603907
5b85082b3ec4e8e4086dbcbe9c13c3b0a4b1548b
3,237
py
Python
src/scraping/newslists_scrapers/ukrnet.py
mstrechen/news-scraper
7961cef22f3989ad48140c7695b32662f9fd57ab
[ "MIT" ]
null
null
null
src/scraping/newslists_scrapers/ukrnet.py
mstrechen/news-scraper
7961cef22f3989ad48140c7695b32662f9fd57ab
[ "MIT" ]
null
null
null
src/scraping/newslists_scrapers/ukrnet.py
mstrechen/news-scraper
7961cef22f3989ad48140c7695b32662f9fd57ab
[ "MIT" ]
null
null
null
from queue import Queue from datetime import datetime, timedelta from .INewslistScraper import INewslistScraper from .. import article from .. import driver
40.4625
85
0.58789
5b85533c3707d4c478552c5ac09e55d8b975b426
201
py
Python
inference.py
andreasr27/bidding_simulator
c2e1665b5eb72d6464025ce330682fb25780cb56
[ "Apache-2.0" ]
null
null
null
inference.py
andreasr27/bidding_simulator
c2e1665b5eb72d6464025ce330682fb25780cb56
[ "Apache-2.0" ]
null
null
null
inference.py
andreasr27/bidding_simulator
c2e1665b5eb72d6464025ce330682fb25780cb56
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import regret as r import sys import os n=int(sys.argv[1]) fout=open(sys.argv[3],'w') print >>fout, n for i in range(0,n): print >>fout, i, r.mult_valuation(sys.argv[2],i)
15.461538
56
0.646766
5b858246ad28edd0c4482b11bf509db078683da1
12,676
py
Python
TAR/dataset.py
jiyanggao/CTAP
4c8ed32c72763f1b47e607b6e957695f9381930e
[ "MIT" ]
49
2018-07-11T06:33:39.000Z
2022-02-24T04:43:32.000Z
TAR/dataset.py
jiyanggao/CTAP
4c8ed32c72763f1b47e607b6e957695f9381930e
[ "MIT" ]
10
2018-07-31T07:01:53.000Z
2021-01-23T11:16:49.000Z
TAR/dataset.py
jiyanggao/CTAP
4c8ed32c72763f1b47e607b6e957695f9381930e
[ "MIT" ]
12
2018-07-21T10:30:04.000Z
2021-07-12T00:32:34.000Z
import numpy as np from math import sqrt import os import random import pickle ''' A class that handles the training set ''' ''' A class that handles the test set '''
46.602941
157
0.631982
5b862b0444a554f17c428be0cfd30de1d4fc4238
1,209
py
Python
github_status/util.py
alfredodeza/github-status
6790528caef688c4624a998ba14389081188eab7
[ "MIT" ]
null
null
null
github_status/util.py
alfredodeza/github-status
6790528caef688c4624a998ba14389081188eab7
[ "MIT" ]
null
null
null
github_status/util.py
alfredodeza/github-status
6790528caef688c4624a998ba14389081188eab7
[ "MIT" ]
null
null
null
from __future__ import print_function import os def build_is_triggered(): """ If a build is being triggered via Github directly (either by a comment, or automatically) then the ``ghprb`` will probably be involded. When that is the case, that plugin injects a wealth of environment variables, which can ...
34.542857
78
0.699752
5b8868ab4678426738010cc86dd5157444746730
339
py
Python
tests/__init__.py
jfardello/dyn53
bf40f9f979273cfcb64817ae8117992ce03acbac
[ "MIT" ]
null
null
null
tests/__init__.py
jfardello/dyn53
bf40f9f979273cfcb64817ae8117992ce03acbac
[ "MIT" ]
null
null
null
tests/__init__.py
jfardello/dyn53
bf40f9f979273cfcb64817ae8117992ce03acbac
[ "MIT" ]
null
null
null
import unittest from . import test_cli, test_client if __name__ == '__main__': unittest.TextTestRunner(verbosity=2).run(suite())
26.076923
67
0.761062
5b88fe4835697ffe0c79e926b04e81fcc84ab9fd
111
py
Python
OLD.dir/module2.py
romchegue/Python
444476088e64d5da66cb00174f3d1d30ebbe38f6
[ "bzip2-1.0.6" ]
null
null
null
OLD.dir/module2.py
romchegue/Python
444476088e64d5da66cb00174f3d1d30ebbe38f6
[ "bzip2-1.0.6" ]
null
null
null
OLD.dir/module2.py
romchegue/Python
444476088e64d5da66cb00174f3d1d30ebbe38f6
[ "bzip2-1.0.6" ]
null
null
null
print('starting to load...') import sys name = 42 print('done loading.')
11.1
28
0.675676
5b89fd1aed3678be46b04253e3670d3d318222c3
5,053
py
Python
src/real_q_voter/visualization.py
robertjankowski/real-q-voter
250357fe3d504a79b8515c278d052aac04a22585
[ "MIT" ]
null
null
null
src/real_q_voter/visualization.py
robertjankowski/real-q-voter
250357fe3d504a79b8515c278d052aac04a22585
[ "MIT" ]
4
2020-03-27T20:08:15.000Z
2020-06-04T07:35:18.000Z
src/real_q_voter/visualization.py
robertjankowski/real-q-voter
250357fe3d504a79b8515c278d052aac04a22585
[ "MIT" ]
null
null
null
import os import matplotlib.pyplot as plt import networkx as nx import numpy as np import glob from src.real_q_voter.logger import get_logger from itertools import accumulate from PIL import Image logger = get_logger('REAL-Q-VOTER-VISUALIZATION-LOGGER') def plot_degree_distribution(g: nx.Graph, bins=50, filename=Non...
35.836879
116
0.661191
5b8a08f2aa18f87d81614f59e6870e3dfaeef983
3,245
py
Python
tests/entity/test_entity_validate_implementation.py
MacHu-GWU/crawlib-project
b2963b7f6a36ee7f1ef95a6bf9d8cb746d9da991
[ "MIT" ]
1
2020-06-19T09:45:20.000Z
2020-06-19T09:45:20.000Z
tests/entity/test_entity_validate_implementation.py
MacHu-GWU/crawlib-project
b2963b7f6a36ee7f1ef95a6bf9d8cb746d9da991
[ "MIT" ]
1
2019-12-27T18:41:21.000Z
2019-12-27T18:41:21.000Z
tests/entity/test_entity_validate_implementation.py
MacHu-GWU/crawlib-project
b2963b7f6a36ee7f1ef95a6bf9d8cb746d9da991
[ "MIT" ]
1
2018-08-22T01:27:32.000Z
2018-08-22T01:27:32.000Z
# -*- coding: utf-8 -*- import pytest from pytest import raises from crawlib.entity.base import Entity, RelationshipConfig, Relationship if __name__ == "__main__": import os basename = os.path.basename(__file__) pytest.main([basename, "-s", "--tb=native"])
26.169355
72
0.674884