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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e8446ce2f4061635de45065908f670220fac78c6 | 3,012 | py | Python | docs/source/conf.py | suzil/awsstepfuncs | dd195b54bf8eaa381ea07244b276db6a1e82007b | [
"MIT"
] | 3 | 2020-11-29T18:31:50.000Z | 2021-01-14T07:46:40.000Z | docs/source/conf.py | suzil/aws-step-functions | dd195b54bf8eaa381ea07244b276db6a1e82007b | [
"MIT"
] | 54 | 2020-10-17T13:30:05.000Z | 2020-10-28T01:46:59.000Z | docs/source/conf.py | suzil/aws-step-functions | dd195b54bf8eaa381ea07244b276db6a1e82007b | [
"MIT"
] | 1 | 2021-08-04T04:40:27.000Z | 2021-08-04T04:40:27.000Z | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | 28.415094 | 79 | 0.658367 |
e8449bc93dc7b2136a3c89b249e0217f67fedec5 | 723 | py | Python | day-07.py | analuisadev/100-Days-Of-Code | b1dafabc335cd2c3c9b1cecd50597b42d8959d4a | [
"MIT"
] | 2 | 2021-01-08T22:13:21.000Z | 2021-03-17T10:44:12.000Z | day-07.py | analuisadev/100-Days-Of-Code | b1dafabc335cd2c3c9b1cecd50597b42d8959d4a | [
"MIT"
] | null | null | null | day-07.py | analuisadev/100-Days-Of-Code | b1dafabc335cd2c3c9b1cecd50597b42d8959d4a | [
"MIT"
] | null | null | null | from random import randint
from time import sleep
print ('=' * 18)
print ('\033[1mSTONE PAPER AND SCISSORS\033[m')
print ('=' * 18)
print ('I already chose mine now missing you')
sleep (1)
computer = randint (1, 3)
player = int(input('\033[1mChoose between\033[m \033[1;33m1) Stone 2) Paper and 3) Scissors\033[m : '))... | 36.15 | 104 | 0.658368 |
e84512b0da871bd7cbe1284df91d047dbdd1a5e5 | 303 | py | Python | tmdb/three/reviews.py | Cologler/ezapi-tmdb | 6a8a1a0a3da99cb18d11f47f1b40bbffb2a16be6 | [
"MIT"
] | 4 | 2017-05-16T02:30:52.000Z | 2021-07-01T13:21:27.000Z | tmdb/three/reviews.py | Cologler/ezapi-tmdb | 6a8a1a0a3da99cb18d11f47f1b40bbffb2a16be6 | [
"MIT"
] | 4 | 2020-09-03T03:19:49.000Z | 2021-12-21T05:24:04.000Z | tmdb/three/reviews.py | Cologler/ezapi-tmdb | 6a8a1a0a3da99cb18d11f47f1b40bbffb2a16be6 | [
"MIT"
] | 3 | 2021-02-15T18:13:08.000Z | 2021-04-10T03:53:58.000Z | from .base import ENDPOINT, process_response
| 23.307692 | 54 | 0.630363 |
e8459f0fc13fb8e816c864fc35cd8a3cb0f01468 | 739 | py | Python | app/models/domain/position.py | Chaoyingz/paper_trading | cd3af81c932e8f4b1586f2b9bf86b5b252bec896 | [
"MIT"
] | null | null | null | app/models/domain/position.py | Chaoyingz/paper_trading | cd3af81c932e8f4b1586f2b9bf86b5b252bec896 | [
"MIT"
] | null | null | null | app/models/domain/position.py | Chaoyingz/paper_trading | cd3af81c932e8f4b1586f2b9bf86b5b252bec896 | [
"MIT"
] | null | null | null | from datetime import datetime
from pydantic import Field
from app.models.base import DBModelMixin
from app.models.domain.stocks import Stock
from app.models.types import PyDecimal, PyObjectId
| 30.791667 | 64 | 0.711773 |
e845a7e7d6017dc01966f517fbcf29e5fc29bd30 | 2,644 | py | Python | drink_partners/middlewares/tests/test_exception_handler.py | henriquebraga/drink-partners | 4702263ae3e43ea9403cff5a72b68245d61880c7 | [
"Apache-2.0"
] | null | null | null | drink_partners/middlewares/tests/test_exception_handler.py | henriquebraga/drink-partners | 4702263ae3e43ea9403cff5a72b68245d61880c7 | [
"Apache-2.0"
] | 22 | 2020-05-02T19:32:24.000Z | 2021-10-17T21:19:46.000Z | drink_partners/middlewares/tests/test_exception_handler.py | henriquebraga/drink-partners | 4702263ae3e43ea9403cff5a72b68245d61880c7 | [
"Apache-2.0"
] | null | null | null | import json
import pytest
from aiohttp.web import HTTPGatewayTimeout
from drink_partners.contrib.exceptions import APIException
from drink_partners.contrib.response import JSONResponse
from drink_partners.middlewares.exception_handler import (
exception_handler_middleware
)
httperror_message = 'Http error messag... | 28.430108 | 79 | 0.693268 |
e84653cc7074215f83e285dd13f1f44ac93d694e | 899 | py | Python | tase/telegram/inline_buttons/choose_language_button.py | soran-ghaderi/Chromusic_search_engine | e811401fee39ff4cb184750fcbde55053c69453d | [
"Apache-2.0"
] | 4 | 2022-02-21T06:56:16.000Z | 2022-03-07T21:10:19.000Z | tase/telegram/inline_buttons/choose_language_button.py | soran-ghaderi/Chromusic_search_engine | e811401fee39ff4cb184750fcbde55053c69453d | [
"Apache-2.0"
] | null | null | null | tase/telegram/inline_buttons/choose_language_button.py | soran-ghaderi/Chromusic_search_engine | e811401fee39ff4cb184750fcbde55053c69453d | [
"Apache-2.0"
] | 1 | 2022-03-07T21:10:02.000Z | 2022-03-07T21:10:02.000Z | import pyrogram
from .inline_button import InlineButton
from ..telegram_client import TelegramClient
# from ..handlers import BaseHandler
from ...db import DatabaseClient, graph_models
from ...utils import _trans
| 33.296296 | 71 | 0.68743 |
e84af8b6f01102abd58e768944863261e63306d5 | 565 | py | Python | blog/forms.py | Ukyply/Ukyply-SQLite | 3c1c550b32b2f969c8964f806bf8578fbeeb7d4b | [
"MIT"
] | null | null | null | blog/forms.py | Ukyply/Ukyply-SQLite | 3c1c550b32b2f969c8964f806bf8578fbeeb7d4b | [
"MIT"
] | null | null | null | blog/forms.py | Ukyply/Ukyply-SQLite | 3c1c550b32b2f969c8964f806bf8578fbeeb7d4b | [
"MIT"
] | null | null | null | from django import forms
from blog.models import Post
| 24.565217 | 57 | 0.569912 |
e84b2f2fe83a3e28896f1f56e30847e498d1d2a1 | 648 | py | Python | rules/tamper/wordpress.py | lavon321/Kunlun-M | 792548536d67f648c92324ecc153d7f206623e31 | [
"MIT"
] | 1,059 | 2020-08-06T13:32:10.000Z | 2022-03-31T07:20:27.000Z | rules/tamper/wordpress.py | lavon321/Kunlun-M | 792548536d67f648c92324ecc153d7f206623e31 | [
"MIT"
] | 87 | 2020-09-08T06:34:45.000Z | 2022-03-28T05:52:36.000Z | rules/tamper/wordpress.py | lavon321/Kunlun-M | 792548536d67f648c92324ecc153d7f206623e31 | [
"MIT"
] | 171 | 2020-08-13T11:53:47.000Z | 2022-03-30T03:23:07.000Z | # -*- coding: utf-8 -*-
"""
wordpress
~~~~
tamper for wordpress
:author: LoRexxar <LoRexxar@gmail.com>
:homepage: https://github.com/LoRexxar/Kunlun-M
:license: MIT, see LICENSE for more details.
:copyright: Copyright (c) 2017 LoRexxar. All rights reserved
"""
wordpress = {
"es... | 24 | 64 | 0.606481 |
e84d152037bd2e3dced364c3e47b92c7a6bfda36 | 210 | py | Python | tests/test_utils.py | szarnyasg/pygraphblas | 7465ef6fcc77c9901869b70ddf1d77a86570c336 | [
"Apache-2.0"
] | null | null | null | tests/test_utils.py | szarnyasg/pygraphblas | 7465ef6fcc77c9901869b70ddf1d77a86570c336 | [
"Apache-2.0"
] | null | null | null | tests/test_utils.py | szarnyasg/pygraphblas | 7465ef6fcc77c9901869b70ddf1d77a86570c336 | [
"Apache-2.0"
] | null | null | null | from pygraphblas import *
| 21 | 35 | 0.614286 |
e84d4a5decc6c49e64831cb5acb6bf62262b9049 | 276 | py | Python | bentoml/paddle.py | francoisserra/BentoML | 213e9e9b39e055286f2649c733907df88e6d2503 | [
"Apache-2.0"
] | 1 | 2021-06-12T17:04:07.000Z | 2021-06-12T17:04:07.000Z | bentoml/paddle.py | francoisserra/BentoML | 213e9e9b39e055286f2649c733907df88e6d2503 | [
"Apache-2.0"
] | 4 | 2021-05-16T08:06:25.000Z | 2021-11-13T08:46:36.000Z | bentoml/paddle.py | francoisserra/BentoML | 213e9e9b39e055286f2649c733907df88e6d2503 | [
"Apache-2.0"
] | null | null | null | from ._internal.frameworks.paddle import load
from ._internal.frameworks.paddle import save
from ._internal.frameworks.paddle import load_runner
from ._internal.frameworks.paddle import import_from_paddlehub
__all__ = ["import_from_paddlehub", "load", "load_runner", "save"]
| 39.428571 | 66 | 0.822464 |
e84dcacd54181e2d83fb3b996dbdf8ae1ae4b89c | 1,649 | py | Python | src/leetcode_1673_find_the_most_competitive_subsequence.py | yurirocha15/coding_practice | 952506932c47414da689454853ee745637413160 | [
"MIT"
] | 2 | 2020-12-08T13:59:10.000Z | 2021-05-01T05:07:39.000Z | src/leetcode_1673_find_the_most_competitive_subsequence.py | yurirocha15/coding_practice | 952506932c47414da689454853ee745637413160 | [
"MIT"
] | null | null | null | src/leetcode_1673_find_the_most_competitive_subsequence.py | yurirocha15/coding_practice | 952506932c47414da689454853ee745637413160 | [
"MIT"
] | 1 | 2021-05-02T17:42:02.000Z | 2021-05-02T17:42:02.000Z | # @l2g 1673 python3
# [1673] Find the Most Competitive Subsequence
# Difficulty: Medium
# https://leetcode.com/problems/find-the-most-competitive-subsequence
#
# Given an integer array nums and a positive integer k,
# return the most competitive subsequence of nums of size k.
# An array's subsequence is a resulting seq... | 28.431034 | 141 | 0.614918 |
e84df9dae610f2465c8309e92c32430fc6ed2e22 | 1,955 | py | Python | data/compress.py | Catosine/GDAS | da047fe30b5aeeb1121861458ad61fd7c171874e | [
"MIT"
] | 20 | 2019-10-10T07:13:27.000Z | 2022-03-25T11:33:16.000Z | data/compress.py | BaiYuYuan/GDAS | 5eed8101a78d223a20a43494176051298b24ac3a | [
"MIT"
] | null | null | null | data/compress.py | BaiYuYuan/GDAS | 5eed8101a78d223a20a43494176051298b24ac3a | [
"MIT"
] | 6 | 2020-04-21T14:52:02.000Z | 2021-08-05T15:00:22.000Z | # python ./data/compress.py $TORCH_HOME/ILSVRC2012/ $TORCH_HOME/ILSVRC2012-TAR tar
# python ./data/compress.py $TORCH_HOME/ILSVRC2012/ $TORCH_HOME/ILSVRC2012-ZIP zip
import os, sys
from pathlib import Path
if __name__ == '__main__':
assert len(sys.argv) == 4, 'invalid argv : {:}'.format(sys.argv)
source, destin... | 50.128205 | 183 | 0.652174 |
e84e6fa0496c3c3dbf9e461be30523e0845b42ec | 2,920 | py | Python | tests/test_fastly_logging_s3.py | Jimdo/ansible-role-fastly | c2e2675c052c9e9a7542e8d51410632a0fbae4d0 | [
"MIT"
] | 12 | 2016-06-17T15:51:10.000Z | 2021-01-22T09:15:52.000Z | tests/test_fastly_logging_s3.py | Jimdo/ansible-role-fastly | c2e2675c052c9e9a7542e8d51410632a0fbae4d0 | [
"MIT"
] | 20 | 2016-06-17T15:46:12.000Z | 2018-06-01T07:43:49.000Z | tests/test_fastly_logging_s3.py | Jimdo/ansible-role-fastly | c2e2675c052c9e9a7542e8d51410632a0fbae4d0 | [
"MIT"
] | 12 | 2016-06-17T15:51:00.000Z | 2022-03-18T18:17:17.000Z | #!/usr/bin/env python
import os
import unittest
import sys
from test_common import TestCommon
sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'library'))
from fastly_service import FastlyConfiguration
if __name__ == '__main__':
unittest.main()
| 40 | 141 | 0.630137 |
e84e84870d1e2d1d36aeaad23e19573cd282d144 | 1,230 | py | Python | 高频120_Lint/Reverse Nodes in k-Group.py | lixiaoruiusa/Rui7272 | fbdb87104353138d3af7f3fe2cb3c0f00ff9e449 | [
"MIT"
] | null | null | null | 高频120_Lint/Reverse Nodes in k-Group.py | lixiaoruiusa/Rui7272 | fbdb87104353138d3af7f3fe2cb3c0f00ff9e449 | [
"MIT"
] | null | null | null | 高频120_Lint/Reverse Nodes in k-Group.py | lixiaoruiusa/Rui7272 | fbdb87104353138d3af7f3fe2cb3c0f00ff9e449 | [
"MIT"
] | null | null | null | """
Definition of ListNode
class ListNode(object):
def __init__(self, val, next=None):
self.val = val
self.next = next
"""
'''
def reverseList(self, head):
prev = None
curr = head
while curr:
next = curr.next
curr.next = prev
prev = curr
curr = next
... | 21.964286 | 80 | 0.471545 |
e84f7ec1d7eb75e5b190a746b5e84c8c1dc54889 | 241 | py | Python | C21/test.py | jpch89/learningpython | 47e78041e519ecd2e00de1b32f6416b56ce2616c | [
"MIT"
] | 2 | 2020-10-20T10:18:48.000Z | 2020-12-02T09:41:18.000Z | C21/test.py | jpch89/learningpython | 47e78041e519ecd2e00de1b32f6416b56ce2616c | [
"MIT"
] | null | null | null | C21/test.py | jpch89/learningpython | 47e78041e519ecd2e00de1b32f6416b56ce2616c | [
"MIT"
] | 1 | 2020-12-02T10:03:29.000Z | 2020-12-02T10:03:29.000Z | ''
from math import sqrt
li = [2, 4, 9, 16, 25]
# for
res = []
for i in li:
res.append(sqrt(i))
print(res)
# map
print(list(map(sqrt, li)))
#
print([sqrt(i) for i in li])
#
print(list(sqrt(i) for i in li))
| 12.05 | 32 | 0.605809 |
e84fc770fc649fef802bd411dc55a7c207a9b6f1 | 1,981 | py | Python | tests/links_tests/model_tests/yolo_tests/test_yolo_v3.py | souravsingh/chainercv | 8f76510472bc95018c183e72f37bc6c34a89969c | [
"MIT"
] | 1,600 | 2017-06-01T15:37:52.000Z | 2022-03-09T08:39:09.000Z | tests/links_tests/model_tests/yolo_tests/test_yolo_v3.py | souravsingh/chainercv | 8f76510472bc95018c183e72f37bc6c34a89969c | [
"MIT"
] | 547 | 2017-06-01T06:43:16.000Z | 2021-05-28T17:14:05.000Z | tests/links_tests/model_tests/yolo_tests/test_yolo_v3.py | souravsingh/chainercv | 8f76510472bc95018c183e72f37bc6c34a89969c | [
"MIT"
] | 376 | 2017-06-02T01:29:10.000Z | 2022-03-13T11:19:59.000Z | import numpy as np
import unittest
import chainer
from chainer import testing
from chainer.testing import attr
from chainercv.links import YOLOv3
testing.run_module(__name__, __file__)
| 26.413333 | 76 | 0.631499 |
e8507d06490cbd085cac36479e442057aa3863d2 | 28,595 | py | Python | src/training/train.py | KinanZ/open_clip | 6e76ee3b3a15ee6c4a187853fd123c967721c32b | [
"MIT"
] | null | null | null | src/training/train.py | KinanZ/open_clip | 6e76ee3b3a15ee6c4a187853fd123c967721c32b | [
"MIT"
] | null | null | null | src/training/train.py | KinanZ/open_clip | 6e76ee3b3a15ee6c4a187853fd123c967721c32b | [
"MIT"
] | null | null | null | import os
import time
import json
import numpy as np
import torch
import torch.nn as nn
from sklearn import decomposition
from torch.cuda.amp import autocast
import torch.distributed as dist
import sys
sys.path.append('/misc/student/alzouabk/Thesis/self_supervised_pretraining/open_clip_thesis/src/')
from training.ze... | 45.606061 | 166 | 0.602168 |
e85178ac252a4d1563a5cddd6910ff2818bf8e27 | 3,226 | py | Python | jade_utils.py | gimenete/jade-utils-sublime | 0ab6467b04a67245e773d9accf7f504c41f323f6 | [
"MIT"
] | null | null | null | jade_utils.py | gimenete/jade-utils-sublime | 0ab6467b04a67245e773d9accf7f504c41f323f6 | [
"MIT"
] | null | null | null | jade_utils.py | gimenete/jade-utils-sublime | 0ab6467b04a67245e773d9accf7f504c41f323f6 | [
"MIT"
] | null | null | null | from HTMLParser import HTMLParser
import sublime, sublime_plugin
void_elements = ["area", "base", "br", "col", "embed", "hr",
"img", "input", "keygen", "link", "menuitem",
"meta", "param", "source", "track", "wbr"]
# def main():
# parser = HTML2JadeParser()
# output = parser.convert('<!DOCTYPE html><h... | 31.320388 | 97 | 0.50248 |
e85331900c6459687504959fb943368a54bbdd9f | 2,908 | py | Python | modules/MessageWatcher/MessageWatcher.py | ediril/BCI | f211ba70d6d75a9badff6872f86416b065f6192b | [
"BSD-2-Clause"
] | 6 | 2016-12-30T03:43:49.000Z | 2020-04-19T16:04:37.000Z | modules/MessageWatcher/MessageWatcher.py | hongweimao/BCI | 49b7e8137bd5f9d18e3efdbd94a112cde5d16c4c | [
"BSD-2-Clause"
] | 1 | 2022-03-08T09:16:10.000Z | 2022-03-08T09:16:10.000Z | modules/MessageWatcher/MessageWatcher.py | ediril/BCI | f211ba70d6d75a9badff6872f86416b065f6192b | [
"BSD-2-Clause"
] | 2 | 2015-06-16T02:46:03.000Z | 2018-12-20T20:07:59.000Z | import numpy as np
import Dragonfly_config as rc
from argparse import ArgumentParser
from ConfigParser import SafeConfigParser
from PyDragonfly import Dragonfly_Module, CMessage, copy_to_msg, copy_from_msg
from time import time
if __name__ == "__main__":
parser = ArgumentParser(description = "Display informati... | 36.810127 | 83 | 0.584594 |
e85343be0e6df80e2d7f6b911a366990aea1690d | 2,858 | py | Python | Plug-and-play module/attention/CBAM/cbam.py | riciche/SimpleCVReproduction | 4075de39f9c61f1359668a413f6a5d98903fcf97 | [
"Apache-2.0"
] | 923 | 2020-01-11T06:36:53.000Z | 2022-03-31T00:26:57.000Z | Plug-and-play module/attention/CBAM/cbam.py | riciche/SimpleCVReproduction | 4075de39f9c61f1359668a413f6a5d98903fcf97 | [
"Apache-2.0"
] | 25 | 2020-02-27T08:35:46.000Z | 2022-01-25T08:54:19.000Z | Plug-and-play module/attention/CBAM/cbam.py | riciche/SimpleCVReproduction | 4075de39f9c61f1359668a413f6a5d98903fcf97 | [
"Apache-2.0"
] | 262 | 2020-01-02T02:19:40.000Z | 2022-03-23T04:56:16.000Z | import torch
import torch.nn as nn
def conv3x3(in_planes, out_planes, stride=1):
"3x3 convolution with padding"
return nn.Conv2d(in_planes,
out_planes,
kernel_size=3,
stride=stride,
padding=1,
bias=False)
... | 28.58 | 79 | 0.590973 |
e854017c38291bb4b2ae09b4884a064ca12c7067 | 1,339 | py | Python | nyc/dataprep/PrepareTreeData.py | lopez86/NYCDataTools | 9c860545bacd27a7a1106bba3e3d75cd0320e6df | [
"MIT"
] | null | null | null | nyc/dataprep/PrepareTreeData.py | lopez86/NYCDataTools | 9c860545bacd27a7a1106bba3e3d75cd0320e6df | [
"MIT"
] | null | null | null | nyc/dataprep/PrepareTreeData.py | lopez86/NYCDataTools | 9c860545bacd27a7a1106bba3e3d75cd0320e6df | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
""" PrepareTreeData.py
Prepares the tree data a bit for inclusion into a database.
"""
import pandas as pd
import numpy as np
""" Prepare the tree data for inclusion into a database.
Args:
inname: Input file
outname: Output file
"""
""" Runs with default arguments"""
if __nam... | 25.264151 | 75 | 0.587005 |
e85442ad2e2c6b3f6e0178cb6ceb6185189e2bc3 | 11,307 | py | Python | pyqha/alphagruneisen.py | mauropalumbo75/pyqha | 3e904a0363d57c52d02d2520cabbb48c2d0df5cb | [
"MIT"
] | 10 | 2016-12-13T12:35:06.000Z | 2022-03-25T14:19:51.000Z | pyqha/alphagruneisen.py | mauropalumbo75/pyqha | 3e904a0363d57c52d02d2520cabbb48c2d0df5cb | [
"MIT"
] | null | null | null | pyqha/alphagruneisen.py | mauropalumbo75/pyqha | 3e904a0363d57c52d02d2520cabbb48c2d0df5cb | [
"MIT"
] | 3 | 2017-06-07T12:10:37.000Z | 2020-04-25T13:07:30.000Z | #encoding: UTF-8
# Copyright (C) 2016 Mauro Palumbo
# This file is distributed under the terms of the # MIT License.
# See the file `License' in the root directory of the present distribution.
"""
An earlier and now oblosete implementation of functions for computing the
thermal expansion tensor as a function
of tem... | 36.95098 | 132 | 0.630406 |
e854eac02ff984d86165518b112aa60249a5b42e | 18 | py | Python | allennlp/tests/fixtures/plugins/project_c/allennlp_plugins/c/__init__.py | justindujardin/allennlp | c4559f3751775aa8bc018db417edc119d29d8051 | [
"Apache-2.0"
] | 1 | 2020-03-30T14:07:02.000Z | 2020-03-30T14:07:02.000Z | allennlp/tests/fixtures/plugins/project_c/allennlp_plugins/c/__init__.py | justindujardin/allennlp | c4559f3751775aa8bc018db417edc119d29d8051 | [
"Apache-2.0"
] | 123 | 2020-04-26T02:41:30.000Z | 2021-08-02T21:18:00.000Z | allennlp/tests/fixtures/plugins/project_c/allennlp_plugins/c/__init__.py | justindujardin/allennlp | c4559f3751775aa8bc018db417edc119d29d8051 | [
"Apache-2.0"
] | 2 | 2019-12-21T05:58:44.000Z | 2021-08-16T07:41:21.000Z | from c.c import C
| 9 | 17 | 0.722222 |
e85543976eb128fd6cd840908a99b6775aa2dca1 | 1,934 | py | Python | cro/fitness.py | VictorPelaez/coral-reef-optimization-algorithm | 25804fc43b735df707821008558e9410dfe4a835 | [
"MIT"
] | 21 | 2017-10-09T20:44:03.000Z | 2022-03-03T14:43:09.000Z | cro/fitness.py | VictorPelaez/coral-reef-optimization-algorithm | 25804fc43b735df707821008558e9410dfe4a835 | [
"MIT"
] | 33 | 2017-10-11T20:12:26.000Z | 2021-11-11T09:19:07.000Z | cro/fitness.py | VictorPelaez/coral-reef-optimization-algorithm | 25804fc43b735df707821008558e9410dfe4a835 | [
"MIT"
] | 5 | 2017-10-11T19:16:09.000Z | 2022-01-29T13:49:59.000Z | from __future__ import division
import numpy as np
from sklearn.utils import shuffle
from sklearn.metrics import *
"""
Module with different fitness functions implemented to be used by the CRO algorithm.
The functions' only argument must be an individual (coral) and return its fitness, a number.
The fitness might re... | 31.704918 | 127 | 0.651499 |
e8569d7c3bbbd06495a3be7b58b262f1f38b3a3d | 1,518 | py | Python | lib/environment/shape.py | vyahello/snakegame-gui | 1eb23744174035f49dd0a33c48d365e8b3836178 | [
"MIT"
] | null | null | null | lib/environment/shape.py | vyahello/snakegame-gui | 1eb23744174035f49dd0a33c48d365e8b3836178 | [
"MIT"
] | null | null | null | lib/environment/shape.py | vyahello/snakegame-gui | 1eb23744174035f49dd0a33c48d365e8b3836178 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from typing import Tuple, Iterable, Any
from pygame.rect import Rect
| 20.513514 | 51 | 0.614625 |
e856d28ae91acdab7a6956c6e1799773dfe4c394 | 994 | py | Python | bleak/backends/device.py | virantha/bleak | 0226cdef0af2d6bcdf5a84d87c437ed75aaa7726 | [
"MIT"
] | null | null | null | bleak/backends/device.py | virantha/bleak | 0226cdef0af2d6bcdf5a84d87c437ed75aaa7726 | [
"MIT"
] | 1 | 2019-04-01T02:31:45.000Z | 2019-04-01T02:31:45.000Z | bleak/backends/device.py | virantha/bleak | 0226cdef0af2d6bcdf5a84d87c437ed75aaa7726 | [
"MIT"
] | 1 | 2019-04-01T01:34:42.000Z | 2019-04-01T01:34:42.000Z | # -*- coding: utf-8 -*-
"""
Wrapper class for Bluetooth LE servers returned from calling
:py:meth:`bleak.discover`.
Created on 2018-04-23 by hbldh <henrik.blidh@nedomkull.com>
"""
| 30.121212 | 84 | 0.678068 |
e85725f4d0132ac8d4a20d890a96acfcc728db0b | 5,144 | py | Python | jqueryui/jqueryui.py | yyuunn0044/oss-hubblemon | f90635f7b66defd1515516fcec61973fa75a6f84 | [
"Apache-2.0"
] | null | null | null | jqueryui/jqueryui.py | yyuunn0044/oss-hubblemon | f90635f7b66defd1515516fcec61973fa75a6f84 | [
"Apache-2.0"
] | null | null | null | jqueryui/jqueryui.py | yyuunn0044/oss-hubblemon | f90635f7b66defd1515516fcec61973fa75a6f84 | [
"Apache-2.0"
] | null | null | null |
#
# Hubblemon - Yet another general purpose system monitor
#
# Copyright 2015 NAVER Corp.
#
# 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
#
# U... | 21.081967 | 108 | 0.615086 |
e85746131b4e0732b56b704dfb01f9cc40207e1c | 3,195 | py | Python | diffrax/solver/kvaerno5.py | FedericoV/diffrax | 98b010242394491fea832e77dc94f456b48495fa | [
"Apache-2.0"
] | 377 | 2022-02-07T11:13:56.000Z | 2022-03-31T18:35:51.000Z | diffrax/solver/kvaerno5.py | FedericoV/diffrax | 98b010242394491fea832e77dc94f456b48495fa | [
"Apache-2.0"
] | 25 | 2022-02-08T23:08:11.000Z | 2022-03-30T21:21:18.000Z | diffrax/solver/kvaerno5.py | FedericoV/diffrax | 98b010242394491fea832e77dc94f456b48495fa | [
"Apache-2.0"
] | 15 | 2022-02-08T04:46:23.000Z | 2022-03-30T20:53:10.000Z | import numpy as np
from ..local_interpolation import ThirdOrderHermitePolynomialInterpolation
from .runge_kutta import AbstractESDIRK, ButcherTableau
= 0.26
a21 =
a31 = 0.13
a32 = 0.84033320996790809
a41 = 0.22371961478320505
a42 = 0.47675532319799699
a43 = -0.06470895363112615
a51 = 0.16648564323248321
a52 = 0.10... | 28.274336 | 159 | 0.662285 |
e85933c7d3c26f637e88c1e491bd5d20ff1bfd18 | 2,783 | py | Python | Hinting/Remove Zero Deltas in Selected Glyphs.py | justanotherfoundry/Glyphs-Scripts | f28aeab0224ae19ace4a86cf363e7990985199b7 | [
"Apache-2.0"
] | 283 | 2015-01-07T12:35:35.000Z | 2022-03-29T06:10:44.000Z | Hinting/Remove Zero Deltas in Selected Glyphs.py | justanotherfoundry/Glyphs-Scripts | f28aeab0224ae19ace4a86cf363e7990985199b7 | [
"Apache-2.0"
] | 203 | 2015-01-26T18:43:08.000Z | 2022-03-04T01:47:58.000Z | Hinting/Remove Zero Deltas in Selected Glyphs.py | justanotherfoundry/Glyphs-Scripts | f28aeab0224ae19ace4a86cf363e7990985199b7 | [
"Apache-2.0"
] | 96 | 2015-01-19T20:58:03.000Z | 2022-03-29T06:10:56.000Z | #MenuTitle: Remove Zero Deltas in Selected Glyphs
# -*- coding: utf-8 -*-
from __future__ import division, print_function, unicode_literals
__doc__="""
Goes through all layers of each selected glyph, and deletes all TT Delta Hints with an offset of zero. Detailed Report in Macro Window.
"""
thisFont = Glyphs.font # fr... | 30.582418 | 135 | 0.648581 |
e859463755edefe59830e903e437712595e190d6 | 1,210 | py | Python | env/build.py | orestisfl/docker-env | 414f04c3e69c8c4015808a34be7376fdff4b3527 | [
"MIT"
] | null | null | null | env/build.py | orestisfl/docker-env | 414f04c3e69c8c4015808a34be7376fdff4b3527 | [
"MIT"
] | null | null | null | env/build.py | orestisfl/docker-env | 414f04c3e69c8c4015808a34be7376fdff4b3527 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import re
import sys
from glob import glob
from subprocess import run
if __name__ == "__main__":
print(main(sys.argv[1:]), file=sys.stderr)
| 28.139535 | 76 | 0.512397 |
e85a4156b1efffe030e509e2baabc4ed59503b48 | 7,426 | py | Python | tiled/database/core.py | stuartcampbell/tiled | 01c054fa4638f2595a228173ea2f2c59a6a52500 | [
"BSD-3-Clause"
] | null | null | null | tiled/database/core.py | stuartcampbell/tiled | 01c054fa4638f2595a228173ea2f2c59a6a52500 | [
"BSD-3-Clause"
] | null | null | null | tiled/database/core.py | stuartcampbell/tiled | 01c054fa4638f2595a228173ea2f2c59a6a52500 | [
"BSD-3-Clause"
] | null | null | null | import hashlib
import uuid as uuid_module
from datetime import datetime
from alembic import command
from alembic.config import Config
from alembic.runtime import migration
from sqlalchemy.orm import sessionmaker
from sqlalchemy.sql import func
from .alembic_utils import temp_alembic_ini
from .base import Base
from .o... | 28.561538 | 88 | 0.643011 |
e85a582b4835c961353024f23cb7838de54c38e5 | 24 | py | Python | torchvision/prototype/utils/__init__.py | yoshitomo-matsubara/vision | 03d11338f3faf94a0749549912593ddb8b70be17 | [
"BSD-3-Clause"
] | 12,063 | 2017-01-18T19:58:38.000Z | 2022-03-31T23:08:44.000Z | torchvision/prototype/utils/__init__.py | yoshitomo-matsubara/vision | 03d11338f3faf94a0749549912593ddb8b70be17 | [
"BSD-3-Clause"
] | 4,673 | 2017-01-18T21:30:03.000Z | 2022-03-31T20:58:33.000Z | torchvision/prototype/utils/__init__.py | yoshitomo-matsubara/vision | 03d11338f3faf94a0749549912593ddb8b70be17 | [
"BSD-3-Clause"
] | 7,132 | 2017-01-18T18:12:23.000Z | 2022-03-31T21:19:10.000Z | from . import _internal
| 12 | 23 | 0.791667 |
e85b7d80337b2ce535d2c6a0de4c783b4a069765 | 13,108 | py | Python | py/models.py | ti-ginkgo/Severstal | 57f37dc61cfd910b575afa7dc51094c94e3511c0 | [
"MIT"
] | 2 | 2020-01-08T02:58:18.000Z | 2020-01-28T16:42:00.000Z | py/models.py | ti-ginkgo/Severstal | 57f37dc61cfd910b575afa7dc51094c94e3511c0 | [
"MIT"
] | null | null | null | py/models.py | ti-ginkgo/Severstal | 57f37dc61cfd910b575afa7dc51094c94e3511c0 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision
# stage1 model
# stage2 model
# stage3 model | 38.104651 | 117 | 0.537382 |
e85c2c9c74527b46aef466680cba313a99e7950d | 2,762 | py | Python | gameNode_test.py | rcolomina/pythonchess | 1b12ea4a1668da6c47dd39ff16d1e48af33ea2f5 | [
"MIT"
] | null | null | null | gameNode_test.py | rcolomina/pythonchess | 1b12ea4a1668da6c47dd39ff16d1e48af33ea2f5 | [
"MIT"
] | 2 | 2016-11-01T09:57:36.000Z | 2016-11-01T10:05:50.000Z | gameNode_test.py | rcolomina/pythonchess | 1b12ea4a1668da6c47dd39ff16d1e48af33ea2f5 | [
"MIT"
] | null | null | null | #!/usr/bin/python
from piece import Piece
from gameNode import GameNode
from functions import *
from minmax import MinMax
## TEST 1: GameNode cration. Generating list of movements on a game node by piece
print "TEST 1: Building a Game Node"
listPiecesWhite=[]
listPiecesBlack=[]
p1=Piece('Q',[2,1])
p2=Piece('N'... | 36.342105 | 112 | 0.763939 |
e85d61e1906d246b4773a7b76f1abb85b59acc9c | 2,792 | py | Python | discordlogger.py | tjb0607/discord-logger | 5edabeadf124d7de484b3ee3cbc563567846f610 | [
"WTFPL"
] | 3 | 2018-04-20T03:05:57.000Z | 2021-04-15T23:17:43.000Z | discordlogger.py | tjb0607/discord-logger | 5edabeadf124d7de484b3ee3cbc563567846f610 | [
"WTFPL"
] | null | null | null | discordlogger.py | tjb0607/discord-logger | 5edabeadf124d7de484b3ee3cbc563567846f610 | [
"WTFPL"
] | 1 | 2021-06-01T03:50:37.000Z | 2021-06-01T03:50:37.000Z | #!/usr/bin/python3
# WARNING: Self-botting is technically against the rules, so this script could potentially get you banned.
import http.client
import json
import urllib
import time
import getpass
import os.path
import datetime
import sys
from dateutil.parser import parse
print("usage: python3 discordlogger.py <cha... | 34.9 | 177 | 0.675501 |
e85d901b9a66e6dab5e48109549c08960eee01b8 | 3,555 | py | Python | msschem/runner.py | andreas-h/mss-chem | ae91f4f5b4c19a4ff0ce8fd342fe0aed4ce2b9ab | [
"MIT"
] | null | null | null | msschem/runner.py | andreas-h/mss-chem | ae91f4f5b4c19a4ff0ce8fd342fe0aed4ce2b9ab | [
"MIT"
] | 8 | 2017-06-09T22:19:00.000Z | 2017-08-10T10:44:01.000Z | msschem/runner.py | andreas-h/mss-chem | ae91f4f5b4c19a4ff0ce8fd342fe0aed4ce2b9ab | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import datetime
import logging
import os.path
import runpy
import sys
VERBOSE = True
QUIET = False
# TODO allow parallel download of different models
# TODO allow parallel download of species (??)
if __name__ == '__main__':
pars... | 29.87395 | 78 | 0.587623 |
e85e3de5145f8dac30242067d292b32a4de7ac35 | 609 | py | Python | oscar_mws/fulfillment/__init__.py | ButchershopCreative/django-oscar-mws | 582adc78f59578dbdf83d3ac145abc6bfc4a65ca | [
"BSD-3-Clause"
] | 12 | 2015-03-16T03:45:59.000Z | 2021-03-30T10:58:46.000Z | oscar_mws/fulfillment/__init__.py | ButchershopCreative/django-oscar-mws | 582adc78f59578dbdf83d3ac145abc6bfc4a65ca | [
"BSD-3-Clause"
] | 3 | 2016-01-05T17:45:13.000Z | 2019-04-27T12:01:53.000Z | oscar_mws/fulfillment/__init__.py | ButchershopCreative/django-oscar-mws | 582adc78f59578dbdf83d3ac145abc6bfc4a65ca | [
"BSD-3-Clause"
] | 20 | 2015-04-10T19:17:08.000Z | 2021-07-27T03:53:13.000Z | from django.utils.translation import ugettext_lazy as _
SHIPPING_STANDARD = 'Standard'
SHIPPING_EXPEDITED = 'Expedited'
SHIPPING_PRIORITY = 'Priority'
SHIPPING_SPEED_CATEGORIES = (
(SHIPPING_STANDARD, _("Standard")),
(SHIPPING_EXPEDITED, _("Expedited")),
(SHIPPING_PRIORITY, _("Priority")),
)
METHOD_CONS... | 21 | 55 | 0.740558 |
e8608fa57e48149116847118e359bdf6450a3512 | 2,155 | py | Python | utils/Deque.py | FedePeralta/ASVs_Deep_Reinforcement_Learning_with_CNNs | 23b9b181499a4b06f2ca2951c002359c1959e727 | [
"MIT"
] | 4 | 2021-03-22T12:42:55.000Z | 2021-12-13T03:03:52.000Z | utils/Deque.py | FedePeralta/ASVs_Deep_Reinforcement_Learning_with_CNNs | 23b9b181499a4b06f2ca2951c002359c1959e727 | [
"MIT"
] | null | null | null | utils/Deque.py | FedePeralta/ASVs_Deep_Reinforcement_Learning_with_CNNs | 23b9b181499a4b06f2ca2951c002359c1959e727 | [
"MIT"
] | 1 | 2021-03-22T12:48:21.000Z | 2021-03-22T12:48:21.000Z | import numpy as np
from utils.Node import Node | 43.979592 | 130 | 0.716009 |
e8612671385af374097910161c09d6d0e54b699c | 14,580 | py | Python | main.py | fedegy/Practica-1-Lenguajes-Formales | d0910bbfb9c9a0fce92114ab3a0af3e8ad606855 | [
"Apache-2.0"
] | null | null | null | main.py | fedegy/Practica-1-Lenguajes-Formales | d0910bbfb9c9a0fce92114ab3a0af3e8ad606855 | [
"Apache-2.0"
] | null | null | null | main.py | fedegy/Practica-1-Lenguajes-Formales | d0910bbfb9c9a0fce92114ab3a0af3e8ad606855 | [
"Apache-2.0"
] | null | null | null | import os
from tkinter import *
from tkinter import filedialog
global archivo
archivo= []
cadena2 = []
archivo = []
global cadena_inicial
cadena_inicial = []
global lista_numeros
lista_numeros = []
global intlist
intlist= []
global numeros1
numeros1=[]
global lista_buscar2
lista_buscar2 =... | 38.983957 | 192 | 0.446091 |
e861ce569c4e7e2066044a3b9bc98fef45f652e5 | 2,237 | py | Python | examples/plot_h2o_ch4.py | ucl-exoplanets/pyexocross | 703341cd0fddafcbb04e935c89ddc9d02dda9f59 | [
"BSD-3-Clause"
] | null | null | null | examples/plot_h2o_ch4.py | ucl-exoplanets/pyexocross | 703341cd0fddafcbb04e935c89ddc9d02dda9f59 | [
"BSD-3-Clause"
] | null | null | null | examples/plot_h2o_ch4.py | ucl-exoplanets/pyexocross | 703341cd0fddafcbb04e935c89ddc9d02dda9f59 | [
"BSD-3-Clause"
] | 1 | 2021-01-15T12:54:04.000Z | 2021-01-15T12:54:04.000Z | from pyexocross.hitran.hitran import HITRANLinelist
from pyexocross.pyexocross import PyExocross
from pyexocross.exomol.exomolbroads import ExomolBroadener
import numpy as np
from pyexocross.util import create_grid_res, convert_to_wavenumber
from pyexocross.writer.hdf5writer import HDF5Writer
import matplotlib.pyplot a... | 45.653061 | 138 | 0.774698 |
e86364a0e78b477db851ca092d4fc55c3f3c22d0 | 16,538 | py | Python | bnlp/data/conll2012.py | Nesting-Tech/zc-bnlp | 47fcf44b5cb6f4810a8bf612bb5f1bd2de94551d | [
"Apache-2.0"
] | 5 | 2019-04-03T07:35:48.000Z | 2019-04-03T07:39:12.000Z | bnlp/data/conll2012.py | Nesting-Tech/zc-bnlp | 47fcf44b5cb6f4810a8bf612bb5f1bd2de94551d | [
"Apache-2.0"
] | null | null | null | bnlp/data/conll2012.py | Nesting-Tech/zc-bnlp | 47fcf44b5cb6f4810a8bf612bb5f1bd2de94551d | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created by JoeYip on 29/03/2019
:copyright: (c) 2019 by nesting.xyz
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import operator
import re
import subprocess
import ... | 36.832962 | 126 | 0.605515 |
e863957db27a652b3f5aa222e29cdda492c6ee48 | 646 | py | Python | docs/examples/workflow_and_job/hourly_workflow.py | Tismas/bigflow | 6a4a14616d66beeaf45700ea340c97d797a1f9e5 | [
"Apache-2.0"
] | null | null | null | docs/examples/workflow_and_job/hourly_workflow.py | Tismas/bigflow | 6a4a14616d66beeaf45700ea340c97d797a1f9e5 | [
"Apache-2.0"
] | null | null | null | docs/examples/workflow_and_job/hourly_workflow.py | Tismas/bigflow | 6a4a14616d66beeaf45700ea340c97d797a1f9e5 | [
"Apache-2.0"
] | null | null | null | from bigflow.workflow import Workflow, hourly_start_time
from datetime import datetime
from datetime import timedelta
hourly_workflow = Workflow(
workflow_id='hourly_workflow',
schedule_interval='@hourly',
start_time_factory=hourly_start_time,
definition=[HourlyJob()])
if __name__ == '__main__':
... | 26.916667 | 106 | 0.695046 |
e86548e01e001f9af7049b85f9cb56452b040362 | 2,723 | py | Python | main.py | philos123/PyBacktesting | 1046e52899461003ba7e563445d7acfe1b459189 | [
"MIT"
] | 52 | 2020-12-13T23:01:03.000Z | 2022-03-09T05:54:32.000Z | main.py | philos123/PyBacktesting | 1046e52899461003ba7e563445d7acfe1b459189 | [
"MIT"
] | null | null | null | main.py | philos123/PyBacktesting | 1046e52899461003ba7e563445d7acfe1b459189 | [
"MIT"
] | 26 | 2021-03-05T12:39:39.000Z | 2022-02-21T02:32:03.000Z | #!/usr/local/bin/env python3.7
# -*- coding: utf-8; py-indent-offset:4 -*-
###############################################################################
#
# The MIT License (MIT)
# Copyright (c) 2020 Philippe Ostiguy
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this softwa... | 43.919355 | 105 | 0.673522 |
e865943b38c7fa0a91f989744dd08a3debd48239 | 400 | py | Python | ecommerce/cart/migrations/0023_auto_20210314_1656.py | MirjahonMirsaidov/ecommerce-web-app | 22d0fe5648b7acb5f819f7634abcf61b6bc12ed9 | [
"Unlicense"
] | null | null | null | ecommerce/cart/migrations/0023_auto_20210314_1656.py | MirjahonMirsaidov/ecommerce-web-app | 22d0fe5648b7acb5f819f7634abcf61b6bc12ed9 | [
"Unlicense"
] | null | null | null | ecommerce/cart/migrations/0023_auto_20210314_1656.py | MirjahonMirsaidov/ecommerce-web-app | 22d0fe5648b7acb5f819f7634abcf61b6bc12ed9 | [
"Unlicense"
] | null | null | null | # Generated by Django 3.1.2 on 2021-03-14 11:56
from django.db import migrations, models
| 21.052632 | 57 | 0.6125 |
e867462ed5d0f31a13de873096808bbf2b0c3e5b | 10,570 | py | Python | src/main_video.py | shortvol/sudokusolver | 15921ac0752e571c569094bf57c11ad18589d8bd | [
"MIT"
] | null | null | null | src/main_video.py | shortvol/sudokusolver | 15921ac0752e571c569094bf57c11ad18589d8bd | [
"MIT"
] | null | null | null | src/main_video.py | shortvol/sudokusolver | 15921ac0752e571c569094bf57c11ad18589d8bd | [
"MIT"
] | null | null | null | from tensorflow.keras.models import load_model
from src.extract_n_solve.extract_digits import process_extract_digits_single
from src.extract_n_solve.grid_detector_img import main_grid_detector_img
from src.extract_n_solve.grid_solver import main_solve_grid
from src.extract_n_solve.new_img_generator import *
from src.s... | 41.45098 | 113 | 0.609934 |
e867d8367de7a944108e351fb3693f3fedf74024 | 178 | py | Python | adscore/__init__.py | shinyichen/ADSCore | bf0bf6487db94093144687a60390366e3ff8a136 | [
"MIT"
] | null | null | null | adscore/__init__.py | shinyichen/ADSCore | bf0bf6487db94093144687a60390366e3ff8a136 | [
"MIT"
] | 14 | 2019-08-09T15:37:40.000Z | 2022-02-17T13:22:46.000Z | adscore/__init__.py | shinyichen/ADSCore | bf0bf6487db94093144687a60390366e3ff8a136 | [
"MIT"
] | 5 | 2019-08-05T15:31:31.000Z | 2021-04-20T20:35:28.000Z | from adscore import routes
from adscore import api
from adscore import crawlers
from adscore.app import app, create_app
from adscore import tools
from adscore import flask_redis
| 25.428571 | 39 | 0.848315 |
e868df19f6af54dff01b87a764b10fb6378ce377 | 2,044 | py | Python | examples/twitter_roa/settings.py | lhaze/django-roa | 0a2de99b5ceec53c226e3c36d88cb19118c3ae72 | [
"BSD-3-Clause"
] | 31 | 2015-01-11T09:16:15.000Z | 2021-05-04T09:15:27.000Z | examples/twitter_roa/settings.py | lhaze/django-roa | 0a2de99b5ceec53c226e3c36d88cb19118c3ae72 | [
"BSD-3-Clause"
] | 8 | 2015-01-06T21:35:35.000Z | 2015-04-08T21:36:09.000Z | examples/twitter_roa/settings.py | lhaze/django-roa | 0a2de99b5ceec53c226e3c36d88cb19118c3ae72 | [
"BSD-3-Clause"
] | 18 | 2015-02-02T22:56:58.000Z | 2021-05-04T09:43:48.000Z | import os
ROOT_PATH = os.path.dirname(__file__)
TEMPLATE_DEBUG = DEBUG = True
MANAGERS = ADMINS = ()
DATABASE_ENGINE = 'sqlite3'
DATABASE_NAME = os.path.join(ROOT_PATH, 'testdb.sqlite')
TIME_ZONE = 'America/Chicago'
LANGUAGE_CODE = 'en-us'
SITE_ID = 1
USE_I18N = True
MEDIA_ROOT = ''
MEDIA_URL = ''
ADMIN_MEDIA_PREFIX ... | 30.507463 | 96 | 0.727984 |
e8697173df0652e2791a64df71f2111df4f051ca | 9,314 | py | Python | allhub/all_hub.py | srinivasreddy/allhub | ff20858c9984da5c4edd5043c39eed3b6d5d693d | [
"Apache-2.0"
] | 2 | 2019-10-07T15:46:33.000Z | 2019-11-26T04:30:39.000Z | allhub/all_hub.py | srinivasreddy/allhub | ff20858c9984da5c4edd5043c39eed3b6d5d693d | [
"Apache-2.0"
] | 1 | 2020-03-09T14:44:04.000Z | 2020-03-09T14:44:04.000Z | allhub/all_hub.py | srinivasreddy/allhub | ff20858c9984da5c4edd5043c39eed3b6d5d693d | [
"Apache-2.0"
] | 2 | 2019-10-08T05:22:37.000Z | 2019-10-08T06:20:47.000Z | import os
from urllib.parse import urljoin
import requests
from allhub.activity import ActivityMixin
from allhub.orgs import OrganizationMixin
from allhub.gists import GistMixin
from allhub.oauth import OAuthMixin
from allhub.users import UsersMixin
from allhub.util import MimeType, ConflictCheck, config
from allhub.re... | 34.753731 | 101 | 0.643118 |
e8698ba1d6abd6a987f45f07a5c5f9894f516c4e | 1,195 | py | Python | tests/read_config.py | tyxio/txpy-azurehelper | 50b8651b84e0686030fef67a10c819ac855995b3 | [
"MIT"
] | null | null | null | tests/read_config.py | tyxio/txpy-azurehelper | 50b8651b84e0686030fef67a10c819ac855995b3 | [
"MIT"
] | null | null | null | tests/read_config.py | tyxio/txpy-azurehelper | 50b8651b84e0686030fef67a10c819ac855995b3 | [
"MIT"
] | null | null | null | import logging.config
import os
import yaml
__location__ = os.path.realpath(
os.path.join(os.getcwd(), os.path.dirname(__file__)))
| 30.641026 | 93 | 0.607531 |
e86af408b93b3a26d9423358c871aeb5e1c679fe | 2,523 | py | Python | engines/dotflow2/extensions/mscs_sentiment_analysis.py | NunoEdgarGFlowHub/rhizome | 6fcb77c4cc38e662cd805fc5df7845b4c97c5ea0 | [
"MIT"
] | 8 | 2018-10-30T10:11:33.000Z | 2020-12-01T05:36:19.000Z | engines/dotflow2/extensions/mscs_sentiment_analysis.py | NunoEdgarGFlowHub/rhizome | 6fcb77c4cc38e662cd805fc5df7845b4c97c5ea0 | [
"MIT"
] | 16 | 2018-10-26T00:04:11.000Z | 2021-04-30T20:59:14.000Z | engines/dotflow2/extensions/mscs_sentiment_analysis.py | SeedVault/bbot-py | b94ef5e75411ac4a214f5ac54d04ce00d9108ec0 | [
"MIT"
] | 3 | 2019-03-11T13:42:47.000Z | 2019-12-03T13:19:33.000Z |
import requests
import logging
from bbot.core import ChatbotEngine, BBotException, BBotCore, BBotExtensionException
from engines.dotflow2.chatbot_engine import DotFlow2LoggerAdapter
| 32.346154 | 163 | 0.583829 |
e86b1bb58cf35277c0e77a6a3927a3bf3db53aa6 | 3,831 | py | Python | poor_trader/sample/trading_systems.py | johndpope/poor-trader-py | 097fbb10c217abe0db5a2cd55d73e0ad2990acd9 | [
"MIT"
] | 1 | 2020-03-30T19:04:39.000Z | 2020-03-30T19:04:39.000Z | poor_trader/sample/trading_systems.py | johndpope/poor-trader-py | 097fbb10c217abe0db5a2cd55d73e0ad2990acd9 | [
"MIT"
] | null | null | null | poor_trader/sample/trading_systems.py | johndpope/poor-trader-py | 097fbb10c217abe0db5a2cd55d73e0ad2990acd9 | [
"MIT"
] | null | null | null |
import os
import pandas as pd
from poor_trader import config
from poor_trader import trading
from poor_trader import systems
| 46.719512 | 122 | 0.667711 |
e86ba59b27e6dbeb36683496cd7cae2e5abddfb2 | 14,356 | py | Python | fileExplorer.py | aff3ct/PyBER | c84e1f63c193c5661ab8917a97264e4b899b7be0 | [
"MIT"
] | 10 | 2017-06-26T09:12:51.000Z | 2021-07-11T06:31:34.000Z | fileExplorer.py | aff3ct/PyBER | c84e1f63c193c5661ab8917a97264e4b899b7be0 | [
"MIT"
] | 6 | 2017-09-16T03:05:48.000Z | 2019-11-12T23:55:29.000Z | fileExplorer.py | aff3ct/PyBER | c84e1f63c193c5661ab8917a97264e4b899b7be0 | [
"MIT"
] | 5 | 2017-09-20T23:44:24.000Z | 2021-08-09T08:48:21.000Z | # The MIT License (MIT)
#
# Copyright (c) 2018 PyBER
#
# 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, mer... | 33.858491 | 153 | 0.679159 |
e86c98c97c5408ae2e09367d971c6294affbf58a | 2,739 | py | Python | code_and_dataset/config_parser.py | pcpLiu/DeepSeqPanII | 86ce7675a1c69fd6059216d98b1e65e315ace3eb | [
"MIT"
] | 11 | 2019-10-30T12:41:56.000Z | 2021-11-17T02:45:52.000Z | code_and_dataset/config_parser.py | pcpLiu/DeepSeqPanII | 86ce7675a1c69fd6059216d98b1e65e315ace3eb | [
"MIT"
] | 2 | 2020-12-18T00:02:54.000Z | 2021-11-19T02:33:37.000Z | code_and_dataset/config_parser.py | pcpLiu/DeepSeqPanII | 86ce7675a1c69fd6059216d98b1e65e315ace3eb | [
"MIT"
] | 3 | 2020-03-09T06:25:20.000Z | 2021-08-02T11:36:46.000Z | # -*- coding: utf-8 -*-
import os
import json
import torch
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
| 24.675676 | 87 | 0.642935 |
e86c9f80e62f3e346afa8de91ef3822a15df1fc1 | 2,210 | py | Python | tests/test_mean_ess.py | nikopj/NonStationaryFKL | fc4f1d06b86d5f06523ea2c2b3f5c7b0ceb17098 | [
"BSD-2-Clause"
] | 35 | 2019-06-14T22:00:23.000Z | 2021-08-29T18:35:21.000Z | tests/test_mean_ess.py | nikopj/NonStationaryFKL | fc4f1d06b86d5f06523ea2c2b3f5c7b0ceb17098 | [
"BSD-2-Clause"
] | 2 | 2020-02-16T13:07:18.000Z | 2020-08-29T02:45:43.000Z | tests/test_mean_ess.py | nikopj/NonStationaryFKL | fc4f1d06b86d5f06523ea2c2b3f5c7b0ceb17098 | [
"BSD-2-Clause"
] | 7 | 2019-06-22T06:12:51.000Z | 2020-11-24T21:04:39.000Z | import unittest
import torch
import numpy as np
from spectralgp.samplers import MeanEllipticalSlice
if __name__ == "__main__":
unittest.main()
| 32.985075 | 102 | 0.61629 |
e86ce796c71c5e5ab7040e934bb5c743e217f39c | 3,207 | py | Python | cfdutils/examples/onera/onera.py | acrovato/pycfdutils | bcad3b9ac3e3bb98ede549db395e0ee87716b00d | [
"Apache-2.0"
] | null | null | null | cfdutils/examples/onera/onera.py | acrovato/pycfdutils | bcad3b9ac3e3bb98ede549db395e0ee87716b00d | [
"Apache-2.0"
] | null | null | null | cfdutils/examples/onera/onera.py | acrovato/pycfdutils | bcad3b9ac3e3bb98ede549db395e0ee87716b00d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf8 -*-
# test encoding: -----
# Copyright 2020 Adrien Crovato
#
# 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/... | 35.241758 | 106 | 0.623636 |
e86e6c8cb0c671cea30bff7e2b04bc2e6c6e9109 | 1,449 | py | Python | tasklist/models.py | 10000volts/JLGLTaskList | 12f0f95d70467211710cd302592436e79929b775 | [
"MIT"
] | null | null | null | tasklist/models.py | 10000volts/JLGLTaskList | 12f0f95d70467211710cd302592436e79929b775 | [
"MIT"
] | 4 | 2021-04-08T21:39:46.000Z | 2021-06-10T20:02:01.000Z | tasklist/models.py | 10000volts/JLGLTaskList | 12f0f95d70467211710cd302592436e79929b775 | [
"MIT"
] | null | null | null | from django.db import models
from django.db.models import Q, Prefetch
from django.db import transaction
from utils.constants import TASK_STATUS, TASK_STATUS_CHOICES
| 32.931818 | 83 | 0.628709 |
e86f19d1113cb432eba3c0d5cc2165ccc14b2af8 | 9,486 | py | Python | panel/widgets/input.py | NoamGit/panel | 4321845b327fb2f6165170939f4f633bbe234782 | [
"BSD-3-Clause"
] | 1 | 2019-10-15T13:21:20.000Z | 2019-10-15T13:21:20.000Z | panel/widgets/input.py | jonmmease/panel | c588d0dff9418bc781b0a7dc943a5ebd3ca0c4eb | [
"BSD-3-Clause"
] | null | null | null | panel/widgets/input.py | jonmmease/panel | c588d0dff9418bc781b0a7dc943a5ebd3ca0c4eb | [
"BSD-3-Clause"
] | 1 | 2019-06-04T04:17:53.000Z | 2019-06-04T04:17:53.000Z | """
The input widgets generally allow entering arbitrary information into
a text field or similar.
"""
from __future__ import absolute_import, division, unicode_literals
import ast
from base64 import b64decode, b64encode
from datetime import datetime
from six import string_types
import param
from bokeh.models.widge... | 31.306931 | 92 | 0.577377 |
e86f83e01cdd8465f49434af0b31c9f7519a119a | 2,395 | py | Python | hass_apps/heaty/window_sensor.py | taste66/hass-apps | 93f03a823f0ed8b3b32be5da30c5aaf0fcb1d92a | [
"Apache-2.0"
] | null | null | null | hass_apps/heaty/window_sensor.py | taste66/hass-apps | 93f03a823f0ed8b3b32be5da30c5aaf0fcb1d92a | [
"Apache-2.0"
] | null | null | null | hass_apps/heaty/window_sensor.py | taste66/hass-apps | 93f03a823f0ed8b3b32be5da30c5aaf0fcb1d92a | [
"Apache-2.0"
] | null | null | null | """
This module implements the WindowSensor class.
"""
import typing as T
if T.TYPE_CHECKING:
# pylint: disable=cyclic-import,unused-import
from .room import Room
import observable
from .. import common
| 31.103896 | 76 | 0.582463 |
e8701257b4e01a4d26007b2cee43126dca46dedf | 837 | py | Python | common/web_client.py | newsettle/ns4_chatbot | 526b97aa31292c28d10518bbfaa7466b8ba109ee | [
"Apache-2.0"
] | 51 | 2019-03-29T11:47:55.000Z | 2021-04-16T02:40:35.000Z | common/web_client.py | piginzoo/ns4_chatbot | 526b97aa31292c28d10518bbfaa7466b8ba109ee | [
"Apache-2.0"
] | 7 | 2019-04-16T01:46:01.000Z | 2022-03-11T23:44:09.000Z | common/web_client.py | newsettle/ns4_chatbot | 526b97aa31292c28d10518bbfaa7466b8ba109ee | [
"Apache-2.0"
] | 20 | 2019-04-02T03:37:38.000Z | 2021-12-31T09:25:12.000Z | # -*- coding=utf-8 -*-
import urllib2
import json
import logger
import traceback
if __name__ == "__main__":
logger.init_4_debug()
| 31 | 78 | 0.636798 |
e8709f79e317a9c7cd2146a4a0c28214ab5b7958 | 22 | py | Python | tccli/services/wss/v20180426/__init__.py | zyh911/tencentcloud-cli | dfc5dbd660d4c60d265921c4edc630091478fc41 | [
"Apache-2.0"
] | null | null | null | tccli/services/wss/v20180426/__init__.py | zyh911/tencentcloud-cli | dfc5dbd660d4c60d265921c4edc630091478fc41 | [
"Apache-2.0"
] | null | null | null | tccli/services/wss/v20180426/__init__.py | zyh911/tencentcloud-cli | dfc5dbd660d4c60d265921c4edc630091478fc41 | [
"Apache-2.0"
] | null | null | null | version = "2018-04-26" | 22 | 22 | 0.681818 |
e872cf24716cc1672cb4cbbb521b80d4ebf01692 | 801 | py | Python | notebooks/solutions/02-ex2-solution.py | ankitaguhaoakland/ml-workshop-intro | c075e9f04b044edd37f279d204af2810187a98bd | [
"MIT"
] | 1 | 2021-03-31T14:06:26.000Z | 2021-03-31T14:06:26.000Z | notebooks/solutions/02-ex2-solution.py | ankitaguhaoakland/ml-workshop-intro | c075e9f04b044edd37f279d204af2810187a98bd | [
"MIT"
] | null | null | null | notebooks/solutions/02-ex2-solution.py | ankitaguhaoakland/ml-workshop-intro | c075e9f04b044edd37f279d204af2810187a98bd | [
"MIT"
] | null | null | null | from sklearn.datasets import load_wine
from sklearn.neighbors import KNeighborsClassifier
from sklearn.ensemble import RandomForestClassifier
from sklearn.linear_model import LogisticRegression
wine = load_wine(as_frame=True)
X, y = wine.data, wine.target
X_train, X_test, y_train, y_test = train_test_split(
X, y... | 27.62069 | 52 | 0.755306 |
e873290b82b21476d01ffb34ba0ea8df2ff20e15 | 7,055 | py | Python | API/main/migrations/0001_initial.py | Ju99ernaut/grapeflowAPI | 0d6599775e5b666ad735160b65262624fea0bf99 | [
"MIT"
] | null | null | null | API/main/migrations/0001_initial.py | Ju99ernaut/grapeflowAPI | 0d6599775e5b666ad735160b65262624fea0bf99 | [
"MIT"
] | null | null | null | API/main/migrations/0001_initial.py | Ju99ernaut/grapeflowAPI | 0d6599775e5b666ad735160b65262624fea0bf99 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2020-02-25 18:50
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid
| 51.875 | 144 | 0.55691 |
e87510c261dc5d69e5ab1b901254bf224cc53156 | 3,295 | py | Python | pyaws/utils/time.py | mwozniczak/pyaws | af8f6d64ff47fd2ef2eb9fef25680e4656523fa3 | [
"MIT"
] | null | null | null | pyaws/utils/time.py | mwozniczak/pyaws | af8f6d64ff47fd2ef2eb9fef25680e4656523fa3 | [
"MIT"
] | null | null | null | pyaws/utils/time.py | mwozniczak/pyaws | af8f6d64ff47fd2ef2eb9fef25680e4656523fa3 | [
"MIT"
] | null | null | null | """
Summary:
- Command-line Interface (CLI) Utilities Module
- Python3
Module Functions:
- convert_strtime_datetime:
Convert human-readable datetime string into a datetime object for
conducting time operations.
- convert_timedelta:
Convert a datetime duration object into human-r... | 32.623762 | 93 | 0.594841 |
e8757496e36b307af85c05cdd4dd6a56e81063f4 | 145 | py | Python | name_translator.py | MathisBurger/timetable-updater | aa6c3180f4ae858cb2c63ccad7855f5f670c4114 | [
"MIT"
] | null | null | null | name_translator.py | MathisBurger/timetable-updater | aa6c3180f4ae858cb2c63ccad7855f5f670c4114 | [
"MIT"
] | null | null | null | name_translator.py | MathisBurger/timetable-updater | aa6c3180f4ae858cb2c63ccad7855f5f670c4114 | [
"MIT"
] | null | null | null | import json
| 18.125 | 51 | 0.655172 |
e876bb50d8ee0021ee27d7402634cce9a0b1b389 | 756 | py | Python | lista1/156_Ananagrams/156_Ananagrams.py | L30Bola/mab606 | c29a781752b1d12b0df308d604496c7ffa0c5b6e | [
"BSL-1.0"
] | null | null | null | lista1/156_Ananagrams/156_Ananagrams.py | L30Bola/mab606 | c29a781752b1d12b0df308d604496c7ffa0c5b6e | [
"BSL-1.0"
] | null | null | null | lista1/156_Ananagrams/156_Ananagrams.py | L30Bola/mab606 | c29a781752b1d12b0df308d604496c7ffa0c5b6e | [
"BSL-1.0"
] | null | null | null | #!/usr/bin/env python
import sys
import collections
listas = list(map(str.split, sys.stdin.readlines()))
entrada = [item for sublist in listas for item in sublist] # simplificando as listas, para facilitar
contador = collections.Counter()
palavras = []
for palavra in entrada:
if palavra == "#":
break
palavr... | 29.076923 | 100 | 0.756614 |
e87707daa361084b5b65d7322aabe0f103ce0c0e | 1,253 | py | Python | tests/test_evaluation.py | manslogic/rasa_core | 17c82e6be052fc147caef9a9914d06f79a944687 | [
"Apache-2.0"
] | 1 | 2018-07-03T16:04:17.000Z | 2018-07-03T16:04:17.000Z | tests/test_evaluation.py | jenish-cj/botnlufoodrest | b41aa2c7a1f6e492e10f07e67562b612b5b13a53 | [
"Apache-2.0"
] | null | null | null | tests/test_evaluation.py | jenish-cj/botnlufoodrest | b41aa2c7a1f6e492e10f07e67562b612b5b13a53 | [
"Apache-2.0"
] | 2 | 2019-02-18T07:38:26.000Z | 2021-07-17T16:24:03.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import imghdr
import os
from rasa_core.evaluate import run_story_evaluation, \
collect_story_predictions
from tests.conftest import DEFAULT_STORIES_FILE
| 29.833333 | 59 | 0.718276 |
e877b89db0bfb82ba58d14b983fc1ab24f7cf650 | 3,138 | py | Python | PlatformAgents/com/cognizant/devops/platformagents/agents/deployment/xldeploy/XLDeployAgent3.py | gauravl612/Insights | 08efd4c4fb3658ebaa9fd2d9ffd1809b83fc397c | [
"Apache-2.0"
] | 1 | 2021-04-29T11:28:37.000Z | 2021-04-29T11:28:37.000Z | PlatformAgents/com/cognizant/devops/platformagents/agents/deployment/xldeploy/XLDeployAgent3.py | gauravl612/Insights | 08efd4c4fb3658ebaa9fd2d9ffd1809b83fc397c | [
"Apache-2.0"
] | 1 | 2021-04-13T05:34:16.000Z | 2021-04-13T05:34:16.000Z | PlatformAgents/com/cognizant/devops/platformagents/agents/deployment/xldeploy/XLDeployAgent3.py | gauravl612/Insights | 08efd4c4fb3658ebaa9fd2d9ffd1809b83fc397c | [
"Apache-2.0"
] | null | null | null | #-------------------------------------------------------------------------------
# Copyright 2017 Cognizant Technology Solutions
#
# 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:... | 42.986301 | 103 | 0.553856 |
e877bcdf6e8af748d44d8529353ac8f08314df2b | 1,853 | py | Python | torchsupport/structured/chunkable.py | bobelly/torchsupport | 5aa0a04f20c193ec99310f5d6a3375d2e95e740d | [
"MIT"
] | 18 | 2019-05-02T16:32:15.000Z | 2021-04-16T09:33:54.000Z | torchsupport/structured/chunkable.py | bobelly/torchsupport | 5aa0a04f20c193ec99310f5d6a3375d2e95e740d | [
"MIT"
] | 5 | 2019-10-14T13:46:49.000Z | 2021-06-08T11:48:34.000Z | torchsupport/structured/chunkable.py | bobelly/torchsupport | 5aa0a04f20c193ec99310f5d6a3375d2e95e740d | [
"MIT"
] | 12 | 2019-05-12T21:34:24.000Z | 2021-07-15T14:14:16.000Z | import torch
from torch.nn.parallel.scatter_gather import Scatter
def scatter_chunked(inputs, target_gpus, dim=0):
r"""
Slices tensors into approximately equal chunks and
distributes them across given GPUs. Duplicates
references to objects that are not tensors.
"""
try:
return scatter_map(inputs)
fi... | 33.089286 | 70 | 0.699406 |
e879a021a202e01effe229f08a5ace1da13c48a5 | 1,030 | py | Python | viz/main.py | YoniSchirris/SimCLR-1 | 535472ac76d24d368d3bc08c17987df315e0b657 | [
"Apache-2.0"
] | 1 | 2021-12-03T12:59:39.000Z | 2021-12-03T12:59:39.000Z | viz/main.py | YoniSchirris/SimCLR-1 | 535472ac76d24d368d3bc08c17987df315e0b657 | [
"Apache-2.0"
] | null | null | null | viz/main.py | YoniSchirris/SimCLR-1 | 535472ac76d24d368d3bc08c17987df315e0b657 | [
"Apache-2.0"
] | null | null | null | import torch
from viz.visualizer import Visualizer
from modules.deepmil import Attention
from msidata.dataset_msi_features_with_patients import PreProcessedMSIFeatureDataset
from testing.logistic_regression import get_precomputed_dataloader
import argparse
from experiment import ex
from utils import post_config_hook... | 22.391304 | 87 | 0.72233 |
e879fd71ea6d131c8a7d4e47e9c565b330dabbe2 | 340 | py | Python | projects/golem_e2e/tests/login/login_missing_password.py | kangchenwei/keyautotest2 | f980d46cabfc128b2099af3d33968f236923063f | [
"MIT"
] | null | null | null | projects/golem_e2e/tests/login/login_missing_password.py | kangchenwei/keyautotest2 | f980d46cabfc128b2099af3d33968f236923063f | [
"MIT"
] | null | null | null | projects/golem_e2e/tests/login/login_missing_password.py | kangchenwei/keyautotest2 | f980d46cabfc128b2099af3d33968f236923063f | [
"MIT"
] | null | null | null |
description = 'Verify the user cannot log in if password value is missing'
pages = ['login']
| 28.333333 | 74 | 0.735294 |
e87bc8cc8dabdbfbb895c83154f1502cc87556de | 3,960 | py | Python | scripts/09-architecture-vgg.py | jmrozanec/white-bkg-classification | 3cdc8a4842ab72ce1950cdd4da5d1692f88c295b | [
"Apache-2.0"
] | 2 | 2017-04-19T14:27:42.000Z | 2021-06-30T06:40:57.000Z | scripts/09-architecture-vgg.py | jmrozanec/white-bkg-classification | 3cdc8a4842ab72ce1950cdd4da5d1692f88c295b | [
"Apache-2.0"
] | null | null | null | scripts/09-architecture-vgg.py | jmrozanec/white-bkg-classification | 3cdc8a4842ab72ce1950cdd4da5d1692f88c295b | [
"Apache-2.0"
] | null | null | null | #TFLearn bug regarding image loading: https://github.com/tflearn/tflearn/issues/180
#Monochromes img-magick: https://poizan.dk/blog/2014/02/28/monochrome-images-in-imagemagick/
#How to persist a model: https://github.com/tflearn/tflearn/blob/master/examples/basics/weights_persistence.py
from __future__ import division,... | 43.043478 | 110 | 0.690657 |
e87bfc2df49be35ad4d4725f2a412dd8728e4e79 | 392 | py | Python | client.py | octoi/simple-file-transfer | 0b6f872530363751b6a6d2f1bbfd99b8ffd5fb0c | [
"MIT"
] | null | null | null | client.py | octoi/simple-file-transfer | 0b6f872530363751b6a6d2f1bbfd99b8ffd5fb0c | [
"MIT"
] | null | null | null | client.py | octoi/simple-file-transfer | 0b6f872530363751b6a6d2f1bbfd99b8ffd5fb0c | [
"MIT"
] | null | null | null | import socket
s = socket.socket()
host = input(str("Please enter the host address of the sender: "))
port = 8080
s.connect((host, port))
print(f"[+] CONNECTED TO {host}:{port}")
filename = input(str("Please enter filename for the incoming file: "))
file = open(filename, 'wb')
file_data = s.recv(1024)
file.write(fi... | 20.631579 | 70 | 0.696429 |
e87c1eb3a1fc5933ac084b08ee6c28e19afa0d6a | 3,413 | py | Python | examplesFromForkedLibraries/PhilReinholdPygrape/4 discarded/benchmarks.py | rayonde/yarn | a8259292791b3332e8521baeb6c7ee78afb53ae2 | [
"MIT"
] | 1 | 2020-07-09T13:31:21.000Z | 2020-07-09T13:31:21.000Z | examplesFromForkedLibraries/PhilReinholdPygrape/4 discarded/benchmarks.py | rayonde/yarn | a8259292791b3332e8521baeb6c7ee78afb53ae2 | [
"MIT"
] | null | null | null | examplesFromForkedLibraries/PhilReinholdPygrape/4 discarded/benchmarks.py | rayonde/yarn | a8259292791b3332e8521baeb6c7ee78afb53ae2 | [
"MIT"
] | null | null | null | import qutip as q
import numpy as np
import scipy.sparse.linalg
from pygrape.cugrape.configure_cugrape import configure, get_hmt_ops
from pygrape.cugrape.almohy import get_taylor_params
from pygrape.setups import StateTransferSetup
from pygrape.cuda_setup import CudaStateTransferSetup
# if __name__ == '__main__':
# ... | 33.460784 | 98 | 0.562848 |
e87d57d0c478e441bd8e2fe9c189947046ddeca4 | 39,545 | py | Python | fsleyes/layouts.py | pauldmccarthy/fsleyes | 453a6b91ec7763c39195814d635257e3766acf83 | [
"Apache-2.0"
] | 12 | 2018-05-05T01:36:25.000Z | 2021-09-23T20:44:08.000Z | fsleyes/layouts.py | pauldmccarthy/fsleyes | 453a6b91ec7763c39195814d635257e3766acf83 | [
"Apache-2.0"
] | 97 | 2018-05-05T02:17:23.000Z | 2022-03-29T14:58:42.000Z | fsleyes/layouts.py | pauldmccarthy/fsleyes | 453a6b91ec7763c39195814d635257e3766acf83 | [
"Apache-2.0"
] | 6 | 2017-12-09T09:02:00.000Z | 2021-03-05T18:55:13.000Z | #!/usr/bin/env python
#
# layout.py - The layout API (previously called "perspectives").
#
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
#
"""This module provides functions for managing *layouts* - stored view and
control panel layouts for *FSLeyes*. Layouts may be persisted using the
:mod:`.settings` module. A few... | 49.185323 | 1,435 | 0.62157 |
e87d88f77b09918a50134530b2845176e0ad517a | 6,079 | py | Python | annotation/application/document.py | seal-git/chABSA-dataset | a33b59e1101e451495735c69094d4f598d54f6f4 | [
"MIT"
] | 107 | 2018-04-10T09:13:57.000Z | 2022-03-31T15:21:20.000Z | annotation/application/document.py | seal-git/chABSA-dataset | a33b59e1101e451495735c69094d4f598d54f6f4 | [
"MIT"
] | 2 | 2018-10-27T05:47:47.000Z | 2022-02-25T10:06:43.000Z | annotation/application/document.py | seal-git/chABSA-dataset | a33b59e1101e451495735c69094d4f598d54f6f4 | [
"MIT"
] | 9 | 2018-04-11T00:59:15.000Z | 2022-02-25T11:50:33.000Z | import os
import shutil
import json
| 32.335106 | 102 | 0.553216 |
e87e61caeabea7a4911a24a31a3d383ae4ecb968 | 126 | py | Python | Server/myLibrary/admin.py | sepehrNorouzi/SemUniLib | dffeeb769ce5da4fb45a83d1792ec24adbb866e9 | [
"MIT"
] | null | null | null | Server/myLibrary/admin.py | sepehrNorouzi/SemUniLib | dffeeb769ce5da4fb45a83d1792ec24adbb866e9 | [
"MIT"
] | null | null | null | Server/myLibrary/admin.py | sepehrNorouzi/SemUniLib | dffeeb769ce5da4fb45a83d1792ec24adbb866e9 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Book, Favorite
admin.site.register(Book)
admin.site.register(Favorite) | 18 | 34 | 0.809524 |
e88065d21621edc95c47aa6a03e2fdbde75bbf30 | 329 | py | Python | kwickstart/templates/flask/app.py | TxConvergentAdmin/convergent-kwickstart | 42374a1705c019ceb34e6ece718df3c17695b852 | [
"MIT"
] | 1 | 2020-02-07T17:52:48.000Z | 2020-02-07T17:52:48.000Z | kwickstart/templates/flask/app.py | TxConvergentAdmin/convergent-kwickstart | 42374a1705c019ceb34e6ece718df3c17695b852 | [
"MIT"
] | null | null | null | kwickstart/templates/flask/app.py | TxConvergentAdmin/convergent-kwickstart | 42374a1705c019ceb34e6ece718df3c17695b852 | [
"MIT"
] | null | null | null | from flask import Flask, jsonify, request
PORT = 5000
app = Flask(__name__)
if __name__ == "__main__":
print('Running on http://127.0.0.1:' + str(PORT))
app.run('0.0.0.0', PORT)
| 16.45 | 53 | 0.613982 |
e880fa35b7e36d07b02deb13e8b1c032e539faee | 7,407 | py | Python | backend/kesaseteli/applications/api/v1/views.py | jannetasa/yjdh | 5d86a56c722dfbcee03110f66c7e7ddbea966db9 | [
"MIT"
] | null | null | null | backend/kesaseteli/applications/api/v1/views.py | jannetasa/yjdh | 5d86a56c722dfbcee03110f66c7e7ddbea966db9 | [
"MIT"
] | null | null | null | backend/kesaseteli/applications/api/v1/views.py | jannetasa/yjdh | 5d86a56c722dfbcee03110f66c7e7ddbea966db9 | [
"MIT"
] | null | null | null | from django.core import exceptions
from django.http import FileResponse
from django.utils.text import format_lazy
from django.utils.translation import gettext_lazy as _
from rest_framework import status
from rest_framework.decorators import action
from rest_framework.exceptions import ValidationError
from rest_framewor... | 35.104265 | 88 | 0.63413 |
e8817a9d7c1201faed352ef258a2c751aff02a0a | 88 | py | Python | run.py | tildecross/tildex-txdb | bc32e1875c55cedfbf4ce7d00174b4b7bf68525f | [
"BSD-3-Clause"
] | null | null | null | run.py | tildecross/tildex-txdb | bc32e1875c55cedfbf4ce7d00174b4b7bf68525f | [
"BSD-3-Clause"
] | 1 | 2017-10-15T01:11:11.000Z | 2019-10-18T20:02:32.000Z | run.py | tildecross/tildex-txdb | bc32e1875c55cedfbf4ce7d00174b4b7bf68525f | [
"BSD-3-Clause"
] | null | null | null | #!env/bin/python3
from app import app
app.run(debug=True, host="localhost", port=8202)
| 17.6 | 48 | 0.738636 |
e88349bf365f46b6777bfd58c649dbe067a90780 | 8,647 | py | Python | yiff_image_scraper.py | viktor02/Yiff.party-Image-Scraper | 44018a23ff2ddb4d38a44200aab56e1c01457821 | [
"MIT"
] | null | null | null | yiff_image_scraper.py | viktor02/Yiff.party-Image-Scraper | 44018a23ff2ddb4d38a44200aab56e1c01457821 | [
"MIT"
] | null | null | null | yiff_image_scraper.py | viktor02/Yiff.party-Image-Scraper | 44018a23ff2ddb4d38a44200aab56e1c01457821 | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup as bs
import requests
import sys
import os
import platform
amountOfLinks = len(sys.argv)-1
urlCounter = 0
urlList = []
missingFiles = []
userAgent = "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2225.0 Safari/537.36"
dirSep = ""
system... | 35.293878 | 165 | 0.566902 |
e8842b920ecc15088becbb1b9e81fd1fd0244038 | 3,031 | py | Python | api.py | klapp101/GOAT | f948bf8d6566f27e6b55ed49a34dc470df854249 | [
"MIT"
] | 1 | 2020-06-13T04:24:23.000Z | 2020-06-13T04:24:23.000Z | api.py | klapp101/GOAT | f948bf8d6566f27e6b55ed49a34dc470df854249 | [
"MIT"
] | null | null | null | api.py | klapp101/GOAT | f948bf8d6566f27e6b55ed49a34dc470df854249 | [
"MIT"
] | null | null | null | import json
import requests
import time
from discord_webhook import DiscordWebhook, DiscordEmbed
webhook_url = 'https://discordapp.com/api/webhooks/672159508675690497/4UtaClAc7rKMJsEvbR4iYf-Razv4M3ZWtkYDOxBzLfiDzJhI7RSFpoLn6iijBiRcaNOR'
webhook = DiscordWebhook(webhook_url)
pid = '508214-660'
headers = {
'Connecti... | 40.413333 | 238 | 0.670406 |
e8846d4d1a26fec464850cfbf7a7e60056a6debf | 3,898 | py | Python | pytai/tests/test_application.py | angea/pytai | 2db2518be9c4324aed182f36208c0e0ccf53a96c | [
"Apache-2.0"
] | 30 | 2021-08-12T12:50:18.000Z | 2022-02-18T03:49:20.000Z | pytai/tests/test_application.py | angea/pytai | 2db2518be9c4324aed182f36208c0e0ccf53a96c | [
"Apache-2.0"
] | 3 | 2021-10-31T17:28:39.000Z | 2021-11-12T13:19:14.000Z | pytai/tests/test_application.py | angea/pytai | 2db2518be9c4324aed182f36208c0e0ccf53a96c | [
"Apache-2.0"
] | 5 | 2021-10-31T15:55:19.000Z | 2022-02-24T06:31:18.000Z | """Unit tests for the pytai application.
License:
MIT License
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
... | 35.436364 | 96 | 0.641355 |
e885d4d5a1bfe3061457ca2b736ac1a2e85b233e | 6,898 | py | Python | project-posenet/pose_opencv.py | vanduc103/coral_examples | a514d003a3948cb0888d2dabc0bdd93939f8ddd0 | [
"Apache-2.0"
] | null | null | null | project-posenet/pose_opencv.py | vanduc103/coral_examples | a514d003a3948cb0888d2dabc0bdd93939f8ddd0 | [
"Apache-2.0"
] | null | null | null | project-posenet/pose_opencv.py | vanduc103/coral_examples | a514d003a3948cb0888d2dabc0bdd93939f8ddd0 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 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, ... | 37.901099 | 127 | 0.615251 |
e8868197bd242c39ce7b91dd052bac2dfdb7f10c | 4,989 | py | Python | src/fparser/two/tests/fortran2003/test_include_statement.py | sturmianseq/fparser | bf3cba3f31a72671d4d4a93b6ef4f9832006219f | [
"BSD-3-Clause"
] | 33 | 2017-08-18T16:31:27.000Z | 2022-03-28T09:43:50.000Z | src/fparser/two/tests/fortran2003/test_include_statement.py | sturmianseq/fparser | bf3cba3f31a72671d4d4a93b6ef4f9832006219f | [
"BSD-3-Clause"
] | 319 | 2017-01-12T14:22:07.000Z | 2022-03-23T20:53:25.000Z | src/fparser/two/tests/fortran2003/test_include_statement.py | sturmianseq/fparser | bf3cba3f31a72671d4d4a93b6ef4f9832006219f | [
"BSD-3-Clause"
] | 17 | 2017-10-13T07:12:28.000Z | 2022-02-11T14:42:18.000Z | # Copyright (c) 2019 Science and Technology Facilities Council
# All rights reserved.
# Modifications made as part of the fparser project are distributed
# under the following license:
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following condi... | 38.976563 | 78 | 0.713971 |
e8876c2cd4fe9d62ba323bed4e9d4016649f22e9 | 4,992 | py | Python | src/common.py | OdatNurd/HyperHelpAuthor | 8082a8eb35d54b53299e421c6005ae5c1fb49b13 | [
"MIT"
] | 1 | 2020-08-18T16:12:06.000Z | 2020-08-18T16:12:06.000Z | src/common.py | OdatNurd/HyperHelpAuthor | 8082a8eb35d54b53299e421c6005ae5c1fb49b13 | [
"MIT"
] | 2 | 2020-02-21T22:48:56.000Z | 2020-02-21T23:15:51.000Z | src/common.py | OdatNurd/HyperHelpAuthor | 8082a8eb35d54b53299e421c6005ae5c1fb49b13 | [
"MIT"
] | null | null | null | import sublime
import os
import textwrap
import hyperhelpcore
from hyperhelpcore.common import log, hh_syntax
from hyperhelpcore.core import help_index_list
###----------------------------------------------------------------------------
def loaded():
"""
Do package setup at package load time.
"""
... | 29.892216 | 79 | 0.634215 |
e8887bd9a2e073f305e0565db697d9a93e02600d | 318 | py | Python | player/migrations/0002_remove_music_thumbnail.py | Amoki/Amoki-Music | 77b0e426fe9cc6c9cd12346a5e5e81a62362bb83 | [
"MIT"
] | 3 | 2015-06-16T11:12:29.000Z | 2019-05-03T09:09:21.000Z | player/migrations/0002_remove_music_thumbnail.py | Amoki/Amoki-Music | 77b0e426fe9cc6c9cd12346a5e5e81a62362bb83 | [
"MIT"
] | 16 | 2015-08-18T14:35:55.000Z | 2021-06-10T17:31:04.000Z | player/migrations/0002_remove_music_thumbnail.py | Amoki/Amoki-Music | 77b0e426fe9cc6c9cd12346a5e5e81a62362bb83 | [
"MIT"
] | 1 | 2016-10-19T14:48:52.000Z | 2016-10-19T14:48:52.000Z | from __future__ import unicode_literals
from django.db import models, migrations
| 17.666667 | 40 | 0.603774 |
e888f8bf6414e902932d3653ddddb568bc3aa26b | 5,717 | py | Python | build_card_bank.py | lawrencesim/portuguese-verb-cards | 3d754981bc5195057cf88a27741bc2eea1722f13 | [
"MIT"
] | null | null | null | build_card_bank.py | lawrencesim/portuguese-verb-cards | 3d754981bc5195057cf88a27741bc2eea1722f13 | [
"MIT"
] | null | null | null | build_card_bank.py | lawrencesim/portuguese-verb-cards | 3d754981bc5195057cf88a27741bc2eea1722f13 | [
"MIT"
] | null | null | null | import os, csv, time, shutil
from bin import cardbank
from bin import builder
def add_build(add_cards):
'''Build card bank by specifically adding new cards.'''
# process new cards to add
if not add_cards:
return
add_card_map = {}
for card in add_cards:
add_card_map[card["inf"]] = ... | 35.955975 | 99 | 0.62078 |
e889b7bfe344006d80c5021c1a5f4296e429ca4d | 1,749 | py | Python | flaskapp/models.py | guillermosainz/instareplic | a4fb26269d54be1a140b1802a4d8013a6aa0ec70 | [
"MIT"
] | 53 | 2015-02-15T19:00:33.000Z | 2022-02-08T09:58:54.000Z | flaskapp/models.py | guillermosainz/instareplic | a4fb26269d54be1a140b1802a4d8013a6aa0ec70 | [
"MIT"
] | 5 | 2016-06-03T13:12:50.000Z | 2018-05-29T08:31:44.000Z | flaskapp/models.py | guillermosainz/instareplic | a4fb26269d54be1a140b1802a4d8013a6aa0ec70 | [
"MIT"
] | 15 | 2016-05-18T20:09:53.000Z | 2020-06-01T04:06:00.000Z | from mongoengine import StringField, EmailField, BooleanField
from flask.ext.login import UserMixin
import requests
import json
from mongoengine import Document
from social.apps.flask_app.me.models import FlaskStorage
| 30.155172 | 108 | 0.644368 |
e88a42379408c1158246f618ad6b8e62971bdb21 | 1,924 | py | Python | src/compas_blender/geometry/__init__.py | adacko/compas | 47c443ad3825897ec7ed932ec20734c2f08ef120 | [
"MIT"
] | null | null | null | src/compas_blender/geometry/__init__.py | adacko/compas | 47c443ad3825897ec7ed932ec20734c2f08ef120 | [
"MIT"
] | null | null | null | src/compas_blender/geometry/__init__.py | adacko/compas | 47c443ad3825897ec7ed932ec20734c2f08ef120 | [
"MIT"
] | 1 | 2022-01-16T02:32:43.000Z | 2022-01-16T02:32:43.000Z | """
********************************************************************************
compas_blender.geometry
********************************************************************************
.. currentmodule:: compas_blender.geometry
Object-oriented convenience wrappers for native Blender geometry.
.. autosummary::
... | 16.168067 | 80 | 0.596674 |
e88a581db548ce41d35b785b7240edca51e28965 | 1,136 | py | Python | notes/reference/tutorials/an-introduction-to-asynch-programming-and-twisted/exercises/part3/ex2.py | aav789/study-notes | 34eca00cd48869ba7a79c0ea7d8948ee9bde72b9 | [
"MIT"
] | 43 | 2015-06-10T14:48:00.000Z | 2020-11-29T16:22:28.000Z | notes/reference/tutorials/an-introduction-to-asynch-programming-and-twisted/exercises/part3/ex2.py | aav789/study-notes | 34eca00cd48869ba7a79c0ea7d8948ee9bde72b9 | [
"MIT"
] | 1 | 2021-11-01T12:01:44.000Z | 2021-11-01T12:01:44.000Z | notes/reference/tutorials/an-introduction-to-asynch-programming-and-twisted/exercises/part3/ex2.py | lextoumbourou/notes | 5f94c59a467eb3eb387542bdce398abc0365e6a7 | [
"MIT"
] | 40 | 2015-03-02T10:33:59.000Z | 2020-05-24T12:17:05.000Z | from twisted.internet import reactor, task
print 'Start'
Counter('1', 0.5).start()
Counter('2', 1).start()
Counter('3', 0.1).start()
reactor.run()
| 24.170213 | 59 | 0.612676 |
e88a6019801aa572d384a6160bf098fc3d5f5bab | 6,889 | py | Python | tests/unit/test_validation_builder.py | shashank-google/professional-services-data-validator | db9c63add4a3ab40b09113ca7ed1c03b7c12e6f2 | [
"Apache-2.0"
] | 1 | 2021-12-24T10:01:31.000Z | 2021-12-24T10:01:31.000Z | tests/unit/test_validation_builder.py | shashank-google/professional-services-data-validator | db9c63add4a3ab40b09113ca7ed1c03b7c12e6f2 | [
"Apache-2.0"
] | null | null | null | tests/unit/test_validation_builder.py | shashank-google/professional-services-data-validator | db9c63add4a3ab40b09113ca7ed1c03b7c12e6f2 | [
"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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 32.649289 | 83 | 0.724488 |
e88aaaf26e2de6b48dfc79634b91841480741eb1 | 2,163 | py | Python | venv/lib/python3.8/site-packages/azureml/_restclient/models/private_endpoint_connection.py | amcclead7336/Enterprise_Data_Science_Final | ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28 | [
"Unlicense",
"MIT"
] | null | null | null | venv/lib/python3.8/site-packages/azureml/_restclient/models/private_endpoint_connection.py | amcclead7336/Enterprise_Data_Science_Final | ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28 | [
"Unlicense",
"MIT"
] | null | null | null | venv/lib/python3.8/site-packages/azureml/_restclient/models/private_endpoint_connection.py | amcclead7336/Enterprise_Data_Science_Final | ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28 | [
"Unlicense",
"MIT"
] | 2 | 2021-05-23T16:46:31.000Z | 2021-05-26T23:51:09.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 2.3.3... | 47.021739 | 151 | 0.691632 |
e88e2ada84f6797bbe06ad18554f171bfb1b346a | 3,100 | py | Python | src/chainalytic_icon/provider/api_bundle.py | yudus-lab/chainalytic-icon | 2c4ef9dde9e94a98a2efabccfb84f853e3a85b0d | [
"Apache-2.0"
] | 1 | 2021-02-24T18:15:10.000Z | 2021-02-24T18:15:10.000Z | src/chainalytic_icon/provider/api_bundle.py | yudus-lab/chainalytic-icon | 2c4ef9dde9e94a98a2efabccfb84f853e3a85b0d | [
"Apache-2.0"
] | null | null | null | src/chainalytic_icon/provider/api_bundle.py | yudus-lab/chainalytic-icon | 2c4ef9dde9e94a98a2efabccfb84f853e3a85b0d | [
"Apache-2.0"
] | null | null | null | import traceback
from typing import Any, Callable, Dict, List, Optional, Set, Tuple
from chainalytic_icon.common import config, util
| 36.904762 | 98 | 0.624839 |
e8910b54a876264e2bd19a91436e6a9f6f4eca70 | 447 | py | Python | __scraping__/just-eat.fr - robobrowser/main.py | whitmans-max/python-examples | 881a8f23f0eebc76816a0078e19951893f0daaaa | [
"MIT"
] | 140 | 2017-02-21T22:49:04.000Z | 2022-03-22T17:51:58.000Z | __scraping__/just-eat.fr - robobrowser/main.py | whitmans-max/python-examples | 881a8f23f0eebc76816a0078e19951893f0daaaa | [
"MIT"
] | 5 | 2017-12-02T19:55:00.000Z | 2021-09-22T23:18:39.000Z | __scraping__/just-eat.fr - robobrowser/main.py | whitmans-max/python-examples | 881a8f23f0eebc76816a0078e19951893f0daaaa | [
"MIT"
] | 79 | 2017-01-25T10:53:33.000Z | 2022-03-11T16:13:57.000Z |
# date: 2019.05.05
# author: Bartomiej 'furas' Burek
import robobrowser
br = robobrowser.RoboBrowser(user_agent='Mozilla/5.0 (X11; Linux i586; rv:31.0) Gecko/20100101 Firefox/31.0')
br.parser = 'lxml'
br.open("https://www.just-eat.fr")
print(br.get_forms())
iframe_src = br.select('iframe')[0]['src']
print(iframe_s... | 21.285714 | 109 | 0.709172 |
e89153be340928f8158c97cd385e8881185901f0 | 2,880 | py | Python | winning_ticket/src/model_utils.py | zankner/WinningTickets | fe40a6e74454e6ea96949f2c16263ed1a1aea6fa | [
"MIT"
] | null | null | null | winning_ticket/src/model_utils.py | zankner/WinningTickets | fe40a6e74454e6ea96949f2c16263ed1a1aea6fa | [
"MIT"
] | null | null | null | winning_ticket/src/model_utils.py | zankner/WinningTickets | fe40a6e74454e6ea96949f2c16263ed1a1aea6fa | [
"MIT"
] | null | null | null | import copy
import torch
from utils import helpers
from utils.layers import conv, linear, batch_norm
| 38.918919 | 93 | 0.542014 |
e892309adfae5627e160795d9ed6e92ccebca92c | 145 | py | Python | tests/test_get_term_list.py | vineetjohn/invest-o-scrape | 696a06538e0e2f1f4c2180bf43657861966a2685 | [
"MIT"
] | 5 | 2019-12-19T05:25:00.000Z | 2022-01-31T19:09:31.000Z | tests/test_get_term_list.py | vineetjohn/invest-o-scrape | 696a06538e0e2f1f4c2180bf43657861966a2685 | [
"MIT"
] | null | null | null | tests/test_get_term_list.py | vineetjohn/invest-o-scrape | 696a06538e0e2f1f4c2180bf43657861966a2685 | [
"MIT"
] | 3 | 2020-03-04T02:24:36.000Z | 2022-01-31T19:09:38.000Z | from utils import scrape_helper
url = "http://www.investopedia.com/terms/1/"
links = scrape_helper.get_term_links_from_page(url)
print(links)
| 18.125 | 51 | 0.786207 |
e8927003c1e8983886adadf1d66dd6660f512ad2 | 1,626 | py | Python | nototools/drop_hints.py | RoelN/nototools | 76b29f8f8f9beaff47b6922b3b664ab2c4c680f6 | [
"Apache-2.0"
] | 156 | 2015-06-11T00:03:49.000Z | 2019-03-12T10:05:14.000Z | nototools/drop_hints.py | RoelN/nototools | 76b29f8f8f9beaff47b6922b3b664ab2c4c680f6 | [
"Apache-2.0"
] | 323 | 2015-06-09T21:26:40.000Z | 2019-04-09T11:09:52.000Z | nototools/drop_hints.py | RoelN/nototools | 76b29f8f8f9beaff47b6922b3b664ab2c4c680f6 | [
"Apache-2.0"
] | 63 | 2015-06-09T19:21:58.000Z | 2019-03-27T21:52:30.000Z | #!/usr/bin/env python
#
# Copyright 2014 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | 28.526316 | 74 | 0.688807 |
e8928c1b30720641401724d98a6992e27f9c6712 | 5,438 | py | Python | imapclient/response_lexer.py | maxiimou/imapclient | 755936fb2ac4a3da9f898e504cd1a8f4b5da9b84 | [
"BSD-3-Clause"
] | null | null | null | imapclient/response_lexer.py | maxiimou/imapclient | 755936fb2ac4a3da9f898e504cd1a8f4b5da9b84 | [
"BSD-3-Clause"
] | 2 | 2019-05-01T08:41:02.000Z | 2020-01-03T21:54:51.000Z | imapclient/response_lexer.py | maxiimou/imapclient | 755936fb2ac4a3da9f898e504cd1a8f4b5da9b84 | [
"BSD-3-Clause"
] | 5 | 2015-12-03T03:17:52.000Z | 2021-01-31T13:10:25.000Z | # Copyright (c) 2014, Menno Smits
# Released subject to the New BSD License
# Please see http://en.wikipedia.org/wiki/BSD_licenses
"""
A lexical analyzer class for IMAP responses.
Although Lexer does all the work, TokenSource is the class to use for
external callers.
"""
from __future__ import unicode_literals
from... | 31.433526 | 82 | 0.582383 |
e89384cd4e1e1e1278f38d2fac8d56157408b3f2 | 149 | py | Python | src/bert_summarizer/data/__init__.py | k-tahiro/bert-summarizer | 03a09676130e4706b42ba6ab53c545fd10b84bce | [
"MIT"
] | 8 | 2020-10-05T02:34:40.000Z | 2021-11-29T01:38:41.000Z | src/bert_summarizer/data/__init__.py | k-tahiro/bert-summarizer | 03a09676130e4706b42ba6ab53c545fd10b84bce | [
"MIT"
] | 5 | 2021-04-01T07:15:26.000Z | 2022-03-15T02:48:18.000Z | src/bert_summarizer/data/__init__.py | k-tahiro/bert-summarizer | 03a09676130e4706b42ba6ab53c545fd10b84bce | [
"MIT"
] | 2 | 2021-09-30T09:10:55.000Z | 2022-01-29T03:05:46.000Z | from .data_collator import (
DataCollatorWithPaddingWithAdditionalFeatures,
EncoderDecoderDataCollatorWithPadding,
)
from .datasets import *
| 24.833333 | 50 | 0.825503 |
e894d63a61f84c8bd811e9165930421a819cf713 | 274 | py | Python | app/api_docs/__init__.py | linrong/flask-server | 5f0896c6ccedb6b172b9af7e1018600e38a2df43 | [
"MIT"
] | null | null | null | app/api_docs/__init__.py | linrong/flask-server | 5f0896c6ccedb6b172b9af7e1018600e38a2df43 | [
"MIT"
] | 1 | 2019-09-06T10:06:47.000Z | 2019-09-10T07:18:47.000Z | app/api_docs/__init__.py | linrong/flask-server | 5f0896c6ccedb6b172b9af7e1018600e38a2df43 | [
"MIT"
] | null | null | null | # _*_ coding: utf-8 _*_
"""
Created by lr on 2019/08/29.
flasggerapi
"""
from app.api_docs.v1 import user, client, token, \
banner, theme, product, category, \
address, order, pay
from app.api_docs.cms import cms_user, file
__author__ = 'lr' | 24.909091 | 50 | 0.69708 |