hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
794b3888cb4905fdc7ea80d46ca95c137ea50e9d
856
py
Python
internos/locations/urls.py
UNICEFLebanonInnovation/Staging-Neuro
aac1e4f335ff4ec32041f989a9c22f8581a4961a
[ "MIT" ]
null
null
null
internos/locations/urls.py
UNICEFLebanonInnovation/Staging-Neuro
aac1e4f335ff4ec32041f989a9c22f8581a4961a
[ "MIT" ]
null
null
null
internos/locations/urls.py
UNICEFLebanonInnovation/Staging-Neuro
aac1e4f335ff4ec32041f989a9c22f8581a4961a
[ "MIT" ]
null
null
null
from django.conf.urls import include, url from rest_framework import routers from . import views app_name = 'locations' api = routers.SimpleRouter() api.register(r'locations', views.LocationsViewSet, base_name='locations') api.register(r'locations-light', views.LocationsLightViewSet, base_name='locations-light') u...
27.612903
99
0.66472
794b396b21dd556d4d25300fa904680cd9641ed5
17,801
py
Python
keras/preprocessing/sequence.py
bmatschke/keras
6c392b5ad96fb47a05019e6dda42d2af1f1ec08e
[ "Apache-2.0" ]
null
null
null
keras/preprocessing/sequence.py
bmatschke/keras
6c392b5ad96fb47a05019e6dda42d2af1f1ec08e
[ "Apache-2.0" ]
null
null
null
keras/preprocessing/sequence.py
bmatschke/keras
6c392b5ad96fb47a05019e6dda42d2af1f1ec08e
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.107505
80
0.641818
794b397698a9c335aa2d6fb69c60951394ee301e
3,420
py
Python
pyJHTDB/__init__.py
lento234/pyJHTDB
9d525b790037456839ce82a88a086faabf034c67
[ "Apache-2.0" ]
null
null
null
pyJHTDB/__init__.py
lento234/pyJHTDB
9d525b790037456839ce82a88a086faabf034c67
[ "Apache-2.0" ]
null
null
null
pyJHTDB/__init__.py
lento234/pyJHTDB
9d525b790037456839ce82a88a086faabf034c67
[ "Apache-2.0" ]
null
null
null
######################################################################## # # Copyright 2014 Johns Hopkins University # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache...
31.376147
102
0.708772
794b39b1cb7237feaedd8131505394127afc5805
1,664
py
Python
scripts/prepare_genre_data.py
eldrin/lyricpsych-tasks
10f340e0e3e83e37a9611cb64d8f0db366b3a98e
[ "MIT" ]
null
null
null
scripts/prepare_genre_data.py
eldrin/lyricpsych-tasks
10f340e0e3e83e37a9611cb64d8f0db366b3a98e
[ "MIT" ]
null
null
null
scripts/prepare_genre_data.py
eldrin/lyricpsych-tasks
10f340e0e3e83e37a9611cb64d8f0db366b3a98e
[ "MIT" ]
null
null
null
from os.path import join, dirname import sys import argparse sys.path.append(join(dirname(__file__), '..')) import h5py import numpy as np from lyricpsych.data import load_mxm2msd def main(msd_tagtraum_fn, mxm_h5_fn, out_fn): """ """ # load relevant data mxm2msd = load_mxm2msd() msd2mxm = {v:k fo...
32
82
0.614183
794b3db1e35d458e96042c68cae3b784081616ca
391
py
Python
py-data/sight2sound/problems/api-related/1/correct-usages/main.py
ualberta-smr/NFBugs
65d9ef603e9527b3d83f53af0606b1ae240513f1
[ "MIT" ]
3
2019-10-01T19:58:24.000Z
2021-09-17T04:03:21.000Z
py-data/sight2sound/problems/api-related/1/correct-usages/main.py
senseconcordia/NFBugsExtended
60058ccbd64107018a92ede73056d08ecbdaaed2
[ "MIT" ]
22
2018-08-23T15:15:37.000Z
2019-03-15T17:09:41.000Z
py-data/sight2sound/problems/api-related/1/correct-usages/main.py
senseconcordia/NFBugsExtended
60058ccbd64107018a92ede73056d08ecbdaaed2
[ "MIT" ]
1
2019-02-11T18:26:36.000Z
2019-02-11T18:26:36.000Z
import hilbert_curve as hc from PIL import Image import math from time import sleep import alsaaudio import numpy as np from threading import Thread, Lock def main(): while True: img = Image.open(input_file).convert("L") pixels = img.load() output = [ pixels[hc.d2xy(math.lo...
21.722222
54
0.588235
794b3df4330f110bedc644486fd0b30108cde44b
3,761
py
Python
allennlp/training/callbacks/console_logger.py
jbrry/allennlp
d906175d953bebcc177567ec0157220c3bd1b9ad
[ "Apache-2.0" ]
2
2022-01-02T12:15:21.000Z
2022-01-02T12:15:23.000Z
allennlp/training/callbacks/console_logger.py
jbrry/allennlp
d906175d953bebcc177567ec0157220c3bd1b9ad
[ "Apache-2.0" ]
56
2020-03-14T21:10:07.000Z
2022-03-28T13:04:57.000Z
allennlp/training/callbacks/console_logger.py
jbrry/allennlp
d906175d953bebcc177567ec0157220c3bd1b9ad
[ "Apache-2.0" ]
3
2020-09-22T17:35:53.000Z
2022-02-08T01:03:03.000Z
import logging from typing import List, Dict, Any, Optional, TYPE_CHECKING import torch from allennlp.training.callbacks.callback import TrainerCallback from allennlp.training.util import get_train_and_validation_metrics from allennlp.data import TensorDict if TYPE_CHECKING: from allennlp.training.trainer import...
36.514563
100
0.604626
794b3e756dfdc687f3ddfcd55882df3eb12eb173
6,985
py
Python
superset/views/database/views.py
GrahamDownhill/incubator-superset
e55d8bbb26b3415e82ed2c443cac196b84a3af88
[ "Apache-2.0" ]
1
2020-11-06T17:14:49.000Z
2020-11-06T17:14:49.000Z
superset/views/database/views.py
GrahamDownhill/incubator-superset
e55d8bbb26b3415e82ed2c443cac196b84a3af88
[ "Apache-2.0" ]
2
2019-08-22T08:12:12.000Z
2020-04-27T11:38:04.000Z
superset/views/database/views.py
GrahamDownhill/incubator-superset
e55d8bbb26b3415e82ed2c443cac196b84a3af88
[ "Apache-2.0" ]
1
2020-10-08T07:26:19.000Z
2020-10-08T07:26:19.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
36.19171
88
0.647817
794b3e7787409906f48a6dfdb7f4ee39b4994224
5,511
py
Python
LBGM/src/data/distributor.py
sidsrini12/FURL_Sim
55b420a771858c06f1aef58f48bb68302be36621
[ "MIT" ]
null
null
null
LBGM/src/data/distributor.py
sidsrini12/FURL_Sim
55b420a771858c06f1aef58f48bb68302be36621
[ "MIT" ]
null
null
null
LBGM/src/data/distributor.py
sidsrini12/FURL_Sim
55b420a771858c06f1aef58f48bb68302be36621
[ "MIT" ]
null
null
null
from collections import defaultdict from networkx import is_connected from networkx.generators.geometric import random_geometric_graph from networkx.generators.random_graphs import erdos_renyi_graph import numpy as np import random from sklearn.model_selection import train_test_split import syft as sy import torch de...
32.22807
76
0.58229
794b3f52ff9027b4a33071312ef511bc02c968af
8,342
py
Python
tests/test_misc.py
pl77/sabnzbd
7e87a0c759944966ce7318134d8ed89b569ae73f
[ "0BSD", "PSF-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
null
null
null
tests/test_misc.py
pl77/sabnzbd
7e87a0c759944966ce7318134d8ed89b569ae73f
[ "0BSD", "PSF-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
null
null
null
tests/test_misc.py
pl77/sabnzbd
7e87a0c759944966ce7318134d8ed89b569ae73f
[ "0BSD", "PSF-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 -OO # Copyright 2007-2019 The SABnzbd-Team <team@sabnzbd.org> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any late...
41.71
103
0.623831
794b4000d2e7b3a54f3504b74ee0e84dbe6948ef
3,542
py
Python
src/modelSuite/XTran/forTrans/mandelAgolNL.py
mirofedurco/PyAstronomy
b0e5806a18bde647654e6c9de323327803722864
[ "MIT" ]
98
2015-01-01T12:46:05.000Z
2022-02-13T14:17:36.000Z
src/modelSuite/XTran/forTrans/mandelAgolNL.py
mirofedurco/PyAstronomy
b0e5806a18bde647654e6c9de323327803722864
[ "MIT" ]
46
2015-02-10T19:53:38.000Z
2022-01-11T17:26:05.000Z
src/modelSuite/XTran/forTrans/mandelAgolNL.py
mirofedurco/PyAstronomy
b0e5806a18bde647654e6c9de323327803722864
[ "MIT" ]
38
2015-01-08T17:00:34.000Z
2022-03-04T05:15:22.000Z
# -*- coding: utf-8 -*- import numpy import PyAstronomy.funcFit as fuf from PyAstronomy.pyaC import pyaErrors as PE from PyAstronomy.modelSuite.XTran import _ZList try: from . import occultnl _importOccultnl = True except ImportError: _importOccultnl = False class MandelAgolNLLC(_ZList, fuf.OneDFit): "...
36.895833
137
0.594862
794b408447b39eec70fb0902cbe3ef25c1b16ae6
1,447
py
Python
compte/models.py
bzg/acceslibre
52c7c6990dc132da71a92e856d65f4a983c3b15a
[ "MIT" ]
8
2020-07-23T08:17:28.000Z
2022-03-09T22:31:36.000Z
compte/models.py
bzg/acceslibre
52c7c6990dc132da71a92e856d65f4a983c3b15a
[ "MIT" ]
37
2020-07-01T08:47:33.000Z
2022-02-03T19:50:58.000Z
compte/models.py
bzg/acceslibre
52c7c6990dc132da71a92e856d65f4a983c3b15a
[ "MIT" ]
4
2021-04-08T10:57:18.000Z
2022-01-31T13:16:31.000Z
from django.conf import settings from django.contrib.auth import get_user_model from django.db import models from django.db.models.signals import post_save from django.dispatch import receiver class EmailToken(models.Model): class Meta: ordering = ("-created_at",) verbose_name = "EmailToken" ...
29.530612
67
0.679337
794b41af096b6da68ff1e0c19b6749a58c2d91ef
23,419
py
Python
tmt/steps/provision/__init__.py
happz/tmt
ff953b11204c8e1c2ed1a8ac9cf5c805a09a9ba1
[ "MIT" ]
null
null
null
tmt/steps/provision/__init__.py
happz/tmt
ff953b11204c8e1c2ed1a8ac9cf5c805a09a9ba1
[ "MIT" ]
null
null
null
tmt/steps/provision/__init__.py
happz/tmt
ff953b11204c8e1c2ed1a8ac9cf5c805a09a9ba1
[ "MIT" ]
null
null
null
import os import random import re import shlex import string import subprocess import tempfile import time import click import fmf import tmt # Timeout in seconds of waiting for a connection CONNECTION_TIMEOUT = 60 * 4 # Wait time when reboot happens in seconds SSH_INITIAL_WAIT_TIME = 5 class Provision(tmt.steps.S...
36.535101
79
0.589137
794b426d5389a80b72bf4f8ec0d109ddb0714114
1,024
py
Python
vibscore/__init__.py
ChocolateCircus445/VibriBot
3c6d9f879e6fb8b849d9fed015a101a811d4fa0b
[ "MIT" ]
1
2021-10-31T19:31:31.000Z
2021-10-31T19:31:31.000Z
vibscore/__init__.py
ChocolateCircus445/VibriBot
3c6d9f879e6fb8b849d9fed015a101a811d4fa0b
[ "MIT" ]
null
null
null
vibscore/__init__.py
ChocolateCircus445/VibriBot
3c6d9f879e6fb8b849d9fed015a101a811d4fa0b
[ "MIT" ]
null
null
null
scorevals = ( [0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1], [8, 7, 6, 5, 4, 3, 2], [36, 28, 21, 15, 10, 6, 3], [120, 84, 56, 35, 20, 10, 4], [330, 210, 126, 70, 35, 15, 5], [792, 462, 252, 126, 56, 21, 6], [1716, 924, 462, 210, 84, 28, 7], [3432, 1716, 792, 330, 120, 36, 8], [643...
28.444444
59
0.491211
794b43487a50cab871c284c5169eaad072d4b686
2,551
py
Python
solutions/year_2020/day_5/binary_boarding.py
svandermeulen/advent_of_code
99fe936a564f8ee66f8f28aaac4e36e013ebc28d
[ "MIT" ]
null
null
null
solutions/year_2020/day_5/binary_boarding.py
svandermeulen/advent_of_code
99fe936a564f8ee66f8f28aaac4e36e013ebc28d
[ "MIT" ]
null
null
null
solutions/year_2020/day_5/binary_boarding.py
svandermeulen/advent_of_code
99fe936a564f8ee66f8f28aaac4e36e013ebc28d
[ "MIT" ]
null
null
null
""" -*- coding: utf-8 -*- Written by: sme30393 Date: 05/12/2020 """ import os from solutions.config import Config def get_row(row_sequence: str, row_indices: list) -> list: if not len(row_indices) <= 1: if row_sequence[0] == "F": return get_row(row_sequence=row_sequence[1:], row_indices=row_i...
34.945205
109
0.677381
794b436457bb877fb5740e1b94cff013eec47732
953
py
Python
tests/test_hello_cookiecutter.py
diego-alves/hello_cookiecutter
71c6e0126b598e07702ef2a80f44bf552c799d6f
[ "MIT" ]
null
null
null
tests/test_hello_cookiecutter.py
diego-alves/hello_cookiecutter
71c6e0126b598e07702ef2a80f44bf552c799d6f
[ "MIT" ]
null
null
null
tests/test_hello_cookiecutter.py
diego-alves/hello_cookiecutter
71c6e0126b598e07702ef2a80f44bf552c799d6f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `hello_cookiecutter` package.""" import unittest from click.testing import CliRunner from hello_cookiecutter import hello_cookiecutter from hello_cookiecutter import cli class TestHello_cookiecutter(unittest.TestCase): """Tests for `hello_cookiecutter...
27.228571
74
0.66212
794b4389e17316c11d0e18171f2944fa249ba181
464
py
Python
xos/synchronizers/ec2/deleters/site_deployment_deleter.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/synchronizers/ec2/deleters/site_deployment_deleter.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
5
2020-06-05T17:47:15.000Z
2021-09-23T23:21:27.000Z
xos/synchronizers/ec2/deleters/site_deployment_deleter.py
pan2za/xos
c2a4da2ccaa12360b2718be303b247866aefdfe6
[ "Apache-2.0" ]
null
null
null
from core.models import Site, SiteDeployment from synchronizers.base.deleter import Deleter class SiteDeploymentDeleter(Deleter): model='SiteDeployment' def call(self, pk): site_deployment = SiteDeployment.objects.get(pk=pk) if site_deployment.tenant_id: driver = self.driver.admin_...
35.692308
89
0.741379
794b45b61decf56d1e25cbc22d15606310a7617d
3,043
py
Python
cogs/profiles.py
DaiconRadishPotato/Blabber
fb40dfd0e20e37c1b230e3546173dd1f32de01e0
[ "MIT" ]
null
null
null
cogs/profiles.py
DaiconRadishPotato/Blabber
fb40dfd0e20e37c1b230e3546173dd1f32de01e0
[ "MIT" ]
1
2020-01-03T10:46:40.000Z
2020-01-03T10:46:40.000Z
cogs/profiles.py
DaiconRadishPotato/Blabber
fb40dfd0e20e37c1b230e3546173dd1f32de01e0
[ "MIT" ]
null
null
null
# profiles.py # # Author: Fanny Avila (Fa-Avila) # Contributor: Jacky Zhang (jackyeightzhang), # Marcos Avila (DaiconV) # Date created: 3/27/2020 # Date last modified: 6/2/2020 # Python Version: 3.8.1 # License: MIT License from discord import Embed, Colour from discord.ext import commands from blabber...
31.697917
78
0.576733
794b45ea2ef7306e580e26c1e1a1f15ddce9c3fa
11,287
py
Python
TextHelper.py
DanATW/exchange-rates-tg-bot
cda30804fd76807e3ad6e248f6da82e262f06dbe
[ "MIT" ]
10
2020-06-11T17:19:01.000Z
2022-03-25T17:52:18.000Z
TextHelper.py
DanATW/exchange-rates-tg-bot
cda30804fd76807e3ad6e248f6da82e262f06dbe
[ "MIT" ]
3
2021-08-16T16:33:25.000Z
2022-01-13T18:30:53.000Z
TextHelper.py
DanATW/exchange-rates-tg-bot
cda30804fd76807e3ad6e248f6da82e262f06dbe
[ "MIT" ]
6
2020-07-24T17:40:30.000Z
2021-09-16T11:29:16.000Z
from aiogram.types.inline_keyboard import InlineKeyboardMarkup, InlineKeyboardButton import DBH import ListsCache import os from NewPrint import Print from Dictionaries.ButtonTexts import ButtonTexts from Dictionaries.MessageTexts import MessageTexts AllBigTexts = {} ListOfNamesOfTextforBigTexts = [] def LoadTexts(...
49.504386
153
0.694782
794b4693e0e4556cc8e8ce094f1406f766d4f0ab
7,528
py
Python
tests/test_processing.py
patymori/document-store-migracao
1320ef58de1484ca8383c29c1fea55c4b2d89e67
[ "BSD-2-Clause" ]
1
2019-11-21T12:35:36.000Z
2019-11-21T12:35:36.000Z
tests/test_processing.py
patymori/document-store-migracao
1320ef58de1484ca8383c29c1fea55c4b2d89e67
[ "BSD-2-Clause" ]
336
2019-04-01T14:06:37.000Z
2022-03-21T22:16:55.000Z
tests/test_processing.py
patymori/document-store-migracao
1320ef58de1484ca8383c29c1fea55c4b2d89e67
[ "BSD-2-Clause" ]
4
2019-03-28T13:32:04.000Z
2020-04-17T18:03:19.000Z
import os import unittest import tempfile import shutil from lxml import etree from unittest.mock import patch, ANY, call, Mock, MagicMock from xylose.scielodocument import Journal, Article from documentstore_migracao.processing import ( extracted, conversion, validation, reading, inserting, ) from...
35.677725
86
0.640276
794b473b6d66339c5bfc050345477c96722c4cc8
2,953
py
Python
pettingzoo/sisl/waterworld/waterworld.py
rodrigodelazcano/PettingZoo
41fe43c7da2fd92fa8c6aa5a5a28083664092aa5
[ "Apache-2.0" ]
null
null
null
pettingzoo/sisl/waterworld/waterworld.py
rodrigodelazcano/PettingZoo
41fe43c7da2fd92fa8c6aa5a5a28083664092aa5
[ "Apache-2.0" ]
null
null
null
pettingzoo/sisl/waterworld/waterworld.py
rodrigodelazcano/PettingZoo
41fe43c7da2fd92fa8c6aa5a5a28083664092aa5
[ "Apache-2.0" ]
null
null
null
import numpy as np from pettingzoo import AECEnv from pettingzoo.utils import agent_selector, wrappers from pettingzoo.utils.conversions import parallel_wrapper_fn from .waterworld_base import MAWaterWorld as _env def env(**kwargs): env = raw_env(**kwargs) env = wrappers.ClipOutOfBoundsWrapper(env) env ...
34.741176
86
0.657636
794b477ff48c583c08d33aed1a6acec62726bc99
4,128
py
Python
src/intensity_func.py
quangduyhcmut/Simple_Image_ProcessinUIg_G
546bf33ee4ad0904594dfe702e7c864472c617bc
[ "MIT" ]
null
null
null
src/intensity_func.py
quangduyhcmut/Simple_Image_ProcessinUIg_G
546bf33ee4ad0904594dfe702e7c864472c617bc
[ "MIT" ]
null
null
null
src/intensity_func.py
quangduyhcmut/Simple_Image_ProcessinUIg_G
546bf33ee4ad0904594dfe702e7c864472c617bc
[ "MIT" ]
null
null
null
import cv2 import numpy as np def img_neg(img): img_negative = 255 - img return img_negative def img_thres(img,threshold): img[img<threshold] = 0 img[img>=threshold] =255 return img def img_log(image): image = image.astype(np.float) c = 255 / np.log(1 + 255) log_image = c * (np.log(im...
35.895652
180
0.634205
794b48b86955c141eabc2a9c7285043d3045c23c
192
py
Python
submissions/arc033/a.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
1
2021-05-10T01:16:28.000Z
2021-05-10T01:16:28.000Z
submissions/arc033/a.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
3
2021-05-11T06:14:15.000Z
2021-06-19T08:18:36.000Z
submissions/arc033/a.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
null
null
null
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines sys.setrecursionlimit(10 ** 7) n = int(readline()) print(n * (n + 1) // 2)
21.333333
38
0.713542
794b48c7f1ef4c01ebbf256938276ccc354008c2
3,861
py
Python
todo_list_web/settings.py
felipe-menelau/todo-list-web
9b60a549dc6d5bdd88e1a584b8bb2c4f56131cb5
[ "MIT" ]
null
null
null
todo_list_web/settings.py
felipe-menelau/todo-list-web
9b60a549dc6d5bdd88e1a584b8bb2c4f56131cb5
[ "MIT" ]
null
null
null
todo_list_web/settings.py
felipe-menelau/todo-list-web
9b60a549dc6d5bdd88e1a584b8bb2c4f56131cb5
[ "MIT" ]
null
null
null
""" Django settings for todo_list_web project. Generated by 'django-admin startproject' using Django 2.0.1. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import...
27
91
0.700078
794b4a58ef4728ec1a1dbd9431a97d2a3160abf8
1,111
py
Python
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/python-scripts/scripts/34_git_all_repos.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
5
2021-06-02T23:44:25.000Z
2021-12-27T16:21:57.000Z
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/python-scripts/scripts/34_git_all_repos.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
22
2021-05-31T01:33:25.000Z
2021-10-18T18:32:39.000Z
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/python-scripts/scripts/34_git_all_repos.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
3
2021-06-19T03:37:47.000Z
2021-08-31T00:49:51.000Z
import sys import os import requests def get_total_repos(group, name): repo_urls = [] page = 1 while True: url = "https://api.github.com/{0}/{1}/repos?per_page=100&page={2}" r = requests.get(url.format(group, name, page)) if r.status_code == 200: rdata = r.json() ...
25.25
74
0.538254
794b4aa85994085d27f131d60f42577781a9b496
4,877
py
Python
astropy/nddata/tests/test_compat.py
jbkalmbach/astropy
88ae8c615533efd1e60de4aded204943f66f881c
[ "BSD-3-Clause" ]
1
2022-03-02T17:07:20.000Z
2022-03-02T17:07:20.000Z
astropy/nddata/tests/test_compat.py
jbkalmbach/astropy
88ae8c615533efd1e60de4aded204943f66f881c
[ "BSD-3-Clause" ]
11
2017-12-18T16:27:29.000Z
2018-08-29T14:54:22.000Z
astropy/nddata/tests/test_compat.py
jbkalmbach/astropy
88ae8c615533efd1e60de4aded204943f66f881c
[ "BSD-3-Clause" ]
1
2018-08-02T09:33:21.000Z
2018-08-02T09:33:21.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst # This module contains tests of a class equivalent to pre-1.0 NDData. import pytest import numpy as np from ..nddata import NDData from ..compat import NDDataArray from ..nduncertainty import StdDevUncertainty from ... import units as u NDDATA_ATTRIBU...
33.868056
77
0.639532
794b4b2bb3d84ff434136e9f4ca8a8b2ee2cb96c
3,042
py
Python
build/lib/lsh_example/Phrases.py
huangbeidan/activeLearner_autophrase
c7f1a4f1c7ea57a36c29c246ba393ba31e040353
[ "MIT" ]
1
2021-03-05T15:42:32.000Z
2021-03-05T15:42:32.000Z
build/lib/lsh_example/Phrases.py
huangbeidan/activeLearner_autophrase
c7f1a4f1c7ea57a36c29c246ba393ba31e040353
[ "MIT" ]
null
null
null
build/lib/lsh_example/Phrases.py
huangbeidan/activeLearner_autophrase
c7f1a4f1c7ea57a36c29c246ba393ba31e040353
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from collections import defaultdict class Phrase: def __init__(self): self.idx = -1 self.quality = -1 self.tokens = "" self.words = "" self.label = "" def add_phrase(self, idx, quality, tokens, words, label): self....
33.428571
128
0.556213
794b4be991a20d1e9fdc0c6d496d10fd8cc27c00
777
py
Python
medet/users/migrations/0001_initial.py
ayushri117/MEDET
11941c89a44f9e49939710ad23ff85378b89c5a9
[ "MIT" ]
null
null
null
medet/users/migrations/0001_initial.py
ayushri117/MEDET
11941c89a44f9e49939710ad23ff85378b89c5a9
[ "MIT" ]
null
null
null
medet/users/migrations/0001_initial.py
ayushri117/MEDET
11941c89a44f9e49939710ad23ff85378b89c5a9
[ "MIT" ]
1
2021-08-07T15:57:40.000Z
2021-08-07T15:57:40.000Z
# Generated by Django 3.0.6 on 2021-08-01 05:54 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
29.884615
121
0.646075
794b4d22e84f8221d75a584e381ee2dbd6004120
4,923
py
Python
google-cloud-sdk/lib/surface/sql/instances/describe.py
bopopescu/Social-Lite
ee05d6a7431c36ff582c8d6b58bb20a8c5f550bf
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/lib/surface/sql/instances/describe.py
bopopescu/Social-Lite
ee05d6a7431c36ff582c8d6b58bb20a8c5f550bf
[ "Apache-2.0" ]
4
2020-07-21T12:51:46.000Z
2022-01-22T10:29:25.000Z
google-cloud-sdk/lib/surface/sql/instances/describe.py
bopopescu/Social-Lite
ee05d6a7431c36ff582c8d6b58bb20a8c5f550bf
[ "Apache-2.0" ]
1
2020-07-25T18:17:57.000Z
2020-07-25T18:17:57.000Z
# -*- coding: utf-8 -*- # # Copyright 2013 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
39.071429
119
0.73634
794b4d2aec483385aada3088d94b2c7a960f62e7
5,129
py
Python
easygraph/readwrite/graphviz.py
tddschn/Easy-Graph
2cdecbde0b67a0c106e2bcf82d13c6fcd0b4c5d8
[ "BSD-3-Clause" ]
1
2022-03-19T11:29:42.000Z
2022-03-19T11:29:42.000Z
easygraph/readwrite/graphviz.py
tddschn/Easy-Graph
2cdecbde0b67a0c106e2bcf82d13c6fcd0b4c5d8
[ "BSD-3-Clause" ]
null
null
null
easygraph/readwrite/graphviz.py
tddschn/Easy-Graph
2cdecbde0b67a0c106e2bcf82d13c6fcd0b4c5d8
[ "BSD-3-Clause" ]
null
null
null
import easygraph as eg __all__ = ["write_dot", "read_dot", "from_agraph", "to_agraph"] def from_agraph(A, create_using=None): """Returns a EasyGraph Graph or DiGraph from a PyGraphviz graph. Parameters ---------- A : PyGraphviz AGraph A graph created with PyGraphviz create_using : EasyGra...
28.181319
78
0.578475
794b4d311747a7b9ed555b39798cda525d100e63
21,340
py
Python
main_tsp.py
cem0963/dpdp
86f91a1e425826a3f31bcc175724c26a349fdb96
[ "MIT" ]
null
null
null
main_tsp.py
cem0963/dpdp
86f91a1e425826a3f31bcc175724c26a349fdb96
[ "MIT" ]
null
null
null
main_tsp.py
cem0963/dpdp
86f91a1e425826a3f31bcc175724c26a349fdb96
[ "MIT" ]
null
null
null
import os import json import argparse import time import numpy as np import torch from torch.autograd import Variable import torch.nn.functional as F import torch.nn as nn from sklearn.utils.class_weight import compute_class_weight from tensorboardX import SummaryWriter from fastprogress import master_bar, progress...
44.365904
188
0.671368
794b4d7ab53e871c252ef2d705ab6909fac797b6
2,734
py
Python
QTranslatorHelper/qtrer.py
xyz1001/PythonToolkit
b8e348764051c0184643b14f5b85c46223285d98
[ "MIT" ]
1
2022-01-11T02:20:16.000Z
2022-01-11T02:20:16.000Z
QTranslatorHelper/qtrer.py
xyz1001/PythonToolkit
b8e348764051c0184643b14f5b85c46223285d98
[ "MIT" ]
null
null
null
QTranslatorHelper/qtrer.py
xyz1001/PythonToolkit
b8e348764051c0184643b14f5b85c46223285d98
[ "MIT" ]
2
2018-11-01T08:06:40.000Z
2020-04-29T08:39:20.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Translate Qt ts file Usage: qtrer [--ts_dir=<ts_dir> --excel_dir=<excel_dir> --log_level=<log_level> --patch] Options: --ts_dir=<ts_dir> Qt翻译文件的目录 --excel_dir=<excel_dir> Excel翻译文件的路径 --loglevel=<log_level> ...
31.068182
108
0.633138
794b4db7cc11c2d09a564deb9eaa0e0a2339e45e
836
py
Python
manage.py
debo0611/modern-django-
80ea1bea493815e32d819919aab0be8b5e9778f7
[ "MIT" ]
null
null
null
manage.py
debo0611/modern-django-
80ea1bea493815e32d819919aab0be8b5e9778f7
[ "MIT" ]
1
2022-01-13T00:49:07.000Z
2022-01-13T00:49:07.000Z
manage.py
debo0611/modern-django-
80ea1bea493815e32d819919aab0be8b5e9778f7
[ "MIT" ]
1
2017-10-19T11:49:37.000Z
2017-10-19T11:49:37.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some...
34.833333
77
0.623206
794b4dbab19da947416c7ae2d12100f52d284123
20,645
py
Python
src/lib/datasets/dataset/jde.py
kaushal21/FairMOTAssignment
ca1a94a084da41cb3ad2e697e88a1032a7735caa
[ "MIT" ]
null
null
null
src/lib/datasets/dataset/jde.py
kaushal21/FairMOTAssignment
ca1a94a084da41cb3ad2e697e88a1032a7735caa
[ "MIT" ]
null
null
null
src/lib/datasets/dataset/jde.py
kaushal21/FairMOTAssignment
ca1a94a084da41cb3ad2e697e88a1032a7735caa
[ "MIT" ]
null
null
null
import glob import math import os import os.path as osp import random import time from collections import OrderedDict import cv2 import json import numpy as np import torch import copy from torch.utils.data import Dataset from torchvision.transforms import transforms as T from cython_bbox import bbox_overlaps as bbox...
37.950368
125
0.535335
794b4de296156f241940a937ee3dc3fb0ecd9a30
27,216
py
Python
ticket_to_ride/static/routes.py
dcastf01/API_to_ticket_ticket_to_ride
1d291dac9f697b9836e97f3dee97f44ca8de2755
[ "MIT" ]
null
null
null
ticket_to_ride/static/routes.py
dcastf01/API_to_ticket_ticket_to_ride
1d291dac9f697b9836e97f3dee97f44ca8de2755
[ "MIT" ]
null
null
null
ticket_to_ride/static/routes.py
dcastf01/API_to_ticket_ticket_to_ride
1d291dac9f697b9836e97f3dee97f44ca8de2755
[ "MIT" ]
null
null
null
import itertools all_routes=[ ('Cadiz','Lisboa',2), ('Cadiz','Madrid',3), ('Cadiz','Barcelona',5), ('Cadiz','Pamplona',6), ('Cadiz','Marseille',9), ('Cadiz','Brest',10), ('Cadiz','Dieppe',11), ('Cadiz','Paris',10), ('Cadiz','Bruxelles',12), ('Cadiz','Zurich',11), ('Cadiz','Munchen',13), ('Cadiz','Frankfurt',13), ('C...
25.060773
36
0.60244
794b4ed15c8f93c479bec99b65b51a11d39732e7
377
py
Python
flows/models.py
sergioisidoro/django-flows
326baa3e216a15bd7a8d13b2a09ba9752e250dbb
[ "BSD-2-Clause" ]
104
2015-01-05T14:29:16.000Z
2021-11-08T11:20:24.000Z
flows/models.py
sergioisidoro/django-flows
326baa3e216a15bd7a8d13b2a09ba9752e250dbb
[ "BSD-2-Clause" ]
4
2015-09-23T11:14:50.000Z
2020-03-21T06:08:34.000Z
flows/models.py
sergioisidoro/django-flows
326baa3e216a15bd7a8d13b2a09ba9752e250dbb
[ "BSD-2-Clause" ]
16
2015-01-05T10:13:44.000Z
2022-02-14T05:21:23.000Z
# -*- coding: UTF-8 -*- # Note: this is mainly required because using the Django test runner # requires that apps under test have a 'models' module, even if it's # just empty. from flows import config if config.FLOWS_STATE_STORE == 'flows.statestore.django_store': from flows.statestore.django_store import StateM...
37.7
109
0.763926
794b503ecb29b62498206fc52e4a68f9966de75f
401,557
py
Python
opcua/ua/uaprotocol_auto.py
aixiwang/opcua2cloud
32e1e745e4939f8d4fd51892d9a51230ffdfc198
[ "Apache-2.0" ]
null
null
null
opcua/ua/uaprotocol_auto.py
aixiwang/opcua2cloud
32e1e745e4939f8d4fd51892d9a51230ffdfc198
[ "Apache-2.0" ]
null
null
null
opcua/ua/uaprotocol_auto.py
aixiwang/opcua2cloud
32e1e745e4939f8d4fd51892d9a51230ffdfc198
[ "Apache-2.0" ]
2
2019-01-14T10:13:57.000Z
2020-02-11T15:22:14.000Z
''' Autogenerate code from xml spec ''' from datetime import datetime from enum import IntEnum from opcua.ua.uatypes import * from opcua.ua.object_ids import ObjectIds class NamingRuleType(IntEnum): ''' :ivar Mandatory: :vartype Mandatory: 1 :ivar Optional: :vartype Optional: 2 :ivar Constra...
31.526812
130
0.643612
794b51fc6569344eaf6df528d15588063c9c2732
10,767
py
Python
rasa/nlu/featurizers/sparse_featurizer/_regex_featurizer.py
hercules261188/rasa
6b0631f1fddf95a044c728e885e2940dd2f8f83e
[ "Apache-2.0" ]
1
2021-05-30T16:01:12.000Z
2021-05-30T16:01:12.000Z
rasa/nlu/featurizers/sparse_featurizer/_regex_featurizer.py
hercules261188/rasa
6b0631f1fddf95a044c728e885e2940dd2f8f83e
[ "Apache-2.0" ]
64
2021-09-24T06:44:41.000Z
2022-03-14T12:12:28.000Z
rasa/nlu/featurizers/sparse_featurizer/_regex_featurizer.py
hercules261188/rasa
6b0631f1fddf95a044c728e885e2940dd2f8f83e
[ "Apache-2.0" ]
null
null
null
# flake8: noqa # WARNING: This module will be dropped before Rasa Open Source 3.0 is released. # This module is a workaround to defer breaking changes due to the architecture # revamp in 3.0. import logging import re from typing import Any, Dict, List, Optional, Text, Type, Tuple from pathlib import P...
38.180851
88
0.63611
794b5281ee91d6c1bcc69902ceaa2b309e1a5576
2,039
py
Python
source/preprocessing/heart_rate/heart_rate_service.py
marta18a/sleep_classifiers
75aaae37dafe752909cf56351911e246a4febb4d
[ "MIT" ]
97
2019-02-18T20:19:21.000Z
2022-03-30T05:01:44.000Z
source/preprocessing/heart_rate/heart_rate_service.py
marta18a/sleep_classifiers
75aaae37dafe752909cf56351911e246a4febb4d
[ "MIT" ]
13
2019-10-29T05:53:11.000Z
2022-03-14T21:38:49.000Z
source/preprocessing/heart_rate/heart_rate_service.py
marta18a/sleep_classifiers
75aaae37dafe752909cf56351911e246a4febb4d
[ "MIT" ]
49
2019-06-03T23:22:19.000Z
2022-03-30T05:01:40.000Z
import numpy as np import pandas as pd from source import utils from source.constants import Constants from source.preprocessing.heart_rate.heart_rate_collection import HeartRateCollection class HeartRateService(object): @staticmethod def load_raw(subject_id): raw_hr_path = HeartRateService.get_raw_...
39.211538
97
0.747916
794b52b75eb6200807bf5a55cb5b612a3a72f234
4,490
py
Python
benchmark/startQiskit1658.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit1658.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit1658.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=5 # total number=59 import cirq import qiskit from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2,floor, sqrt, pi import numpy as np import networkx as ...
32.536232
82
0.606459
794b532af6e5190b98d55f1f7b560e5114615c10
4,329
py
Python
src/OOMDP.py
joeyginorio/ObjectOrientedMDP
aa75e79f0c6ab912c34a8af8499a166c1f18526b
[ "MIT" ]
1
2020-02-24T06:01:59.000Z
2020-02-24T06:01:59.000Z
src/OOMDP.py
joeyginorio/ObjectOrientedMDP
aa75e79f0c6ab912c34a8af8499a166c1f18526b
[ "MIT" ]
null
null
null
src/OOMDP.py
joeyginorio/ObjectOrientedMDP
aa75e79f0c6ab912c34a8af8499a166c1f18526b
[ "MIT" ]
null
null
null
# Joey Velez-Ginorio # -------------------- # OOMDP Implementation # -------------------- import itertools import numpy as np from Object import Object class OOMDP(object): """ Defines an Object-Oriented Markov Decision Process, formally defined as a nine tuple, < classes, attributes(c), domain(a), objects, ...
26.236364
80
0.678679
794b537cbff4cea391b49de333bead3e681df391
2,348
py
Python
varats/varats/projects/c_projects/glib.py
ajrox090/VaRA-Tool-Suite
1550d36a4049e0615afb0bacfb96b1d506a29c98
[ "BSD-2-Clause" ]
null
null
null
varats/varats/projects/c_projects/glib.py
ajrox090/VaRA-Tool-Suite
1550d36a4049e0615afb0bacfb96b1d506a29c98
[ "BSD-2-Clause" ]
null
null
null
varats/varats/projects/c_projects/glib.py
ajrox090/VaRA-Tool-Suite
1550d36a4049e0615afb0bacfb96b1d506a29c98
[ "BSD-2-Clause" ]
null
null
null
"""Project file for glib.""" import typing as tp import benchbuild as bb from benchbuild.utils.cmd import ninja, meson from benchbuild.utils.settings import get_number_of_jobs from plumbum import local from varats.containers.containers import get_base_image, ImageBase from varats.paper_mgmt.paper_config import projec...
29.721519
80
0.669932
794b538c2904836ec42985dbbefede195b4e454e
4,114
py
Python
run-tests.py
siraben/nixpkgs-hammering
f9e9674ddf0e6861d2009c25a3667aace1de67df
[ "MIT" ]
null
null
null
run-tests.py
siraben/nixpkgs-hammering
f9e9674ddf0e6861d2009c25a3667aace1de67df
[ "MIT" ]
null
null
null
run-tests.py
siraben/nixpkgs-hammering
f9e9674ddf0e6861d2009c25a3667aace1de67df
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import subprocess import textwrap import unittest script_dir = os.path.dirname(os.path.realpath(__file__)) def make_test_variant(rule, variant=None, should_match=True): def case(): attr_path=f'{rule}.{variant}' if variant is not None else rule test_build = subproc...
26.203822
130
0.494409
794b53dd13d6f9017c252f49b9ae038b26dd0589
796
py
Python
iris/setup.py
Babak-Ebrahimi/cloudml-sample
34959ec732ac8efa7fb3efdd293ac7956fa5253a
[ "Apache-2.0" ]
null
null
null
iris/setup.py
Babak-Ebrahimi/cloudml-sample
34959ec732ac8efa7fb3efdd293ac7956fa5253a
[ "Apache-2.0" ]
null
null
null
iris/setup.py
Babak-Ebrahimi/cloudml-sample
34959ec732ac8efa7fb3efdd293ac7956fa5253a
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
34.608696
74
0.734925
794b54f9559c14d42cb19c8eeb7faf920093e638
5,325
py
Python
codango/codango/settings/base.py
alexkiura/codango
47f94515c4e7437341ffb0d9bf09cfeb876b59e1
[ "MIT" ]
1
2021-03-24T22:41:19.000Z
2021-03-24T22:41:19.000Z
codango/codango/settings/base.py
mrkiura/codango
47f94515c4e7437341ffb0d9bf09cfeb876b59e1
[ "MIT" ]
null
null
null
codango/codango/settings/base.py
mrkiura/codango
47f94515c4e7437341ffb0d9bf09cfeb876b59e1
[ "MIT" ]
1
2019-04-10T19:40:28.000Z
2019-04-10T19:40:28.000Z
""" Django settings for codango project. Generated by 'django-admin startproject' using Django 1.8.3. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Build path...
26.492537
89
0.711549
794b556b8b7c79c5b61fc09a99a1a9979a8e207f
924
py
Python
examples/chunking/udf/ext_features.py
shyamalschandra/deepdive
56576d63fe5d7cb926a3bafa5890676bb9e5ee5b
[ "Apache-2.0" ]
1
2015-04-06T16:20:00.000Z
2015-04-06T16:20:00.000Z
examples/chunking/udf/ext_features.py
shyamalschandra/deepdive
56576d63fe5d7cb926a3bafa5890676bb9e5ee5b
[ "Apache-2.0" ]
null
null
null
examples/chunking/udf/ext_features.py
shyamalschandra/deepdive
56576d63fe5d7cb926a3bafa5890676bb9e5ee5b
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python import fileinput import json import itertools import sys def tostr(s): # In TSV extractor, '\N' is NULL in psql, 'NULL' is NULL in mysql return '' if s is None or s in ['\N', 'NULL'] else str(s) # for each word for row in sys.stdin: # obj = json.loads(row) word_id, word1, pos1, word2, pos2...
23.1
66
0.638528
794b56ab081bf072980f82acd289b96d2089ffee
2,477
py
Python
tests/large/test_mode_replay.py
hexecute/eventgen
9978ef0725ad63a717e0019c6b30c5a5d9086fe1
[ "Apache-2.0" ]
null
null
null
tests/large/test_mode_replay.py
hexecute/eventgen
9978ef0725ad63a717e0019c6b30c5a5d9086fe1
[ "Apache-2.0" ]
1
2019-06-28T01:40:16.000Z
2019-06-28T01:40:16.000Z
tests/large/test_mode_replay.py
hexecute/eventgen
9978ef0725ad63a717e0019c6b30c5a5d9086fe1
[ "Apache-2.0" ]
null
null
null
from datetime import datetime import re import time def test_mode_replay(eventgen_test_helper): """Test normal replay mode settings""" events = eventgen_test_helper('eventgen_replay.conf').get_events() # assert the event length is the same as sample file size assert len(events) == 12 pattern = re....
41.283333
110
0.712959
794b57975137079218a6d8c3783c9e7cf7ecbf2e
14,893
py
Python
game.py
tontonlepatate/retro-gaming
9f9ea2def5047e94520c266e626f87dd7c892cb1
[ "Apache-2.0" ]
1
2019-06-12T07:18:46.000Z
2019-06-12T07:18:46.000Z
game.py
tontonlepatate/retro-gaming
9f9ea2def5047e94520c266e626f87dd7c892cb1
[ "Apache-2.0" ]
null
null
null
game.py
tontonlepatate/retro-gaming
9f9ea2def5047e94520c266e626f87dd7c892cb1
[ "Apache-2.0" ]
null
null
null
import inspect import os import numpy as np import pygame from math import sqrt from pygame import transform from pygame.draw import rect from pygame.font import SysFont from pygame.rect import Rect from pygame.surface import Surface from pygame.transform import scale from common import palette, RED, WHITE, YELLOW, B...
31.222222
115
0.608339
794b57cb10e681dccf1562e10f16dd7084d9bdb6
2,132
py
Python
getDataAndLabels1Subj1Filtered.py
WillSmithTE/arl-eegmodels
08cd6e98592abb8a12425cbfc2cd2d05ef1476d3
[ "CC0-1.0" ]
null
null
null
getDataAndLabels1Subj1Filtered.py
WillSmithTE/arl-eegmodels
08cd6e98592abb8a12425cbfc2cd2d05ef1476d3
[ "CC0-1.0" ]
null
null
null
getDataAndLabels1Subj1Filtered.py
WillSmithTE/arl-eegmodels
08cd6e98592abb8a12425cbfc2cd2d05ef1476d3
[ "CC0-1.0" ]
null
null
null
import scipy.io import numpy as np from util import save, read from channelPrune import takeOnlyCertainChannels from downsample import downSample from takeSubset import takeSubset files = { '01': ['1', '2', '3', '4'] # '02': ['1', '2', '3'], # '03': ['1', '2', '3', '4'], # '04': ['1', '2', '3', '4'] } ...
28.052632
111
0.631801
794b595a880bf36d27a621421a5a39b22789fc02
4,600
py
Python
sdk/python/pulumi_azure_nextgen/documentdb/v20160331/get_database_account_mongo_db_database.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/documentdb/v20160331/get_database_account_mongo_db_database.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/documentdb/v20160331/get_database_account_mongo_db_database.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
38.016529
505
0.653478
794b5a52fb8500153a1e5148d28751215637c292
431
py
Python
ChoreographyHive/loadout_generator.py
VirxEC/RLBotChoreography
579aa3590868a2e9fd99cd1f9dd32a4c3058c55e
[ "MIT" ]
null
null
null
ChoreographyHive/loadout_generator.py
VirxEC/RLBotChoreography
579aa3590868a2e9fd99cd1f9dd32a4c3058c55e
[ "MIT" ]
null
null
null
ChoreographyHive/loadout_generator.py
VirxEC/RLBotChoreography
579aa3590868a2e9fd99cd1f9dd32a4c3058c55e
[ "MIT" ]
null
null
null
import random from pathlib import Path from rlbot.agents.base_loadout_generator import BaseLoadoutGenerator from rlbot.matchconfig.loadout_config import LoadoutConfig class LoadoutGenerator(BaseLoadoutGenerator): def generate_loadout(self, player_index: int, team: int) -> LoadoutConfig: loadout = self.lo...
35.916667
112
0.786543
794b5a8f9dab5889b69d3a9a55873bdd27e09335
201
py
Python
mileage.py
pjack484/Mileage-Converter-
c87f86196a743fff528fe4726f747af2f41c5c01
[ "MIT" ]
null
null
null
mileage.py
pjack484/Mileage-Converter-
c87f86196a743fff528fe4726f747af2f41c5c01
[ "MIT" ]
null
null
null
mileage.py
pjack484/Mileage-Converter-
c87f86196a743fff528fe4726f747af2f41c5c01
[ "MIT" ]
null
null
null
print("How many kilometers did you cycle today?") kms = input() miles = float(kms)/1.60934 print(f"That is equal to {round(miles, 2)} miles ") # round(thing to round, how many decimal points)
25.125
52
0.681592
794b5ae4be1c579e35258370431092b091f62123
1,320
py
Python
checkdb.py
anvilventures/lookinsidethebox
42870254d6835ba49f8859d160c60c27765188c6
[ "0BSD" ]
79
2019-05-08T10:57:10.000Z
2020-11-24T02:16:01.000Z
checkdb.py
anvilsecure/lookinsidethebox
42870254d6835ba49f8859d160c60c27765188c6
[ "0BSD" ]
null
null
null
checkdb.py
anvilsecure/lookinsidethebox
42870254d6835ba49f8859d160c60c27765188c6
[ "0BSD" ]
13
2019-05-08T08:51:46.000Z
2020-09-18T16:22:09.000Z
#!/usr/bin/env python3 import argparse import dis import opcodemap if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("--db") ns = parser.parse_args() if not ns.db: ns.db = "opcode.db" with opcodemap.OpcodeMapping(ns.db, False) as opc_map: table = o...
34.736842
79
0.584848
794b5afb51a991df5413630f5a629aea91a99889
1,193
py
Python
gnodatapackages-1.2.3/setup.py
charmandersgsg/gnodatapackages
f8970b9ea356ee4e31f56ef52ecb3be645166b4e
[ "MIT" ]
null
null
null
gnodatapackages-1.2.3/setup.py
charmandersgsg/gnodatapackages
f8970b9ea356ee4e31f56ef52ecb3be645166b4e
[ "MIT" ]
null
null
null
gnodatapackages-1.2.3/setup.py
charmandersgsg/gnodatapackages
f8970b9ea356ee4e31f56ef52ecb3be645166b4e
[ "MIT" ]
null
null
null
import setuptools from os import path # def readme(): with open('README.md') as f: long_description = f.read() # def readme(): # with open('README.rst') as f: # return f.read() # this_directory = path.abspath(path.dirname(__file__)) # with open(path.join(this_directory, 'README.md'), encoding...
28.404762
75
0.648785
794b5b1b386ecf759cfddfa466ee4a0ee6f25b06
4,977
py
Python
msticpy/datamodel/entities/host.py
ekmixon/msticpy-1
3587ed4f604529c6f5784d51a557c3ad2379f781
[ "MIT" ]
16
2019-02-25T01:34:49.000Z
2019-05-05T16:55:21.000Z
msticpy/datamodel/entities/host.py
ekmixon/msticpy-1
3587ed4f604529c6f5784d51a557c3ad2379f781
[ "MIT" ]
null
null
null
msticpy/datamodel/entities/host.py
ekmixon/msticpy-1
3587ed4f604529c6f5784d51a557c3ad2379f781
[ "MIT" ]
1
2019-02-27T10:26:42.000Z
2019-02-27T10:26:42.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- """Host En...
31.301887
89
0.581475
794b5b31e3132e93612ae558674cd923edcd9731
661
py
Python
setup.py
UFM-Market-Trends/UFM-Market-Trends-SDK
12d94ca7a905caec3d8038f4df5631097cbcf1af
[ "CC0-1.0" ]
null
null
null
setup.py
UFM-Market-Trends/UFM-Market-Trends-SDK
12d94ca7a905caec3d8038f4df5631097cbcf1af
[ "CC0-1.0" ]
null
null
null
setup.py
UFM-Market-Trends/UFM-Market-Trends-SDK
12d94ca7a905caec3d8038f4df5631097cbcf1af
[ "CC0-1.0" ]
null
null
null
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name='ufmtrends-sdk', version='0.0.5', author='Jose Alvarez', author_email='jose@tecuntecs.com', description='Testing installation of Package', long_description=long_descri...
31.47619
90
0.688351
794b5c461a3318b031d2ac8dad257ce6cb3cdff2
1,223
py
Python
authors/apps/articles/migrations/0001_initial.py
AmosWels/ah-django
5b8e39053d63f1dfb3c14066b163a1d37af91076
[ "BSD-3-Clause" ]
null
null
null
authors/apps/articles/migrations/0001_initial.py
AmosWels/ah-django
5b8e39053d63f1dfb3c14066b163a1d37af91076
[ "BSD-3-Clause" ]
null
null
null
authors/apps/articles/migrations/0001_initial.py
AmosWels/ah-django
5b8e39053d63f1dfb3c14066b163a1d37af91076
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.1.7 on 2019-04-05 07:52 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
37.060606
145
0.616517
794b5d41366fa2bee547d0fec6926e5689b87f25
462
py
Python
bspump/declarative/expression/utility/debugexpr.py
LibertyAces/BitSwanPump
02301bfd4e807836403ce6a22030ad47058541d6
[ "BSD-3-Clause" ]
17
2019-02-14T09:26:03.000Z
2022-03-11T09:23:52.000Z
bspump/declarative/expression/utility/debugexpr.py
LibertyAces/BitSwanPump
02301bfd4e807836403ce6a22030ad47058541d6
[ "BSD-3-Clause" ]
91
2019-05-06T18:59:02.000Z
2022-01-11T06:22:32.000Z
bspump/declarative/expression/utility/debugexpr.py
LibertyAces/BitSwanPump
02301bfd4e807836403ce6a22030ad47058541d6
[ "BSD-3-Clause" ]
10
2019-04-23T08:48:58.000Z
2022-02-13T14:24:28.000Z
import pprint import logging from ...abc import Expression, evaluate ### L = logging.getLogger("bspump.declarative.DEBUG") ### class DEBUG(Expression): Attributes = { "What": ["*"], # TODO: This ... } def __init__(self, app, *, arg_what): super().__init__(app) self.What = arg_what def __call__(self,...
17.111111
60
0.662338
794b5e15578331531bc2d884198d7edb81db3d72
5,500
py
Python
algs/fedavg.py
Dev-Jahn/Fed-Framework
cb6d56f17d54f771cb40c640e30cc7b498daf089
[ "MIT" ]
2
2022-03-30T05:05:25.000Z
2022-03-30T05:06:14.000Z
algs/fedavg.py
Dev-Jahn/Fed-Framework
cb6d56f17d54f771cb40c640e30cc7b498daf089
[ "MIT" ]
null
null
null
algs/fedavg.py
Dev-Jahn/Fed-Framework
cb6d56f17d54f771cb40c640e30cc7b498daf089
[ "MIT" ]
null
null
null
import logging import wandb from torch import optim from torch.utils.data import DataLoader from losses import build_loss from metrics.basic import AverageMeter, compute_accuracy from utils import save_model logger = logging.getLogger(__name__) def train_local(net_id, net, trainloader, testloader, com...
39.007092
119
0.574364
794b5ebc9d785b5402d417e7cac3eddf69b89e6c
1,205
py
Python
tests/test_ri-04-03.py
ivanbukhtiyarov/elevators
e7ff582bbc9a26d22880bec61bede747427430c2
[ "MIT" ]
2
2021-03-22T16:12:56.000Z
2021-03-22T16:19:09.000Z
tests/test_ri-04-03.py
ivanbukhtiyarov/elevators
e7ff582bbc9a26d22880bec61bede747427430c2
[ "MIT" ]
46
2021-04-01T10:25:25.000Z
2021-12-26T23:43:46.000Z
tests/test_ri-04-03.py
ivanbukhtiyarov/elevators
e7ff582bbc9a26d22880bec61bede747427430c2
[ "MIT" ]
4
2021-04-01T10:22:46.000Z
2021-12-26T21:51:10.000Z
import pytest from src.elevator import ( Elevator, MoveRequest, ) from src.operator import Operator def test_simple(): '''Tests calls of default elevators methods from operator''' elevator = Elevator( tonnage=1000, floors_count=25, current_direction=0, current_weight=0, ...
26.777778
65
0.690456
794b5f251ed2cbbce96e080d03428887bf7c1e2d
6,663
py
Python
bindings/python/ensmallen_graph/datasets/string/aromatoleumaromaticum.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/aromatoleumaromaticum.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/aromatoleumaromaticum.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
""" This file offers the methods to automatically retrieve the graph Aromatoleum aromaticum. The graph is automatically retrieved from the STRING repository. Report --------------------- At the time of rendering these methods (please see datetime below), the graph had the following characteristics: Datetime: 2021...
35.253968
223
0.702686
794b5f4aa431a2cb150614365e19b8889651e6d9
64,719
py
Python
simple_history/tests/tests/test_models.py
rdurica/django-simple-history
84d17f40be68e9ac7744b773451be83720c4c13a
[ "BSD-3-Clause" ]
null
null
null
simple_history/tests/tests/test_models.py
rdurica/django-simple-history
84d17f40be68e9ac7744b773451be83720c4c13a
[ "BSD-3-Clause" ]
12
2021-09-24T18:20:34.000Z
2022-03-29T18:26:50.000Z
simple_history/tests/tests/test_models.py
rdurica/django-simple-history
84d17f40be68e9ac7744b773451be83720c4c13a
[ "BSD-3-Clause" ]
null
null
null
import unittest import uuid import warnings from datetime import datetime, timedelta import django from django.apps import apps from django.contrib.auth import get_user_model from django.core.exceptions import ObjectDoesNotExist from django.core.files.base import ContentFile from django.db import IntegrityError, model...
37.431463
88
0.652142
794b6019cc2cd0c6c9be6e4d9c571ef5ab3063d6
5,671
py
Python
aodh/tests/unit/evaluator/test_loadbalancer.py
yi-cloud/aodh
bf2371a1f2175b87b7769ebf76f3cc74b35d3c87
[ "Apache-2.0" ]
49
2015-07-01T21:28:25.000Z
2021-04-20T05:24:43.000Z
aodh/tests/unit/evaluator/test_loadbalancer.py
yi-cloud/aodh
bf2371a1f2175b87b7769ebf76f3cc74b35d3c87
[ "Apache-2.0" ]
null
null
null
aodh/tests/unit/evaluator/test_loadbalancer.py
yi-cloud/aodh
bf2371a1f2175b87b7769ebf76f3cc74b35d3c87
[ "Apache-2.0" ]
37
2015-08-20T15:06:54.000Z
2022-01-23T07:53:32.000Z
# Copyright 2019 Catalyst Cloud Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
35.666667
77
0.611003
794b601bc3fd6f72410e7f8880f9831ea5091f74
389
py
Python
mapr/ojai/exceptions/ConditionNotClosedError.py
mapr/maprdb-python-client
ea7b7f1fb6c212e76bd799867e272eafd345f2e2
[ "Apache-2.0" ]
3
2020-04-01T12:01:50.000Z
2022-03-23T01:18:36.000Z
mapr/ojai/exceptions/ConditionNotClosedError.py
mapr/maprdb-python-client
ea7b7f1fb6c212e76bd799867e272eafd345f2e2
[ "Apache-2.0" ]
7
2019-02-10T19:31:09.000Z
2022-02-08T17:04:17.000Z
mapr/ojai/exceptions/ConditionNotClosedError.py
mapr/maprdb-python-client
ea7b7f1fb6c212e76bd799867e272eafd345f2e2
[ "Apache-2.0" ]
3
2020-05-27T09:52:32.000Z
2021-09-07T14:16:43.000Z
from __future__ import unicode_literals from __future__ import print_function from __future__ import division from __future__ import absolute_import from future import standard_library standard_library.install_aliases() from builtins import * class ConditionNotClosedError(Exception): def __init__(self, m): ...
27.785714
41
0.796915
794b6087a91a87dd8eddbc6058fe9106be379228
14,068
py
Python
lib/blockchain.py
Deimoscoin/deielectrum
3f033dc63e9b58fb872a9a0ac41912be367a774a
[ "MIT" ]
null
null
null
lib/blockchain.py
Deimoscoin/deielectrum
3f033dc63e9b58fb872a9a0ac41912be367a774a
[ "MIT" ]
2
2020-04-12T02:45:18.000Z
2020-04-12T02:46:01.000Z
lib/blockchain.py
Deimoscoin/deielectrum
3f033dc63e9b58fb872a9a0ac41912be367a774a
[ "MIT" ]
null
null
null
# Electrum - lightweight Bitcoin client # Copyright (C) 2012 thomasv@ecdsa.org # # 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...
36.73107
140
0.607123
794b611d6f1307deb4f40044e0920cd606cf3cd9
1,445
py
Python
desktop/core/ext-py/celery-4.2.1/t/unit/contrib/test_abortable.py
maulikjs/hue
59ac879b55bb6fb26ecb4e85f4c70836fc21173f
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
desktop/core/ext-py/celery-4.2.1/t/unit/contrib/test_abortable.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
desktop/core/ext-py/celery-4.2.1/t/unit/contrib/test_abortable.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
from __future__ import absolute_import, unicode_literals from celery.contrib.abortable import AbortableAsyncResult, AbortableTask class test_AbortableTask: def setup(self): @self.app.task(base=AbortableTask, shared=False) def abortable(): return True self.abortable = abortabl...
30.744681
72
0.638062
794b61630cf8be7ca9d4008570bd141e4675e6ca
972
py
Python
setup.py
azdle/exoline
f84ca1f988c596f33637d1179f4a0026ef7a2dcc
[ "BSD-2-Clause-FreeBSD", "BSD-3-Clause" ]
null
null
null
setup.py
azdle/exoline
f84ca1f988c596f33637d1179f4a0026ef7a2dcc
[ "BSD-2-Clause-FreeBSD", "BSD-3-Clause" ]
null
null
null
setup.py
azdle/exoline
f84ca1f988c596f33637d1179f4a0026ef7a2dcc
[ "BSD-2-Clause-FreeBSD", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from setuptools import setup from exoline import __version__ as version with open('requirements.txt') as f: required = f.read().splitlines() try: from collections import OrderedDict except ImportError: required.append('ordereddict>=1.1') try: import importlib except ImportError...
27.771429
69
0.658436
794b62887569a5ecebd645befdfdfca37a9a8d90
1,907
py
Python
src/LogManager.py
roy20021/SerraAutoLogin
ad502b76545343a87f824deed74e3e2f450dbdfa
[ "BSD-3-Clause" ]
null
null
null
src/LogManager.py
roy20021/SerraAutoLogin
ad502b76545343a87f824deed74e3e2f450dbdfa
[ "BSD-3-Clause" ]
null
null
null
src/LogManager.py
roy20021/SerraAutoLogin
ad502b76545343a87f824deed74e3e2f450dbdfa
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2014, Andrea Esposito <info@andreaesposito.org> # 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,...
44.348837
81
0.748296
794b645188f5117cd91bdfd83738fae69cdce341
7,164
py
Python
stats_lib.py
mcgov/yava
514ac060024c34ebc4b527c3ca2866cffb276824
[ "MIT" ]
null
null
null
stats_lib.py
mcgov/yava
514ac060024c34ebc4b527c3ca2866cffb276824
[ "MIT" ]
null
null
null
stats_lib.py
mcgov/yava
514ac060024c34ebc4b527c3ca2866cffb276824
[ "MIT" ]
null
null
null
#!/usr/bin/python3 #!encoding=UTF-8 import math import numpy as np #import lda """ tools for counting the statistics of things. @authors matthew g mcgovern, """ def count_symbol_frequency( text ): """ Count the frequency of symbol occurances in a body of text. """ frequencies = dict() for c...
33.166667
139
0.619626
794b6643ae834b525388d4340144329b8dc13e23
6,481
py
Python
homeassistant/components/device_automation/toggle_entity.py
havivi86/core
4a6ca8a04e5b1f84dcd80d7cab97726e887fbff1
[ "Apache-2.0" ]
1
2022-01-05T16:48:58.000Z
2022-01-05T16:48:58.000Z
homeassistant/components/device_automation/toggle_entity.py
havivi86/core
4a6ca8a04e5b1f84dcd80d7cab97726e887fbff1
[ "Apache-2.0" ]
36
2020-07-19T13:24:30.000Z
2022-03-31T06:02:01.000Z
homeassistant/components/device_automation/toggle_entity.py
havivi86/core
4a6ca8a04e5b1f84dcd80d7cab97726e887fbff1
[ "Apache-2.0" ]
1
2022-02-15T10:17:40.000Z
2022-02-15T10:17:40.000Z
"""Device automation helpers for toggle entity.""" from __future__ import annotations import voluptuous as vol from homeassistant.components.automation import AutomationActionType from homeassistant.components.device_automation.const import ( CONF_IS_OFF, CONF_IS_ON, CONF_TOGGLE, CONF_TURN_OFF, CO...
27.231092
86
0.677519
794b6737136a791e253275657be4ad783b9e93c1
7,495
py
Python
discussion/views.py
lehins/lehins-discussion
8ff8aae239c68e634fafd11a711468ab5bcda0b7
[ "BSD-2-Clause" ]
null
null
null
discussion/views.py
lehins/lehins-discussion
8ff8aae239c68e634fafd11a711468ab5bcda0b7
[ "BSD-2-Clause" ]
null
null
null
discussion/views.py
lehins/lehins-discussion
8ff8aae239c68e634fafd11a711468ab5bcda0b7
[ "BSD-2-Clause" ]
null
null
null
from django.contrib.auth.decorators import login_required from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect from django.views.generic import CreateView, DetailView, ListView, FormView from django.views.generic.list import BaseListView from django.db.models import Q from discussi...
36.560976
96
0.661374
794b6841029a01257a0f289c09ef36d08fabcf1c
2,274
py
Python
azure-cognitiveservices-vision-customvision/azure/cognitiveservices/vision/customvision/training/models/image_region_create_result.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
null
null
null
azure-cognitiveservices-vision-customvision/azure/cognitiveservices/vision/customvision/training/models/image_region_create_result.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-11-29T14:46:42.000Z
2018-11-29T14:46:42.000Z
azure-cognitiveservices-vision-customvision/azure/cognitiveservices/vision/customvision/training/models/image_region_create_result.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
32.028169
76
0.554529
794b68b30285bcf13272b1bf25247d26a589ca8a
283
py
Python
ping_multiplo/ping_multiplo.py
mauriciopicirillo/Seguran-a_da_informa-o_com_Python
0a439066dda42268de7338c815c4cf7872079211
[ "MIT" ]
null
null
null
ping_multiplo/ping_multiplo.py
mauriciopicirillo/Seguran-a_da_informa-o_com_Python
0a439066dda42268de7338c815c4cf7872079211
[ "MIT" ]
null
null
null
ping_multiplo/ping_multiplo.py
mauriciopicirillo/Seguran-a_da_informa-o_com_Python
0a439066dda42268de7338c815c4cf7872079211
[ "MIT" ]
null
null
null
import os import time with open('hosts.txt') as file: dump = file.read() dump = dump.splitlines() for ip in dump: print('Verificando o ip: ', ip) print('-' * 60) os.system('ping -n 2 {}' .format(ip)) print('-' * 60) time.sleep(5)
21.769231
45
0.522968
794b69e64ae775672890ac0f8ee3c75b24418261
2,898
py
Python
src/junction/markdown/info_panels.py
explody/Junction
700df9385fceda00d6830816606d8854dc9cef7b
[ "MIT" ]
16
2020-04-28T07:03:26.000Z
2022-03-05T14:26:40.000Z
src/junction/markdown/info_panels.py
explody/Junction
700df9385fceda00d6830816606d8854dc9cef7b
[ "MIT" ]
14
2020-03-19T04:32:18.000Z
2021-03-05T23:54:47.000Z
src/junction/markdown/info_panels.py
explody/Junction
700df9385fceda00d6830816606d8854dc9cef7b
[ "MIT" ]
3
2021-01-19T18:39:00.000Z
2022-02-14T23:51:07.000Z
from typing import List, Any from markdown import Markdown from markdown.extensions import Extension from markdown.blockprocessors import BlockProcessor import re import xml.etree.ElementTree as etree class InfoPanelExtension(Extension): """Markdown extension for rendering the Confluence info panel macro. Only s...
32.931818
103
0.596963
794b6a080b227eaa3846d9350b5a430ee03959e7
9,856
py
Python
competition-docker-files/model/model.py
mmcenta/helpful-bookworm
dd1dc36ccc732684bd6a3f4fa7a8b4b8c242acf7
[ "MIT" ]
null
null
null
competition-docker-files/model/model.py
mmcenta/helpful-bookworm
dd1dc36ccc732684bd6a3f4fa7a8b4b8c242acf7
[ "MIT" ]
null
null
null
competition-docker-files/model/model.py
mmcenta/helpful-bookworm
dd1dc36ccc732684bd6a3f4fa7a8b4b8c242acf7
[ "MIT" ]
null
null
null
import pandas as pd import os import gzip import argparse import time import re import jieba import pickle import tensorflow as tf import numpy as np import sys, getopt from subprocess import check_output from keras import models from keras.layers import Dense from keras.layers import Dropout from keras.layers import E...
36.235294
115
0.632102
794b6a2a17cba475ba172d378e620c1fdce0c7e0
23
py
Python
example_snippets/multimenus_snippets/Snippets/SciPy/Special functions/Gamma and Related Functions/polygamma Polygamma function which is the $n$th derivative of the digamma (psi) function.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
null
null
null
example_snippets/multimenus_snippets/Snippets/SciPy/Special functions/Gamma and Related Functions/polygamma Polygamma function which is the $n$th derivative of the digamma (psi) function.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
null
null
null
example_snippets/multimenus_snippets/Snippets/SciPy/Special functions/Gamma and Related Functions/polygamma Polygamma function which is the $n$th derivative of the digamma (psi) function.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
1
2021-02-04T04:51:48.000Z
2021-02-04T04:51:48.000Z
special.polygamma(n, x)
23
23
0.782609
794b6a992d6c7b8180f50f70d4f7a12e6326122e
21,537
py
Python
pgmpy/tests/test_readwrite/test_XMLBeliefNetwork.py
daanknoope/pgmpy
b1ad5ec01837dc1fc369dd542971492fae642ab4
[ "MIT" ]
null
null
null
pgmpy/tests/test_readwrite/test_XMLBeliefNetwork.py
daanknoope/pgmpy
b1ad5ec01837dc1fc369dd542971492fae642ab4
[ "MIT" ]
20
2019-02-22T09:24:57.000Z
2019-02-25T14:53:54.000Z
pgmpy/tests/test_readwrite/test_XMLBeliefNetwork.py
daanknoope/pgmpy
b1ad5ec01837dc1fc369dd542971492fae642ab4
[ "MIT" ]
null
null
null
import unittest import warnings import numpy as np import numpy.testing as np_test import networkx as nx from pgmpy.readwrite import XMLBeliefNetwork from pgmpy.models import BayesianModel from pgmpy.factors.discrete import TabularCPD from pgmpy.extern import six try: from lxml import etree except ImportError: ...
48.397753
120
0.424804
794b6b20f0ff9ea5bf027f9d9cda0640a1ac30b0
4,868
py
Python
engine/search.py
chasingegg/Predator
ce7a2239e60a69b6b573383337b88e5739f3d1cb
[ "MIT" ]
null
null
null
engine/search.py
chasingegg/Predator
ce7a2239e60a69b6b573383337b88e5739f3d1cb
[ "MIT" ]
null
null
null
engine/search.py
chasingegg/Predator
ce7a2239e60a69b6b573383337b88e5739f3d1cb
[ "MIT" ]
null
null
null
import sqlite3 import jieba import operator import configparser import math import time class SearchEngine: def __init__(self, config_path, config_encoding): self.config_path = config_path self.config_encoding = config_encoding config = configparser.ConfigParser() config.read(config...
38.330709
132
0.553205
794b6b7f480eaacd525359901f4f3b9b41019e28
895
py
Python
build/lib/examples/forms.py
kimbackdoo/Web-Cralwer
6a92ec00ea2273f228b8c304cd596ad9120c4709
[ "MIT" ]
null
null
null
build/lib/examples/forms.py
kimbackdoo/Web-Cralwer
6a92ec00ea2273f228b8c304cd596ad9120c4709
[ "MIT" ]
null
null
null
build/lib/examples/forms.py
kimbackdoo/Web-Cralwer
6a92ec00ea2273f228b8c304cd596ad9120c4709
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.forms import UserCreationForm, AuthenticationForm from django.contrib.auth.models import User from bootstrap_modal_forms.mixins import PopRequestMixin, CreateUpdateAjaxMixin from bootstrap_modal_forms.forms import BSModalForm from .models import Book class BookForm(...
27.121212
79
0.702793
794b6c4b3d90b6e93927dc5f937693af1ae5ae94
125
py
Python
python/testData/quickFixes/PyRemoveUnusedLocalQuickFixTest/removeAssignmentStatementTarget_after.py
alexey-anufriev/intellij-community
ffcd46f14e630acdefcc76e2bfc7c43d2449013a
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/quickFixes/PyRemoveUnusedLocalQuickFixTest/removeAssignmentStatementTarget_after.py
alexey-anufriev/intellij-community
ffcd46f14e630acdefcc76e2bfc7c43d2449013a
[ "Apache-2.0" ]
null
null
null
python/testData/quickFixes/PyRemoveUnusedLocalQuickFixTest/removeAssignmentStatementTarget_after.py
alexey-anufriev/intellij-community
ffcd46f14e630acdefcc76e2bfc7c43d2449013a
[ "Apache-2.0" ]
1
2020-10-15T05:56:42.000Z
2020-10-15T05:56:42.000Z
class MyClass(object): def __init__(self, **kwargs): kwargs.pop("stuff", None) print("that's all folks!")
31.25
34
0.6
794b6cad4c2b6ca93147e4924d49b118d3bb58f7
2,127
py
Python
pytket/backends/measurements.py
Travis-S/pytket
ba1b63b5b22533d9366c431b91d69bf9cf77b0d7
[ "Apache-2.0" ]
null
null
null
pytket/backends/measurements.py
Travis-S/pytket
ba1b63b5b22533d9366c431b91d69bf9cf77b0d7
[ "Apache-2.0" ]
null
null
null
pytket/backends/measurements.py
Travis-S/pytket
ba1b63b5b22533d9366c431b91d69bf9cf77b0d7
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Cambridge Quantum Computing # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
34.868852
97
0.67795
794b6ccbc11b475c3010d30bde53c4cee26e5e5f
111
py
Python
wsgi.py
Schluggi/codenames
094f3621ad17597fede8d6438f41e60dbb1f7057
[ "MIT" ]
3
2020-12-13T18:16:06.000Z
2021-04-13T09:25:23.000Z
wsgi.py
Schluggi/codenames
094f3621ad17597fede8d6438f41e60dbb1f7057
[ "MIT" ]
12
2020-06-17T18:23:05.000Z
2022-03-12T00:52:43.000Z
wsgi.py
Schluggi/codenames
094f3621ad17597fede8d6438f41e60dbb1f7057
[ "MIT" ]
null
null
null
import os import sys sys.path.insert(0, os.path.dirname(__file__)) from codenames import app as application
13.875
45
0.783784
794b6d78e55b2350dcd3230c4fc4a3ec00e4e166
16,918
py
Python
run.py
my-personal-forks/dart-sublime-bundle
580127c13c3a97d7cb0c9ac09152f68cb665946c
[ "BSD-3-Clause" ]
182
2017-03-05T07:43:13.000Z
2022-03-15T13:09:07.000Z
run.py
kkurian/dart-sublime-bundle
429324e43ea487f8c05a4fb7002c5fd2c8c56b42
[ "BSD-3-Clause" ]
93
2015-01-25T00:10:01.000Z
2021-02-01T12:11:31.000Z
run.py
kkurian/dart-sublime-bundle
429324e43ea487f8c05a4fb7002c5fd2c8c56b42
[ "BSD-3-Clause" ]
45
2015-01-25T00:18:01.000Z
2021-02-25T18:09:08.000Z
# Copyright (c) 2014, Guillermo López-Anglada. Please see the AUTHORS file for details. # All rights reserved. Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file.) '''Builds Dart projects intelligently. ''' import sublime import sublime_plugin import os import time imp...
34.177778
87
0.56236
794b6dba959eb1db7d5f62c640e8fd55ff0c0786
15,498
py
Python
src/webapp/sample_app/manager/classify.py
Chibikuri/Quantum-Othello
ddbb54819181c5c0f4efdb5395fdd482e83ffccd
[ "Apache-2.0" ]
2
2019-12-06T09:03:48.000Z
2020-02-22T00:27:24.000Z
src/webapp/sample_app/manager/classify.py
Chibikuri/Quantum-Othello
ddbb54819181c5c0f4efdb5395fdd482e83ffccd
[ "Apache-2.0" ]
null
null
null
src/webapp/sample_app/manager/classify.py
Chibikuri/Quantum-Othello
ddbb54819181c5c0f4efdb5395fdd482e83ffccd
[ "Apache-2.0" ]
2
2019-11-19T06:26:09.000Z
2019-11-19T06:27:56.000Z
# -*- coding: utf-8 -*- import warnings # warnings.filterwarnings('ignore') import matplotlib import numpy as np import matplotlib.pyplot as plt import sys import os import np import time import datetime import random import np import pandas as pd import multiprocessing as mul import umap import csv im...
35.142857
147
0.542199
794b6dc589da63878d279a4a4ec647b1006259d1
52,161
py
Python
seaborn/_core.py
matzegoebel/seaborn
b1fee86fdf1c96159ebb01a20be14ba136df3431
[ "MIT", "BSD-3-Clause" ]
null
null
null
seaborn/_core.py
matzegoebel/seaborn
b1fee86fdf1c96159ebb01a20be14ba136df3431
[ "MIT", "BSD-3-Clause" ]
null
null
null
seaborn/_core.py
matzegoebel/seaborn
b1fee86fdf1c96159ebb01a20be14ba136df3431
[ "MIT", "BSD-3-Clause" ]
null
null
null
import warnings import itertools from copy import copy from functools import partial from collections.abc import Iterable, Sequence, Mapping from numbers import Number from datetime import datetime from distutils.version import LooseVersion import numpy as np import pandas as pd import matplotlib as mpl from ._decora...
35.507828
87
0.570465
794b6dde713220aabbb385c00496b5989c915959
15,483
py
Python
lib/Ixia/generate.py
ctgriffiths/twister
b3930549551b0104738d56f402eb9b4b90dd692c
[ "Apache-2.0" ]
19
2015-01-29T11:02:42.000Z
2021-06-03T11:45:42.000Z
lib/Ixia/generate.py
ctgriffiths/twister
b3930549551b0104738d56f402eb9b4b90dd692c
[ "Apache-2.0" ]
47
2015-01-02T11:39:39.000Z
2022-02-05T11:29:07.000Z
lib/Ixia/generate.py
ctgriffiths/twister
b3930549551b0104738d56f402eb9b4b90dd692c
[ "Apache-2.0" ]
10
2015-01-12T07:24:39.000Z
2017-11-05T00:17:30.000Z
#!/usr/bin/env python # File: generate.py ; This file is part of Twister. # version: 2.003 # Copyright (C) 2013 , Luxoft # Authors: # Adrian Toader <adtoader@luxoft.com> # Andrei Costachi <acostachi@luxoft.com> # Andrei Toma <atoma@luxoft.com> # Cristi Constantin <crconstantin@luxoft.com> # Daniel Ci...
30.478346
120
0.610799
794b6e041ddee4b1ef2edcb46168f1a08c03d153
18,254
py
Python
official/vision/beta/configs/maskrcnn.py
airman00/models
ea90f0c118fd39d93a1ac740a99094687f1e243a
[ "Apache-2.0" ]
2
2021-09-03T23:47:59.000Z
2021-09-03T23:48:04.000Z
official/vision/beta/configs/maskrcnn.py
mendoza689/models
7dcd3f6b3151ae968f71b7e53b32c25750245606
[ "Apache-2.0" ]
null
null
null
official/vision/beta/configs/maskrcnn.py
mendoza689/models
7dcd3f6b3151ae968f71b7e53b32c25750245606
[ "Apache-2.0" ]
2
2021-08-17T22:07:17.000Z
2021-12-25T12:25:47.000Z
# Copyright 2021 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.44466
95
0.614824
794b6e18ceabfb48cdb68a340ddc467afba233e8
1,171
py
Python
grokking-the-coding-interview/two-pointers/Dutch-National-Flag-Problem-(medium).py
huandrew99/LeetCode
aa36b48d06100ce5f0bc64c789a906ec29409440
[ "MIT" ]
36
2021-12-23T15:44:41.000Z
2022-03-31T04:26:26.000Z
grokking-the-coding-interview/two-pointers/Dutch-National-Flag-Problem-(medium).py
wzy0766/LeetCode-1
3070e672c519e8af74966811b8058a9baef8c0bc
[ "MIT" ]
null
null
null
grokking-the-coding-interview/two-pointers/Dutch-National-Flag-Problem-(medium).py
wzy0766/LeetCode-1
3070e672c519e8af74966811b8058a9baef8c0bc
[ "MIT" ]
11
2022-02-26T22:41:26.000Z
2022-03-02T07:18:41.000Z
""" LC 75 Given an array containing 0s, 1s and 2s, sort the array in-place. You should treat numbers of the array as objects, hence, we can’t count 0s, 1s, and 2s to recreate the array. The flag of the Netherlands consists of three colors: red, white and blue; and since our input array also consists of three different...
19.847458
195
0.537148
794b6e2a512370e58c33c27444e248a4b24a9968
814
py
Python
examples/idioms/programs/177.2725-find-files-with-a-given-list-of-filename-extensions.py
laowantong/paroxython
4626798a60eeaa765dbfab9e63e04030c9fcb1d0
[ "MIT" ]
31
2020-05-02T13:34:26.000Z
2021-06-06T17:25:52.000Z
examples/idioms/programs/177.2725-find-files-with-a-given-list-of-filename-extensions.py
laowantong/paroxython
4626798a60eeaa765dbfab9e63e04030c9fcb1d0
[ "MIT" ]
108
2019-11-18T19:41:52.000Z
2022-03-18T13:58:17.000Z
examples/idioms/programs/177.2725-find-files-with-a-given-list-of-filename-extensions.py
laowantong/paroxython
4626798a60eeaa765dbfab9e63e04030c9fcb1d0
[ "MIT" ]
4
2020-05-19T08:57:44.000Z
2020-09-21T08:53:46.000Z
"""Find files with a given list of filename extensions. Construct a list _L that contains all filenames that have the extension ".jpg" , ".jpeg" or ".png" in directory _D and all it's subdirectories. Source: Bart """ # Implementation author: âne O' nym # Created on 2019-09-26T14:12:32.0025Z # Last modified on 2019-0...
29.071429
143
0.710074
794b6f74fe9db7b7704d3cb61494c4545c71d00b
320
py
Python
config.py
muhozi/WeConnect
46825d6ae27a7addbe8f7f2e298f5ee07cd9cf5f
[ "MIT" ]
3
2018-04-07T07:39:19.000Z
2018-04-13T14:15:26.000Z
config.py
muhozi/WeConnect
46825d6ae27a7addbe8f7f2e298f5ee07cd9cf5f
[ "MIT" ]
8
2018-03-01T21:11:05.000Z
2022-03-21T22:16:43.000Z
config.py
muhozi/WeConnect
46825d6ae27a7addbe8f7f2e298f5ee07cd9cf5f
[ "MIT" ]
3
2018-04-24T03:34:44.000Z
2018-07-19T09:53:08.000Z
""" Flask configurations and other configurations """ import os from dotenv import load_dotenv # Load Configs from .env load_dotenv() # App Directory BASE_DIR = os.path.abspath(os.path.dirname(__file__)) JSON_SORT_KEYS = False # Configs loaded from env SECRET_KEY = os.getenv('SECRET_KEY') DEBUG = os.getenv('DEBUG')
20
53
0.7625
794b6f99d9ca2f94628b3511ef6ba1969e900463
952
py
Python
example/demo/frontend_views.py
aldslvda/django-echarts
835032def8c67c5ff81824be0c9a6a776334c3e9
[ "MIT" ]
181
2017-07-30T04:37:41.000Z
2022-03-27T04:58:04.000Z
example/demo/frontend_views.py
aldslvda/django-echarts
835032def8c67c5ff81824be0c9a6a776334c3e9
[ "MIT" ]
22
2017-07-30T11:49:34.000Z
2022-03-28T12:44:07.000Z
example/demo/frontend_views.py
aldslvda/django-echarts
835032def8c67c5ff81824be0c9a6a776334c3e9
[ "MIT" ]
57
2017-08-12T09:47:09.000Z
2022-03-28T07:20:53.000Z
# coding=utf8 from django.views.generic.base import TemplateView from django_echarts.views.frontend import EChartsFrontView from .demo_data import FACTORY class IndexView(TemplateView): template_name = 'index.html' class FrontendEchartsTemplate(TemplateView): template_name = 'frontend_charts.html' clas...
23.219512
58
0.74895
794b7032cd65cfd00551ff4bea6e87ad40383356
1,362
py
Python
vsts/vsts/maven/v4_1/models/maven_pom_parent.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
vsts/vsts/maven/v4_1/models/maven_pom_parent.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
vsts/vsts/maven/v4_1/models/maven_pom_parent.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
38.914286
105
0.534508
794b710cfed0d731360bdc8ffd638ae52ead7b00
165
py
Python
keys.py
Anamay-Agnihotri/Twitter_API
c50fce5f7de00e6d791b3e9dfae8f16d93ae642c
[ "MIT" ]
null
null
null
keys.py
Anamay-Agnihotri/Twitter_API
c50fce5f7de00e6d791b3e9dfae8f16d93ae642c
[ "MIT" ]
null
null
null
keys.py
Anamay-Agnihotri/Twitter_API
c50fce5f7de00e6d791b3e9dfae8f16d93ae642c
[ "MIT" ]
null
null
null
keychain = {'twitter':{'api_secret':'' , 'api_key':'' , 'access_token':'' , 'access_token_secret':''}}
33
49
0.381818
794b7197d5cea3708101e036ae1196c66600082f
4,768
py
Python
test/test_python_basic.py
kjdev/unit
de885e10cb895751d9994e8ab99bdb56da891d3d
[ "Apache-2.0" ]
58
2017-09-09T23:55:33.000Z
2021-11-25T07:13:36.000Z
test/test_python_basic.py
kjdev/unit
de885e10cb895751d9994e8ab99bdb56da891d3d
[ "Apache-2.0" ]
2
2018-10-30T08:29:41.000Z
2021-06-25T15:16:29.000Z
test/test_python_basic.py
kjdev/unit
de885e10cb895751d9994e8ab99bdb56da891d3d
[ "Apache-2.0" ]
12
2017-09-12T02:52:10.000Z
2019-02-20T16:15:13.000Z
import unittest import unit class TestUnitPythonBasic(unit.TestUnitControl): def setUpClass(): unit.TestUnit().check_modules('python') conf_app = { "app": { "type": "python", "processes": { "spare": 0 }, "path": "/app", "module": "wsgi" ...
31.163399
83
0.53901
794b71d7de7fdcdfca363e5418eb97ee659ca64d
82
py
Python
dsfaker/__init__.py
pajachiet/dsfaker
0e65ba336608c2ccc5e32a541f3b66dfad019b35
[ "MIT" ]
3
2017-03-12T22:08:59.000Z
2017-05-22T16:57:17.000Z
dsfaker/__init__.py
pajachiet/dsfaker
0e65ba336608c2ccc5e32a541f3b66dfad019b35
[ "MIT" ]
12
2017-03-01T10:14:08.000Z
2017-04-23T12:15:10.000Z
dsfaker/__init__.py
pajachiet/dsfaker
0e65ba336608c2ccc5e32a541f3b66dfad019b35
[ "MIT" ]
2
2017-05-04T15:36:21.000Z
2018-02-07T13:49:13.000Z
# -*- coding: utf-8 -*- from .exceptions import * from . import generators, noise
20.5
31
0.670732
794b73a2f0fb491800b0412b14dfb3036b400534
6,594
py
Python
web/tests/functional/statistics/test_statistics.py
gkunz/codechecker
5adc515e83bd16b7c3c45e9ca709969db3212093
[ "Apache-2.0" ]
null
null
null
web/tests/functional/statistics/test_statistics.py
gkunz/codechecker
5adc515e83bd16b7c3c45e9ca709969db3212093
[ "Apache-2.0" ]
null
null
null
web/tests/functional/statistics/test_statistics.py
gkunz/codechecker
5adc515e83bd16b7c3c45e9ca709969db3212093
[ "Apache-2.0" ]
null
null
null
# # ------------------------------------------------------------------------- # # Part of the CodeChecker project, under the Apache License v2.0 with # LLVM Exceptions. See LICENSE for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # # -------------------------------------------------...
37.465909
78
0.614801
794b741dcebb245ab793391f8bba2c8436f0ec91
963
py
Python
utils/generate_processing.py
strakam/PyEasyGraphics
57a586aa92385d26725d4ec3d61b2bbbe970195d
[ "BSD-3-Clause" ]
5
2019-09-23T05:15:47.000Z
2021-01-17T08:06:47.000Z
utils/generate_processing.py
strakam/PyEasyGraphics
57a586aa92385d26725d4ec3d61b2bbbe970195d
[ "BSD-3-Clause" ]
3
2019-05-03T05:25:17.000Z
2021-04-15T04:53:16.000Z
utils/generate_processing.py
strakam/PyEasyGraphics
57a586aa92385d26725d4ec3d61b2bbbe970195d
[ "BSD-3-Clause" ]
4
2019-05-04T13:42:40.000Z
2021-04-15T10:38:48.000Z
from easygraphics.processing import ProcessingWidget from easygraphics.image import Image import easygraphics import inspect image_funcs = dir(Image) for func in easygraphics.__all__: if not func in image_funcs: continue if func.startswith("_"): continue fun = eval(f"easygraphics.{func}") ...
31.064516
80
0.603323
794b744bad2d7fbe3c96d2a840d39863819d87ff
540
py
Python
Gathered CTF writeups/ptr-yudai-writeups/2019/PragyanCTF_2019/Feed_me/solve.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
1
2022-03-27T06:00:41.000Z
2022-03-27T06:00:41.000Z
Gathered CTF writeups/ptr-yudai-writeups/2019/PragyanCTF_2019/Feed_me/solve.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
null
null
null
Gathered CTF writeups/ptr-yudai-writeups/2019/PragyanCTF_2019/Feed_me/solve.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
1
2022-03-27T06:01:42.000Z
2022-03-27T06:01:42.000Z
from ptrlib import * sock = Socket("127.0.0.1", 9800) sock.recvline() r1 = int(sock.recvuntil(" ;").rstrip(b";")) r2 = int(sock.recvuntil(" ;").rstrip(b";")) r3 = int(sock.recvuntil(" ;").rstrip(b";")) dump("(r1, r2, r3) = ({}, {}, {})".format(r1, r2, r3)) x = (r1 + r2 - r3) // 2 y = r2 - x val = r1 - x payload1 = ...
20.769231
54
0.581481
794b753a65eb463e5f0d93d06fb4aaa5e8ca1833
2,253
py
Python
pytorch_block_sparse/tests/test_basic.py
adbmd/pytorch_block_sparse
0985083851a5708cfb3adf50da19860f467e51ae
[ "BSD-3-Clause" ]
1
2020-09-10T16:24:19.000Z
2020-09-10T16:24:19.000Z
pytorch_block_sparse/tests/test_basic.py
adbmd/pytorch_block_sparse
0985083851a5708cfb3adf50da19860f467e51ae
[ "BSD-3-Clause" ]
null
null
null
pytorch_block_sparse/tests/test_basic.py
adbmd/pytorch_block_sparse
0985083851a5708cfb3adf50da19860f467e51ae
[ "BSD-3-Clause" ]
null
null
null
from unittest import TestCase import torch from torch import tensor import unittest from pytorch_block_sparse import BlockSparseMatrix class TestFun(TestCase): def test0(self): tests = [dict(size= [128, 64], blocks= [(0, 0), (1, 0), (2, 0), (0, 1), ], row_start_e...
36.33871
122
0.510874
794b753e68107b20757c9e8bab2c12689447da11
790
py
Python
source/ImageGeneration/imageTest.py
Jacktavitt/navigate_building
cfa6aa2fffdf107a619b2627f9a0b0397cd1a8c2
[ "MIT" ]
null
null
null
source/ImageGeneration/imageTest.py
Jacktavitt/navigate_building
cfa6aa2fffdf107a619b2627f9a0b0397cd1a8c2
[ "MIT" ]
null
null
null
source/ImageGeneration/imageTest.py
Jacktavitt/navigate_building
cfa6aa2fffdf107a619b2627f9a0b0397cd1a8c2
[ "MIT" ]
null
null
null
import CustomImage as ci import numpy as np import random import cv2 genim1 = ci.GeneratedImage(np.full((512,512,3), (120,120,120),dtype = np.uint8), color=True) genim1.random_lines(num_lines = 13) # genim1.show() genim2 = ci.GeneratedImage(genim1, copy =True) genim2.random_rectangles(num_recs=4) # genim2.show() ge...
25.483871
92
0.737975
794b7540f14368e1eac2d5072798b24ed7684187
17,864
py
Python
src/python/grpcio_tests/tests/_result.py
danzh1989/grpc
c2bc59b2b0de079c64a2e544354b699685ea2853
[ "BSD-3-Clause" ]
1
2021-04-27T20:09:23.000Z
2021-04-27T20:09:23.000Z
src/python/grpcio_tests/tests/_result.py
danzh1989/grpc
c2bc59b2b0de079c64a2e544354b699685ea2853
[ "BSD-3-Clause" ]
null
null
null
src/python/grpcio_tests/tests/_result.py
danzh1989/grpc
c2bc59b2b0de079c64a2e544354b699685ea2853
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2015, Google 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, this list of conditions and the f...
38.5
86
0.644313