hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
aedb08eaa770e83a1aeb002b521f83da5390d75b
4,571
py
Python
launch/g325_g365_launch.py
cubicleguy/imu_ros2_uart
9e3eaa60b004981e8c35d1a12a91bbf9e410402b
[ "Unlicense", "BSD-3-Clause" ]
null
null
null
launch/g325_g365_launch.py
cubicleguy/imu_ros2_uart
9e3eaa60b004981e8c35d1a12a91bbf9e410402b
[ "Unlicense", "BSD-3-Clause" ]
null
null
null
launch/g325_g365_launch.py
cubicleguy/imu_ros2_uart
9e3eaa60b004981e8c35d1a12a91bbf9e410402b
[ "Unlicense", "BSD-3-Clause" ]
null
null
null
"""Launch file for Epson G325/G365 imu_node for epson_imu_uart_ros2 ROS2 package""" from launch import LaunchDescription import launch_ros.actions from launch.substitutions import LaunchConfiguration from launch.actions import DeclareLaunchArgument def generate_launch_description(): return LaunchDescription([ ...
45.71
165
0.532706
001e2ce83aeb202160a1f1ce7b013429abc6c971
5,904
py
Python
BlogApp/models.py
n3trob3/nimrodage
578eb14e2e8f7dc7ae58913b6131fd60c1596c0b
[ "Apache-2.0" ]
null
null
null
BlogApp/models.py
n3trob3/nimrodage
578eb14e2e8f7dc7ae58913b6131fd60c1596c0b
[ "Apache-2.0" ]
null
null
null
BlogApp/models.py
n3trob3/nimrodage
578eb14e2e8f7dc7ae58913b6131fd60c1596c0b
[ "Apache-2.0" ]
null
null
null
from django.conf import settings from django.contrib.auth import get_user_model from django.contrib.sites.shortcuts import get_current_site from django.core.mail import send_mail, send_mass_mail from django.db import models from django.db.models.signals import post_save, pre_save from django.dispatch import recei...
32.618785
99
0.730522
bac0e18ad0d11367448e52d4248fbaebafa9a85d
376
py
Python
TorchTSA/model/ARModel.py
ailzy/TorchTSA
b4baba635048a8dbb66eee33f2ae0f2bc8b24141
[ "MIT" ]
6
2018-01-03T07:31:12.000Z
2018-03-06T07:02:17.000Z
TorchTSA/model/ARModel.py
ppaanngggg/TorchTSA
1badc7dbb077e63cc6148c8bf5c6a88232f56dc1
[ "MIT" ]
null
null
null
TorchTSA/model/ARModel.py
ppaanngggg/TorchTSA
1badc7dbb077e63cc6148c8bf5c6a88232f56dc1
[ "MIT" ]
2
2018-03-06T06:57:05.000Z
2018-03-09T16:33:51.000Z
from TorchTSA.model.ARMAModel import ARMAModel class ARModel(ARMAModel): def __init__( self, _phi_num: int = 1, _use_mu: bool = True ): super().__init__( _phi_num=_phi_num, _theta_num=0, _use_mu=_use_mu ) def getThetas(self): ...
20.888889
57
0.569149
9534ec78ef9c64f3b4948c8c26a04efb729354e2
759
py
Python
tools/c7n_traildb/setup.py
al3pht/cloud-custodian
ce6613d1b716f336384c5e308eee300389e6bf50
[ "Apache-2.0" ]
2,415
2018-12-04T00:37:58.000Z
2022-03-31T12:28:56.000Z
tools/c7n_traildb/setup.py
al3pht/cloud-custodian
ce6613d1b716f336384c5e308eee300389e6bf50
[ "Apache-2.0" ]
3,272
2018-12-03T23:58:17.000Z
2022-03-31T21:15:32.000Z
tools/c7n_traildb/setup.py
lfranchini31/cloud-custodian
1830fe4b9a59ff6afb675985c9ea531571616a76
[ "Apache-2.0" ]
773
2018-12-06T09:43:23.000Z
2022-03-30T20:44:43.000Z
# Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 from setuptools import setup setup( name="c7n_traildb", version='0.1', description="Cloud Custodian - Cloud Trail Tools", classifiers=[ "Topic :: System :: Systems Administration", "Topic :: System :: Distri...
30.36
64
0.635046
a651e3f570a53446e3f901dbf42bfb0648d7d25b
561
py
Python
setup.py
wookayin/toy-montezuma-pycolab
4de753e8b00d96968782ba0f1dbd89be7291d81f
[ "Apache-2.0" ]
7
2019-02-01T01:41:33.000Z
2021-12-03T13:05:18.000Z
setup.py
wookayin/toy-montezuma-pycolab
4de753e8b00d96968782ba0f1dbd89be7291d81f
[ "Apache-2.0" ]
1
2021-08-02T08:13:33.000Z
2021-08-02T08:13:33.000Z
setup.py
wookayin/toy-montezuma-pycolab
4de753e8b00d96968782ba0f1dbd89be7291d81f
[ "Apache-2.0" ]
3
2019-04-15T14:57:27.000Z
2021-07-30T23:35:51.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import setuptools setuptools.setup( name='mr_pycolab', version='1.0', description='A Toy Montezuma\'s Revenge Environment written in pycolab.', url='https://github.com/wookayin/montezuma-pycol...
22.44
77
0.672014
bf8af9d2a2d0167cf39a2edc68b2b085be2c5299
3,943
py
Python
src/Project 3/mail/mail/migrations/0001_initial.py
aminbeigi/CS50W-Projects
905f53b1ebf057340114c2ca0283bcac64a16609
[ "MIT" ]
null
null
null
src/Project 3/mail/mail/migrations/0001_initial.py
aminbeigi/CS50W-Projects
905f53b1ebf057340114c2ca0283bcac64a16609
[ "MIT" ]
null
null
null
src/Project 3/mail/mail/migrations/0001_initial.py
aminbeigi/CS50W-Projects
905f53b1ebf057340114c2ca0283bcac64a16609
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2021-01-17 02:13 from django.conf import settings import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initi...
64.639344
330
0.64494
843ebd26b6404b20d25d5b43aaa8e3ec46042317
21,503
py
Python
TelegramForwarder/Source/telethon/tl/types/help.py
Invectys/TelegramBots
658eaae2d23a476b9407e6db6f3e1be57c5e7465
[ "MIT" ]
null
null
null
TelegramForwarder/Source/telethon/tl/types/help.py
Invectys/TelegramBots
658eaae2d23a476b9407e6db6f3e1be57c5e7465
[ "MIT" ]
null
null
null
TelegramForwarder/Source/telethon/tl/types/help.py
Invectys/TelegramBots
658eaae2d23a476b9407e6db6f3e1be57c5e7465
[ "MIT" ]
null
null
null
"""File generated by TLObjects' generator. All changes will be ERASED""" from ...tl.tlobject import TLObject from typing import Optional, List, Union, TYPE_CHECKING import os import struct from datetime import datetime if TYPE_CHECKING: from ...tl.types import TypeAccessPointRule, TypeChat, TypeDataJSON, TypeDocume...
32.09403
221
0.596614
75ce77b90abbfb3dd5a478279ecab683ee1ccadb
993
py
Python
283_move_zeros.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
2
2018-04-24T19:17:40.000Z
2018-04-24T19:33:52.000Z
283_move_zeros.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
null
null
null
283_move_zeros.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
3
2020-06-17T05:48:52.000Z
2021-01-02T06:08:25.000Z
# 283. Move Zeroes # Given an array nums, write a function to move all 0's to the end of it # while maintaining the relative order of the non-zero elements. # For example, given nums = [0, 1, 0, 3, 12], # after calling your function, nums should be [1, 3, 12, 0, 0]. class Solution(object): # http://bookshadow.c...
27.583333
74
0.584089
d27a0e44a047441cf1a8aa8579fb7a56bd1e44fd
4,032
py
Python
addons/Helper.py
EmreTech/EmreTech-Bot
55fe998509d3547f9b6eedc263a91c7016ce52a3
[ "MIT" ]
null
null
null
addons/Helper.py
EmreTech/EmreTech-Bot
55fe998509d3547f9b6eedc263a91c7016ce52a3
[ "MIT" ]
1
2021-04-26T01:02:12.000Z
2021-05-07T20:16:43.000Z
addons/Helper.py
EmreTech/EmreTech-Bot
55fe998509d3547f9b6eedc263a91c7016ce52a3
[ "MIT" ]
null
null
null
import discord import functools import hashlib, hmac import urllib.request import urllib.parse import json from datetime import datetime from discord.ext import commands """ Some useful utilities for other addons (cogs) of the bot. """ # A hash list for verification hashes = ["sha1", "sha256", "sha512"] def restrict...
33.04918
134
0.62252
2fe0d0c808c824d900654929d793f6876aabbdc0
12,713
py
Python
tests/custom_object_test.py
rsepassi/jax
33348b10f8e826c6ad25cb7055b5a351849777fb
[ "Apache-2.0" ]
1
2020-12-07T14:55:41.000Z
2020-12-07T14:55:41.000Z
tests/custom_object_test.py
rsepassi/jax
33348b10f8e826c6ad25cb7055b5a351849777fb
[ "Apache-2.0" ]
6
2022-01-03T00:41:33.000Z
2022-02-14T00:33:48.000Z
tests/custom_object_test.py
rsepassi/jax
33348b10f8e826c6ad25cb7055b5a351849777fb
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # 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 agreed to in writing, ...
32.266497
87
0.728467
0a36166acee6000c5205a5262139e69bd1dd5269
3,622
py
Python
Code/odooerp/odoo-8.0/openerp/tools/func.py
zhupangithub/WEBERP
714512082ec5c6db07cbf6af0238ceefe2d2c1a5
[ "MIT" ]
1
2019-12-29T11:53:56.000Z
2019-12-29T11:53:56.000Z
odoo/openerp/tools/func.py
tuanquanghpvn/odoo8-tutorial
52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e
[ "MIT" ]
null
null
null
odoo/openerp/tools/func.py
tuanquanghpvn/odoo8-tutorial
52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e
[ "MIT" ]
3
2020-10-08T14:42:10.000Z
2022-01-28T14:12:29.000Z
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). # Copyright (C) 2010, 2014 OpenERP s.a. (<http://openerp.com>). # # This program is free software: you c...
31.495652
79
0.587797
2938f55bc765e10c87a35f031352b863523936ff
1,235
py
Python
python/functional/functional.py
L1ttl3S1st3r/MyLittleProjects
a932ab3229bc2b7515bf4fd98cbe7895f9273281
[ "Apache-2.0" ]
null
null
null
python/functional/functional.py
L1ttl3S1st3r/MyLittleProjects
a932ab3229bc2b7515bf4fd98cbe7895f9273281
[ "Apache-2.0" ]
null
null
null
python/functional/functional.py
L1ttl3S1st3r/MyLittleProjects
a932ab3229bc2b7515bf4fd98cbe7895f9273281
[ "Apache-2.0" ]
null
null
null
""" functional programming on Python example: check if string is a palendrome dependencies: pyfpm for pattern matching python 3.7.1 author: L1ttl3S1st3r 4/14/2019 """ from pyfpm.matcher import Matcher import typing class IncorrectArgException(ValueError): pass # watch a descriptions in pyfmp docs is_p...
20.583333
73
0.625101
3c3854b7acf825b230515b1bebb6f14f091e9ec1
99
py
Python
server/apps/sertificates/apps.py
Alexandr-Belchev/testblank
eabec9348fcb38dd6a6cfb9219404cbe7a4e327d
[ "MIT" ]
null
null
null
server/apps/sertificates/apps.py
Alexandr-Belchev/testblank
eabec9348fcb38dd6a6cfb9219404cbe7a4e327d
[ "MIT" ]
11
2020-02-11T23:53:15.000Z
2022-03-11T23:49:19.000Z
server/apps/sertificates/apps.py
Alexandr-Belchev/testblank
eabec9348fcb38dd6a6cfb9219404cbe7a4e327d
[ "MIT" ]
null
null
null
from django.apps import AppConfig class SertificatesConfig(AppConfig): name = 'sertificates'
16.5
36
0.777778
fc49f95d237b9a81bf6cca4dd5c6e534677c9ce0
3,611
py
Python
qulab/Driver/drivers/DSA875.py
feihoo87/QuLab
cc16f4777e5523fca327f7f0a9725fd13f9b057f
[ "MIT" ]
16
2018-03-16T12:08:31.000Z
2022-03-20T08:53:35.000Z
qulab/Driver/drivers/DSA875.py
feihoo87/QuLab
cc16f4777e5523fca327f7f0a9725fd13f9b057f
[ "MIT" ]
148
2018-03-18T09:33:18.000Z
2022-03-21T16:00:15.000Z
qulab/Driver/drivers/DSA875.py
feihoo87/QuLab
cc16f4777e5523fca327f7f0a9725fd13f9b057f
[ "MIT" ]
14
2018-03-18T08:00:12.000Z
2020-10-21T12:39:42.000Z
import re import time import numpy as np import logging log = logging.getLogger(__name__) from qulab.Driver import visaDriver, QInteger, QOption, QReal class Driver(visaDriver): __log__=log error_command = ':SYST:ERR?' support_models = ['DSA875'] quants = [ QOption('Sweep', v...
35.058252
73
0.514262
8430d552d1736de305c07974e83e06cce7222134
1,097
py
Python
sfcbackend/sfc/transferobjects/shipment.py
sfcol/sfc-backend
33695a4a6faba6f22916e34d0e2033b8d6039f8b
[ "Apache-2.0" ]
1
2020-11-02T10:55:34.000Z
2020-11-02T10:55:34.000Z
sfcbackend/sfc/transferobjects/shipment.py
sfcol/sfc-backend
33695a4a6faba6f22916e34d0e2033b8d6039f8b
[ "Apache-2.0" ]
null
null
null
sfcbackend/sfc/transferobjects/shipment.py
sfcol/sfc-backend
33695a4a6faba6f22916e34d0e2033b8d6039f8b
[ "Apache-2.0" ]
1
2020-11-20T20:56:40.000Z
2020-11-20T20:56:40.000Z
''' Module with data model for the shipment ''' from .orderdata import ShippedItem class CreateShipmentData: ''' Class for definition of shipments ''' def __init__(self): self.sending_user_id : int = 0 self.receiving_user_id : int = 0 self.shipped_item : ShippedItem = None ...
26.119048
47
0.616226
42abb69a0eb87796d54b7b271182277164d8ca29
164
py
Python
python/Python-Quick-Start/exceptions.py
pepincho/playground
9202a3dab880ff789e5fb96b259c3e0c2503cb49
[ "MIT" ]
null
null
null
python/Python-Quick-Start/exceptions.py
pepincho/playground
9202a3dab880ff789e5fb96b259c3e0c2503cb49
[ "MIT" ]
null
null
null
python/Python-Quick-Start/exceptions.py
pepincho/playground
9202a3dab880ff789e5fb96b259c3e0c2503cb49
[ "MIT" ]
null
null
null
try: fh = open('xlines.txt') for line in fh.readlines(): print(line) except IOError as e: print("something bad happend ({})".format(e)) print("after badness")
20.5
46
0.676829
8957a5c0f74c33ecf88e6805e53b42e62ff42a44
27,284
py
Python
src/utils.py
RahulPatkiWork/covid-vaccine-booking-main
4472f631e28169e99775f1576ca2e575419f03e5
[ "MIT" ]
null
null
null
src/utils.py
RahulPatkiWork/covid-vaccine-booking-main
4472f631e28169e99775f1576ca2e575419f03e5
[ "MIT" ]
2
2021-05-31T13:02:51.000Z
2021-06-01T18:34:15.000Z
src/utils.py
RahulPatkiWork/covid-vaccine-booking-main
4472f631e28169e99775f1576ca2e575419f03e5
[ "MIT" ]
null
null
null
import json from hashlib import sha256 from inputimeout import inputimeout, TimeoutOccurred import tabulate, copy, time, datetime, requests, sys, os, random from captcha import captcha_builder BOOKING_URL = "https://cdn-api.co-vin.in/api/v2/appointment/schedule" BENEFICIARIES_URL = "https://cdn-api.co-vin.in/api/v2/ap...
38.755682
164
0.562784
e7a3ad9ff35c51f3d2b85fbe5f39509abf2f844b
117
py
Python
test.py
fanieblesat/proyectoMintic
18e25caf4a077a67c0e83d82757dfdc167ef61f6
[ "MIT" ]
null
null
null
test.py
fanieblesat/proyectoMintic
18e25caf4a077a67c0e83d82757dfdc167ef61f6
[ "MIT" ]
null
null
null
test.py
fanieblesat/proyectoMintic
18e25caf4a077a67c0e83d82757dfdc167ef61f6
[ "MIT" ]
null
null
null
from db import get_db, close_db app.app_context(app=db) close_db() db=get_db() db.execute('SELECT * FROM user')
19.5
33
0.717949
22616b8f01d1a9e3eb9e82698342969fb14a1756
2,142
py
Python
pyrsss/gnss/fetch.py
grawe/pyrsss
31fd88734b00f814e7aaa5829c4ac49c7bf53563
[ "MIT" ]
7
2016-12-27T08:00:54.000Z
2021-12-16T06:55:16.000Z
pyrsss/gnss/fetch.py
grawe/pyrsss
31fd88734b00f814e7aaa5829c4ac49c7bf53563
[ "MIT" ]
1
2017-01-31T20:36:08.000Z
2017-01-31T20:36:08.000Z
pyrsss/gnss/fetch.py
grawe/pyrsss
31fd88734b00f814e7aaa5829c4ac49c7bf53563
[ "MIT" ]
6
2016-04-08T16:25:14.000Z
2021-05-02T12:05:16.000Z
import logging import os from ftplib import FTP from contextlib import closing from collections import defaultdict from ..util.path import touch_path, decompress logger = logging.getLogger('pyrsss.gps.fetch') TEMPLATE_MAP = {'CORS': {'obs': ('geodesy.noaa.gov', '/cors/rinex/{date:%...
38.945455
100
0.500934
2b7b9e699369b1ed797b05949d56f49be9554a53
2,403
py
Python
test/integration/069_build_test/test_build.py
jankytara2/dbt
3f4069ab6d4d5b3fc34f8fe785761b5617357b0f
[ "Apache-2.0" ]
null
null
null
test/integration/069_build_test/test_build.py
jankytara2/dbt
3f4069ab6d4d5b3fc34f8fe785761b5617357b0f
[ "Apache-2.0" ]
null
null
null
test/integration/069_build_test/test_build.py
jankytara2/dbt
3f4069ab6d4d5b3fc34f8fe785761b5617357b0f
[ "Apache-2.0" ]
null
null
null
from test.integration.base import DBTIntegrationTest, use_profile import yaml class TestBuildBase(DBTIntegrationTest): @property def schema(self): return "build_test_069" @property def project_config(self): return { "config-version": 2, "snapshot-paths": ["snap...
29.304878
75
0.62963
b38dbdcc54959f07bad0d0ca997a29c7677fbf79
8,818
py
Python
qtconsole/comms.py
opencor/qtconsole
a8c6c23aeaad7d4295d9d37117dd7e7a76a5d1bf
[ "BSD-3-Clause" ]
1
2020-03-06T14:29:12.000Z
2020-03-06T14:29:12.000Z
qtconsole/comms.py
opencor/qtconsole
a8c6c23aeaad7d4295d9d37117dd7e7a76a5d1bf
[ "BSD-3-Clause" ]
3
2020-03-24T17:46:11.000Z
2021-08-23T20:23:16.000Z
qtconsole/comms.py
opencor/qtconsole
a8c6c23aeaad7d4295d9d37117dd7e7a76a5d1bf
[ "BSD-3-Clause" ]
null
null
null
""" Based on https://github.com/jupyter/notebook/blob/master/notebook/static/services/kernels/comm.js https://github.com/ipython/ipykernel/blob/master/ipykernel/comm/manager.py https://github.com/ipython/ipykernel/blob/master/ipykernel/comm/comm.py Which are distributed under the terms of the Modified BSD License. ""...
32.538745
88
0.614198
8e36d7924298a95778cd8dfe12a8cacf74187cbd
3,666
py
Python
Client/migrations/0001_initial.py
shubh242/E-Learning-App
07320b1f1aba31602c3056398ffae16f2fa6f9ae
[ "MIT" ]
null
null
null
Client/migrations/0001_initial.py
shubh242/E-Learning-App
07320b1f1aba31602c3056398ffae16f2fa6f9ae
[ "MIT" ]
null
null
null
Client/migrations/0001_initial.py
shubh242/E-Learning-App
07320b1f1aba31602c3056398ffae16f2fa6f9ae
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-09 17:24 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...
41.191011
114
0.564648
b8121d9c90c9226f8ae90dbf5743b9e5b92b0ba1
7,907
py
Python
beetsplug/mbsync.py
seldridge/beets
7438cd50f63cd69a409d9bd00faf6d932872e205
[ "MIT" ]
null
null
null
beetsplug/mbsync.py
seldridge/beets
7438cd50f63cd69a409d9bd00faf6d932872e205
[ "MIT" ]
null
null
null
beetsplug/mbsync.py
seldridge/beets
7438cd50f63cd69a409d9bd00faf6d932872e205
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # This file is part of beets. # Copyright 2016, Jakob Schnitzer. # # 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 ...
40.757732
79
0.558113
371de2e602f00d055d4533452593978717501d99
411
py
Python
modeltuts/wsgi.py
anandkumar190/django-code
c47fbc5f55f7d5961c29a0e65047573013c995dc
[ "MIT" ]
null
null
null
modeltuts/wsgi.py
anandkumar190/django-code
c47fbc5f55f7d5961c29a0e65047573013c995dc
[ "MIT" ]
null
null
null
modeltuts/wsgi.py
anandkumar190/django-code
c47fbc5f55f7d5961c29a0e65047573013c995dc
[ "MIT" ]
1
2020-10-05T04:46:11.000Z
2020-10-05T04:46:11.000Z
""" WSGI config for modeltuts project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefaul...
24.176471
79
0.756691
223ba88f801c7f5470c818744abdad85c95e335e
5,051
py
Python
src/ggrc/migrations/versions/20190227080937_7769fdc16fef_migrate_html_to_markdown_for_controls.py
MikalaiMikalalai/ggrc-core
f0f83b3638574bb64de474f3b70ed27436ca812a
[ "ECL-2.0", "Apache-2.0" ]
1
2019-01-12T23:46:00.000Z
2019-01-12T23:46:00.000Z
src/ggrc/migrations/versions/20190227080937_7769fdc16fef_migrate_html_to_markdown_for_controls.py
MikalaiMikalalai/ggrc-core
f0f83b3638574bb64de474f3b70ed27436ca812a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc/migrations/versions/20190227080937_7769fdc16fef_migrate_html_to_markdown_for_controls.py
MikalaiMikalalai/ggrc-core
f0f83b3638574bb64de474f3b70ed27436ca812a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2020 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """ Migrate html to markdown for controls Create Date: 2019-02-27 08:09:37.653576 """ # disable Invalid constant name pylint warning for mandatory Alembic variables. # pylint: disable=invalid-name import d...
32.587097
79
0.682637
942a8918c1433312d16377e471de191068819297
2,061
py
Python
tests/emmet-api/molecules/test_query_operators.py
acrutt/emmet
e98100c9932f145a3ad3087ddb7aa9b779d9a191
[ "BSD-3-Clause-LBNL" ]
null
null
null
tests/emmet-api/molecules/test_query_operators.py
acrutt/emmet
e98100c9932f145a3ad3087ddb7aa9b779d9a191
[ "BSD-3-Clause-LBNL" ]
null
null
null
tests/emmet-api/molecules/test_query_operators.py
acrutt/emmet
e98100c9932f145a3ad3087ddb7aa9b779d9a191
[ "BSD-3-Clause-LBNL" ]
null
null
null
from monty.tempfile import ScratchDir from monty.serialization import loadfn, dumpfn from emmet.api.routes.molecules.query_operators import ( MoleculeBaseQuery, MoleculeElementsQuery, MoleculeFormulaQuery, ) def test_molecule_elements_query(): op = MoleculeElementsQuery() assert op.query(element...
24.535714
82
0.522077
0fe59a72bba28e6aef09121aeca9fb9122c71bc2
4,471
py
Python
huaweicloud-sdk-live/huaweicloudsdklive/v1/model/delete_domain_mapping_request.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2021-11-03T07:54:50.000Z
2021-11-03T07:54:50.000Z
huaweicloud-sdk-live/huaweicloudsdklive/v1/model/delete_domain_mapping_request.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-live/huaweicloudsdklive/v1/model/delete_domain_mapping_request.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import pprint import re import six class DeleteDomainMappingRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and t...
27.429448
87
0.595169
def2efd504df59f64af7afe556b533a31241d742
971
py
Python
setup.py
harunpehlivan/ParlAI
e1f2942feb8f158964477f4a46bc2c4c741b2ccd
[ "MIT" ]
1
2019-07-24T00:19:28.000Z
2019-07-24T00:19:28.000Z
setup.py
baffipelo/ParlAI
e1f2942feb8f158964477f4a46bc2c4c741b2ccd
[ "MIT" ]
null
null
null
setup.py
baffipelo/ParlAI
e1f2942feb8f158964477f4a46bc2c4c741b2ccd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from setuptools import setup, find_packages import sys if sys.version_info < (3, 6): sys.exit('Sorry, Python >=3.6...
25.552632
74
0.666323
d6cfcb701c52c05a89eb0a3bd7426f51ff46fddb
150
py
Python
test.py
csningli/Project
340c436ea5037508707464788b7a99a681ba6b92
[ "MIT" ]
null
null
null
test.py
csningli/Project
340c436ea5037508707464788b7a99a681ba6b92
[ "MIT" ]
null
null
null
test.py
csningli/Project
340c436ea5037508707464788b7a99a681ba6b92
[ "MIT" ]
null
null
null
if __name__ == "__main__" : import sys sys.path.append('./py/') import doctest doctest.testfile('./tests/tests.txt', verbose = True)
21.428571
57
0.626667
a0376f9beb26ddd5c569fd0db51d45dcfb052924
6,883
py
Python
venv/lib/python3.6/site-packages/ansible_collections/cisco/ucs/plugins/modules/ucs_vlans.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
10
2020-05-19T01:51:28.000Z
2021-11-16T11:36:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/cisco/ucs/plugins/modules/ucs_vlans.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
19
2020-03-04T15:35:26.000Z
2022-03-31T04:35:19.000Z
venv/lib/python3.6/site-packages/ansible_collections/cisco/ucs/plugins/modules/ucs_vlans.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
9
2019-12-03T15:20:02.000Z
2021-06-18T18:08:39.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], ...
35.663212
159
0.623856
adeb5a44f076b065b5bc7dee5af37784d1291029
906
py
Python
src/preproc/spatial.py
erramuzpe/ruber
cf510a4cf9b0b15d870b6506a1593c3b2b00a3b7
[ "MIT" ]
2
2018-11-07T07:54:34.000Z
2022-01-13T13:06:06.000Z
src/preproc/spatial.py
erramuzpe/ruber
cf510a4cf9b0b15d870b6506a1593c3b2b00a3b7
[ "MIT" ]
null
null
null
src/preproc/spatial.py
erramuzpe/ruber
cf510a4cf9b0b15d870b6506a1593c3b2b00a3b7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Function utilities to deal with spatial/coordinates problems in the nifti images. """ def get_bounding_box(in_file): """ Retrieve the bounding box of a volume in millimetres.""" # the imports must be inside if you want them to work in a nipype.Function node. from itertools imp...
32.357143
84
0.652318
444f8d90fa075fe913765b260d32d68f5087be4d
396
py
Python
networks/abstracts.py
jinPrelude/simple-es
759f3f70e641463a785a7275ba16c9db72fb29bf
[ "Apache-2.0" ]
10
2020-08-16T11:43:23.000Z
2022-01-21T23:21:52.000Z
networks/abstracts.py
jinPrelude/simple-es
759f3f70e641463a785a7275ba16c9db72fb29bf
[ "Apache-2.0" ]
2
2021-03-25T09:22:21.000Z
2021-06-24T09:55:28.000Z
networks/abstracts.py
jinPrelude/give-life-to-agents
ebf7d89a05a8e820759a0cf80adcc9499c8425d8
[ "Apache-2.0" ]
2
2021-08-10T14:26:55.000Z
2021-09-27T20:57:48.000Z
from abc import * from torch import nn class BaseNetwork(nn.Module): def __init__(self): super(BaseNetwork, self).__init__() @abstractmethod def zero_init(self): pass @abstractmethod def reset(self): pass @abstractmethod def get_param_list(self): pass ...
15.84
43
0.628788
d00d5ba33eb7b11ee8a80e32a40c15b77c336783
4,190
py
Python
cloudkitty/tests/samples.py
mail2nsrajesh/cloudkitty
efb35ee3a0857ba0b0b3ae4154809a6c1d186a98
[ "Apache-2.0" ]
null
null
null
cloudkitty/tests/samples.py
mail2nsrajesh/cloudkitty
efb35ee3a0857ba0b0b3ae4154809a6c1d186a98
[ "Apache-2.0" ]
null
null
null
cloudkitty/tests/samples.py
mail2nsrajesh/cloudkitty
efb35ee3a0857ba0b0b3ae4154809a6c1d186a98
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2015 Objectif Libre # # 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 ...
32.230769
78
0.635561
fd06abed6b0e6bf59eb4162553674e8d2d7dff23
1,586
py
Python
tests/integration/api/v2010/account/test_validation_request.py
neetaramaswamy/twilio-python
28472ffab1a170824ba17f12a6c1692a5e849439
[ "MIT" ]
null
null
null
tests/integration/api/v2010/account/test_validation_request.py
neetaramaswamy/twilio-python
28472ffab1a170824ba17f12a6c1692a5e849439
[ "MIT" ]
null
null
null
tests/integration/api/v2010/account/test_validation_request.py
neetaramaswamy/twilio-python
28472ffab1a170824ba17f12a6c1692a5e849439
[ "MIT" ]
null
null
null
# coding=utf-8 """ This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from tests import IntegrationTestCase from tests.holodeck import Request from twilio.base.exceptions import TwilioException from twilio.http.response import Response class ValidationRequestTestCase(...
31.72
115
0.602144
fa41e96e03dcef4f8b789d9af41df79866afb384
1,021
py
Python
dev/Gems/CloudGemFramework/v1/AWS/resource-manager-code/test/mock_swagger_json_navigator.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
1,738
2017-09-21T10:59:12.000Z
2022-03-31T21:05:46.000Z
dev/Gems/CloudGemFramework/v1/AWS/resource-manager-code/test/mock_swagger_json_navigator.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
427
2017-09-29T22:54:36.000Z
2022-02-15T19:26:50.000Z
dev/Gems/CloudGemFramework/v1/AWS/resource-manager-code/test/mock_swagger_json_navigator.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
671
2017-09-21T08:04:01.000Z
2022-03-29T14:30:07.000Z
# # All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or # its licensors. # # For complete copyright and license terms please see the LICENSE at the root of this # distribution (the "License"). All use of this software is governed by the License, # or, if provided, by the license below or th...
34.033333
91
0.742409
7ea8c38221ca87e9eb1d8680db7ab7c8fd888813
31
py
Python
sk_dsp_comm/pyaudio_helper/__init__.py
scikit-dsp-comm/pyaudio_helper
475d73906089bcac71d884cd21407b519c1375af
[ "BSD-2-Clause" ]
null
null
null
sk_dsp_comm/pyaudio_helper/__init__.py
scikit-dsp-comm/pyaudio_helper
475d73906089bcac71d884cd21407b519c1375af
[ "BSD-2-Clause" ]
7
2020-03-21T17:06:13.000Z
2022-01-11T00:52:25.000Z
sk_dsp_comm/pyaudio_helper/__init__.py
scikit-dsp-comm/pyaudio_helper
475d73906089bcac71d884cd21407b519c1375af
[ "BSD-2-Clause" ]
2
2020-07-13T05:42:53.000Z
2020-12-28T03:36:53.000Z
from . pyaudio_helper import *
15.5
30
0.774194
8c10113e7571b670585d39f779b00778bd4dd97a
12,594
py
Python
pyroller/pyroller.py
Trebek/pyroller
4a72b86c616b5d0420bd98366b19facea061718b
[ "MIT" ]
1
2016-06-26T20:10:49.000Z
2016-06-26T20:10:49.000Z
pyroller/pyroller.py
Trebek/pyroller
4a72b86c616b5d0420bd98366b19facea061718b
[ "MIT" ]
null
null
null
pyroller/pyroller.py
Trebek/pyroller
4a72b86c616b5d0420bd98366b19facea061718b
[ "MIT" ]
null
null
null
#=============================================================================== # PyRoller: Dice Package #------------------------------------------------------------------------------- # Version: 1.1.0 # Updated: 22-06-2014 # Author: Alex Crawford # License: MIT #======================================================...
31.019704
80
0.514848
dbcf79d1ac20ddc32cb1605e06d253803250c855
5,605
py
Python
mmdet/core/post_processing/merge_augs.py
evgps/mmdetection_trashcan
aaf4237c2c0d473425cdc7b741d3009177b79751
[ "Apache-2.0" ]
367
2022-01-14T03:32:25.000Z
2022-03-31T04:48:20.000Z
mmdet/core/post_processing/merge_augs.py
evgps/mmdetection_trashcan
aaf4237c2c0d473425cdc7b741d3009177b79751
[ "Apache-2.0" ]
39
2021-08-05T07:16:46.000Z
2022-03-14T13:23:48.000Z
mmdet/core/post_processing/merge_augs.py
evgps/mmdetection_trashcan
aaf4237c2c0d473425cdc7b741d3009177b79751
[ "Apache-2.0" ]
61
2021-07-30T07:51:41.000Z
2022-03-30T14:40:02.000Z
import copy import warnings import numpy as np import torch from mmcv import ConfigDict from mmcv.ops import nms from ..bbox import bbox_mapping_back def merge_aug_proposals(aug_proposals, img_metas, cfg): """Merge augmented proposals (multiscale, flip, etc.) Args: aug_proposals (list[Tensor]): pro...
37.119205
78
0.608385
a4d74b00cec41da1487cbc80cdb2cd47f4466970
882
py
Python
backend/solution/models.py
pixlie/buildgaga
723bc9a114b3040a5c4d0b1d1b384f174f65b084
[ "MIT" ]
1
2021-06-19T04:12:24.000Z
2021-06-19T04:12:24.000Z
backend/solution/models.py
pixlie/buildgaga
723bc9a114b3040a5c4d0b1d1b384f174f65b084
[ "MIT" ]
4
2021-03-10T15:20:52.000Z
2022-02-27T03:22:01.000Z
backend/solution/models.py
pixlie/buildgaga
723bc9a114b3040a5c4d0b1d1b384f174f65b084
[ "MIT" ]
null
null
null
from sqlalchemy import Table, Column, Integer, String, ForeignKey, UniqueConstraint from utils import metadata solution = Table( "solution", metadata, Column("id", Integer, primary_key=True), Column("organization_fk", Integer, ForeignKey("organization.id"), nullable=True), Column("label", Strin...
28.451613
85
0.707483
80238c5f6f7a29c54e017dd27fb2eae698fb4bd7
343
py
Python
example.py
JZF07/testing_example
ab830b9d2d5a09718b952b6ddc77e1f11a74572a
[ "MIT" ]
null
null
null
example.py
JZF07/testing_example
ab830b9d2d5a09718b952b6ddc77e1f11a74572a
[ "MIT" ]
1
2022-03-31T08:21:57.000Z
2022-03-31T08:29:02.000Z
example.py
JZF07/testing_example
ab830b9d2d5a09718b952b6ddc77e1f11a74572a
[ "MIT" ]
null
null
null
def add(a, b): return a + b def test_add(): assert add(2, 3) == 5 assert add('space', 'ship') == 'spaceship' def subtract(a, b): return a - b # <--- fix this in step 7 def test_subtract(): assert subtract(2, 3) == -1 # uncomment the following test in step 5 #def test_subtract(): # asser...
15.590909
46
0.580175
d9825652ba2c53667b2a2b24e4fd6b584b19b4a0
937
py
Python
tests/unit/test_licenses.py
butsyk/github3.py
72fa5125fce75c916733839963554765c907e9e7
[ "BSD-3-Clause" ]
1
2019-04-23T07:16:07.000Z
2019-04-23T07:16:07.000Z
tests/unit/test_licenses.py
butsyk/github3.py
72fa5125fce75c916733839963554765c907e9e7
[ "BSD-3-Clause" ]
4
2020-10-19T13:02:37.000Z
2020-10-25T19:01:25.000Z
tests/unit/test_licenses.py
butsyk/github3.py
72fa5125fce75c916733839963554765c907e9e7
[ "BSD-3-Clause" ]
1
2020-03-06T06:30:51.000Z
2020-03-06T06:30:51.000Z
from .helper import UnitHelper from .helper import create_example_data_helper from .helper import create_url_helper import github3 get_example_data = create_example_data_helper("license_example") url_for = create_url_helper("https://api.github.com/licenses/mit") class TestLicenses(UnitHelper): """Unit tests aro...
27.558824
66
0.641409
1428f3851235400e32b2c8a4d46eaef619337c08
9,848
py
Python
text/text_navigation.py
schwafe/knausj_talon
5da73a646f1e1c764be6ecab5bc280fee48ce8d5
[ "MIT" ]
null
null
null
text/text_navigation.py
schwafe/knausj_talon
5da73a646f1e1c764be6ecab5bc280fee48ce8d5
[ "MIT" ]
1
2022-03-26T15:27:18.000Z
2022-03-26T15:27:18.000Z
text/text_navigation.py
schwafe/knausj_talon
5da73a646f1e1c764be6ecab5bc280fee48ce8d5
[ "MIT" ]
null
null
null
import re from talon import ctrl, ui, Module, Context, actions, clip import itertools from typing import Union ctx = Context() mod = Module() text_navigation_max_line_search = mod.setting( "text_navigation_max_line_search", type=int, default=10, desc="the maximum number of rows that will be included ...
33.383051
165
0.658611
979c66822b499aa49dfebcdb6e639dc70966fae6
1,662
py
Python
model/third_party/HMNet/Utils/distributed.py
NickSchoelkopf/SummerTime
9a89aab8e1544e3c52c043b9c47ab325e665e11e
[ "Apache-2.0" ]
178
2021-07-07T23:46:20.000Z
2022-03-26T17:47:21.000Z
model/third_party/HMNet/Utils/distributed.py
NickSchoelkopf/SummerTime
9a89aab8e1544e3c52c043b9c47ab325e665e11e
[ "Apache-2.0" ]
77
2021-06-18T21:44:53.000Z
2022-02-20T00:23:06.000Z
model/third_party/HMNet/Utils/distributed.py
NickSchoelkopf/SummerTime
9a89aab8e1544e3c52c043b9c47ab325e665e11e
[ "Apache-2.0" ]
19
2021-06-18T22:24:47.000Z
2022-03-16T12:53:50.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import os import torch def distributed(opt, is_nocuda): cluster = opt["cluster"] world_size = 1 local_size = 1 rank = 0 local_rank = 0 is_master = True run = None if is_nocuda or not torch.cuda.is_available(): ...
36.130435
97
0.62515
ee9a4d80a2eac92564e45a3983a0397c0d35ecb8
7,195
py
Python
src/preprocessing.py
suvarna-m/DSCI_522_Group313
c27ea76f9ac0d41dc3e632691232ee8a2f5a7a9f
[ "MIT" ]
null
null
null
src/preprocessing.py
suvarna-m/DSCI_522_Group313
c27ea76f9ac0d41dc3e632691232ee8a2f5a7a9f
[ "MIT" ]
32
2020-01-16T22:27:24.000Z
2020-02-13T01:55:21.000Z
src/preprocessing.py
suvarna-m/DSCI_522_Group313
c27ea76f9ac0d41dc3e632691232ee8a2f5a7a9f
[ "MIT" ]
10
2020-01-16T00:35:46.000Z
2020-02-12T22:45:07.000Z
# authors: Suvarna Moharir, Jaekeun Lee, Chimaobi Amadi # date: 2020.01.24 ''' This script reads in the data, drops blank columns, cleans missing data, and then splits the data into testing and training sets Usage: preprocessing.py [--quebec_path=<quebec_path> --store_path=<store_path>] Options: --quebec_path=<quebec...
69.854369
1,073
0.757331
2bcb0f1a67b48782a0584ce7f90fddcf58695398
770
py
Python
core/manager/celeryManager.py
umknow/python
6fc4ad43bf0886c49b807c203ca485a15056c97c
[ "BSD-2-Clause" ]
null
null
null
core/manager/celeryManager.py
umknow/python
6fc4ad43bf0886c49b807c203ca485a15056c97c
[ "BSD-2-Clause" ]
null
null
null
core/manager/celeryManager.py
umknow/python
6fc4ad43bf0886c49b807c203ca485a15056c97c
[ "BSD-2-Clause" ]
null
null
null
# -*- coding=utf-8 -*- # datetime: 2019/4/10 13:27 """ celery连接管理器包 """ from quotations.conf import config from celery import Celery from celery import platforms platforms.C_FORCE_ROOT = True class CeleryManager: def __new__(cls, *args, **kwargs): if not hasattr(cls, '_instance'): cls._i...
21.388889
74
0.675325
0b5407e273b4a2f3a51a205cfe18f4900b8f601a
1,376
py
Python
samples/drawing.py
neumond/minpiler
2e37a9e0854383d3974af38e1cb2da0ecb8e2108
[ "MIT" ]
23
2020-12-20T03:39:30.000Z
2022-03-23T15:47:10.000Z
samples/drawing.py
neumond/minpiler
2e37a9e0854383d3974af38e1cb2da0ecb8e2108
[ "MIT" ]
15
2020-12-21T01:12:22.000Z
2021-04-19T10:40:11.000Z
samples/drawing.py
neumond/minpiler
2e37a9e0854383d3974af38e1cb2da0ecb8e2108
[ "MIT" ]
2
2022-02-12T19:19:50.000Z
2022-02-12T21:33:35.000Z
from minpiler.typeshed import ( M, switch1, display1, setup, time, ) # large display is 176 x 176 dsize = 176 M.draw.clear(0, 0, 0) M.draw.stroke(5) M.draw.color(255, 0, 0, 255) def posvel(pos, vel): pos += vel if pos < 0: pos = 0 vel = M.abs(vel) if pos > dsize: pos ...
21.169231
73
0.593023
731c233f3697c93fbd1eec9c1f7823f628799fda
2,603
py
Python
validation/emulation/experiments/topo.p4app/util/plot_tcpprobe.py
nerds-ufes/G-PolKA
9c6bd42167bc333f6421a751c93a88c00841def9
[ "Apache-2.0", "MIT" ]
2
2022-02-09T15:17:50.000Z
2022-02-17T15:50:45.000Z
dctcp-assignment/util/plot_tcpprobe.py
warjazz/DCTCP
ee30e6418c1be7469de30ebe71066fcbaba64508
[ "Unlicense" ]
1
2022-03-04T03:51:28.000Z
2022-03-04T07:25:24.000Z
dctcp-assignment/util/plot_tcpprobe.py
warjazz/DCTCP
ee30e6418c1be7469de30ebe71066fcbaba64508
[ "Unlicense" ]
null
null
null
from helper import * from collections import defaultdict import argparse parser = argparse.ArgumentParser() parser.add_argument('-p', '--port', dest="port", default='5001') parser.add_argument('-f', dest="files", nargs='+', required=True) parser.add_argument('-o', '--out', dest="out", default=None) parser.add_argument...
25.271845
91
0.61698
adb47f55be19890195629a028c26ff21d566c615
8,425
py
Python
deepchem/models/tensorgraph/tests/test_tensor_graph.py
hssinejihene/deepchem-1.1.0
6efbe6b638b77bb2685ac617f4d6649755c01335
[ "MIT" ]
null
null
null
deepchem/models/tensorgraph/tests/test_tensor_graph.py
hssinejihene/deepchem-1.1.0
6efbe6b638b77bb2685ac617f4d6649755c01335
[ "MIT" ]
null
null
null
deepchem/models/tensorgraph/tests/test_tensor_graph.py
hssinejihene/deepchem-1.1.0
6efbe6b638b77bb2685ac617f4d6649755c01335
[ "MIT" ]
null
null
null
import unittest import numpy as np import os from nose.tools import assert_true import deepchem as dc from deepchem.data import NumpyDataset from deepchem.data.datasets import Databag from deepchem.models.tensorgraph.layers import Dense, SoftMaxCrossEntropy, ReduceMean, SoftMax from deepchem.models.tensorgraph.layers...
33.565737
94
0.684392
5c389f863fe08e12186a0d4b0150d16df728afd8
1,531
py
Python
dm_control/mujoco/wrapper/mjbindings/__init__.py
wpumacay/dm_control
e13b6941470cd6be618b0cc004b8ea20d69429fe
[ "Apache-2.0" ]
1
2019-05-29T15:49:15.000Z
2019-05-29T15:49:15.000Z
dm_control/mujoco/wrapper/mjbindings/__init__.py
wpumacay/dm_control
e13b6941470cd6be618b0cc004b8ea20d69429fe
[ "Apache-2.0" ]
null
null
null
dm_control/mujoco/wrapper/mjbindings/__init__.py
wpumacay/dm_control
e13b6941470cd6be618b0cc004b8ea20d69429fe
[ "Apache-2.0" ]
1
2021-01-24T20:28:15.000Z
2021-01-24T20:28:15.000Z
# Copyright 2017 The dm_control Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
40.289474
78
0.74853
ee7450a634050eb7c69e5b5271ae43adfa687f50
2,460
py
Python
superset/data/random_time_series.py
franksam007/incubator-superset
a0f572eb3ea4b89cb435a8af20436f8e1d34814e
[ "Apache-2.0" ]
108
2018-01-22T11:09:59.000Z
2021-01-15T10:53:04.000Z
superset/data/random_time_series.py
franksam007/incubator-superset
a0f572eb3ea4b89cb435a8af20436f8e1d34814e
[ "Apache-2.0" ]
112
2018-01-25T22:57:21.000Z
2019-08-22T20:08:48.000Z
superset/data/random_time_series.py
franksam007/incubator-superset
a0f572eb3ea4b89cb435a8af20436f8e1d34814e
[ "Apache-2.0" ]
24
2018-01-19T22:54:39.000Z
2020-11-12T13:04:25.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...
30
82
0.663821
323ee7fbb9e9162e86e3a322a1e4e03177303977
7,868
py
Python
userbot/modules/fban.py
Wiki28/WikixCilik
a7e8d684e34174001af3e69d1f00de4e98243abe
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/fban.py
Wiki28/WikixCilik
a7e8d684e34174001af3e69d1f00de4e98243abe
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/fban.py
Wiki28/WikixCilik
a7e8d684e34174001af3e69d1f00de4e98243abe
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# Copyright (C) 2020 KenHV from sqlalchemy.exc import IntegrityError from userbot import CMD_HELP, bot from userbot.events import cilik_cmd fban_replies = [ "New FedBan", "Starting a federation ban", "Start a federation ban", "FedBan Reason update", "FedBan reason updated", "has already been ...
32.378601
171
0.608414
b8d8661a9f9ce2eba63f6ebf24f1fc21e837449d
3,774
py
Python
third_party/cython/src/Cython/Compiler/AnalysedTreeTransforms.py
domenic/mojo
53dda76fed90a47c35ed6e06baf833a0d44495b8
[ "BSD-3-Clause" ]
8
2016-02-08T11:59:31.000Z
2020-05-31T15:19:54.000Z
third_party/cython/src/Cython/Compiler/AnalysedTreeTransforms.py
domenic/mojo
53dda76fed90a47c35ed6e06baf833a0d44495b8
[ "BSD-3-Clause" ]
1
2018-02-10T21:00:08.000Z
2018-03-20T05:09:50.000Z
third_party/cython/src/Cython/Compiler/AnalysedTreeTransforms.py
domenic/mojo
53dda76fed90a47c35ed6e06baf833a0d44495b8
[ "BSD-3-Clause" ]
7
2016-02-09T09:28:14.000Z
2020-07-25T19:03:36.000Z
from Visitor import ScopeTrackingTransform from Nodes import StatListNode, SingleAssignmentNode, CFuncDefNode, DefNode from ExprNodes import DictNode, DictItemNode, NameNode, UnicodeNode from PyrexTypes import py_object_type from StringEncoding import EncodedString import Symtab class AutoTestDictTransform(ScopeTracki...
38.510204
98
0.586116
8ae697048f501380b6905f26a29155bee96068c2
1,817
py
Python
homeassistant/components/notify/mysensors.py
jamescurtin/home-assistant
6a9968ccb9b0082f5629e50955549d432aba7d90
[ "Apache-2.0" ]
2
2020-02-20T18:47:55.000Z
2021-11-09T11:33:28.000Z
homeassistant/components/notify/mysensors.py
moose51789/home-assistant
63c9d59d5455850fd4b37c2475fe6f10effb5245
[ "Apache-2.0" ]
5
2022-03-01T06:31:03.000Z
2022-03-31T07:20:45.000Z
homeassistant/components/notify/mysensors.py
moose51789/home-assistant
63c9d59d5455850fd4b37c2475fe6f10effb5245
[ "Apache-2.0" ]
3
2018-08-27T10:08:30.000Z
2020-07-04T10:07:03.000Z
""" MySensors notification service. For more details about this platform, please refer to the documentation https://home-assistant.io/components/notify.mysensors/ """ from homeassistant.components import mysensors from homeassistant.components.notify import ( ATTR_TARGET, DOMAIN, BaseNotificationService) def get...
34.283019
78
0.694001
a2bde8f584941e6a4fe1fd9cd158eb874a3b6a31
8,461
py
Python
04_streaming/transform/df07.py
silverstar0727/data-science-on-gcp
ddceb2f708fcbdde96aa215df316a44f6fc2b333
[ "ECL-2.0", "Apache-2.0" ]
1
2022-01-02T15:54:02.000Z
2022-01-02T15:54:02.000Z
04_streaming/transform/df07.py
silverstar0727/data-science-on-gcp
ddceb2f708fcbdde96aa215df316a44f6fc2b333
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
04_streaming/transform/df07.py
silverstar0727/data-science-on-gcp
ddceb2f708fcbdde96aa215df316a44f6fc2b333
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2016 Google 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 o...
41.679803
114
0.631249
08a3f4c3187a7eefa079c1a5a89f733de96738de
696
py
Python
module/admin.py
wilmerm/unolet-2022
18119a9381b763e38c888bafdb7f97028bd80ea1
[ "BSD-3-Clause" ]
null
null
null
module/admin.py
wilmerm/unolet-2022
18119a9381b763e38c888bafdb7f97028bd80ea1
[ "BSD-3-Clause" ]
null
null
null
module/admin.py
wilmerm/unolet-2022
18119a9381b763e38c888bafdb7f97028bd80ea1
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from django.utils.html import format_html, html_safe from module.models import Module @admin.register(Module) class ModuleAdmin(admin.ModelAdmin): list_display = ("get_icon", "get_name", "description", "url_name", "get_parent") list_display_links = ("get_icon", "get_name") ...
30.26087
97
0.66523
30ac7d5ea4cd4360093903ce958dfc402c0221d1
2,171
py
Python
cartography/intel/aws/resources.py
anshubansal2000/cartography
f72f5b66104311f7149c3fca416dd09e8cf99edc
[ "Apache-2.0" ]
null
null
null
cartography/intel/aws/resources.py
anshubansal2000/cartography
f72f5b66104311f7149c3fca416dd09e8cf99edc
[ "Apache-2.0" ]
null
null
null
cartography/intel/aws/resources.py
anshubansal2000/cartography
f72f5b66104311f7149c3fca416dd09e8cf99edc
[ "Apache-2.0" ]
null
null
null
from typing import Dict from . import apigateway from . import dynamodb from . import ecr from . import eks from . import elasticache from . import elasticsearch from . import emr from . import iam from . import kms from . import lambda_function from . import permission_relationships from . import rds from . import re...
33.921875
65
0.773376
024f71e6ea6b0a294a92ed9dd1099b7739da5746
3,493
py
Python
ingestion/src/metadata/generated/schema/entity/tags/tagCategory.py
inspire99/OpenMetadata
a650aea59a41ab48a9e203af091ae13a1fdf46c2
[ "Apache-2.0" ]
null
null
null
ingestion/src/metadata/generated/schema/entity/tags/tagCategory.py
inspire99/OpenMetadata
a650aea59a41ab48a9e203af091ae13a1fdf46c2
[ "Apache-2.0" ]
null
null
null
ingestion/src/metadata/generated/schema/entity/tags/tagCategory.py
inspire99/OpenMetadata
a650aea59a41ab48a9e203af091ae13a1fdf46c2
[ "Apache-2.0" ]
null
null
null
# generated by datamodel-codegen: # filename: schema/entity/tags/tagCategory.json # timestamp: 2021-10-31T21:55:34+00:00 from __future__ import annotations from enum import Enum from typing import List, Optional from pydantic import BaseModel, Extra, Field, constr from ...type import basic, entityHistory cla...
37.55914
384
0.693387
ca507e57c6912f6fea60015f7f8f3e5be26a5f5f
12,410
py
Python
code/python/FactSetPrices/v1/fds/sdk/FactSetPrices/model/fixed_ids.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/FactSetPrices/v1/fds/sdk/FactSetPrices/model/fixed_ids.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/FactSetPrices/v1/fds/sdk/FactSetPrices/model/fixed_ids.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" FactSet Prices API Gain access to comprehensive global coverage for Equities & Fixed Income. Perform quick analytics by controlling the date ranges, currencies, and rolling periods, or simply request Open, High, Low, and Close prices. Easily connect pricing data with other core company data or alternative ...
43.697183
856
0.574698
104018fe8d04373da8f24b0dd1ae4f50c7909148
672
py
Python
P1: Mad Libs Generator.py
Nishi-16-K/Python-Projects
e1f38a4b38fa359d036575124f6ca8e3a3d11f4f
[ "MIT" ]
1
2021-05-18T10:38:58.000Z
2021-05-18T10:38:58.000Z
P1: Mad Libs Generator.py
Nishi-16-K/Python-Projects
e1f38a4b38fa359d036575124f6ca8e3a3d11f4f
[ "MIT" ]
null
null
null
P1: Mad Libs Generator.py
Nishi-16-K/Python-Projects
e1f38a4b38fa359d036575124f6ca8e3a3d11f4f
[ "MIT" ]
null
null
null
loop = 1 while (loop < 10): place = input("Choose a place: ") adjective = input("Choose a adjective: ") adjective2 = input("Choose a adjective2: ") name = input("Write a name: ") print ("------------------------------------------") print ("I love to visit",place,"Dude! it's so freakin...
35.368421
98
0.540179
02edb4d3b78b4e160f207541a4ee0a5a7b1bc6a4
738
py
Python
_projects/project1py.py
M-Sender/cmps3160
54546d307f913b35caa45efe6c5528dadb8055f2
[ "MIT" ]
null
null
null
_projects/project1py.py
M-Sender/cmps3160
54546d307f913b35caa45efe6c5528dadb8055f2
[ "MIT" ]
null
null
null
_projects/project1py.py
M-Sender/cmps3160
54546d307f913b35caa45efe6c5528dadb8055f2
[ "MIT" ]
null
null
null
import pandas as pd import bs4 from bs4 import BeautifulSoup import requests #2 url = "https://www.spaceweatherlive.com/en/solar-activity/top-50-solar-flares" webpage = requests.get(url) print(webpage) #response 403, this means that the webserver refused to authorize the request #to fix do this headers = {'User-Agent':...
41
148
0.768293
e692562a0e06d5e12b8bb4406cd749d3b53dd370
4,093
py
Python
sdk/ml/azure-ai-ml/azure/ai/ml/_local_endpoints/endpoint_stub.py
dubiety/azure-sdk-for-python
62ffa839f5d753594cf0fe63668f454a9d87a346
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/ml/azure-ai-ml/azure/ai/ml/_local_endpoints/endpoint_stub.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
sdk/ml/azure-ai-ml/azure/ai/ml/_local_endpoints/endpoint_stub.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- import json import shutil from pathlib import Path from azure.ai.ml.entities import OnlineEndpoint from typing import Iterable from azure....
40.524752
161
0.679208
9d5266d0a8b2f1baa002b20187931163bd8fedb0
6,206
py
Python
chc/cmdline/c_project/chc_project_dashboard.py
Databean/CodeHawk-C
98720753beb51e0bf5105f8f6838618292fbf55c
[ "MIT" ]
10
2020-08-17T15:35:55.000Z
2022-03-23T14:39:57.000Z
chc/cmdline/c_project/chc_project_dashboard.py
kestreltechnology/CodeHawk-C
db0fa92fa630cd919f29021d464533f0e7170fed
[ "MIT" ]
31
2020-07-17T05:45:43.000Z
2021-05-29T04:49:49.000Z
chc/cmdline/c_project/chc_project_dashboard.py
kestreltechnology/CodeHawk-C
db0fa92fa630cd919f29021d464533f0e7170fed
[ "MIT" ]
3
2020-06-13T05:32:34.000Z
2021-09-16T02:31:39.000Z
# ------------------------------------------------------------------------------ # CodeHawk C Analyzer # Author: Henny Sipma # ------------------------------------------------------------------------------ # The MIT License (MIT) # # Copyright (c) 2017-2020 Kestrel Technology LLC # # Permission is hereby granted, free ...
35.872832
83
0.545601
e211a226fec6324b8e9c9d60fe78624d2b85322e
8,513
py
Python
detectron2_ofa/modeling/roi_heads/mask_head.py
qdmy/Adelaidet-Quantization
e88cf41c62dc3944d2bd57ffc1d365535b0a1c4b
[ "Apache-2.0" ]
null
null
null
detectron2_ofa/modeling/roi_heads/mask_head.py
qdmy/Adelaidet-Quantization
e88cf41c62dc3944d2bd57ffc1d365535b0a1c4b
[ "Apache-2.0" ]
null
null
null
detectron2_ofa/modeling/roi_heads/mask_head.py
qdmy/Adelaidet-Quantization
e88cf41c62dc3944d2bd57ffc1d365535b0a1c4b
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import fvcore.nn.weight_init as weight_init import torch from torch import nn from torch.nn import functional as F from detectron2_ofa.layers import Conv2d, ConvTranspose2d, ShapeSpec, cat, get_norm from detectron2_ofa.utils.events import get_event...
41.125604
100
0.675555
288ac75dd8de7e972d02e57716cf3160b11c238f
680
py
Python
workrate/dto/settings.py
happyharbor/working_condition
95683c566fdef441f3966c09ae5ca6a342e98d7f
[ "Apache-2.0" ]
null
null
null
workrate/dto/settings.py
happyharbor/working_condition
95683c566fdef441f3966c09ae5ca6a342e98d7f
[ "Apache-2.0" ]
1
2021-07-25T15:04:25.000Z
2021-07-25T15:04:25.000Z
workrate/dto/settings.py
happyharbor/working_condition
95683c566fdef441f3966c09ae5ca6a342e98d7f
[ "Apache-2.0" ]
1
2021-07-21T11:50:09.000Z
2021-07-21T11:50:09.000Z
from dataclasses import dataclass from operator import attrgetter from workrate.dto.work_setting import WorkSetting @dataclass class Settings: """Class for keeping the settings.""" work_settings: list[WorkSetting] min_temperature: float max_temperature: float def __min(self) -> float: re...
28.333333
85
0.719118
e9a9827574fc5ee4239de3b0c60e4814099dcc86
614
py
Python
wsgi.py
jkom-cloud/python-demo
5c584eaf9e63dc48f858b979758e0b58cd1e2d4c
[ "MIT" ]
null
null
null
wsgi.py
jkom-cloud/python-demo
5c584eaf9e63dc48f858b979758e0b58cd1e2d4c
[ "MIT" ]
null
null
null
wsgi.py
jkom-cloud/python-demo
5c584eaf9e63dc48f858b979758e0b58cd1e2d4c
[ "MIT" ]
null
null
null
import time import datetime from flask import Flask from flask import jsonify from lib import fib app = Flask(__name__) @app.route('/') def index(): """Welcome page""" now = datetime.datetime.now().isoformat() return jsonify(message='Hello World!!', ts=now) @app.route('/ping/') def ping(): """pin...
19.1875
67
0.618893
0ca10492f99fdc5ccbb1957483fd2f2374ff698f
5,734
py
Python
lib/detect/protos/pipeline_pb2.py
nhattruongpham/ALPR_SSD_CTPN_LPRNet
b20bf84f1ecc56252da37c25d08a0b7d7e10477c
[ "MIT" ]
null
null
null
lib/detect/protos/pipeline_pb2.py
nhattruongpham/ALPR_SSD_CTPN_LPRNet
b20bf84f1ecc56252da37c25d08a0b7d7e10477c
[ "MIT" ]
null
null
null
lib/detect/protos/pipeline_pb2.py
nhattruongpham/ALPR_SSD_CTPN_LPRNet
b20bf84f1ecc56252da37c25d08a0b7d7e10477c
[ "MIT" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: object_detection/protos/pipeline.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf im...
53.092593
767
0.812871
d9f0dd3035b71f36b60b70cd37976c8a4dcbf3bb
247
py
Python
kepler/pandas/__init__.py
micaelverissimo/kepler
5db55aa39d7e65f460f533dfd91ca6e5fdb3076a
[ "MIT" ]
1
2021-11-20T22:45:13.000Z
2021-11-20T22:45:13.000Z
kepler/pandas/__init__.py
micaelverissimo/kepler
5db55aa39d7e65f460f533dfd91ca6e5fdb3076a
[ "MIT" ]
null
null
null
kepler/pandas/__init__.py
micaelverissimo/kepler
5db55aa39d7e65f460f533dfd91ca6e5fdb3076a
[ "MIT" ]
2
2021-10-05T22:35:11.000Z
2021-11-20T22:45:18.000Z
__all__ = [] from . import decorators __all__.extend(decorators.__all__) from .decorators import * from . import readers __all__.extend(readers.__all__) from .readers import * from . import menu __all__.extend(menu.__all__) from .menu import *
17.642857
34
0.769231
8c9d4a7bbe3566064146d3b49c91731573c7a72d
607
py
Python
src/you_get/extractor/cbs.py
codepongo/you-get
23c45107f534dde9a80127913dd4b65fe026fad7
[ "MIT" ]
1
2021-09-20T02:54:36.000Z
2021-09-20T02:54:36.000Z
src/you_get/extractors/cbs.py
piyipaya/you-get
ef16e74fe72e7779a0b10af56f435cb2558d90c7
[ "MIT" ]
null
null
null
src/you_get/extractors/cbs.py
piyipaya/you-get
ef16e74fe72e7779a0b10af56f435cb2558d90c7
[ "MIT" ]
null
null
null
#!/usr/bin/env python __all__ = ['cbs_download'] from ..common import * from .theplatform import theplatform_download_by_pid def cbs_download(url, output_dir='.', merge=True, info_only=False): """Downloads CBS videos by URL. """ html = get_content(url) pid = match1(html, r'video\.settings\.pid\s*=\...
27.590909
100
0.688633
0898d27a3f96b92a7ce7ba8e8f9dd58452abfea6
956
py
Python
setup.py
dipteshkumar/perceptron_pypi
d80eb40483a82f2edcdd221d820a8e65fe067e71
[ "MIT" ]
null
null
null
setup.py
dipteshkumar/perceptron_pypi
d80eb40483a82f2edcdd221d820a8e65fe067e71
[ "MIT" ]
null
null
null
setup.py
dipteshkumar/perceptron_pypi
d80eb40483a82f2edcdd221d820a8e65fe067e71
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() PROJECT_NAME = "perceptron_pypi" USER_NAME = "diptesh_km" setuptools.setup( name=f"{PROJECT_NAME}-{USER_NAME}", version="0.0.1", author=USER_NAME, author_email="diptesh.km@gmail.com", descripti...
28.969697
79
0.646444
f5adda2cc3b1351a55c07c709faae5a7c631dbf9
2,204
py
Python
scibert/dataset_readers/classification_dataset_reader.py
CodenameSource/scibert
2a9d2991a7f17198f51f71dd48f20af5dcc78e19
[ "Apache-2.0" ]
null
null
null
scibert/dataset_readers/classification_dataset_reader.py
CodenameSource/scibert
2a9d2991a7f17198f51f71dd48f20af5dcc78e19
[ "Apache-2.0" ]
null
null
null
scibert/dataset_readers/classification_dataset_reader.py
CodenameSource/scibert
2a9d2991a7f17198f51f71dd48f20af5dcc78e19
[ "Apache-2.0" ]
null
null
null
""" Data reader for AllenNLP """ from typing import Dict, List, Any import logging import jsonlines from overrides import overrides from allennlp.data.dataset_readers.dataset_reader import DatasetReader from allennlp.data.fields import LabelField, TextField, MultiLabelField, ListField, ArrayField, MetadataField from...
36.131148
109
0.644283
5843a19987db02bf79996219ed6526f190a4785f
12,551
py
Python
server.py
mattochal/demo_fsl_public
f806c7b9d51559014275f854c8d4cbbed6825817
[ "MIT" ]
4
2021-03-17T18:09:47.000Z
2021-04-22T10:18:55.000Z
server.py
mattochal/demo_fsl_public
f806c7b9d51559014275f854c8d4cbbed6825817
[ "MIT" ]
null
null
null
server.py
mattochal/demo_fsl_public
f806c7b9d51559014275f854c8d4cbbed6825817
[ "MIT" ]
1
2021-04-09T03:59:58.000Z
2021-04-09T03:59:58.000Z
import argparse import time import socket import pickle import struct import pprint import copy import pdb import tqdm import json import os,sys,inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.join(os.path.dirname(currentdir),'src') sys.path.insert(0,p...
39.718354
132
0.587125
724e91ba3586fb80eeead31acb599aaf1b9bcef3
865
py
Python
app.py
tnniras/StockAdvisor
55c23361c468abf2cbffc263277d5a734011264f
[ "MIT" ]
null
null
null
app.py
tnniras/StockAdvisor
55c23361c468abf2cbffc263277d5a734011264f
[ "MIT" ]
null
null
null
app.py
tnniras/StockAdvisor
55c23361c468abf2cbffc263277d5a734011264f
[ "MIT" ]
null
null
null
#!/usr/bin/python #=================================================================================== # Author : Tushar Niras, Amol Morbale # Email : tnniras@gmail.com # Information : this class is defined to make CRUD operations easy. #==================================================================================...
26.212121
84
0.569942
32704bd5b348674be3ea3682e8065c20fd719a52
3,719
py
Python
libqtile/widget/net.py
jrazik/qtile
9af8e75c59827c437606a5fd752cdbcea5d0029f
[ "MIT" ]
null
null
null
libqtile/widget/net.py
jrazik/qtile
9af8e75c59827c437606a5fd752cdbcea5d0029f
[ "MIT" ]
null
null
null
libqtile/widget/net.py
jrazik/qtile
9af8e75c59827c437606a5fd752cdbcea5d0029f
[ "MIT" ]
null
null
null
# Copyright (c) 2014 Rock Neurotiko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, dist...
35.759615
114
0.595321
18a1cdf4f3aa1cb357e2553c0b7928317381092b
5,237
py
Python
lib/nltk/tokenize/sexpr.py
sreejithb/cows_and_bulls
1c411e788432cfb73bcaefd16823414425677652
[ "Apache-2.0" ]
101
2016-11-04T06:11:22.000Z
2021-12-16T14:45:36.000Z
lib/nltk/tokenize/sexpr.py
sreejithb/cows_and_bulls
1c411e788432cfb73bcaefd16823414425677652
[ "Apache-2.0" ]
386
2016-09-26T08:40:46.000Z
2022-01-04T11:51:38.000Z
lib/nltk/tokenize/sexpr.py
sreejithb/cows_and_bulls
1c411e788432cfb73bcaefd16823414425677652
[ "Apache-2.0" ]
29
2016-10-13T13:34:51.000Z
2021-12-16T14:44:53.000Z
# Natural Language Toolkit: Tokenizers # # Copyright (C) 2001-2016 NLTK Project # Author: Yoav Goldberg <yoavg@cs.bgu.ac.il> # Steven Bird <stevenbird1@gmail.com> (minor edits) # URL: <http://nltk.sourceforge.net> # For license information, see LICENSE.TXT """ S-Expression Tokenizer ``SExprTokenizer`` is used...
36.622378
88
0.605308
533821c16a3a4e39005ed2d44d9abf24cb864d1a
1,706
py
Python
third_party/protobuf/python/google/protobuf/__init__.py
Comran/SpartanBalloon2016
54eff7ca04339849b827d35cac361f9109da12e5
[ "BSD-2-Clause" ]
17
2017-08-04T15:41:05.000Z
2020-10-16T18:02:41.000Z
third_party/protobuf/python/google/protobuf/__init__.py
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
3
2017-08-04T23:37:37.000Z
2017-08-04T23:38:34.000Z
third_party/protobuf/python/google/protobuf/__init__.py
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
10
2016-02-25T08:08:09.000Z
2021-10-21T12:40:33.000Z
# Protocol Buffers - Google's data interchange format # Copyright 2008 Google Inc. All rights reserved. # https://developers.google.com/protocol-buffers/ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redi...
50.176471
72
0.78136
133aa9b90362ba9582204b08abeb421a0515353f
316
py
Python
kattis/alphabetanimals.py
terror/Solutions
1ad33daec95b565a38ac4730261593bcf249ac86
[ "CC0-1.0" ]
2
2020-08-01T22:53:32.000Z
2020-08-31T22:45:35.000Z
kattis/alphabetanimals.py
terror/Solutions
1ad33daec95b565a38ac4730261593bcf249ac86
[ "CC0-1.0" ]
null
null
null
kattis/alphabetanimals.py
terror/Solutions
1ad33daec95b565a38ac4730261593bcf249ac86
[ "CC0-1.0" ]
null
null
null
s, d, p = input()[-1], {i: 0 for i in list("abcdefghijklmnopqrstuvwxyz")}, [] for i in range(int(input())): t = input() d[t[0]] = 1 if t[0] == s: p.append(t) if not p: print("?") exit() for i in p: if not d[i[-1]] or (s == p[0][-1] and len(p) == 1): print("{}!".format(i)) exit() print(p[0])
17.555556
77
0.493671
c90b6c460982e89400aecfb83a696604b15d7d70
1,669
py
Python
src/backend/partaj/users/admin.py
MTES-MCT/partaj
0025c17a96d9212430d18ec36f6a2474c4609738
[ "MIT" ]
2
2020-10-15T11:28:26.000Z
2021-06-25T15:24:33.000Z
src/backend/partaj/users/admin.py
MTES-MCT/partaj
0025c17a96d9212430d18ec36f6a2474c4609738
[ "MIT" ]
7
2020-10-01T14:49:51.000Z
2022-01-24T09:44:10.000Z
src/backend/partaj/users/admin.py
MTES-MCT/partaj
0025c17a96d9212430d18ec36f6a2474c4609738
[ "MIT" ]
3
2020-03-18T15:53:26.000Z
2021-09-16T14:39:27.000Z
""" Admin of the `users` app of the Partaj project. """ from django.contrib import admin from django.utils.translation import gettext_lazy as _ from impersonate.admin import UserAdminImpersonateMixin from .models import User @admin.register(User) class UserAdmin(UserAdminImpersonateMixin, admin.ModelAdmin): """...
28.775862
95
0.569802
84e3872a3789d5351e3416aba8da14ec8958eb5d
44,313
py
Python
tests/integration_tests/python/test_uploads.py
scitran/nimsapi
a4203cf6c6d29aa15d33011250ee69ff929fcb0d
[ "MIT" ]
13
2016-05-31T14:32:58.000Z
2021-09-17T07:18:11.000Z
tests/integration_tests/python/test_uploads.py
scitran/core
a4203cf6c6d29aa15d33011250ee69ff929fcb0d
[ "MIT" ]
911
2016-02-16T18:40:27.000Z
2018-08-07T17:50:29.000Z
tests/integration_tests/python/test_uploads.py
scitran/nimsapi
a4203cf6c6d29aa15d33011250ee69ff929fcb0d
[ "MIT" ]
16
2016-02-17T15:54:34.000Z
2021-04-07T05:30:34.000Z
import copy import datetime import json import dateutil.parser import pytest # TODO switch to upload_file_form in all uid(-match)/label/reaper upload tests # after #772 (coverage-low-hanging 3) gets merged to avoid conflict hell @pytest.fixture(scope='function') def upload_file_form(file_form, merge_dict, randstr): ...
35.564205
123
0.586871
208b173eb904a7aa7f211666ade046523a4f933e
30
py
Python
project/loss_functions/absolute_loss/__init__.py
FedericoV/SysBio_Modeling
f56c9ee3e361e88dbdb3e71f833ed3d433213309
[ "MIT" ]
1
2016-09-03T18:53:17.000Z
2016-09-03T18:53:17.000Z
project/loss_functions/absolute_loss/__init__.py
FedericoV/SysBio_Modeling
f56c9ee3e361e88dbdb3e71f833ed3d433213309
[ "MIT" ]
null
null
null
project/loss_functions/absolute_loss/__init__.py
FedericoV/SysBio_Modeling
f56c9ee3e361e88dbdb3e71f833ed3d433213309
[ "MIT" ]
null
null
null
__author__ = 'Federico Vaggi'
15
29
0.766667
70fdb8ea37bd5a8d0f485c7c8dfbb3f8b46a8d31
1,606
py
Python
src/api/sample.py
vinizalabs/aws-serverless-cicd
46ff449d35ef2b3c80b66c05bb357c79ddb8ab71
[ "Apache-2.0" ]
null
null
null
src/api/sample.py
vinizalabs/aws-serverless-cicd
46ff449d35ef2b3c80b66c05bb357c79ddb8ab71
[ "Apache-2.0" ]
null
null
null
src/api/sample.py
vinizalabs/aws-serverless-cicd
46ff449d35ef2b3c80b66c05bb357c79ddb8ab71
[ "Apache-2.0" ]
null
null
null
import boto3 import botocore import json import os import uuid import logging #import yaml dynamodb = boto3.resource('dynamodb') table = dynamodb.Table(os.getenv('TABLE_NAME')) def respond(response): print(response) return { 'statusCode': '400' if 'Error' in response.keys() else '200...
21.413333
70
0.542341
e668ec0b7cda548c204257853c8ca49b38fef480
2,368
py
Python
tests/wikiqa/test_wikiqa_02_train.py
sciling/example-kubeflow-qatransfer
a3d74dacb1da22ab5ea60574943022584570f4d0
[ "Apache-2.0" ]
null
null
null
tests/wikiqa/test_wikiqa_02_train.py
sciling/example-kubeflow-qatransfer
a3d74dacb1da22ab5ea60574943022584570f4d0
[ "Apache-2.0" ]
null
null
null
tests/wikiqa/test_wikiqa_02_train.py
sciling/example-kubeflow-qatransfer
a3d74dacb1da22ab5ea60574943022584570f4d0
[ "Apache-2.0" ]
null
null
null
import os import pathlib import sys import tempfile import unittest import zipfile from unittest import TestCase import requests from tqdm import tqdm sys.path.append("..") WORK_DIR = "/tmp/wikiqa-tests" def download(): # Download Squad r_squad = requests.get( "https://github.com/sciling/qatran...
25.73913
85
0.570524
d6e23281a4117beb5017739d3ca46039cc2f2312
1,976
py
Python
test/sst/6.0.0/goblin_singlestream1-trace.py
tactcomplabs/gc64-hmcsim
79bf4ffae74dc52bb605adb3e0e1eb84649f9624
[ "BSD-2-Clause" ]
10
2018-02-26T02:39:36.000Z
2020-10-20T14:55:56.000Z
test/sst/6.0.0/goblin_singlestream1-trace.py
tactcomplabs/gc64-hmcsim
79bf4ffae74dc52bb605adb3e0e1eb84649f9624
[ "BSD-2-Clause" ]
5
2017-09-07T11:41:35.000Z
2020-10-12T14:35:39.000Z
test/sst/6.0.0/goblin_singlestream1-trace.py
tactcomplabs/gc64-hmcsim
79bf4ffae74dc52bb605adb3e0e1eb84649f9624
[ "BSD-2-Clause" ]
4
2017-09-07T06:03:43.000Z
2021-09-10T13:44:19.000Z
import sst # Define SST core options sst.setProgramOption("timebase", "1ps") sst.setProgramOption("stopAtCycle", "0 ns") # Define the simulation components comp_cpu = sst.Component("cpu", "miranda.BaseCPU") comp_cpu.addParams({ "verbose" : 0, "generator" : "miranda.SingleStreamGenerator", "generatorParams.verbose"...
30.875
109
0.688259
8c58101f7c46a43ad2a0c5b8635db59b0d59b24c
24,063
py
Python
esp_sdk/apis/integrations_hipchat_api.py
zimmermanc/esp-sdk-python
cdef13c0dc6c3996b6c444160c71b2f1e3910c97
[ "MIT" ]
6
2017-06-05T20:37:19.000Z
2019-04-10T08:43:59.000Z
esp_sdk/apis/integrations_hipchat_api.py
zimmermanc/esp-sdk-python
cdef13c0dc6c3996b6c444160c71b2f1e3910c97
[ "MIT" ]
18
2016-06-22T16:14:33.000Z
2018-10-29T21:53:15.000Z
esp_sdk/apis/integrations_hipchat_api.py
zimmermanc/esp-sdk-python
cdef13c0dc6c3996b6c444160c71b2f1e3910c97
[ "MIT" ]
18
2016-07-27T19:20:01.000Z
2020-11-17T02:09:58.000Z
# coding: utf-8 """ ESP Documentation The Evident Security Platform API (version 2.0) is designed to allow users granular control over their Amazon Web Service security experience by allowing them to review alerts, monitor signatures, and create custom signatures. OpenAPI spec version: v2_sdk Ge...
49.716942
315
0.621992
d53400dc8e6cb4ddb94bc5fd53951ae2d5e702dc
9,732
py
Python
src/apps/yield_offset/app.py
originalpkbims/dash-apps
ea84cbd3e7227fb3de40cd16000838dd088343c7
[ "MIT" ]
1
2022-02-19T01:37:29.000Z
2022-02-19T01:37:29.000Z
src/apps/yield_offset/app.py
originalpkbims/dash-apps
ea84cbd3e7227fb3de40cd16000838dd088343c7
[ "MIT" ]
12
2022-03-11T21:32:35.000Z
2022-03-30T13:45:12.000Z
src/apps/yield_offset/app.py
originalpkbims/dash-apps
ea84cbd3e7227fb3de40cd16000838dd088343c7
[ "MIT" ]
3
2022-02-05T17:13:47.000Z
2022-03-24T00:36:45.000Z
from datetime import datetime, timedelta import json import os import dash import dash_bootstrap_components as dbc from dash import html, dcc from dash.dependencies import Input, Output import requests from subgrounds.schema import TypeRef from subgrounds.subgraph import SyntheticField from subgrounds.subgrounds impor...
29.225225
152
0.586827
2788aa077ef4f6529f1db7646eee1f5a6dd43cb0
25,715
py
Python
tests/modeltests/invalid_models/models.py
kvbik/django
a507e552af4e7ac3080282e690e2e33c6d34570d
[ "BSD-3-Clause" ]
1
2016-05-09T15:16:24.000Z
2016-05-09T15:16:24.000Z
tests/modeltests/invalid_models/models.py
kvbik/django
a507e552af4e7ac3080282e690e2e33c6d34570d
[ "BSD-3-Clause" ]
null
null
null
tests/modeltests/invalid_models/models.py
kvbik/django
a507e552af4e7ac3080282e690e2e33c6d34570d
[ "BSD-3-Clause" ]
null
null
null
""" 26. Invalid models This example exists purely to point out errors in models. """ from django.contrib.contenttypes import generic from django.db import models class FieldErrors(models.Model): charfield = models.CharField() charfield2 = models.CharField(max_length=-1) charfield3 = models.CharField(max_...
74.752907
214
0.796617
eb4bd3ef93523276a029ce74696a58d6dbda7df8
1,791
py
Python
tests/infrastructure/test_hashing_clients.py
enchainte/enchainte-sdk-py
d7e6803cb941ae929bca9bb00584aa5b4853689a
[ "MIT" ]
1
2021-11-21T22:02:49.000Z
2021-11-21T22:02:49.000Z
tests/infrastructure/test_hashing_clients.py
enchainte/enchainte-sdk-py
d7e6803cb941ae929bca9bb00584aa5b4853689a
[ "MIT" ]
1
2021-09-16T20:19:04.000Z
2021-09-16T20:19:04.000Z
tests/infrastructure/test_hashing_clients.py
enchainte/enchainte-sdk-py
d7e6803cb941ae929bca9bb00584aa5b4853689a
[ "MIT" ]
1
2021-12-10T10:22:30.000Z
2021-12-10T10:22:30.000Z
from unittest import TestCase from bloock.infrastructure.hashing.blake2b import Blake2b from bloock.infrastructure.hashing.keccak import Keccak class Blake2bTestCase(TestCase): def setUp(self): self.blake = Blake2b() def test_blake_generate_hash_64_zeros_string(self): data = b'00000000000000...
38.106383
86
0.731993
0140812d8b0befa02724cb53cf80ee29a3c0da43
10,805
py
Python
pypy/module/_weakref/test/test_weakref.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
1
2019-05-27T00:58:46.000Z
2019-05-27T00:58:46.000Z
pypy/module/_weakref/test/test_weakref.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
null
null
null
pypy/module/_weakref/test/test_weakref.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
null
null
null
from pypy.conftest import gettestobjspace class AppTestWeakref(object): def setup_class(cls): space = gettestobjspace(usemodules=('_weakref',)) cls.space = space def test_simple(self): import _weakref, gc class A(object): pass a = A() ...
26.6133
79
0.494216
6de62037443df35dba4dace5cd2a7aae9f386c2d
800
py
Python
tests/test_cell_types.py
seung-lab/EMAnnotationSchemas
ef1061ca78860d53f1cd180496e87ad685a32ffe
[ "MIT" ]
null
null
null
tests/test_cell_types.py
seung-lab/EMAnnotationSchemas
ef1061ca78860d53f1cd180496e87ad685a32ffe
[ "MIT" ]
18
2018-08-15T17:38:04.000Z
2022-02-18T02:08:28.000Z
tests/test_cell_types.py
fcollman/EMAnnotationSchemas
bcc9f308868b2ea3e1504089d9cbab878b626acc
[ "MIT" ]
5
2018-08-14T22:39:49.000Z
2021-10-05T16:36:07.000Z
from emannotationschemas.schemas.cell_type_local import CellTypeLocal good_ivscc_cell_type = { "classification_system": "ivscc_m", "cell_type": "spiny_4", "pt": {"position": [1, 2, 3]}, } bad_classical_cell_type = { "classification_system": "classical", "cell_type": "spiny_4", "pt": {"position...
25.806452
69
0.695
0c91c338722379a7407def3d429745c0a84f2d59
1,621
py
Python
labtex/linear.py
CianLM/labtex
cb8233d762f62825c466fbdb050334f743847aaa
[ "MIT" ]
4
2021-07-10T13:28:48.000Z
2021-09-04T07:06:18.000Z
labtex/linear.py
CianLM/labtex
cb8233d762f62825c466fbdb050334f743847aaa
[ "MIT" ]
null
null
null
labtex/linear.py
CianLM/labtex
cb8233d762f62825c466fbdb050334f743847aaa
[ "MIT" ]
null
null
null
from labtex.measurement import Measurement, MeasurementList import matplotlib.pyplot as plt plt.style.use('seaborn-whitegrid') class LinearRegression: "Linearly regress two MeasurementLists." def __init__(self,x : MeasurementList, y : MeasurementList): self.x = x self.y = y assert...
31.173077
148
0.526835
e3c66b14e40978430dd79068526fd597c92b49a6
10,502
py
Python
pfg/template.py
michaelfreyj/pfg
25397a5539852667ea4ab55bc47511b488c63404
[ "MIT" ]
null
null
null
pfg/template.py
michaelfreyj/pfg
25397a5539852667ea4ab55bc47511b488c63404
[ "MIT" ]
null
null
null
pfg/template.py
michaelfreyj/pfg
25397a5539852667ea4ab55bc47511b488c63404
[ "MIT" ]
null
null
null
# vim:fdm=marker #!/usr/bin/env python # -*- coding: utf-8 -*- from copy import deepcopy import configparser import logging import os from pathlib import Path import sys import time import yaml from .input_utils import choice, yes_or_no from .template_utils import check_templates log = logging.getLogger('pfg.Templat...
39.630189
96
0.46991
7504d455d259efe999fcc271280b6a35d72c2fe9
558
py
Python
main.py
buzZ-exe/low
04a3de43a6416398e5075731f1631d6cb5d7d526
[ "MIT" ]
1
2022-02-10T15:00:06.000Z
2022-02-10T15:00:06.000Z
main.py
buzZ-exe/low
04a3de43a6416398e5075731f1631d6cb5d7d526
[ "MIT" ]
null
null
null
main.py
buzZ-exe/low
04a3de43a6416398e5075731f1631d6cb5d7d526
[ "MIT" ]
null
null
null
#main.py #For main bot functionality from discord.ext.commands import Bot import cogs.config as config global status_state #Unused variable for future commands - Don't delete status_state = 'with Humans' #Probably never gonna use BOT_PREFIX = "!" client = Bot(command_prefix = BOT_PREFIX...
27.9
94
0.756272
84fab177068187be357158cce0e355a38aade51e
747
py
Python
setup.py
mosquito/simpleaes
097151473ca67f1b1494f1a25f8aec2083d5d76a
[ "MIT" ]
null
null
null
setup.py
mosquito/simpleaes
097151473ca67f1b1494f1a25f8aec2083d5d76a
[ "MIT" ]
1
2018-07-14T13:09:57.000Z
2018-07-14T13:09:57.000Z
setup.py
mosquito/simpleaes
097151473ca67f1b1494f1a25f8aec2083d5d76a
[ "MIT" ]
null
null
null
# encoding: utf-8 from __future__ import absolute_import, print_function try: from setuptools import setup except ImportError: from distutils.core import setup __version__ = '0.4.7' __author__ = 'Dmitry Orlov <me@mosquito.su>' setup(name='simple_aes', version=__version__, author=__author__, au...
20.75
54
0.647925
be7aa05804deb6f2651f1ae431a3c5ecb595fd48
56
py
Python
rlmolecule/molecule/policy/__init__.py
harrysorensennrel/rlmolecule
978269400b90f752bf4741f42f03522603b321e2
[ "BSD-3-Clause" ]
null
null
null
rlmolecule/molecule/policy/__init__.py
harrysorensennrel/rlmolecule
978269400b90f752bf4741f42f03522603b321e2
[ "BSD-3-Clause" ]
null
null
null
rlmolecule/molecule/policy/__init__.py
harrysorensennrel/rlmolecule
978269400b90f752bf4741f42f03522603b321e2
[ "BSD-3-Clause" ]
null
null
null
import lazy_import lazy_import.lazy_module("tensorflow")
28
37
0.875
8b909ca6f8a228c7a751486c3b6c0d7a1f583489
424
py
Python
pandasgui/__init__.py
jmartens/PandasGUI
aa9c366882ec17dcf8531947631a602b486c9253
[ "MIT" ]
1,859
2019-06-14T04:19:01.000Z
2020-12-04T19:43:15.000Z
pandasgui/__init__.py
felipeescallon/pandas-GUI
40327cd2763d830e761475df00d62b8cb29c3438
[ "MIT" ]
106
2020-12-05T08:35:30.000Z
2022-02-11T16:41:17.000Z
pandasgui/__init__.py
felipeescallon/pandas-GUI
40327cd2763d830e761475df00d62b8cb29c3438
[ "MIT" ]
106
2019-09-14T04:57:26.000Z
2020-12-03T04:59:14.000Z
# Set version from pkg_resources import get_distribution __version__ = get_distribution('pandasgui').version # Logger config import logging logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) sh = logging.StreamHandler() sh.setFormatter(logging.Formatter('PandasGUI %(levelname)s — %(name)s — %(message)...
23.555556
86
0.775943
d26bf2908b844b9e67d02d54009a7ebf4f2bee08
314
py
Python
day-01/problem.py
mkemp/aoc-2020
01f65bc4aee05f819c3a8f3b04565188fcc17d25
[ "MIT" ]
1
2020-12-06T19:33:53.000Z
2020-12-06T19:33:53.000Z
day-01/problem.py
mkemp/aoc-2020
01f65bc4aee05f819c3a8f3b04565188fcc17d25
[ "MIT" ]
null
null
null
day-01/problem.py
mkemp/aoc-2020
01f65bc4aee05f819c3a8f3b04565188fcc17d25
[ "MIT" ]
null
null
null
from itertools import combinations with open('input') as f: values = [int(line) for line in f.read().strip().split()] # Part 1 for i, j in combinations(values, 2): if i + j == 2020: print(i * j) # Part 2 for i, j, k in combinations(values, 3): if i + j + k == 2020: print(i * j * k)
20.933333
61
0.570064
1b2add19af9a032f54e6b000099343ab8dc697d2
4,203
py
Python
ldm/id3b_ingest.py
akrherz/id3b
c2504da1690af2eb510c979bc59a261d73b87c72
[ "Apache-2.0" ]
null
null
null
ldm/id3b_ingest.py
akrherz/id3b
c2504da1690af2eb510c979bc59a261d73b87c72
[ "Apache-2.0" ]
1
2017-11-09T03:02:03.000Z
2019-09-30T15:36:15.000Z
ldm/id3b_ingest.py
akrherz/id3b
c2504da1690af2eb510c979bc59a261d73b87c72
[ "Apache-2.0" ]
null
null
null
"""Our fancy pants ingest of LDM product metadata""" from __future__ import print_function from syslog import LOG_LOCAL2 from io import BytesIO import json import os import re import datetime from twisted.python import log, syslog from twisted.internet import stdio from twisted.internet import reactor from twisted.pro...
27.292208
79
0.5734
2105d426ec6f99f737013c901daab257a2a6284e
323
py
Python
src/resumeSite/AuthenApp/urls.py
AdaFactor/ResumeProject
7492fe0a52a135ee44c599d9dd1edee86cfb6787
[ "MIT" ]
null
null
null
src/resumeSite/AuthenApp/urls.py
AdaFactor/ResumeProject
7492fe0a52a135ee44c599d9dd1edee86cfb6787
[ "MIT" ]
23
2018-01-19T07:48:44.000Z
2019-04-23T17:49:39.000Z
src/resumeSite/AuthenApp/urls.py
AdaFactor/ResumeProject
7492fe0a52a135ee44c599d9dd1edee86cfb6787
[ "MIT" ]
1
2018-01-17T03:39:26.000Z
2018-01-17T03:39:26.000Z
from django.urls import path from . import views app_name = 'AuthenApp' urlpatterns = [ path('login/', views.login_view, name='login'), path('logout/', views.logout_view, name='logout'), path('authen/', views.authen_view, name='authen_user'), path('registration/', views.new_user_view, name='new_user'),...
29.363636
64
0.690402
8bf6a209ad695d52bdee7cce27bb8df817cb618f
89
py
Python
script/common/notify_email.py
shinhwagk/cmsfs
652ee5779936ebf265364a098a10cde49349396e
[ "Apache-2.0" ]
null
null
null
script/common/notify_email.py
shinhwagk/cmsfs
652ee5779936ebf265364a098a10cde49349396e
[ "Apache-2.0" ]
null
null
null
script/common/notify_email.py
shinhwagk/cmsfs
652ee5779936ebf265364a098a10cde49349396e
[ "Apache-2.0" ]
null
null
null
def mail_send(to, subject, content): print(to) print(subject) print(content)
17.8
36
0.662921
20118e345d94d3d056fb82815170d5e32db7e41b
980
py
Python
protector/tests/rules_test/test_prevent_drop.py
trivago/Protector
7ebe7bde965e27737b961a0cb5740724d174fdc7
[ "BSD-3-Clause" ]
54
2016-02-23T16:04:11.000Z
2021-05-01T06:43:55.000Z
protector/tests/rules_test/test_prevent_drop.py
trivago/Protector
7ebe7bde965e27737b961a0cb5740724d174fdc7
[ "BSD-3-Clause" ]
1
2016-03-08T15:07:35.000Z
2016-06-23T12:52:36.000Z
protector/tests/rules_test/test_prevent_drop.py
trivago/Protector
7ebe7bde965e27737b961a0cb5740724d174fdc7
[ "BSD-3-Clause" ]
4
2016-06-01T14:22:47.000Z
2017-03-09T05:23:08.000Z
import unittest from protector.query.delete import DeleteQuery from protector.query.drop import DropQuery from protector.query.list import ListQuery from protector.query.select import SelectQuery from protector.rules import prevent_drop class TestPreventDrop(unittest.TestCase): def setUp(self): self.prev...
40.833333
105
0.719388
ea967ea9a924c0f7bbddc1ec8a69271aafd9670b
7,599
py
Python
browsepy/plugin/player/playable.py
galacticpolymath/browsepy
c3ee7de62c479e2bbbdcc6b7120e85fde054bf22
[ "MIT" ]
164
2015-04-09T16:24:32.000Z
2022-03-27T16:27:51.000Z
browsepy/plugin/player/playable.py
galacticpolymath/browsepy
c3ee7de62c479e2bbbdcc6b7120e85fde054bf22
[ "MIT" ]
35
2015-11-04T09:01:58.000Z
2021-08-04T18:58:31.000Z
browsepy/plugin/player/playable.py
galacticpolymath/browsepy
c3ee7de62c479e2bbbdcc6b7120e85fde054bf22
[ "MIT" ]
79
2016-04-13T02:13:31.000Z
2022-03-22T15:19:56.000Z
import sys import codecs import os.path import warnings from werkzeug.utils import cached_property from browsepy.compat import range, PY_LEGACY # noqa from browsepy.file import Node, File, Directory, \ underscore_replace, check_under_base if PY_LEGACY: import ConfigParser as configpa...
30.518072
79
0.588762