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
da52dd357c3d1d98a26843778f3b2782bcb071a4
534
py
Python
ocd_backend/alembic/versions/4415298e147b_add_unique_constraint_to_source.py
aolieman/open-raadsinformatie
66469fc924fb0d312607afe998d271bf6f55c9d6
[ "MIT" ]
null
null
null
ocd_backend/alembic/versions/4415298e147b_add_unique_constraint_to_source.py
aolieman/open-raadsinformatie
66469fc924fb0d312607afe998d271bf6f55c9d6
[ "MIT" ]
null
null
null
ocd_backend/alembic/versions/4415298e147b_add_unique_constraint_to_source.py
aolieman/open-raadsinformatie
66469fc924fb0d312607afe998d271bf6f55c9d6
[ "MIT" ]
null
null
null
"""add unique constraint to Source Revision ID: 4415298e147b Revises: 7392493a0768 Create Date: 2020-01-02 16:41:03.424945 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '4415298e147b' down_revision = '7392493a0768' branch_labels = None depends_on = None
21.36
122
0.764045
da53752dcf6b6cccf46e141a566ea1d87d74739d
2,575
py
Python
gcb_web_auth/backends/oauth.py
Duke-GCB/gcb-web-auth
51b74f278a3234e1036cc111407ff2b951354873
[ "MIT" ]
1
2017-04-26T10:26:01.000Z
2017-04-26T10:26:01.000Z
gcb_web_auth/backends/oauth.py
Duke-GCB/gcb-web-auth
51b74f278a3234e1036cc111407ff2b951354873
[ "MIT" ]
25
2017-04-26T20:08:55.000Z
2021-06-07T19:14:43.000Z
gcb_web_auth/backends/oauth.py
Duke-GCB/gcb-web-auth
51b74f278a3234e1036cc111407ff2b951354873
[ "MIT" ]
null
null
null
from ..utils import user_details_from_token, OAuthException from ..groupmanager import user_belongs_to_group from ..models import GroupManagerConnection from .base import BaseBackend from django.core.exceptions import PermissionDenied import logging # Maps django User attributes to OIDC userinfo keys logging.basicCon...
36.267606
110
0.680388
da53c3dca06297615107d732ac9e4f63e23b8343
1,233
py
Python
tests/test_profiler.py
joshuahaertel/fullprofiler
bb6d70b96700502221e3aeda15460f9fc61b959f
[ "MIT" ]
null
null
null
tests/test_profiler.py
joshuahaertel/fullprofiler
bb6d70b96700502221e3aeda15460f9fc61b959f
[ "MIT" ]
null
null
null
tests/test_profiler.py
joshuahaertel/fullprofiler
bb6d70b96700502221e3aeda15460f9fc61b959f
[ "MIT" ]
null
null
null
import asyncio from time import sleep from unittest import TestCase from fullprofiler.profiler import Profiler
21.631579
52
0.628548
da5444ab622a3e0b072e9d15da8ccba2cc474bd5
1,014
py
Python
tools/pause.py
wangchenxi7/cassandra
b1c8341bc34a65300ccf6eb6e3c8ceee2d70e48f
[ "Apache-2.0" ]
1
2022-03-17T16:07:40.000Z
2022-03-17T16:07:40.000Z
tools/pause.py
wangchenxi7/cassandra
b1c8341bc34a65300ccf6eb6e3c8ceee2d70e48f
[ "Apache-2.0" ]
null
null
null
tools/pause.py
wangchenxi7/cassandra
b1c8341bc34a65300ccf6eb6e3c8ceee2d70e48f
[ "Apache-2.0" ]
2
2021-06-10T06:35:43.000Z
2021-11-02T23:45:20.000Z
#! /usr/bin/python3 """ Purpose: sum up total GC pause time from a Shenandoah GC log file Attention: !!!Only tested with default Cassandra GC log options and -Xlog:gc*!!! Usage: python3 .../pause.py <log_file_path> e.g. ${HOME}/cassandra/tools/pause.py ${HOME}/cassandra/logs/13-UInsert.log Last modified: 11/08/2021 """...
32.709677
80
0.612426
da57dc595af4cc3b8849303e69601666c4576ad1
1,337
py
Python
src/ebsmapper.py
cpolanec/minecraft-server-controller
8b98d4cd79ba67c7033908bff8f8c6eacd80b099
[ "MIT" ]
1
2021-07-01T18:56:43.000Z
2021-07-01T18:56:43.000Z
src/ebsmapper.py
cpolanec/minecraft-server-controller
8b98d4cd79ba67c7033908bff8f8c6eacd80b099
[ "MIT" ]
232
2021-03-28T23:41:02.000Z
2022-03-25T21:23:19.000Z
src/ebsmapper.py
cpolanec/minecraft-server-controller
8b98d4cd79ba67c7033908bff8f8c6eacd80b099
[ "MIT" ]
null
null
null
"""Helper methods for parsing EBS-related data from AWS SDK.""" import logging import myutils logger = myutils.get_logger(__name__, logging.DEBUG) def get_server_name(tags): """Retrieve server name from across different tag scenarios.""" server = myutils.get_first('Server', tags) if server is None or ...
31.093023
67
0.642483
da5817c0ccd94f09614efc895d74996c5c2086e4
7,315
py
Python
backend/_tests/test_lambda.py
codemonkey800/napari-hub
34a40b68d67002de2514d55b575b71159c7456cb
[ "MIT" ]
null
null
null
backend/_tests/test_lambda.py
codemonkey800/napari-hub
34a40b68d67002de2514d55b575b71159c7456cb
[ "MIT" ]
null
null
null
backend/_tests/test_lambda.py
codemonkey800/napari-hub
34a40b68d67002de2514d55b575b71159c7456cb
[ "MIT" ]
null
null
null
from unittest import mock import requests from requests.exceptions import HTTPError from backend.napari import get_plugin from backend.napari import get_plugins from backend.napari import get_download_url from backend.napari import get_license plugin_list = """ <li> <a class="package-snippet" href="/project/brain...
36.034483
195
0.666029
da597c1b33b1775b34cb070ed8fecbd878d88b90
1,981
py
Python
src/webpage.py
Lanfei/hae
a8325083fff1792be73f16656000a048472dc296
[ "MIT" ]
39
2015-01-15T13:07:50.000Z
2021-11-07T20:21:37.000Z
src/webpage.py
jjzhang166/hae
a8325083fff1792be73f16656000a048472dc296
[ "MIT" ]
null
null
null
src/webpage.py
jjzhang166/hae
a8325083fff1792be73f16656000a048472dc296
[ "MIT" ]
15
2015-09-10T08:31:36.000Z
2021-08-09T16:58:42.000Z
import assets import webbrowser from PyQt5.Qt import QMessageBox from PyQt5.QtNetwork import QNetworkDiskCache from PyQt5.QtWebKitWidgets import QWebPage, QWebInspector
31.951613
96
0.744573
da59be0872b7453f96ae38823087ee208d5fc4b9
1,135
py
Python
main.py
h-shukla/Random-wikipedia-aritcle
f3dc5d2373ae3717c7ee6192cb8c99c464cf14fe
[ "MIT" ]
null
null
null
main.py
h-shukla/Random-wikipedia-aritcle
f3dc5d2373ae3717c7ee6192cb8c99c464cf14fe
[ "MIT" ]
null
null
null
main.py
h-shukla/Random-wikipedia-aritcle
f3dc5d2373ae3717c7ee6192cb8c99c464cf14fe
[ "MIT" ]
null
null
null
import wikipedia import webbrowser getPage()
29.102564
79
0.590308
da5aaf00a6ad5e06519d62f96aea28416baf2d0d
207
py
Python
appaddrule/__init__.py
wanghaisheng/azure_func_pywebio_wsgi_starter
b5f210b7c867ab8bef456bc476c19bda6deb9795
[ "MIT" ]
1
2022-03-28T18:08:30.000Z
2022-03-28T18:08:30.000Z
appnoshare/__init__.py
wanghaisheng/azure_func_pywebio_wsgi_starter
b5f210b7c867ab8bef456bc476c19bda6deb9795
[ "MIT" ]
null
null
null
appnoshare/__init__.py
wanghaisheng/azure_func_pywebio_wsgi_starter
b5f210b7c867ab8bef456bc476c19bda6deb9795
[ "MIT" ]
null
null
null
import azure.functions as func from .add_url_rule import app
25.875
76
0.777778
da5b39150b74efcfc4f695de69dc90531942a1d9
360
py
Python
app/__init__.py
simplg/Object-Detection-Flask-TF-VanillaJS
0ab9b341b998fd49f277af742aa62b60fdf86735
[ "MIT" ]
null
null
null
app/__init__.py
simplg/Object-Detection-Flask-TF-VanillaJS
0ab9b341b998fd49f277af742aa62b60fdf86735
[ "MIT" ]
null
null
null
app/__init__.py
simplg/Object-Detection-Flask-TF-VanillaJS
0ab9b341b998fd49f277af742aa62b60fdf86735
[ "MIT" ]
null
null
null
from flask import Flask from app.services import model_manager from app.controllers.api_blueprint import api_router from app.controllers.main_blueprint import main_router
25.714286
54
0.805556
da5da3063b18be631cc8014b87cae8f76f584407
4,955
py
Python
tests/test_tfs/test_tfs_throughtput.py
fossabot/Video-to-Online-Platform
46019562f072a5dc2a92684986411d7f88758882
[ "Apache-2.0" ]
82
2019-10-04T05:40:45.000Z
2020-03-14T06:40:02.000Z
tests/test_tfs/test_tfs_throughtput.py
wangyongjie-ntu/Video-to-Online-Platform
b1230c8f702487225566b5be13947bd6f7904556
[ "Apache-2.0" ]
9
2020-06-04T19:31:59.000Z
2021-01-10T02:32:02.000Z
tests/test_tfs/test_tfs_throughtput.py
wangyongjie-ntu/Video-to-Online-Platform
b1230c8f702487225566b5be13947bd6f7904556
[ "Apache-2.0" ]
24
2019-10-04T05:46:46.000Z
2020-05-30T05:22:32.000Z
import sys import time import threading import grpc import numpy import soundfile as sf import tensorflow as tf import _init_paths import audioset.vggish_input as vggish_input from tensorflow_serving.apis import predict_pb2 from tensorflow_serving.apis import prediction_service_pb2_grpc tf.app.flags.DEFINE_integer...
33.255034
113
0.668416
da6117b14b190a1df83a43579aae7c876a794560
1,040
py
Python
telnotif/service.py
cybernop/telegram-notifier
ec742f8475ddf67df6b358163cfecd50a9ae7e2e
[ "MIT" ]
1
2020-01-17T23:10:01.000Z
2020-01-17T23:10:01.000Z
telnotif/service.py
cybernop/telegram-notifier
ec742f8475ddf67df6b358163cfecd50a9ae7e2e
[ "MIT" ]
null
null
null
telnotif/service.py
cybernop/telegram-notifier
ec742f8475ddf67df6b358163cfecd50a9ae7e2e
[ "MIT" ]
null
null
null
import logging from telnotif import server, notifier if __name__ == '__main__': import argparse arg_parser = argparse.ArgumentParser() arg_parser.add_argument('--name', required=True, help='name to use for the notifier') arg_parser.add_argument('--greeting', required=True, help='greeting for new r...
29.714286
116
0.713462
da613a33ab4b8784607cbf6c17018ef0feb7d3e0
3,760
py
Python
Stats.py
DebugScientist78/domino_game_ics4ur
008bca1efc528290cfa1f54e3dc8506888ebda53
[ "MIT" ]
null
null
null
Stats.py
DebugScientist78/domino_game_ics4ur
008bca1efc528290cfa1f54e3dc8506888ebda53
[ "MIT" ]
null
null
null
Stats.py
DebugScientist78/domino_game_ics4ur
008bca1efc528290cfa1f54e3dc8506888ebda53
[ "MIT" ]
null
null
null
import sqlite3
39.166667
118
0.542819
da622549f118b2499293419b2f7a2e3b38746885
31
py
Python
models/__init__.py
jmojoo/MLMO
6afe03b8a9d5bbbd88641a851652a23c93a77c9f
[ "MIT" ]
null
null
null
models/__init__.py
jmojoo/MLMO
6afe03b8a9d5bbbd88641a851652a23c93a77c9f
[ "MIT" ]
null
null
null
models/__init__.py
jmojoo/MLMO
6afe03b8a9d5bbbd88641a851652a23c93a77c9f
[ "MIT" ]
null
null
null
from .extractors import AlexNet
31
31
0.870968
da622f99b2d993c21b77db9d7d489ea443ffe7a9
21
py
Python
astroquery/ned/__init__.py
cdeil/astroquery
1bbb9f8ea0347abb1081dba52a66772a03408f11
[ "BSD-3-Clause" ]
null
null
null
astroquery/ned/__init__.py
cdeil/astroquery
1bbb9f8ea0347abb1081dba52a66772a03408f11
[ "BSD-3-Clause" ]
null
null
null
astroquery/ned/__init__.py
cdeil/astroquery
1bbb9f8ea0347abb1081dba52a66772a03408f11
[ "BSD-3-Clause" ]
null
null
null
from .nedpy import *
10.5
20
0.714286
da63029ad381464cc075bd9896b0e66b0c9cd64d
13,978
py
Python
app/_mainRecordfunctions.py
PranavSudersan/Buggee
5767d1c259d3570086d7c389440605fa0f681336
[ "MIT" ]
1
2020-12-18T13:05:41.000Z
2020-12-18T13:05:41.000Z
app/_mainRecordfunctions.py
PranavSudersan/Buggee
5767d1c259d3570086d7c389440605fa0f681336
[ "MIT" ]
null
null
null
app/_mainRecordfunctions.py
PranavSudersan/Buggee
5767d1c259d3570086d7c389440605fa0f681336
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Jun 24 21:46:56 2020 @author: adwait """ import numpy as np import cv2 import pims from tkinter import messagebox, Tk from PIL import ImageFont, ImageDraw, Image from PyQt5.QtGui import QIcon import logging
49.743772
109
0.477536
da6640d3525fee28eab50ae45f0fb7607c6877ec
2,131
py
Python
visa2.py
MA0R/Ref-Step-Algorithm
7a30bbbd454339f5c3b634a81831d73e2cc2a688
[ "Apache-2.0" ]
null
null
null
visa2.py
MA0R/Ref-Step-Algorithm
7a30bbbd454339f5c3b634a81831d73e2cc2a688
[ "Apache-2.0" ]
null
null
null
visa2.py
MA0R/Ref-Step-Algorithm
7a30bbbd454339f5c3b634a81831d73e2cc2a688
[ "Apache-2.0" ]
null
null
null
""" A simple class to allow quick testing of GPIB programs without instruments. All reads from an instrument return a semi-randomised number regardless of the specific command that may have been sent prior to reading. """ import stuff import time ## VisaIOError = False """ Old pyvisa calls. """ ...
24.215909
79
0.596903
da667238e0282c3118ead9b628abb759d77092e5
2,794
py
Python
sid/src/utils.py
theScrabi/kaldi_voxceleb_pytorch
bce3f8c5506df0128dd87f6aff60f9924806f5b6
[ "MIT" ]
3
2020-04-06T06:33:19.000Z
2020-04-08T06:24:15.000Z
sid/src/utils.py
theScrabi/kaldi_voxceleb_pytorch
bce3f8c5506df0128dd87f6aff60f9924806f5b6
[ "MIT" ]
null
null
null
sid/src/utils.py
theScrabi/kaldi_voxceleb_pytorch
bce3f8c5506df0128dd87f6aff60f9924806f5b6
[ "MIT" ]
null
null
null
import numpy as np from math import isnan from math import floor from time import time from random import shuffle from random import randint import torch import kaldi_io as kio from threading import Thread from queue import Queue from time import sleep from torch import nn import traceback import sys
30.043011
93
0.632427
da6b95ec02c5788dfc04461b9d6f11a71f5b0d8d
1,684
py
Python
amazon_comments_scraper.py
ECNUwyzZL/amazon-reviews-scraper
36e69c522bf73d630ac39ee4fcce0cc26c174595
[ "Apache-2.0" ]
null
null
null
amazon_comments_scraper.py
ECNUwyzZL/amazon-reviews-scraper
36e69c522bf73d630ac39ee4fcce0cc26c174595
[ "Apache-2.0" ]
null
null
null
amazon_comments_scraper.py
ECNUwyzZL/amazon-reviews-scraper
36e69c522bf73d630ac39ee4fcce0cc26c174595
[ "Apache-2.0" ]
null
null
null
import argparse from core_extract_comments import * from core_utils import * if __name__ == '__main__': logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') main()
34.367347
95
0.647268
da6d5e10eb908686caf520c0282d057272e35a99
417
py
Python
python/ack.py
catseye/Dipple
7c098e6b4cd9bffd8ff65465cfa4620ce09678a2
[ "Unlicense" ]
5
2016-05-18T01:51:37.000Z
2022-01-13T23:34:32.000Z
python/ack.py
catseye/Dipple
7c098e6b4cd9bffd8ff65465cfa4620ce09678a2
[ "Unlicense" ]
2
2015-08-06T20:21:11.000Z
2017-08-02T14:30:31.000Z
python/ack.py
catseye/Dipple
7c098e6b4cd9bffd8ff65465cfa4620ce09678a2
[ "Unlicense" ]
1
2015-01-25T02:49:49.000Z
2015-01-25T02:49:49.000Z
#!/usr/bin/env python import sys sys.setrecursionlimit(12000) for m in range(0, 4): for n in range(0, 10): print "ack(%s,%s)=%s" % (m, n, ack(m, n)) m = 4 n = 0 print "ack(%s,%s)=%s" % (m, n, ack(m, n)) # m = 4 # n = 1 # print "ack(%s,%s)=%s" % (m, n, ack(m, n))
16.038462
45
0.472422
da70807eb2e1dbd92d65c49dd5a4de5681a83229
1,161
py
Python
routes/web.py
erikwestlund/zuhanden
635004bc310235d10379c2811e42f121da14845f
[ "MIT" ]
3
2019-10-30T18:31:23.000Z
2020-03-11T05:00:44.000Z
routes/web.py
erikwestlund/zuhanden
635004bc310235d10379c2811e42f121da14845f
[ "MIT" ]
6
2021-03-09T21:14:05.000Z
2022-02-26T19:24:45.000Z
routes/web.py
erikwestlund/zuhanden
635004bc310235d10379c2811e42f121da14845f
[ "MIT" ]
null
null
null
"""Web Routes.""" from masonite.routes import Get, Post ROUTES = [Get("/", "IndexController@show").name("index")] ROUTES = ROUTES + [ Get().route("/users/sign-in", "SignInController@show").name("sign_in"), Post().route("/users/sign-in", "SignInController@sign_in"), Get().route("/users/sign-out", "SignInC...
40.034483
87
0.667528
da7171eeb7a2e452a9862ddc61b512f36b39cfc4
952
py
Python
Assignments/HW8/wireless_imu_test.py
bsaisudh/ENPM809T
d31072c2c79ea7ec34f61f868af12195286ed1da
[ "MIT" ]
null
null
null
Assignments/HW8/wireless_imu_test.py
bsaisudh/ENPM809T
d31072c2c79ea7ec34f61f868af12195286ed1da
[ "MIT" ]
null
null
null
Assignments/HW8/wireless_imu_test.py
bsaisudh/ENPM809T
d31072c2c79ea7ec34f61f868af12195286ed1da
[ "MIT" ]
1
2021-02-05T00:45:48.000Z
2021-02-05T00:45:48.000Z
''' Message Example b'620901.02908, 3, 0.242, 0.606, 9.527, 4, 0.020, -0.006, 0.001, 5, -24.762,-223.451,-98.491, 81, 173.805, -3.304, 1.315' ''' import time import string import socket, traceback host="192.168.0.23" # ip address of port=5555 s=socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.setsockopt(so...
28
129
0.640756
da71e377e8640f7d0b437b9e9475e281b189b3c9
1,814
py
Python
setup.py
cvzi/foodemoji
b43d80f5a6abada96d8383a5fb442e4bf4083631
[ "MIT" ]
1
2021-07-28T18:31:59.000Z
2021-07-28T18:31:59.000Z
setup.py
cvzi/foodemoji
b43d80f5a6abada96d8383a5fb442e4bf4083631
[ "MIT" ]
null
null
null
setup.py
cvzi/foodemoji
b43d80f5a6abada96d8383a5fb442e4bf4083631
[ "MIT" ]
1
2018-10-23T09:20:52.000Z
2018-10-23T09:20:52.000Z
import setuptools import os import io with io.open("README.md", encoding="utf-8") as f: long_description = f.read().strip() version = None with io.open(os.path.join("foodemoji", "__init__.py"), encoding="utf-8") as f: for line in f: if line.strip().startswith("__version__"): ver...
35.568627
79
0.588754
da724647bf52b2ccccc8a9cb64b82732b9781a67
6,187
py
Python
custom_auth/tests.py
qbrc-cnap/cnap
624683e91a64c3b4934b578c59db850242d2f94c
[ "MIT" ]
1
2021-07-08T14:06:04.000Z
2021-07-08T14:06:04.000Z
custom_auth/tests.py
qbrc-cnap/cnap
624683e91a64c3b4934b578c59db850242d2f94c
[ "MIT" ]
12
2020-02-12T00:10:53.000Z
2021-06-10T21:24:45.000Z
custom_auth/tests.py
qbrc-cnap/cnap
624683e91a64c3b4934b578c59db850242d2f94c
[ "MIT" ]
null
null
null
from django.test import TestCase from rest_framework.test import APIClient from django.contrib.auth import get_user_model from django.urls import reverse from django.conf import settings ''' Tests for listing Users: - admin users can list all users - admin users can list info about specific user - non-admin use...
35.557471
135
0.663326
da72b5d6db173d0936d21e44910a561197ddd81b
1,384
py
Python
src/config/settings.py
crayzee/useful
d760a11202093681ff69e402ba816cfc7e5ff739
[ "BSD-3-Clause" ]
2
2021-02-14T17:57:18.000Z
2021-02-14T18:11:17.000Z
src/config/settings.py
crayzee/useful
d760a11202093681ff69e402ba816cfc7e5ff739
[ "BSD-3-Clause" ]
null
null
null
src/config/settings.py
crayzee/useful
d760a11202093681ff69e402ba816cfc7e5ff739
[ "BSD-3-Clause" ]
null
null
null
import os from .local_config import * PROJECT_NAME = "Useful" SERVER_HOST = 'http://127.0.0.1:8000' # Secret key SECRET_KEY = b"laksd^8223kad_)8dkfjslkjUJKSN83_*Kk3ja@8ksdfj" BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) API_V1_STR = "/api/v1" # Token 60 minutes * 24 hours * 7 days = 7 da...
23.862069
70
0.721821
da731d554915258285d3db92dc37e110a862893f
277
py
Python
gitconsensusservice/www.py
tedivm/GitConsensusService
c4c920eaf39aefdca2fa3d82a92c89e27da46506
[ "MIT" ]
16
2018-03-15T10:23:16.000Z
2022-01-30T11:21:56.000Z
gitconsensusservice/www.py
tedivm/GitConsensusService
c4c920eaf39aefdca2fa3d82a92c89e27da46506
[ "MIT" ]
null
null
null
gitconsensusservice/www.py
tedivm/GitConsensusService
c4c920eaf39aefdca2fa3d82a92c89e27da46506
[ "MIT" ]
1
2018-07-07T07:45:39.000Z
2018-07-07T07:45:39.000Z
from flask import Flask, session, redirect, url_for, escape, request, render_template, flash, send_from_directory from gitconsensusservice import app import gitconsensusservice.routes.webhooks
30.777778
113
0.787004
da73a8bee13190d7e6ce04a2adb3a4da8ce14080
255
py
Python
fetch.py
oosidat/pyphotoanalytics
8206b4836d2dac8f4321cfc4c214fc6a076f00e5
[ "MIT" ]
null
null
null
fetch.py
oosidat/pyphotoanalytics
8206b4836d2dac8f4321cfc4c214fc6a076f00e5
[ "MIT" ]
null
null
null
fetch.py
oosidat/pyphotoanalytics
8206b4836d2dac8f4321cfc4c214fc6a076f00e5
[ "MIT" ]
null
null
null
import requests INSTAGRAM_MEDIA_LINK = "https://www.instagram.com/{username}/media/"
25.5
68
0.741176
da73bebdb1a8c110e03d6c6e8884f8ede489e4ad
3,612
py
Python
bluebottle/cms/migrations/0021_auto_20171017_2015.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
10
2015-05-28T18:26:40.000Z
2021-09-06T10:07:03.000Z
bluebottle/cms/migrations/0021_auto_20171017_2015.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
762
2015-01-15T10:00:59.000Z
2022-03-31T15:35:14.000Z
bluebottle/cms/migrations/0021_auto_20171017_2015.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
9
2015-02-20T13:19:30.000Z
2022-03-08T14:09:17.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2017-10-17 18:15 from __future__ import unicode_literals import adminsortable.fields from django.db import migrations, models import django.db.models.deletion
47.526316
249
0.592193
da750d0740739eec48b98e5fcd911525f9a9b4a3
525
py
Python
codewars/8kyu/counting sheep/main_test.py
ictcubeMENA/Training_one
dff6bee96ba42babe4888e5cf9a9448a6fd93fc3
[ "MIT" ]
null
null
null
codewars/8kyu/counting sheep/main_test.py
ictcubeMENA/Training_one
dff6bee96ba42babe4888e5cf9a9448a6fd93fc3
[ "MIT" ]
2
2019-01-22T10:53:42.000Z
2019-01-31T08:02:48.000Z
codewars/8kyu/counting sheep/main_test.py
ictcubeMENA/Training_one
dff6bee96ba42babe4888e5cf9a9448a6fd93fc3
[ "MIT" ]
13
2019-01-22T10:37:42.000Z
2019-01-25T13:30:43.000Z
import main import unittest if __name__ == '__main__': unittest.main()
32.8125
117
0.554286
da758948e9f436b2b6e80031138a444785186a7f
73
py
Python
pushkin/util/__init__.py
Nordeus/pushkin
39f7057d3eb82c811c5c6b795d8bc7df9352a217
[ "MIT" ]
281
2016-03-29T16:36:22.000Z
2022-03-13T10:28:10.000Z
pushkin/util/__init__.py
Nordeus/pushkin
39f7057d3eb82c811c5c6b795d8bc7df9352a217
[ "MIT" ]
34
2016-04-11T08:48:51.000Z
2019-08-17T15:36:15.000Z
pushkin/util/__init__.py
Nordeus/pushkin
39f7057d3eb82c811c5c6b795d8bc7df9352a217
[ "MIT" ]
66
2016-04-07T14:29:26.000Z
2022-03-30T13:17:38.000Z
from . import pool from . import multiprocesslogging from . import tools
18.25
33
0.794521
da75b4c5d61b6c1b99ae6b83a45f075920d7ce33
100
py
Python
utils/__init__.py
zhanglz95/RS-semantic-segmentation-pytorch-past
17f714024fa61da14f0b74f076feae27d7a782d6
[ "Apache-2.0" ]
1
2021-03-17T10:22:56.000Z
2021-03-17T10:22:56.000Z
utils/__init__.py
zhanglz95/RS-semantic-segmentation-pytorch-past
17f714024fa61da14f0b74f076feae27d7a782d6
[ "Apache-2.0" ]
null
null
null
utils/__init__.py
zhanglz95/RS-semantic-segmentation-pytorch-past
17f714024fa61da14f0b74f076feae27d7a782d6
[ "Apache-2.0" ]
1
2021-04-22T02:18:41.000Z
2021-04-22T02:18:41.000Z
from .augmentation import * from .optim import * from .metrics import * from .transfunction import *
25
28
0.77
da76a40793f2f1422c13d0932a6d592e32d20c44
11,289
py
Python
tzager/pdf_paper.py
tzagerAI/tzager
a6787f02fde58babd9999867d2cc3ced94926da8
[ "MIT" ]
2
2021-01-25T17:05:59.000Z
2021-04-11T19:05:16.000Z
tzager/pdf_paper.py
tzagerAI/tzager
a6787f02fde58babd9999867d2cc3ced94926da8
[ "MIT" ]
null
null
null
tzager/pdf_paper.py
tzagerAI/tzager
a6787f02fde58babd9999867d2cc3ced94926da8
[ "MIT" ]
null
null
null
import json import requests
39.75
167
0.642572
da799a5573b6f81ce543a17eb05e5edf304684d6
5,022
py
Python
tests/config_test.py
akshaysharma096/clusterman
27f4bd217fe201a4c0b9bf460c5a9e155ee88041
[ "Apache-2.0" ]
281
2019-11-15T03:12:43.000Z
2022-01-07T06:36:58.000Z
tests/config_test.py
akshaysharma096/clusterman
27f4bd217fe201a4c0b9bf460c5a9e155ee88041
[ "Apache-2.0" ]
38
2019-11-18T20:15:47.000Z
2022-03-28T11:28:45.000Z
tests/config_test.py
akshaysharma096/clusterman
27f4bd217fe201a4c0b9bf460c5a9e155ee88041
[ "Apache-2.0" ]
21
2019-11-16T07:49:40.000Z
2022-02-09T18:13:48.000Z
# Copyright 2019 Yelp 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 in writing, so...
41.163934
112
0.695739
da7a14fecc0293a448e5b7f69f5fae7ef9b4d5fb
1,615
py
Python
usernado/torntriplets/api.py
reganto/usernado
cb6c2b7b855d2e9abcc5b9c9849ff2b7d46883db
[ "Apache-2.0" ]
3
2022-01-19T18:18:49.000Z
2022-03-31T06:47:00.000Z
usernado/torntriplets/api.py
reganto/Usernado
2f3e28322f1f8af13a158e6e566a2f5d78039cac
[ "Apache-2.0" ]
10
2022-03-23T05:42:47.000Z
2022-03-31T11:32:38.000Z
usernado/torntriplets/api.py
reganto/usernado
cb6c2b7b855d2e9abcc5b9c9849ff2b7d46883db
[ "Apache-2.0" ]
1
2022-03-31T06:47:12.000Z
2022-03-31T06:47:12.000Z
from typing import Any, Dict, Optional import tornado.escape import tornado.web from usernado.torntriplets.base import BaseHandler
28.839286
73
0.63839
da7a5ddce9f4b0e607e1f5ea8b534056c6de7812
412
py
Python
mayan/apps/acls/permissions.py
eshbeata/open-paperless
6b9ed1f21908116ad2795b3785b2dbd66713d66e
[ "Apache-2.0" ]
2,743
2017-12-18T07:12:30.000Z
2022-03-27T17:21:25.000Z
mayan/apps/acls/permissions.py
kyper999/mayan-edms
ca7b8301a1f68548e8e718d42a728a500d67286e
[ "Apache-2.0" ]
15
2020-06-06T00:00:48.000Z
2022-03-12T00:03:54.000Z
mayan/apps/acls/permissions.py
kyper999/mayan-edms
ca7b8301a1f68548e8e718d42a728a500d67286e
[ "Apache-2.0" ]
257
2017-12-18T03:12:58.000Z
2022-03-25T08:59:10.000Z
from __future__ import absolute_import, unicode_literals from django.utils.translation import ugettext_lazy as _ from permissions import PermissionNamespace namespace = PermissionNamespace('acls', _('Access control lists')) permission_acl_edit = namespace.add_permission( name='acl_edit', label=_('Edit ACLs') ) ...
27.466667
66
0.791262
da7dd544bc7129810020884bed74e5d3c1705652
2,305
py
Python
raspi_components/light/rgb_light.py
builderdev212/raspi_components
edbcb5b8eed6b1e4a2f1cc41ce08ea9b25051495
[ "MIT" ]
1
2021-11-09T16:29:45.000Z
2021-11-09T16:29:45.000Z
raspi_components/light/rgb_light.py
builderdev212/raspi_components
edbcb5b8eed6b1e4a2f1cc41ce08ea9b25051495
[ "MIT" ]
null
null
null
raspi_components/light/rgb_light.py
builderdev212/raspi_components
edbcb5b8eed6b1e4a2f1cc41ce08ea9b25051495
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO from .light_errors import RGBLedError
33.405797
83
0.589588
da7ddeffe34343b0c121340327bdfa90aedcde9e
1,324
py
Python
mark_face.py
paitoon/train-gender
9520947dbfc7d1f442461414104c05fd75342d2d
[ "Apache-2.0" ]
null
null
null
mark_face.py
paitoon/train-gender
9520947dbfc7d1f442461414104c05fd75342d2d
[ "Apache-2.0" ]
null
null
null
mark_face.py
paitoon/train-gender
9520947dbfc7d1f442461414104c05fd75342d2d
[ "Apache-2.0" ]
null
null
null
import os import glob import cv2 if __name__ == "__main__": main()
29.422222
84
0.634441
da801a93f8583fc967dbb02cea4644403ff8fd67
5,343
py
Python
tests/browser/pages/domestic/contact_us_short_domestic.py
mayank-sfdc/directory-tests
6e978bc1a27c19389e99e454143122aa27e47b85
[ "MIT" ]
4
2017-06-02T09:09:10.000Z
2018-01-25T19:06:12.000Z
tests/browser/pages/domestic/contact_us_short_domestic.py
mayank-sfdc/directory-tests
6e978bc1a27c19389e99e454143122aa27e47b85
[ "MIT" ]
53
2016-10-27T22:31:03.000Z
2022-03-07T11:18:25.000Z
tests/browser/pages/domestic/contact_us_short_domestic.py
mayank-sfdc/directory-tests
6e978bc1a27c19389e99e454143122aa27e47b85
[ "MIT" ]
3
2017-11-22T11:42:40.000Z
2022-02-21T01:20:04.000Z
# -*- coding: utf-8 -*- """Domestic - Sort Domestic Contact us form""" import logging import random from types import ModuleType from typing import Union from uuid import uuid4 from selenium.webdriver.common.by import By from selenium.webdriver.remote.webdriver import WebDriver from directory_tests_shared import URLs...
35.151316
102
0.668913
da8127c27b0b2633acc1f5f965191ee6c85f4edb
2,981
py
Python
ros/niryo_one_ros/niryo_one_commander/src/niryo_one_commander/moveit_utils.py
paubrunet97/astrocytes
c21bbd2473adf68ef076356bcf578fb2ae14031f
[ "MIT" ]
5
2020-11-06T18:35:57.000Z
2021-04-30T07:16:42.000Z
ros/niryo_one_ros/niryo_one_commander/src/niryo_one_commander/moveit_utils.py
paubrunet97/astrocytes
c21bbd2473adf68ef076356bcf578fb2ae14031f
[ "MIT" ]
5
2020-11-05T13:39:28.000Z
2021-12-09T04:37:30.000Z
ros/niryo_one_ros/niryo_one_commander/src/niryo_one_commander/moveit_utils.py
paubrunet97/astrocytes
c21bbd2473adf68ef076356bcf578fb2ae14031f
[ "MIT" ]
8
2020-09-25T10:07:15.000Z
2022-03-11T06:26:30.000Z
#!/usr/bin/env python # moveit_utils.py # Copyright (C) 2018 Niryo # All rights reserved. # # 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 3 of the License, or # (at your option...
36.802469
111
0.664878
da81441d05bf7ab806931f1d474a95e2c2cbfd48
12,251
py
Python
release/stubs.min/Tekla/Structures/ModelInternal.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/Tekla/Structures/ModelInternal.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/Tekla/Structures/ModelInternal.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
# encoding: utf-8 # module Tekla.Structures.ModelInternal calls itself ModelInternal # from Tekla.Structures.Model,Version=2017.0.0.0,Culture=neutral,PublicKeyToken=2f04dbe497b71114 # by generator 1.145 # no doc # no imports # no functions # classes from ModelInternal_parts.AreWeUnitTesting import AreWeUnitTesting fro...
61.562814
96
0.919272
da81f0f20cad27c8cb6bd79d0b34c80d0a97dcf8
1,844
py
Python
examples/led-toggle.py
FFY00/python-libevdev
48d7846663dcd2a1bbf0034c5a9ce8da6a2caccf
[ "MIT" ]
null
null
null
examples/led-toggle.py
FFY00/python-libevdev
48d7846663dcd2a1bbf0034c5a9ce8da6a2caccf
[ "MIT" ]
null
null
null
examples/led-toggle.py
FFY00/python-libevdev
48d7846663dcd2a1bbf0034c5a9ce8da6a2caccf
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import libevdev import sys if __name__ == "__main__": if len(sys.argv) < 3: print("Usage: {} /dev/input/eventX {{numlock|capslock|scrolllock}}".format(sys.argv[0])) sys.exit(1) path = sys.argv[1] ledstr = sys.argv[2] try: toggle(path, ledstr) except K...
27.939394
96
0.539588
da82dbbe1c55e36b0b54970c291a2e27e60e0964
913
py
Python
advent_of_code_2017/day 13/solution.py
jvanelteren/advent_of_code
3c547645250adb2d95ebac43d5d2111cdf9b09e9
[ "MIT" ]
1
2021-12-23T11:24:11.000Z
2021-12-23T11:24:11.000Z
advent_of_code_2017/day 13/solution.py
jvanelteren/advent_of_code
3c547645250adb2d95ebac43d5d2111cdf9b09e9
[ "MIT" ]
null
null
null
advent_of_code_2017/day 13/solution.py
jvanelteren/advent_of_code
3c547645250adb2d95ebac43d5d2111cdf9b09e9
[ "MIT" ]
null
null
null
#%% # read full assignment # think algo before implementing # dont use a dict when you need a list # assignment is still = and not == # dont use itertools when you can use np.roll # check mathemathical functions if the parentheses are ok # networkx is awesome # %% import os import re import numpy as np try: os.chdir(...
22.268293
92
0.590361
da82e4d67c7cbb558c223bce528cb23c7feb91c8
4,532
py
Python
fluid/image_classification/caffe2fluid/kaffe/custom_layers/reshape.py
phlrain/models
59adc0d6f38cd2351e16608d6c9d4e72dd5e7fea
[ "Apache-2.0" ]
3
2019-04-29T09:12:21.000Z
2021-04-30T02:39:02.000Z
fluid/PaddleCV/caffe2fluid/kaffe/custom_layers/reshape.py
ThinkPeace/models
5d25e00c94943e50e64780a244136f88f13c0a88
[ "Apache-2.0" ]
2
2019-06-26T03:21:49.000Z
2019-09-19T09:43:42.000Z
fluid/PaddleCV/caffe2fluid/kaffe/custom_layers/reshape.py
ThinkPeace/models
5d25e00c94943e50e64780a244136f88f13c0a88
[ "Apache-2.0" ]
2
2019-05-06T12:10:15.000Z
2019-09-01T04:28:10.000Z
""" a custom layer for 'reshape', maybe we should implement this in standard way. more info can be found here: http://caffe.berkeleyvision.org/tutorial/layers/reshape.html """ from .register import register def reshape_shape(input_sp, shape, axis=0, num_axes=-1): """ calculate the output shape of this layer ...
33.820896
98
0.651147
da83cac0de8a0644873fc98b7129a03e1e3e96ac
962
py
Python
src/genie/libs/parser/ironware/tests/ShowMPLSLSP/cli/equal/golden_output1_expected.py
jamesditrapani/genieparser
d2c2f7e863889f323604c35ded767ca1d902055b
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/ironware/tests/ShowMPLSLSP/cli/equal/golden_output1_expected.py
jamesditrapani/genieparser
d2c2f7e863889f323604c35ded767ca1d902055b
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/ironware/tests/ShowMPLSLSP/cli/equal/golden_output1_expected.py
jamesditrapani/genieparser
d2c2f7e863889f323604c35ded767ca1d902055b
[ "Apache-2.0" ]
null
null
null
expected_output = { 'lsps': { 'mlx8.1_to_ces.2': { 'destination': '1.1.1.1', 'admin': 'UP', 'operational': 'UP', 'flap_count': 1, 'retry_count': 0, 'tunnel_interface': 'tunnel0' }, 'mlx8.1_to_ces.1': { 'desti...
26.722222
42
0.39501
da847575ffbfbf01189591df5dfaeb376a28f185
404
py
Python
django_world/admin.py
iamabhishekchakraborty/djangoProject
a71be90da2899c5cf17e94404b2056438b52fe35
[ "MIT" ]
null
null
null
django_world/admin.py
iamabhishekchakraborty/djangoProject
a71be90da2899c5cf17e94404b2056438b52fe35
[ "MIT" ]
null
null
null
django_world/admin.py
iamabhishekchakraborty/djangoProject
a71be90da2899c5cf17e94404b2056438b52fe35
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Succession,Succession_Seasons,Succession_Casts,Succession_Season_Episodes # Register your models here. # admin.site.register(Succession) # The model Succession is abstract so it can't be registered with admin admin.site.register(Succession_Seasons) ad...
44.888889
120
0.819307
da851717fcc7c1db00f5aa310d945f9a35207e50
10,049
py
Python
src/mbed_cloud/_backends/iam/models/user_invitation_resp.py
GQMai/mbed-cloud-sdk-python
76ef009903415f37f69dcc5778be8f5fb14c08fe
[ "Apache-2.0" ]
12
2017-12-28T11:18:43.000Z
2020-10-04T12:11:15.000Z
src/mbed_cloud/_backends/iam/models/user_invitation_resp.py
GQMai/mbed-cloud-sdk-python
76ef009903415f37f69dcc5778be8f5fb14c08fe
[ "Apache-2.0" ]
50
2017-12-21T12:50:41.000Z
2020-01-13T16:07:08.000Z
src/mbed_cloud/_backends/iam/models/user_invitation_resp.py
GQMai/mbed-cloud-sdk-python
76ef009903415f37f69dcc5778be8f5fb14c08fe
[ "Apache-2.0" ]
8
2018-04-25T17:47:29.000Z
2019-08-29T06:38:27.000Z
# coding: utf-8 """ Account Management API API for managing accounts, users, creating API keys, uploading trusted certificates OpenAPI spec version: v3 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re def ...
26.584656
163
0.569509
da851a1afbbfafbfd8181febba1e1dc63ff24b87
475
py
Python
src/orders/tests/order_content_type_replacement/tests_order_item.py
iNerV/education-backend
787c0d090eb6e4a9338812941b0246a6e1b8e7ad
[ "MIT" ]
151
2020-04-21T09:58:57.000Z
2021-09-12T09:01:21.000Z
src/orders/tests/order_content_type_replacement/tests_order_item.py
iNerV/education-backend
787c0d090eb6e4a9338812941b0246a6e1b8e7ad
[ "MIT" ]
163
2020-05-29T20:52:00.000Z
2021-09-11T12:44:56.000Z
src/orders/tests/order_content_type_replacement/tests_order_item.py
iNerV/education-backend
787c0d090eb6e4a9338812941b0246a6e1b8e7ad
[ "MIT" ]
39
2020-04-21T12:28:16.000Z
2021-09-12T15:33:47.000Z
import pytest pytestmark = [pytest.mark.django_db]
16.964286
42
0.717895
da853d3e5be97c642df321dd9e8c656130983cf6
2,731
py
Python
surround/django/simple_cors/decorators.py
sniegu/django-surround
e076ec92a6611a056899f3f4f74a24e676dafb5c
[ "MIT" ]
1
2016-07-29T13:10:40.000Z
2016-07-29T13:10:40.000Z
surround/django/simple_cors/decorators.py
sniegu/django-surround
e076ec92a6611a056899f3f4f74a24e676dafb5c
[ "MIT" ]
null
null
null
surround/django/simple_cors/decorators.py
sniegu/django-surround
e076ec92a6611a056899f3f4f74a24e676dafb5c
[ "MIT" ]
null
null
null
from __future__ import absolute_import import functools from . import headers from django.http import HttpResponse from django.core.exceptions import ImproperlyConfigured, PermissionDenied from django.conf import settings from django.utils.cache import patch_vary_headers import copy
32.129412
109
0.644819
da8bbe71d5f0d48d81d4da065f31cf98968fe092
4,282
py
Python
sdkcore/SdkCore/scripts/ff4compat_gen_consts.py
Parrot-Developers/groundsdk-ios
d85c798e9e3a7e19f5a0ad9f9ab8f7753d422d4a
[ "BSD-3-Clause" ]
13
2019-05-29T00:17:09.000Z
2021-12-22T16:05:15.000Z
sdkcore/SdkCore/scripts/ff4compat_gen_consts.py
papachuj/groundsdk-ios
f205f75b11a57f49b39ee558b2e8e39f59a15963
[ "BSD-3-Clause" ]
5
2019-05-08T01:11:42.000Z
2021-07-20T21:29:33.000Z
sdkcore/SdkCore/scripts/ff4compat_gen_consts.py
papachuj/groundsdk-ios
f205f75b11a57f49b39ee558b2e8e39f59a15963
[ "BSD-3-Clause" ]
10
2019-05-07T18:43:29.000Z
2021-09-14T13:41:14.000Z
#!/usr/bin/env python3 import sys, os import arsdkparser #=============================================================================== #=============================================================================== CONSTS_FILENAME = "DeviceCtrlCompatConsts" GENERATED_HEADER = "/** Generated, do not edit ! */" ...
33.453125
121
0.554414
da8d2c7153240f16fec71fcc1d7674ce7b71b928
3,357
py
Python
python/polyline.py
anjianli21/ilqgames
2be8e2bc6d34a9a6296d341b75d59e37c9057ad5
[ "BSD-3-Clause" ]
53
2019-11-25T02:51:12.000Z
2022-01-12T18:30:02.000Z
python/polyline.py
anjianli21/ilqgames
2be8e2bc6d34a9a6296d341b75d59e37c9057ad5
[ "BSD-3-Clause" ]
42
2019-10-05T20:22:04.000Z
2022-02-09T20:10:35.000Z
python/polyline.py
anjianli21/ilqgames
2be8e2bc6d34a9a6296d341b75d59e37c9057ad5
[ "BSD-3-Clause" ]
23
2020-01-02T13:33:12.000Z
2022-03-06T01:55:28.000Z
""" BSD 3-Clause License Copyright (c) 2019, HJ Reachability Group 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 o...
41.444444
80
0.639857
da8d42fe81a982dbdfe83e8ebb942e5412274693
1,338
py
Python
python/l0039.py
daidaifan/leetcode-problem-solver
1793eada501a2a18d05f118a98ac52e2edd12ef8
[ "MIT" ]
null
null
null
python/l0039.py
daidaifan/leetcode-problem-solver
1793eada501a2a18d05f118a98ac52e2edd12ef8
[ "MIT" ]
null
null
null
python/l0039.py
daidaifan/leetcode-problem-solver
1793eada501a2a18d05f118a98ac52e2edd12ef8
[ "MIT" ]
null
null
null
""" Given a set of candidate numbers (C) (without duplicates) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. The same repeated number may be chosen from C unlimited number of times. Note: All numbers (including target) will be positive integers. The solution set must...
33.45
155
0.627055
da8dea08257cffe7cb7b25d97d102c4ebef23d52
426
py
Python
src/constants/datasets.py
shivanip14/semisupclustering
c13f007e5e5ca3788ea79623f9bf975ae1b4d5f2
[ "MIT" ]
null
null
null
src/constants/datasets.py
shivanip14/semisupclustering
c13f007e5e5ca3788ea79623f9bf975ae1b4d5f2
[ "MIT" ]
null
null
null
src/constants/datasets.py
shivanip14/semisupclustering
c13f007e5e5ca3788ea79623f9bf975ae1b4d5f2
[ "MIT" ]
null
null
null
from src.runners.iris_runner import cluster as iris from src.runners.twentynewsgroups_runner import cluster as twentynewsgroups from src.runners.waveform_runner import cluster as waveform available_datasets = {'iris': {'runner': iris, 'name': 'iris'}, 'twentynewsgroups': {'runner': twentynewsgroup...
60.857143
98
0.694836
da8e1f9353eb419f8a88360730978b2158e9f937
5,230
py
Python
shared/mhx/rig_face_25.py
teddydragoone/makehuman1.0.0alpha7
9aa7735a0a1ea83e52b1acc0fb8760057dd72d99
[ "CC0-1.0" ]
2
2016-11-23T16:37:15.000Z
2018-02-13T04:18:23.000Z
shared/mhx/rig_face_25.py
Tomoyon/makehuman1.0.0alpha7
9aa7735a0a1ea83e52b1acc0fb8760057dd72d99
[ "CC0-1.0" ]
null
null
null
shared/mhx/rig_face_25.py
Tomoyon/makehuman1.0.0alpha7
9aa7735a0a1ea83e52b1acc0fb8760057dd72d99
[ "CC0-1.0" ]
null
null
null
""" **Project Name:** MakeHuman **Product Home Page:** http://www.makehuman.org/ **Code Home Page:** http://code.google.com/p/makehuman/ **Authors:** Thomas Larsson **Copyright(c):** MakeHuman Team 2001-2009 **Licensing:** GPL3 (see also http://sites.google.com/site/makeh...
34.866667
93
0.480115
da8ed4c0472579bd4d5d2628a89966ad10d3fad5
2,887
py
Python
vyperlogix/daemon/utils.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
1
2020-09-29T01:36:33.000Z
2020-09-29T01:36:33.000Z
vyperlogix/daemon/utils.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
vyperlogix/daemon/utils.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
import os, sys import traceback from vyperlogix.misc import _utils from vyperlogix.hash import lists _metadata = lists.HashedLists2()
33.569767
215
0.602009
da8f0055a77ed6fa4e5e1522444ff2ad408ea2b3
6,668
gyp
Python
common-mk/external_dependencies.gyp
doitmovin/chromiumos-platform2
6462aaf43072307b5a40eb045a89e473381b5fda
[ "BSD-3-Clause" ]
null
null
null
common-mk/external_dependencies.gyp
doitmovin/chromiumos-platform2
6462aaf43072307b5a40eb045a89e473381b5fda
[ "BSD-3-Clause" ]
null
null
null
common-mk/external_dependencies.gyp
doitmovin/chromiumos-platform2
6462aaf43072307b5a40eb045a89e473381b5fda
[ "BSD-3-Clause" ]
2
2021-01-26T12:37:19.000Z
2021-05-18T13:37:57.000Z
{ 'targets': [ { 'target_name': 'modemmanager-dbus-proxies', 'type': 'none', 'variables': { 'xml2cpp_type': 'proxy', 'xml2cpp_in_dir': '<(sysroot)/usr/share/dbus-1/interfaces/', 'xml2cpp_out_dir': 'include/dbus_proxies', }, 'sources': [ '<(xml2cpp_in_d...
41.937107
80
0.626125
da8fceb32a06d24f6058a6fcba8fc9efb8cbbeea
504
py
Python
OpenCV Python/4. Image Processing/10. histograms/3. 2D histogram.py
Ashleshk/Machine-Learning-Data-Science-Deep-Learning
03357ab98155bf73b8f1d2fd53255cc16bea2333
[ "MIT" ]
1
2020-05-24T06:55:31.000Z
2020-05-24T06:55:31.000Z
OpenCV Python/4. Image Processing/10. histograms/3. 2D histogram.py
Ashleshk/Machine-Learning-Data-Science-Deep-Learning
03357ab98155bf73b8f1d2fd53255cc16bea2333
[ "MIT" ]
null
null
null
OpenCV Python/4. Image Processing/10. histograms/3. 2D histogram.py
Ashleshk/Machine-Learning-Data-Science-Deep-Learning
03357ab98155bf73b8f1d2fd53255cc16bea2333
[ "MIT" ]
null
null
null
import cv2 import numpy as np from matplotlib import pyplot as plt img = cv2.imread('home.jpg') hsv = cv2.cvtColor(img,cv2.COLOR_BGR2HSV) hist = cv2.calcHist( [hsv], [0, 1], None, [180, 256], [0, 180, 0, 256] ) plt.imshow(hist,interpolation = 'nearest') plt.show() # in numpy import cv2 import numpy as np from matplo...
24
84
0.698413
da92973f8664607a74f4efaec125fafddf4dd12d
2,288
py
Python
arike/visits/models.py
iamsdas/arike
ab76f48f49cd794dd4b77172b347e260a03413b2
[ "MIT" ]
null
null
null
arike/visits/models.py
iamsdas/arike
ab76f48f49cd794dd4b77172b347e260a03413b2
[ "MIT" ]
null
null
null
arike/visits/models.py
iamsdas/arike
ab76f48f49cd794dd4b77172b347e260a03413b2
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.db import models from django.utils import timezone from arike.patients.models import Patient, Treatment User = get_user_model()
32.225352
81
0.719843
da938acd5f393f415b429ac95d5b18992fd16570
1,487
py
Python
endpoints/Reports.py
uvoteam/python-hibob
b4afab486b100ac9663913b6fca1d3b0f9a756da
[ "MIT" ]
null
null
null
endpoints/Reports.py
uvoteam/python-hibob
b4afab486b100ac9663913b6fca1d3b0f9a756da
[ "MIT" ]
null
null
null
endpoints/Reports.py
uvoteam/python-hibob
b4afab486b100ac9663913b6fca1d3b0f9a756da
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf8 -*- from .BaseEndpoint import BaseEndpoint
29.156863
95
0.588433
16f24f5dceaff375273799b091cdaa31879fa455
12,182
py
Python
task1.py
whalsey/misc
8649cb070017a2a6c3c1cdd7fd1e37f45b251ef1
[ "Unlicense" ]
null
null
null
task1.py
whalsey/misc
8649cb070017a2a6c3c1cdd7fd1e37f45b251ef1
[ "Unlicense" ]
null
null
null
task1.py
whalsey/misc
8649cb070017a2a6c3c1cdd7fd1e37f45b251ef1
[ "Unlicense" ]
null
null
null
import network2 import logging import numpy as np logging.basicConfig(level=logging.DEBUG) # read in the data # logging.info("READING IN DATA...") # for reading in normal dataset # training, validation, test = network2.load_data_wrapper("data/mnist.pkl.gz") ### I WILL ADD AND COMMENT OUT SECTIONS OF CODE BASED ...
35.829412
166
0.603924
16f51fce4900cb27c39b7642c9d827a7a08b58ec
1,470
py
Python
src/comment/views.py
mingyu-si/weibo
f7193b076086741827af749b318094cc483994fc
[ "MIT" ]
null
null
null
src/comment/views.py
mingyu-si/weibo
f7193b076086741827af749b318094cc483994fc
[ "MIT" ]
null
null
null
src/comment/views.py
mingyu-si/weibo
f7193b076086741827af749b318094cc483994fc
[ "MIT" ]
null
null
null
from flask import Blueprint from flask import abort from flask import abort from flask import request from flask import redirect from flask import session from libs.db import db from user.logics import login_required from .models import Comment comment_bp = Blueprint('comment', import_name='comment')
25.344828
70
0.666667
16f5443e8a2bc4d2bf5dcdb9c2d9b70264409e3f
9,340
py
Python
cvsutils/evaluator.py
zpahuja/cvsutils
a4acfe49355e2eea55ba62687e4f1219d142a694
[ "MIT" ]
1
2020-09-10T00:15:46.000Z
2020-09-10T00:15:46.000Z
cvsutils/evaluator.py
zpahuja/cvsutils
a4acfe49355e2eea55ba62687e4f1219d142a694
[ "MIT" ]
null
null
null
cvsutils/evaluator.py
zpahuja/cvsutils
a4acfe49355e2eea55ba62687e4f1219d142a694
[ "MIT" ]
1
2021-08-11T00:20:24.000Z
2021-08-11T00:20:24.000Z
from abc import ABC, abstractmethod import collections import statistics import numpy as np import sklearn.metrics import torch
40.608696
140
0.626552
16f6101184ac3a5b20ff118633026dddd97c9b64
1,703
py
Python
tests/unit/cli/format/test_table.py
manojn97/lmctl
844925cb414722351efac90cb97f10c1185eef7a
[ "Apache-2.0" ]
3
2021-07-19T09:46:01.000Z
2022-03-07T13:51:25.000Z
tests/unit/cli/format/test_table.py
manojn97/lmctl
844925cb414722351efac90cb97f10c1185eef7a
[ "Apache-2.0" ]
43
2019-08-27T12:36:29.000Z
2020-08-27T14:50:40.000Z
tests/unit/cli/format/test_table.py
manojn97/lmctl
844925cb414722351efac90cb97f10c1185eef7a
[ "Apache-2.0" ]
7
2020-09-22T20:32:17.000Z
2022-03-29T12:25:51.000Z
import unittest from lmctl.cli.format import TableFormat, Table, Column EXPECTED_LIST = '''\ | Name | Status | |--------+-----------| | A | OK | | B | Unhealthy | | C | OK | | D | Unhealthy |''' EXPECTED_ELEMENT = '''\ | Name | Status | |--------+----------| | A | OK ...
31.537037
134
0.552554
16f652eab36e6abcb36c17bfb8d49a2e6336ba97
2,015
py
Python
NiceReferenceImageDBCreator/CreateDBFromRefImages/__init__.py
sudipta-rudra/test
6539f256cda889d00c9f88ea174e63ea15846554
[ "MIT" ]
null
null
null
NiceReferenceImageDBCreator/CreateDBFromRefImages/__init__.py
sudipta-rudra/test
6539f256cda889d00c9f88ea174e63ea15846554
[ "MIT" ]
null
null
null
NiceReferenceImageDBCreator/CreateDBFromRefImages/__init__.py
sudipta-rudra/test
6539f256cda889d00c9f88ea174e63ea15846554
[ "MIT" ]
null
null
null
import logging import azure.functions as func import numpy as np import json import requests from os import path # print(response_json)
27.986111
92
0.636228
16f71339643c7fc6d95188482e9e85260eb6d407
519
py
Python
main.py
frederikkoenigwork/my-python-sample-app
abeed8e73877172099aa7a0c53c7ee05674c1b02
[ "Unlicense" ]
null
null
null
main.py
frederikkoenigwork/my-python-sample-app
abeed8e73877172099aa7a0c53c7ee05674c1b02
[ "Unlicense" ]
null
null
null
main.py
frederikkoenigwork/my-python-sample-app
abeed8e73877172099aa7a0c53c7ee05674c1b02
[ "Unlicense" ]
null
null
null
import django print(django.get_version()) print(f"boa {111 * 6}") print(f"{6*6}") input = input("Hey abuser, enter some stuff!\n") cmp = 1 > 0 print(type(cmp)) print(input) try: int(asdf) except Exception: print("Oh no, it failed!") while False: print("False!") listeL = [1,2,3,45,6,4,3,6,8,6,3...
9.611111
48
0.635838
16f9b725e9aef0aa98b319d6a522f9a1a0c54c28
6,826
py
Python
ooobuild/lo/i18n/transliteration_modules.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/i18n/transliteration_modules.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/i18n/transliteration_modules.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http: // www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
35.005128
155
0.713742
16fe9a9c206b9e8c7de3aca2c90042c644707331
342
py
Python
main.py
freakyLuffy/Teleuserbot
d5871e919b37d6b63de7e3115fd9d1d3bb6ce33b
[ "MIT" ]
null
null
null
main.py
freakyLuffy/Teleuserbot
d5871e919b37d6b63de7e3115fd9d1d3bb6ce33b
[ "MIT" ]
null
null
null
main.py
freakyLuffy/Teleuserbot
d5871e919b37d6b63de7e3115fd9d1d3bb6ce33b
[ "MIT" ]
1
2021-09-06T08:57:43.000Z
2021-09-06T08:57:43.000Z
from start import client from modules import codeforces,delete,notes,hastebin,pin,pm,user,spam,rextester white=[] from telethon import TelegramClient,events import logging logging.basicConfig(format='[%(levelname) 5s/%(asctime)s] %(name)s: %(message)s', level=logging.WARNING) client.start().run_u...
24.428571
81
0.739766
16ffa203132158dc3fd91b6c3eb252393aac5ec3
69
py
Python
multitag-code/src/test.py
terencelee-uni/multitag-heroku
38945052912ddb55f5d98773e081ccc7b98c6373
[ "MIT" ]
null
null
null
multitag-code/src/test.py
terencelee-uni/multitag-heroku
38945052912ddb55f5d98773e081ccc7b98c6373
[ "MIT" ]
null
null
null
multitag-code/src/test.py
terencelee-uni/multitag-heroku
38945052912ddb55f5d98773e081ccc7b98c6373
[ "MIT" ]
null
null
null
import gc import torch gc.collect() torch.cuda.empty_cache()
9.857143
25
0.695652
16ffb21ba479da8e4fa3cbea8fc419e69eeafed7
5,976
py
Python
cpp_src/cmd/reindexer_server/test/specs/mixins/api_mixin.py
radiophysicist/reindexer
5a6e82158665f6e9c78536cc4a907143a157f1d7
[ "Apache-2.0" ]
null
null
null
cpp_src/cmd/reindexer_server/test/specs/mixins/api_mixin.py
radiophysicist/reindexer
5a6e82158665f6e9c78536cc4a907143a157f1d7
[ "Apache-2.0" ]
null
null
null
cpp_src/cmd/reindexer_server/test/specs/mixins/api_mixin.py
radiophysicist/reindexer
5a6e82158665f6e9c78536cc4a907143a157f1d7
[ "Apache-2.0" ]
null
null
null
import http.client import json from urllib.parse import urlencode
34.744186
129
0.601908
e5001dfc78853e4ced92c846fd9c8e41e4780597
3,080
py
Python
30DayMapChallenge/23112020-Boundaries.py
vivekparasharr/Challenges-and-Competitions
c99d67838a0bb14762d5f4be4993dbcce6fe0c5a
[ "MIT" ]
6
2021-01-11T20:12:04.000Z
2021-05-15T04:53:45.000Z
30DayMapChallenge/23112020-Boundaries.py
vivekparasharr/Challenges-and-Competitions
c99d67838a0bb14762d5f4be4993dbcce6fe0c5a
[ "MIT" ]
null
null
null
30DayMapChallenge/23112020-Boundaries.py
vivekparasharr/Challenges-and-Competitions
c99d67838a0bb14762d5f4be4993dbcce6fe0c5a
[ "MIT" ]
1
2021-04-30T19:15:46.000Z
2021-04-30T19:15:46.000Z
# Lets make a map! Using Geopandas, Pandas and Matplotlib to make a Choropleth map # https://towardsdatascience.com/lets-make-a-map-using-geopandas-pandas-and-matplotlib-to-make-a-chloropleth-map-dddc31c1983d import pandas as pd import matplotlib.pyplot as plt import geopandas as gpd from shapely.geometry import Po...
37.108434
188
0.737338
e50208be3b39de3965d43ff9c05510b7adb80bf9
15,564
py
Python
process_data/functions/sensors.py
mattmatt91/Promotion
263d4d456a0376d767f564ac5f50ea586539b91a
[ "MIT" ]
null
null
null
process_data/functions/sensors.py
mattmatt91/Promotion
263d4d456a0376d767f564ac5f50ea586539b91a
[ "MIT" ]
null
null
null
process_data/functions/sensors.py
mattmatt91/Promotion
263d4d456a0376d767f564ac5f50ea586539b91a
[ "MIT" ]
null
null
null
""" This module exrtacts features from the data, saves the feauters from all measurements to global results file and creates one file for every sensor with all measurements. :copyright: (c) 2022 by Matthias Muhr, Hochschule-Bonn-Rhein-Sieg :license: see LICENSE for more details. """ from pyexpat import features imp...
42.994475
151
0.639746
e50338744ce1ce4fd32a84e23f93cd09469073ba
4,343
py
Python
unit_tests/sequence_tests.py
YuseqYaseq/gry-kombinatoryczne
15e5d857cdbc6ec447c0028a90c4354ba25fc553
[ "MIT" ]
2
2020-04-26T16:57:37.000Z
2020-04-26T16:57:40.000Z
unit_tests/sequence_tests.py
YuseqYaseq/gry-kombinatoryczne
15e5d857cdbc6ec447c0028a90c4354ba25fc553
[ "MIT" ]
null
null
null
unit_tests/sequence_tests.py
YuseqYaseq/gry-kombinatoryczne
15e5d857cdbc6ec447c0028a90c4354ba25fc553
[ "MIT" ]
null
null
null
from unit_tests.common import expect, is_none, is_arithmetic_sequnce from game.sequence import Sequence
22.502591
68
0.633433
e5043f9b378414c53f7a91ce383d6631c2a5eef6
14,696
py
Python
dcbench/common/artifact.py
data-centric-ai/dcbench
831ab2359d686739d0b0c7a589974ce08448e58d
[ "Apache-2.0" ]
40
2021-11-06T00:16:20.000Z
2022-03-17T11:45:00.000Z
dcbench/common/artifact.py
data-centric-ai/dcbench
831ab2359d686739d0b0c7a589974ce08448e58d
[ "Apache-2.0" ]
1
2022-01-01T14:40:19.000Z
2022-01-04T05:25:04.000Z
dcbench/common/artifact.py
data-centric-ai/dcbench
831ab2359d686739d0b0c7a589974ce08448e58d
[ "Apache-2.0" ]
5
2021-11-17T17:15:41.000Z
2021-12-31T06:45:13.000Z
from __future__ import annotations import json import os import shutil import subprocess import tempfile import uuid from abc import ABC, abstractmethod from typing import Any, Union from urllib.error import HTTPError from urllib.request import urlopen, urlretrieve import warnings import meerkat as mk import pandas a...
32.950673
88
0.603089
e5070c7ab7930e9f7d31bdcbe82d23a9f81f0945
1,882
py
Python
utils.py
fourjr/rawbot
19cd8a9417aea9f021c620faf6e9c112fb45f87b
[ "MIT" ]
10
2018-09-14T02:51:56.000Z
2021-09-10T16:09:20.000Z
utils.py
toxicrecker/rawbot
19cd8a9417aea9f021c620faf6e9c112fb45f87b
[ "MIT" ]
1
2018-01-01T06:52:04.000Z
2018-01-01T06:52:04.000Z
utils.py
toxicrecker/rawbot
19cd8a9417aea9f021c620faf6e9c112fb45f87b
[ "MIT" ]
3
2020-09-25T08:18:03.000Z
2021-06-01T10:32:13.000Z
import asyncio import json import zlib import aiohttp import errors API_BASE = 'https://discordapp.com/api/v6' CONFIG_FILE = json.load(open('data/config.json')) TOKEN = CONFIG_FILE['token'] HEADERS = {'Authorization': 'Bot ' + TOKEN, 'User-Agent': 'DiscordBot (https://www.github.com/fourjr/dapi-bot,\ ...
33.017544
89
0.655154
e508750914ec307fdf73cf0c5c0d5889efc9baed
349
py
Python
perm-comb-finder/count-uniques.py
catseye/NaNoGenLab
3e4a7314e6023557856e1cc910e9d0edc4daf43c
[ "Unlicense" ]
20
2015-06-05T14:02:12.000Z
2021-11-02T22:19:18.000Z
perm-comb-finder/count-uniques.py
catseye/NaNoGenLab
3e4a7314e6023557856e1cc910e9d0edc4daf43c
[ "Unlicense" ]
1
2015-10-15T12:58:35.000Z
2015-10-15T12:58:35.000Z
perm-comb-finder/count-uniques.py
catseye/NaNoGenLab
3e4a7314e6023557856e1cc910e9d0edc4daf43c
[ "Unlicense" ]
1
2021-04-08T23:50:06.000Z
2021-04-08T23:50:06.000Z
#!/usr/bin/env python import sys import re words = [] for line in sys.stdin: words.extend(line.strip().split()) words = [clean(w) for w in words] print len(words), len(set(words)) assert len(words) == len(set(words)) print sorted(words)
23.266667
65
0.616046
e50aa233612c4fecbdcab9dca3a132fb3f527d00
2,505
py
Python
vcoffboard.py
tjarrettveracode/veracode-offboard
d61261b08a7a5b2904152d07d1d83f61dfd44de8
[ "MIT" ]
null
null
null
vcoffboard.py
tjarrettveracode/veracode-offboard
d61261b08a7a5b2904152d07d1d83f61dfd44de8
[ "MIT" ]
null
null
null
vcoffboard.py
tjarrettveracode/veracode-offboard
d61261b08a7a5b2904152d07d1d83f61dfd44de8
[ "MIT" ]
1
2021-07-22T10:27:13.000Z
2021-07-22T10:27:13.000Z
import sys import requests import argparse import logging import json import datetime import anticrlf from veracode_api_py import VeracodeAPI as vapi log = logging.getLogger(__name__) if __name__ == '__main__': setup_logger() main()
28.793103
111
0.665868
e50c4316e567816ffac25b73b3ac2382e0a4cbc1
186
py
Python
codigo/Live102/exemplo_2.py
cassiasamp/live-de-python
00b5e51793097544ba9b75c97a0d30e63970bf45
[ "MIT" ]
572
2018-04-03T03:17:08.000Z
2022-03-31T19:05:32.000Z
codigo/Live102/exemplo_2.py
cassiasamp/live-de-python
00b5e51793097544ba9b75c97a0d30e63970bf45
[ "MIT" ]
176
2018-05-18T15:56:16.000Z
2022-03-28T20:39:07.000Z
codigo/Live102/exemplo_2.py
cassiasamp/live-de-python
00b5e51793097544ba9b75c97a0d30e63970bf45
[ "MIT" ]
140
2018-04-18T13:59:11.000Z
2022-03-29T00:43:49.000Z
from expects import expect, contain, be_an sanduiche = 'sanduiche com queijo' expect(sanduiche).to(contain('queijo')) expect(sanduiche).to_not(be_an(Bacon))
12.4
42
0.715054
e50d10a2b510d9e523b163855a7bc6488bf844bd
1,109
py
Python
HLTriggerOffline/Exotica/python/analyses/hltExoticaMonojetBackup_cff.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
HLTriggerOffline/Exotica/python/analyses/hltExoticaMonojetBackup_cff.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
HLTriggerOffline/Exotica/python/analyses/hltExoticaMonojetBackup_cff.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
import FWCore.ParameterSet.Config as cms MonojetBackupPSet = cms.PSet( hltPathsToCheck = cms.vstring( #"HLT_PFJet260_v", # Run2 #"HLT_PFJetCen80_PFMETNoMu100_v", #"HLT_PFJetCen80_PFMHTNoPuNoMu100_v", #"HLT_PFCenJet140_PFMETNoMu100_PFMHTNoMu140_v", #"HLT_PFCenJet140_PFMETNoMu...
39.607143
89
0.612263
e50e6b8c83e7592d743b1b7961e1e7181042fa38
2,404
py
Python
examples/learning-tpot/main.py
bahp/python-spare-code
9a39a96f2500a2a141a229eb819224e2b94775eb
[ "Apache-2.0" ]
null
null
null
examples/learning-tpot/main.py
bahp/python-spare-code
9a39a96f2500a2a141a229eb819224e2b94775eb
[ "Apache-2.0" ]
null
null
null
examples/learning-tpot/main.py
bahp/python-spare-code
9a39a96f2500a2a141a229eb819224e2b94775eb
[ "Apache-2.0" ]
null
null
null
""" Main ============= Example """ # Import import numpy as np import pandas as pd # Specific from tpot import TPOTClassifier # Import own from pySML2.preprocessing.splitters import cvs_hos_split from pySML2.preprocessing.splitters import kfolds_split # --------------------------------------------- # Configuratio...
25.849462
82
0.544925
e50f3e9a270052964bd94fc33126a4f25759a273
9,698
py
Python
sherlock.py
aggiebill/sherlock
f5a903e2d9c191e5aab58f4cfd1df14cb34b1585
[ "MIT" ]
null
null
null
sherlock.py
aggiebill/sherlock
f5a903e2d9c191e5aab58f4cfd1df14cb34b1585
[ "MIT" ]
null
null
null
sherlock.py
aggiebill/sherlock
f5a903e2d9c191e5aab58f4cfd1df14cb34b1585
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.6 """Sherlock: Find Usernames Across Social Networks Module This module contains the main logic to search for usernames at social networks. """ import requests import csv import json import os import re from argparse import ArgumentParser, RawDescriptionHelpFormatter import platform module_nam...
39.422764
152
0.553516
e50fb4a27317e4ddcda68870a1cc74e298cdcda3
3,705
py
Python
find_entity/probable_acmation.py
Mleader2/bert_music_correct
8218abe595e602436f2ace8b7e6abc743b4a49d1
[ "Apache-2.0" ]
6
2020-08-05T07:57:46.000Z
2022-03-01T08:26:43.000Z
find_entity/probable_acmation.py
Mleader2/bert_music_correct
8218abe595e602436f2ace8b7e6abc743b4a49d1
[ "Apache-2.0" ]
3
2020-11-13T19:03:58.000Z
2021-08-25T16:12:34.000Z
find_entity/probable_acmation.py
Mleader2/bert_music_correct
8218abe595e602436f2ace8b7e6abc743b4a49d1
[ "Apache-2.0" ]
4
2020-08-05T07:57:47.000Z
2022-01-29T09:20:17.000Z
# # import os from collections import defaultdict import json import re from .acmation import KeywordTree, add_to_ac, entity_files_folder, entity_folder from curLine_file import curLine, normal_transformer domain2entity_map = {} domain2entity_map["music"] = ["age", "singer", "song", "toplist", "theme", "style", "sce...
46.3125
129
0.624022
e511045dc9d1f3b8b876038d32067f643c1a8989
46,886
py
Python
scripts/merge.py
CHREC/drseus
085a4f413088606455e85f8fd83b96bf09c2f260
[ "Unlicense" ]
1
2020-06-17T02:29:22.000Z
2020-06-17T02:29:22.000Z
scripts/merge.py
CHREC/drseus
085a4f413088606455e85f8fd83b96bf09c2f260
[ "Unlicense" ]
1
2019-09-17T22:38:39.000Z
2021-03-23T14:52:51.000Z
scripts/merge.py
CHREC/drseus
085a4f413088606455e85f8fd83b96bf09c2f260
[ "Unlicense" ]
4
2019-09-17T22:42:31.000Z
2021-07-23T14:39:37.000Z
#!python/bin/python3 """ Copyright (c) 2018 NSF Center for Space, High-performance, and Resilient Computing (SHREC) University of Pittsburgh. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistribu...
57.812577
131
0.316214
e511c6ab80ef1771a595dc11f1c4f7c408d02fd1
847
py
Python
code/api/Monitor/newUser_backend.py
RandyCamacho/SeniorDesign-HomeCU
f862c453b0454838d662688fba88e95412d0229e
[ "MIT" ]
null
null
null
code/api/Monitor/newUser_backend.py
RandyCamacho/SeniorDesign-HomeCU
f862c453b0454838d662688fba88e95412d0229e
[ "MIT" ]
null
null
null
code/api/Monitor/newUser_backend.py
RandyCamacho/SeniorDesign-HomeCU
f862c453b0454838d662688fba88e95412d0229e
[ "MIT" ]
null
null
null
from django.contrib.auth.backends import BaseBackend from django.contrib.auth.hashers import check_password from .models import BsuOfficeusers
26.46875
78
0.779221
e51588ade984bdf818163d550e98e1d9bd4f9aaa
15,700
py
Python
mcts/base.py
hwangyale/AlphaGomoku
7c85a71c710fa8d114b3591e4fd27c8649caccbb
[ "MIT" ]
3
2018-10-30T07:07:40.000Z
2019-11-22T12:32:32.000Z
mcts/base.py
hwangyale/AlphaGomoku
7c85a71c710fa8d114b3591e4fd27c8649caccbb
[ "MIT" ]
null
null
null
mcts/base.py
hwangyale/AlphaGomoku
7c85a71c710fa8d114b3591e4fd27c8649caccbb
[ "MIT" ]
null
null
null
import queue import numpy as np from ..global_constants import * from ..common import * from ..utils.thread_utils import CONDITION from ..board import Board from ..cpp import CPPBoard from ..utils.zobrist_utils import get_zobrist_key, hash_history BASE_BOARD = Board(toTensor=True, visualization=False, defend=False) ...
35.440181
87
0.573631
e515a3a8ff64f6c9d96f2ad50c0c336507110814
4,820
py
Python
utils/config.py
monabf/structured_NODEs
8c06522561455aacdd4e4432bda4bd56b6edba2c
[ "MIT" ]
null
null
null
utils/config.py
monabf/structured_NODEs
8c06522561455aacdd4e4432bda4bd56b6edba2c
[ "MIT" ]
null
null
null
utils/config.py
monabf/structured_NODEs
8c06522561455aacdd4e4432bda4bd56b6edba2c
[ "MIT" ]
null
null
null
import logging import pickle import seaborn as sb import torch sb.set_style('whitegrid') # Class for efficiently handling configurations and parameters, enables to # easily set them and remember them when one config is reused # Read with config.key, set with config.update({'key': value}) or config[ # 'key'] = value ...
34.676259
80
0.550622
e515cbc12e6b519c5ba3353afb5eff45ffef4670
2,903
py
Python
Users/views.py
yaroslav-gwit/YK-Reverse-Proxy
2257bbb77df34b3623568126b9caa236676b24c8
[ "BSD-2-Clause" ]
null
null
null
Users/views.py
yaroslav-gwit/YK-Reverse-Proxy
2257bbb77df34b3623568126b9caa236676b24c8
[ "BSD-2-Clause" ]
null
null
null
Users/views.py
yaroslav-gwit/YK-Reverse-Proxy
2257bbb77df34b3623568126b9caa236676b24c8
[ "BSD-2-Clause" ]
null
null
null
from django.shortcuts import render, redirect from django.db.models import F from pathlib import Path import os from HAProxyManager import settings from Users import models as user_models from django.http import HttpResponseRedirect from django.contrib.auth.models import User as system_users # Create your views here.
35.402439
139
0.694454
e516dc00b8ae9fe3e8b9e99903e96f46b24dbaf6
189
py
Python
par ou impar.py
Azultropico/exercicios_python
02dc118d0330673a0d961b8ff48eb0acd1e81aea
[ "Apache-2.0" ]
null
null
null
par ou impar.py
Azultropico/exercicios_python
02dc118d0330673a0d961b8ff48eb0acd1e81aea
[ "Apache-2.0" ]
null
null
null
par ou impar.py
Azultropico/exercicios_python
02dc118d0330673a0d961b8ff48eb0acd1e81aea
[ "Apache-2.0" ]
null
null
null
n1 = int(input("Digite um nmero: ")) if __name__ == '__main__': if n1 % 2 == 0: print("Nmero Par") elif n1 % 2 == 1: print("Nmero mpar") else: print("Valor Invlido")
21
37
0.571429
e517a95cdcc18e8221e9ea92c1671b9454843640
610
py
Python
lunchmoney/__init__.py
Christofon/lunchmoney-python
8f55af2717bc979577debfe940941dc3627c6018
[ "MIT" ]
null
null
null
lunchmoney/__init__.py
Christofon/lunchmoney-python
8f55af2717bc979577debfe940941dc3627c6018
[ "MIT" ]
null
null
null
lunchmoney/__init__.py
Christofon/lunchmoney-python
8f55af2717bc979577debfe940941dc3627c6018
[ "MIT" ]
null
null
null
from .tags import Tags from .categories import Categories import os import requests # TODO maybe only for testing needed # LUNCHMONEY_API_KEY = os.environ.get('LUNCHMONEY_API_KEY', None) from dotenv import load_dotenv load_dotenv() LUNCHMONEY_API_KEY = os.getenv('LUNCHMONEY_API_KEY') if LUNCHMONEY_API_KEY is None: ...
24.4
104
0.770492
e51aaa4a989eb3218049b6d066a0b24def1e1dae
1,236
py
Python
global_finprint/annotation/migrations/0018_migrate_obs_to_event.py
GlobalFinPrint/global_finprint
8a91ceaaed42aaa716d8c9f27518ba673ebf351c
[ "Apache-2.0" ]
null
null
null
global_finprint/annotation/migrations/0018_migrate_obs_to_event.py
GlobalFinPrint/global_finprint
8a91ceaaed42aaa716d8c9f27518ba673ebf351c
[ "Apache-2.0" ]
6
2020-06-05T18:42:32.000Z
2022-01-13T00:48:57.000Z
global_finprint/annotation/migrations/0018_migrate_obs_to_event.py
GlobalFinPrint/global_finprint
8a91ceaaed42aaa716d8c9f27518ba673ebf351c
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from django.db import migrations
25.22449
67
0.559061
e51ba9a30cfcf3d1689280bebaa8500eccc215d9
1,978
py
Python
python-opencv-face-detection.py
mattwang137/Python-portfolio
372b0cb5362a8decb53ca1aa621a34753f825de1
[ "0BSD" ]
null
null
null
python-opencv-face-detection.py
mattwang137/Python-portfolio
372b0cb5362a8decb53ca1aa621a34753f825de1
[ "0BSD" ]
null
null
null
python-opencv-face-detection.py
mattwang137/Python-portfolio
372b0cb5362a8decb53ca1aa621a34753f825de1
[ "0BSD" ]
null
null
null
#!/usr/bin/python3 #encoding:utf-8 import numpy as np import cv2,os,dlib """ Develop Subject: python-opencv-face-detection Developer: Matt Wang Python environment: version 3.6 """ if __name__=="__main__": faceDetection()
29.522388
93
0.472194
e51cc96edee75ac656dc3e9038bb8d55a60f7d9a
907
py
Python
Queue.py
sookoor/PythonInterviewPrep
f9862511560894dba39cd06bb82996d1c9d695c6
[ "MIT" ]
null
null
null
Queue.py
sookoor/PythonInterviewPrep
f9862511560894dba39cd06bb82996d1c9d695c6
[ "MIT" ]
null
null
null
Queue.py
sookoor/PythonInterviewPrep
f9862511560894dba39cd06bb82996d1c9d695c6
[ "MIT" ]
null
null
null
if __name__ == "__main__": myQueue = Queue() for i in xrange(1, 10): myQueue.enqueue(i) while True: value = myQueue.dequeue() if value is None: exit(0) else: print(value)
23.25641
62
0.577729
e522eaf34259c88d5f3b0fcb2083eb3344cecf3f
3,925
py
Python
src/Stele/analysis/analysis_ipg/fixes/LegendSettings_ui.py
SherwinGroup/Stele
9bb7da0b406a801975e21c9f7ce05d369ae661e5
[ "MIT" ]
1
2021-06-22T19:38:32.000Z
2021-06-22T19:38:32.000Z
src/Stele/analysis/analysis_ipg/fixes/LegendSettings_ui.py
SherwinGroup/Stele
9bb7da0b406a801975e21c9f7ce05d369ae661e5
[ "MIT" ]
1
2021-08-23T20:54:25.000Z
2021-08-23T20:54:25.000Z
src/Stele/analysis/analysis_ipg/fixes/LegendSettings_ui.py
SherwinGroup/Stele
9bb7da0b406a801975e21c9f7ce05d369ae661e5
[ "MIT" ]
1
2017-08-16T21:05:46.000Z
2017-08-16T21:05:46.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'C:\Users\FELLab\Documents\GitHub\Interactivepg-waffle\interactivePG\fixes\LegendSettings.ui' # # Created by: PyQt5 UI code generator 5.6 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets fr...
53.767123
146
0.74293
e523fccfcc84e837a16106964d13dc172e1fbf92
205
py
Python
maps/bboxes.py
CharlesRethman/HEA-Baselines-ZA-2015-Oct
e8689576a8ec682af3f7714d7bfb3609eadbff19
[ "MIT" ]
null
null
null
maps/bboxes.py
CharlesRethman/HEA-Baselines-ZA-2015-Oct
e8689576a8ec682af3f7714d7bfb3609eadbff19
[ "MIT" ]
null
null
null
maps/bboxes.py
CharlesRethman/HEA-Baselines-ZA-2015-Oct
e8689576a8ec682af3f7714d7bfb3609eadbff19
[ "MIT" ]
null
null
null
l = iface.activeLayer() iter = l.getFeatures() geoms = [] for feature in iter: geom = feature.geometry() if not(geom.isMultipart()): l.boundingBox(feature.id()) geoms.append(geom)
22.777778
35
0.629268
e524d90ccc700a700708f2816a20b8927510a619
5,677
py
Python
inference/sentiment_inference.py
MiguelPeralvo/teslamonitor
7e81ec47d028e847d44183542a1bf6d2b2ce024c
[ "MIT" ]
null
null
null
inference/sentiment_inference.py
MiguelPeralvo/teslamonitor
7e81ec47d028e847d44183542a1bf6d2b2ce024c
[ "MIT" ]
null
null
null
inference/sentiment_inference.py
MiguelPeralvo/teslamonitor
7e81ec47d028e847d44183542a1bf6d2b2ce024c
[ "MIT" ]
null
null
null
import numpy as np import matplotlib import datetime matplotlib.use('TkAgg') from fastai.text import * import sys sys.excepthook = sys.__excepthook__ # See https://groups.io/g/insync/topic/13778827?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,0,13778827 import json from vaderSentiment.vaderSentiment import SentimentI...
35.04321
141
0.658094
e5258940b9d55361af93bbe4d01f5b1dd591bfcd
1,557
py
Python
h/schemas.py
ssin122/test-h
c10062ae23b690afaac0ab4af7b9a5a5e4b686a9
[ "MIT" ]
2
2021-11-07T23:14:54.000Z
2021-11-17T10:11:55.000Z
h/schemas.py
ssin122/test-h
c10062ae23b690afaac0ab4af7b9a5a5e4b686a9
[ "MIT" ]
null
null
null
h/schemas.py
ssin122/test-h
c10062ae23b690afaac0ab4af7b9a5a5e4b686a9
[ "MIT" ]
1
2017-03-12T00:18:33.000Z
2017-03-12T00:18:33.000Z
# -*- coding: utf-8 -*- """Classes for validating data passed to views.""" from __future__ import unicode_literals import copy import jsonschema from jsonschema.exceptions import best_match def _format_jsonschema_error(error): """Format a :py:class:`jsonschema.ValidationError` as a string.""" if error.pat...
29.377358
82
0.635196
e52646bd330bfa11295e34fc3b824b03dc40fe63
990
py
Python
after/app.py
littlepea/python-admin-business-logic-talk
8d020ceb175492e25cd02e5960d6e0b966017f2b
[ "MIT" ]
null
null
null
after/app.py
littlepea/python-admin-business-logic-talk
8d020ceb175492e25cd02e5960d6e0b966017f2b
[ "MIT" ]
null
null
null
after/app.py
littlepea/python-admin-business-logic-talk
8d020ceb175492e25cd02e5960d6e0b966017f2b
[ "MIT" ]
null
null
null
import urllib2 import json from aqi import Station from cache import cache API_BASE = 'https://api.openaq.org/v1/latest'
20.625
56
0.643434
e528a6317e03a90a0e3909067889b9df15608bff
118
py
Python
week1/1.12 tasks of the week/step02 interval.py
project-cemetery/stepik-programming-on-python
3ca4e6a74b9ca5deb50336737fe2e6d74722a95f
[ "MIT" ]
7
2020-08-03T22:10:29.000Z
2022-02-23T16:08:44.000Z
week1/1.12 tasks of the week/step02 interval.py
Joni2701/stepik-programming-on-python
3ca4e6a74b9ca5deb50336737fe2e6d74722a95f
[ "MIT" ]
null
null
null
week1/1.12 tasks of the week/step02 interval.py
Joni2701/stepik-programming-on-python
3ca4e6a74b9ca5deb50336737fe2e6d74722a95f
[ "MIT" ]
9
2020-05-19T16:42:39.000Z
2022-02-24T22:41:21.000Z
print(is_in_interval(int(input())))
19.666667
56
0.576271
e528f36636abf4be68ce9568fa0dd123c98079eb
1,759
py
Python
index/urls.py
Zeble1603/cv-django
329d8d471c92dc0ce5f4bfb2bb5212fc1c8c34b4
[ "MIT" ]
1
2021-10-19T21:22:38.000Z
2021-10-19T21:22:38.000Z
index/urls.py
Zeble1603/cv-django
329d8d471c92dc0ce5f4bfb2bb5212fc1c8c34b4
[ "MIT" ]
null
null
null
index/urls.py
Zeble1603/cv-django
329d8d471c92dc0ce5f4bfb2bb5212fc1c8c34b4
[ "MIT" ]
null
null
null
"""cv URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based view...
43.975
88
0.702103
e5297e53e73b4294c7ccbcefe66f4dbbeb267371
116
py
Python
mp1/assignment1/models/__init__.py
syfrankie/DS498-DL
b92a97156215f25d887435df20b556c45f1dd70e
[ "MIT" ]
null
null
null
mp1/assignment1/models/__init__.py
syfrankie/DS498-DL
b92a97156215f25d887435df20b556c45f1dd70e
[ "MIT" ]
null
null
null
mp1/assignment1/models/__init__.py
syfrankie/DS498-DL
b92a97156215f25d887435df20b556c45f1dd70e
[ "MIT" ]
1
2021-02-23T03:34:07.000Z
2021-02-23T03:34:07.000Z
from models.SVM import * from models.Perceptron import * from models.Softmax import * from models.Logistic import *
23.2
31
0.793103
e52a791dd7cf06539d84f8c0ef6bb28561fd022f
2,417
py
Python
lib/sysusage.py
Tormir/Beats
b1556c762725a50ac7a5acc9b993bc344bd669b3
[ "Apache-2.0" ]
null
null
null
lib/sysusage.py
Tormir/Beats
b1556c762725a50ac7a5acc9b993bc344bd669b3
[ "Apache-2.0" ]
null
null
null
lib/sysusage.py
Tormir/Beats
b1556c762725a50ac7a5acc9b993bc344bd669b3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3.6 import os, subprocess, json, argparse if __name__ == '__main__': Linux()
60.425
157
0.386016
e52c5ee52170299fb274be7b8f2275c6c731e728
377
py
Python
24.py
arvinddoraiswamy/LearnPython
f731a7390a0d335640c23a1e76fa1eb6887b6894
[ "MIT" ]
10
2015-02-05T04:46:25.000Z
2020-12-17T21:11:36.000Z
24.py
arvinddoraiswamy/LearnPython
f731a7390a0d335640c23a1e76fa1eb6887b6894
[ "MIT" ]
null
null
null
24.py
arvinddoraiswamy/LearnPython
f731a7390a0d335640c23a1e76fa1eb6887b6894
[ "MIT" ]
12
2015-05-23T08:55:54.000Z
2020-09-04T15:47:59.000Z
import configparser config = configparser.ConfigParser() print("Read the file") config.read("config_24.txt") print("\n") print("Once you read you get the data in and can play with it") l1 = config.sections() print(config[l1[0]]['User']) print("\n") print("To access the DEFAULT section, do it directly - it won't show u...
29
87
0.718833